/* =========================================
   APPNA ST. LOUIS - MASTER THEME (USER VERSION + LOGO FIX)
   ========================================= */
   @import url('https://fonts.googleapis.com/css2?family=Kaushan+Script&display=swap');

:root {
    --primary: #008a3c;       /* Forest Green */
    --primary-dark: #006b2e;
    --secondary: #0f2a44;     /* Navy Footer */
    --gold: #ffd700;          /* Accent Gold */
    --text-dark: #333333;
    --text-light: #666666;
    --white: #ffffff;
    --off-white: #f9f9f9;
    --border-light: #e5e5e5;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

/* UTILITIES */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.text-center { text-align: center; }
.section-padding { 
    padding-top: 80px; 
    padding-bottom: 80px; 
}

/* Safety fix for mobile screens */
@media (max-width: 900px) {
    .container {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
    
    .section-padding, 
    .info-blue-section, 
    .photo-caption-section {
        padding-left: 20px;
        padding-right: 20px;
    }
}
.flex-between { display: flex; justify-content: space-between; align-items: center; }

/* =========================================
   1. HEADER & NAVIGATION
   ========================================= */
.top-bar {
    background: rgba(15, 42, 68, 0.05);
    padding: 10px 0;
    font-size: 13px;
    color: var(--text-light);
}

.top-bar i { color: var(--primary); margin-right: 6px; }

.top-bar a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.top-bar a:hover {
    color: var(--primary);
}

nav {
    background: var(--white);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.logo img { 
    height: 120px; 
    display: block; 
    transition: height 0.3s ease;
}

/* Mobile Menu Toggle */
.mobile-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--primary);
}

.nav-links { list-style: none; display: flex; gap: 30px; align-items: center; }
.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: 0.3s;
    position: relative;
    padding-bottom: 5px;
}
.nav-links a.active {
    color: var(--primary);
}

/* Animated Underline Effect */
.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--gold);
    transition: width 0.3s ease-in-out;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover { color: var(--primary); }

.nav-btn {
    background: var(--primary);
    color: var(--white) !important;
    padding: 10px 25px;
    border-radius: 4px;
    transition: background 0.3s;
}

.nav-btn:hover { background: var(--primary-dark); }

/* =========================================
   2. HERO SECTIONS
   ========================================= */
/* Home Page Slider */
.hero-slider { position: relative; height: 550px; background: #000; overflow: hidden; }

.slide {
    position: absolute; inset: 0;
    background-size: cover; 
    background-position: center top;
    display: flex; align-items: center;
    opacity: 0; transition: opacity 1s ease-in-out;
}

.slide::before { 
    content: ''; 
    position: absolute; 
    inset: 0; 
    /* Blue Tint (Navy with 40% opacity) */
    background: rgba(15, 42, 68, 0.25); 
    z-index: 1;
}

.slide.active { opacity: 1; z-index: 2; }

.hero-content { 
    position: relative; 
    z-index: 3; 
    color: var(--white); 
    max-width: 700px;
    margin-left: -350px; /* Moved left */
}

.hero-content h5 { color: var(--gold); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 10px; }
.hero-content h1 { font-size: 48px; line-height: 1.2; margin-bottom: 25px; }

/* Sub-Page Hero (Small) */
.hero-small {
    background: linear-gradient(rgba(0, 70, 30, 0.8), rgba(0, 70, 30, 0.8)), url('images/1.jpg');
    background-size: cover; 
    background-position: center top;
    height: 300px;
    display: flex; align-items: center; justify-content: center;
    text-align: center; color: var(--white);
}
.hero-small h1 { font-size: 42px; margin: 0; }
.hero-small p { color: var(--gold); font-size: 18px; margin-top: 10px; }

/* =========================================
   3. HIGHLIGHT BOXES
   ========================================= */
.highlights-section { margin-top: -60px; position: relative; z-index: 10; padding-bottom: 60px; }
.highlights-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-radius: 8px; overflow: hidden;
}

.box { padding: 40px; color: var(--white); min-height: 250px; display: flex; flex-direction: column; justify-content: center; }
.box h3 { font-size: 22px; margin-bottom: 15px; display: flex; align-items: center; gap: 10px; }
.box p { font-size: 15px; opacity: 0.9; }

.bg-light { background: #00a347; }
.bg-medium { background: #00913e; }
.bg-dark { background: var(--primary); }

/* =========================================
   4. CONTENT GRIDS
   ========================================= */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }

.card {
    background: var(--white);
    padding: 40px 30px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s, border-color 0.3s;
}

.card:hover { transform: translateY(-5px); border-color: var(--gold); }
.card i { font-size: 40px; color: var(--primary); margin-bottom: 20px; }
.card h3 { margin-bottom: 15px; font-size: 20px; color: var(--text-dark); }
.card p { color: var(--text-light); font-size: 15px; }

/* =========================================
   NEW: LIGHT BLUE INFO SECTION
   ========================================= */

.info-blue-section {
    background-color: #e6f3ff;
    padding: 80px 0;
    color: var(--text-dark);
}

.info-blue-section h2 {
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 32px;
}

.info-content p {
    font-size: 18px;
    max-width: 900px;
    margin: 0 auto 30px;
    line-height: 1.8;
}

.hours-box {
    background: var(--white);
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    border: 2px solid var(--primary);
    color: var(--primary);
    font-weight: bold;
    margin-bottom: 50px;
    font-size: 18px;
}

/* Two-Column Grid */
.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    text-align: left;
    margin-bottom: 50px;
}

