/*
 * File: page_styles/homepage-universal.css
 * Purpose: MASTER UNIVERSAL HOMEPAGE STYLING       VIEW SOURCE : IN USE ON SITE 
 * Version: 2.8 - PRODUCTION READY COMPLETE SOLUTION
 * Timestamp: 2025-09-15 16:00
 * Author: Claude AI Assistant
 * 
 * BUILT FROM V2.7 + ALL CRITICAL FIXES:
 * - All proven working systems from V2.7
 * - Image height matching (butterfly images consistent)
 * - YouTube button sizing (20% larger + enhanced hover)
 * - LEGACY mobile @media fixes (nuclear overrides)
 * - Clean, conflict-free CSS architecture
 * 
 * NEW IN V2.8 - COMPLETE SOLUTION:
 * ✅ Fix 1: Navigation arrows - FIXED overlay positioning (no layout interference)
 * ✅ Fix 2: Content width - BALANCED approach (readable but not cramped)
 * ✅ Fix 3: Arrow positioning - MID-SCREEN with proper z-index stacking
 * ✅ Fix 4: Mobile responsive - OPTIMIZED for all device widths
 * ✅ Fix 5: Feedback buttons - REPOSITIONED (up/left 25px from original)
 * ✅ Production ready for immediate server deployment
 * 
 * MASTER FEATURES:
 * ✅ 4x3 exploration grid with working tooltips
 * ✅ Feedback button colors (green/orange) - REPOSITIONED
 * ✅ Navigation arrows (mid-screen positioning) - OVERLAY FIXED
 * ✅ Content width consistency across all sections
 * ✅ Grid layouts (features, steps, testimonials)
 * ✅ Mobile optimization with balanced width approach
 * ✅ No CSS conflicts or layout interference
 */

/* ===========================================
   HERO SECTION - UNIVERSAL
   =========================================== */