.info-col {
    background: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.05);
    height: 100%;
}

.info-col h3 {
    color: var(--secondary);
    border-bottom: 2px solid var(--gold);
    padding-bottom: 10px;
    margin-bottom: 20px;
    display: inline-block;
}

.info-col ul, .info-col ol {
    margin-left: 20px;
}

.info-col li {
    margin-bottom: 12px;
    font-size: 16px;
    color: var(--text-dark);
}

.contact-highlight {
    background: var(--secondary);
    color: var(--white);
    padding: 40px;
    border-radius: 8px;
    margin-top: 40px;
}

.contact-highlight a { color: var(--gold); text-decoration: none; }

/* =========================================
   PHOTO CAPTION SECTION
   ========================================= */
.photo-caption-section {
    width: 100%;
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('images/5.jpg');
    background-size: cover;
    background-position: center;
    padding: 120px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 60px;
}

.caption-content {
    text-align: center;
    color: var(--white);
    max-width: 900px;
}

.mission-script {
    font-family: 'Kaushan Script', cursive;
    font-size: 42px;
    color: var(--gold);
    line-height: 1.4;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.medical-note {
    font-family: 'Segoe UI', sans-serif;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 300;
    max-width: 700px;
    margin: 0 auto;
}

/* =========================================
   5. CTA & CONTACT
   ========================================= */
.cta-section { background: var(--primary); color: var(--white); padding: 80px 0; margin-top: 0; }
.cta-wrapper { display: grid; grid-template-columns: 1.5fr 1fr; gap: 60px; align-items: center; }

.cta-text h2 { font-size: 36px; color: var(--gold); margin-bottom: 20px; }
.cta-box { background: rgba(255,255,255,0.1); padding: 40px; border-radius: 8px; text-align: center; }

.btn { display: inline-block; padding: 12px 30px; border-radius: 4px; text-decoration: none; font-weight: bold; transition: 0.3s; cursor: pointer; }
.btn-gold { background: var(--gold); color: #222; border: none; }
.btn-outline { border: 2px solid var(--white); color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--primary); }

/* =========================================
   6. FOOTER
   ========================================= */
.main-footer { background: var(--secondary); color: #e9eef4; padding: 60px 0 0; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }

.footer-brand h3 { color: var(--white); margin-bottom: 15px; }
.footer-brand span { color: var(--primary); }
.footer-brand p { opacity: 0.7; max-width: 350px; }

.footer-nav h5, .footer-contact h5 { color: var(--gold); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 20px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: #e9eef4; text-decoration: none; opacity: 0.7; transition: 0.3s; }
.footer-links a:hover { opacity: 1; color: var(--gold); }

.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 25px 0; text-align: center; font-size: 14px; opacity: 0.7; }
.footer-bottom a { color: #e9eef4; text-decoration: none; }

/* =========================================
   7. RESPONSIVE / MOBILE MENU
   ========================================= */
@media (max-width: 900px) {
    .mobile-toggle { display: block; }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 20px 0;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        border-top: 1px solid #eee;
    }

    .nav-links.active { display: flex; }

    /* Stack Grids */
    .highlights-grid, 
    .grid-3, 
    .cta-wrapper, 
    .footer-grid, 
    .info-grid { 
        grid-template-columns: 1fr; 
        text-align: center; 
    }
    
    /* Reduce Hero Height for Mobile */
    .hero-slider {
        height: 280px;
    }

    /* UPDATED: Add whitespace above green boxes (no overlap) */
    .highlights-section {
        margin-top: 15px;
    }

    /* UPDATED: LOGO SIZE INCREASED FOR MOBILE */
    .logo img { height: 85px; }
    
    .hero-content h1 { font-size: 32px; }
    .hero-content { margin-left: 0; max-width: 100%; padding: 0 20px; }
    .box { min-height: auto; }

    .photo-caption-section { padding: 100px 20px; }
    .caption-content p { font-size: 24px; } 
    
    .donate-box {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
}

/* =========================================
   TEAM GRID BOXES
   ========================================= */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); 
    gap: 30px;
    margin-bottom: 60px;
}

.team-box {
    background: #ffffff;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    padding: 35px 20px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.team-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border-color: var(--gold);
}

.member-photo {
    width: 90px;
    height: 90px;
    background: #f4f4f4;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 35px;
    border: 2px solid var(--off-white);
}

.team-box h4 {
    color: var(--primary-dark);
    font-size: 18px;
    margin-bottom: 5px;
    font-weight: 700;
}

.team-box span {
    display: block;
    font-size: 13px;
    color: #777;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* =========================================
   DONATE PAGE STYLES
   ========================================= */
.donate-box {
    background: var(--off-white);
    border: 2px solid #e1e1e1;
    border-radius: 12px;
    max-width: 700px;
    margin: 0 auto;
    padding: 40px;
    display: flex;
    align-items: center;
    gap: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.qr-container {
    flex: 0 0 200px;
    height: 200px;
    background: white;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.donate-text {
    flex: 1;
}

.map-container {
    width: 100%;
    min-height: 350px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border: 1px solid #ddd;
}