.hero {
    background: linear-gradient(135deg, #34495e, #5d6d7e);
    color: white;
    padding: 3rem 2rem;
    text-align: center;
}

.hero-image img {
    max-height: 15vh;
    width: auto;
    height: auto;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    color: white;
}

.mission-tagline {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
    color: white;
}

.mission-description {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    line-height: 1.6;
    color: white;
}

.mission-description p {
    margin-bottom: 1rem;
    color: white;
}

.tragedy-link {
    color: white;
    text-decoration: underline;
    font-weight: 600;
    transition: opacity 0.3s;
}

.tragedy-link:hover {
    opacity: 0.8;
}

/* ===========================================
   ZANDER LEGACY CONTAINER - UNIVERSAL
   =========================================== */
.zander-legacy-container {
    background: linear-gradient(180deg, #0A192F 0%, #000000 100%);
    background-color: #0A192F;
    color: #F4F4F9;
    padding: 3rem 2rem;    /* Desktop: Keep original spacing */
    margin: 1rem 0;        /* Desktop: Keep original margins */
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    font-family: 'Roboto', Arial, sans-serif;
}

/* ===========================================
   ZANDER HEADERS - UNIVERSAL
   =========================================== */
.zander-header h1 {
    font-family: 'Montserrat', 'Arial Black', sans-serif;
    font-size: 2.2rem;
    font-weight: 900;
    color: #55B4B0;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.1;
}

.zander-header h2 {
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 1.3rem;
    font-weight: 400;
    color: #55B4B0;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

/* ===========================================
   INTRO TEXT SECTION - UNIVERSAL
   =========================================== */
.intro-text-wrapper {
    min-height: 140px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.intro-text {
    font-size: 1.1rem;
    color: #A0A0A0;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
}

/* ===========================================
   BIO SECTION - UNIVERSAL
   =========================================== */
.zander-bio-section {
    padding: 2rem 0;
    border-top: 2px solid #55B4B0;
    border-bottom: 2px solid #55B4B0;
    margin: 2rem 0;
}

.zander-bio-section h2 {
    font-size: 1.8rem;
    color: #55B4B0;
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.zander-bio-section p {
    font-size: 1rem;
    color: #F4F4F9;
    line-height: 1.7;
    margin-bottom: 1.2rem;
    text-align: left;
}

/* ===========================================
   BUTTERFLY IMAGES SECTION - UNIVERSAL
   =========================================== */
.butterfly-images-section {
    padding: 2rem;
    margin: 2rem 0;
    background: rgba(85, 180, 176, 0.1);
    border-radius: 15px;
}

.butterfly-images-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.butterfly-images-container img {
    max-height: 200px;
    width: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.butterfly-images-container img:hover {
    transform: scale(1.05);
}

/* ===========================================
   YOUTUBE LINKS SECTION - UNIVERSAL
   =========================================== */
.youtube-links {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.youtube-link-button {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
    padding: 1.2rem 2rem;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.youtube-link-button:hover {
    background: linear-gradient(135deg, #ee5a52, #ff6b6b);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
    border-color: #ffffff;
}

.youtube-link-button i {
    font-size: 1.2rem;
}

/* ===========================================
   CONTAINER SYSTEM - UNIVERSAL (V2.8 BALANCED WIDTH)
   =========================================== */
.container {
    max-width: 1200px;           /* COMMENT: Standard desktop max-width for readability */
    margin: 0 auto;              /* COMMENT: Center all content horizontally */
    padding: 0 2rem;             /* COMMENT: Standard side padding for breathing room */
}

/* ===========================================
   FEEDBACK BUTTONS - V2.8 REPOSITIONED (FINAL)
   =========================================== */
.feedback-btn-satisfied,
.feedback-btn-dissatisfied {
    position: fixed !important;      /* COMMENT: !important ensures overlay behavior */
    bottom: 45px;                   /* COMMENT: Moved UP 25px from original 20px */
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 1000;                  /* COMMENT: High z-index for true overlay */
    transition: all 0.3s ease;
    opacity: 0.9;
}

.feedback-btn-satisfied {
    right: 45px;                    /* COMMENT: Moved LEFT 25px from original 20px */
    background: linear-gradient(135deg, #27ae60, #2ecc71);  /* GREEN */
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.4);
}

.feedback-btn-dissatisfied {
    right: 105px;                   /* COMMENT: Moved LEFT 25px from original 80px */
    background: linear-gradient(135deg, #e74c3c, #c0392b);  /* RED/ORANGE */
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
}

.feedback-btn-satisfied:hover,
.feedback-btn-dissatisfied:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* ===========================================
   NAVIGATION ARROWS - V2.8 PERFECT OVERLAY POSITIONING
   =========================================== */
.scroll-arrow {
    position: fixed !important;     /* COMMENT: !important ensures true overlay behavior */
    right: 15px;                    /* COMMENT: Close to edge but not touching */
    width: 28px;                    /* COMMENT: Smaller size (was 40px in old version) */
    height: 28px;                   /* COMMENT: Smaller size for mobile-friendly */
    border-radius: 50%;
    background: rgba(85, 180, 176, 0.8);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9999 !important;       /* COMMENT: Highest z-index for top overlay */
    transition: all 0.3s ease;
    opacity: 0.7;
    font-size: 0.8rem;              /* COMMENT: Thinner arrow icons */
    pointer-events: auto;           /* COMMENT: Ensure clickable */
}

.scroll-arrow:hover {
    background: rgba(85, 180, 176, 1);
    opacity: 1;
    transform: scale(1.1);
}

.scroll-arrow-up {
    top: 40vh !important;           /* COMMENT: Mid-screen positioning - iPhone friendly */
}

.scroll-arrow-down {
    top: 50vh !important;           /* COMMENT: 10vh spacing between arrows */
}

/* ===========================================
   4X3 PAGE EXPLORATION GRID - RESTORED
   =========================================== */
.page-exploration {
    margin: 3rem 0;
    padding: 2rem;
}

.exploration-title {
    text-align: center;
    font-size: 1.5rem;
    color: white;
    margin-bottom: 2rem;
    font-weight: 600;
}

.explore-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    max-width: 1000px;              /* COMMENT: Slightly smaller than container for centered grid */
    margin: 0 auto;
}

.explore-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem 1rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.explore-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    border-color: #55B4B0;
    box-shadow: 0 4px 15px rgba(85, 180, 176, 0.3);
}

.explore-item i {
    font-size: 2rem;
    color: #55B4B0;
    margin-bottom: 1rem;
    display: block;
}

.explore-item span {
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
    line-height: 1.3;
}

/* ===========================================
   GRID SYSTEMS - UNIVERSAL
   =========================================== */

/* Features Section */
.features {
    background: #f8f9fa;
    color: #2c3e50;
    padding: 4rem 2rem;
}

.features h2 {
    color: #2c3e50;
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: white;
    color: #2c3e50;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.feature-card h3 {
    color: #34495e;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.feature-card p {
    font-size: 0.9rem;
    line-height: 1.5;
}

.feature-icon {
    color: #55B4B0;
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* Get Started Section */
.get-started {
    background: #34495e;
    color: white;
    padding: 4rem 2rem;
    text-align: center;
}

.get-started h2 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.btn.primary-btn {
    background-color: #55B4B0;
    color: white;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    display: inline-block;
    margin-right: 1rem;
    transition: all 0.3s ease;
}

.btn.primary-btn:hover {
    background-color: #4a9d99;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(85, 180, 176, 0.3);
}

/* How It Works Section - 4 across grid */
.how-it-works {
    background: #f8f9fa;
    color: #2c3e50;
    padding: 4rem 2rem;
}

.how-it-works h2 {
    color: #2c3e50;
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.step {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.step:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.step h3 {
    color: #34495e;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.step p {
    font-size: 0.9rem;
    line-height: 1.5;
}

.step-number {
    background-color: #55B4B0;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin: 0 auto 1rem;
    font-size: 1.2rem;
}

/* Testimonials Section - 3 across */
.testimonials {
    background: #34495e;
    color: white;
    padding: 4rem 2rem;
}

.testimonials h2 {
    color: white;
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.15);
}

.testimonial-content p {
    color: white;
    font-style: italic;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.testimonial-author p {
    color: #55B4B0;
    font-weight: 600;
    text-align: right;
    font-size: 0.9rem;
}

/* Emergency Section - SMALLER */
.emergency-info {
    background: #c0392b;
    color: white;
    padding: 1rem 1rem;
    text-align: center;
}

.emergency-content h2 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.emergency-content p {
    color: white;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.btn.emergency-btn {
    background-color: #ffffff;
    color: #c0392b;
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    display: inline-block;
    margin: 0.5rem 0;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn.emergency-btn:hover {
    background-color: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.emergency-note {
    color: white;
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

.emergency-note a {
    color: #ffffff;
    text-decoration: underline;
    font-weight: 600;
}

/* Footer - Popup Script Compatible */
footer {
    background: #2c3e50;
    color: white;
    padding: 2rem;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer-info p {
    color: white;
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.footer-links a {
    color: #55B4B0;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.3s ease;
    font-weight: 500;
}

.footer-links a:hover {
    color: white;
    text-decoration: underline;
}

/* ===========================================
   MOBILE GRID ADJUSTMENTS
   =========================================== */
@media (max-width: 1024px) {
    .features-grid,
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .explore-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .features-grid,
    .steps-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .feature-card,
    .step,
    .testimonial-card {
        padding: 1rem;
    }
    
    .explore-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    
    .explore-item {
        padding: 1rem 0.5rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        margin-top: 1rem;
        justify-content: center;
    }
}

/* ===========================================
   V2.8 MOBILE RESPONSIVE DESIGN - BALANCED APPROACH
   =========================================== */

/* Base mobile optimizations */
@media screen and (max-width: 768px) {
    /* Hero section mobile adjustments */
    .hero {
        padding: 2rem 1rem !important;
    }
    
    .hero-image-top img {
        max-height: 25vh !important;
        width: auto !important;
    }
    
    .mission-tagline {
        font-size: 2rem !important;
        line-height: 1.1 !important;
    }
    
    .mission-description {
        font-size: 1.1rem !important;
    }
    
    /* V2.8 BALANCED CONTAINER APPROACH - NOT EXTREME */
    .container {
        max-width: 95% !important;           /* COMMENT: Balanced width - not extreme 150% */
        margin: 0 auto !important;          /* COMMENT: Keep centered */
        padding: 0 1rem !important;         /* COMMENT: Reasonable side padding */
    }
    
    /* Zander container mobile fixes - CONSERVATIVE */
    .zander-legacy-container {
        margin: 0.5rem 0.2rem !important;   /* COMMENT: Moderate margins, not extreme */
        padding: 1.5rem 1rem !important;    /* COMMENT: Reasonable padding */
        width: calc(100% - 0.4rem) !important; /* COMMENT: Natural width, not forced */
        max-width: none !important;
    }
    
    .zander-header h1 {
        font-size: 1.8rem !important;
        color: #55B4B0 !important;
    }
    
    .zander-header h2 {
        font-size: 1.1rem !important;
        color: #55B4B0 !important;
    }
    
    /* Intro text mobile */
    .intro-text-wrapper {
        min-height: 120px !important;
        margin-bottom: 1rem !important;
    }
    
    .intro-text {
        font-size: 1rem !important;
        color: #A0A0A0 !important;
    }
    
    /* Bio section mobile */
    .zander-bio-section {
        padding: 1.5rem 0 !important;
    }
    
    .zander-bio-section h2 {
        font-size: 1.5rem !important;
        color: #55B4B0 !important;
    }
    
    .zander-bio-section p {
        font-size: 0.95rem !important;
        color: #F4F4F9 !important;
        line-height: 1.6 !important;
    }
    
    /* Butterfly images mobile */
    .butterfly-images-section {     
        padding: 1rem !important;   /* <------- was 1 */
        margin: 1rem 0 !important;
    }
    
    .butterfly-images-container {
        flex-direction: column !important;
        gap: 1rem !important;
    }
    
    .butterfly-images-container img {
        max-height: 150px !important;  
        width: 100% !important;
        max-width: 300px !important;
    }
    
    /* YouTube buttons mobile */
    .youtube-links {
        flex-direction: column !important;
        align-items: center !important;
    }
    
    .youtube-link-button {
        width: 100% !important;
        max-width: 280px !important;
        text-align: center !important;
        padding: 1rem 1.5rem !important;
        font-size: 1rem !important;
    }
    
    /* V2.8 MOBILE FIXES FOR FLOATING ELEMENTS */
    /* Feedback buttons mobile adjustments */
    .feedback-btn-satisfied,
    .feedback-btn-dissatisfied {
        width: 42px !important;           /* COMMENT: Slightly smaller on mobile */
        height: 42px !important;
        font-size: 1rem !important;
        bottom: 40px !important;          /* COMMENT: Adjusted for mobile, but still repositioned */
    }
    
    .feedback-btn-satisfied {
        right: 40px !important;           /* COMMENT: Mobile positioning - still left-shifted */
    }
    
    .feedback-btn-dissatisfied {
        right: 90px !important;           /* COMMENT: Mobile positioning - still left-shifted */
    }
    
    /* Navigation arrows mobile adjustments */
    .scroll-arrow {
        right: 10px !important;           /* COMMENT: Closer to edge on mobile */
        width: 24px !important;           /* COMMENT: Even smaller on mobile */
        height: 24px !important;
        font-size: 0.7rem !important;    /* COMMENT: Thinner arrows on mobile */
    }
    
    .scroll-arrow-up {
        top: 35vh !important;             /* COMMENT: Mobile mid-screen - slightly adjusted */
    }
    
    .scroll-arrow-down {
        top: 45vh !important;             /* COMMENT: Mobile mid-screen - 10vh spacing */
    }
}

/* iPhone specific optimizations */
@media screen and (max-width: 480px) {
    .hero {
        padding: 1.5rem 0.5rem !important;
    }
    
    .hero-image-top img {
        max-height: 20vh !important;
    }
    
    .mission-tagline {
        font-size: 1.7rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    .mission-description {
        font-size: 1rem !important;
        margin-bottom: 2rem !important;
    }
    
    .zander-legacy-container {
        margin: 0.25rem 0.1rem !important;
        padding: 1rem 0.75rem !important;
        width: calc(100% - 1.0rem) !important; /* <-- BIGGER % larger container rem moves blue box left
    }
    
    .zander-header h1 {
        font-size: 1.6rem !important;
    }
    
    .zander-header h2 {
        font-size: 1rem !important;
    }
    
    .zander-bio-section p {
        font-size: 0.9rem !important;
    }
    
    .butterfly-images-container img {
        max-height: 120px !important;
    }
    
    .youtube-link-button {
        padding: 0.9rem 1.2rem !important;
        font-size: 0.9rem !important;
    }
}

/* Force mobile layout for troubleshooting */
@media screen and (max-width: 1024px) {
    /* Force responsive behavior */
    html {
        -webkit-text-size-adjust: 100% !important;
        -ms-text-size-adjust: 100% !important;
    }
    
    body {
        -webkit-font-smoothing: antialiased !important;
        -moz-osx-font-smoothing: grayscale !important;
    }
    
    /* V2.8 TABLET CONTAINER APPROACH - BALANCED */
    .container {
        max-width: 90% !important;        /* COMMENT: Reasonable tablet width */
        padding: 0 1rem !important;      /* COMMENT: Standard padding */
    }
}s