/* --- 0. GLOBAL HEADING COLOR --- */
h1, h2, h3, h4, h5, h6 { color: #4a5c3e !important; }

/* --- 1. CORE RESET & LAYOUT --- */
* { box-sizing: border-box; }
body { 
    font-family: 'Georgia', serif; 
    line-height: 1.6; 
    background-color: #fdfdfb; 
    margin: 0; padding: 0;
    color: #333; 
}
.container { 
    max-width: 1100px; 
    margin: 0 auto; 
    padding: 0 20px; 
}

/* --- 2. THE NAVBAR --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    background: #ffffff;
    border-bottom: 2px solid #4a5c3e;
    height: 90px;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.logo-container { display: flex; align-items: center; text-decoration: none; }
.nav-logo { height: 60px; margin-right: 15px; }
.logo-text { font-weight: bold; font-size: 1.1rem; color: #4a5c3e; text-transform: uppercase; letter-spacing: 1px; }

.nav-links { 
    display: flex; 
    list-style: none; 
    gap: 25px; 
    margin: 0; padding: 0; 
}
.nav-links li { position: relative; }
.nav-links a { 
    text-decoration: none; 
    color: #4a5c3e; 
    font-weight: 600; 
    font-size: 0.9rem; 
}

/* --- 3. DROPDOWNS (Desktop Logic) --- */
.dropdown-content {
    display: none;
    position: absolute;
    top: 100%; left: -25px;
    background-color: #ffffff;
    min-width: 220px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    list-style: none;
    padding: 10px 0; margin: 0;
    border-top: 3px solid #d4af37;
    z-index: 2000;
}

@media (min-width: 769px) {
    .nav-links li:hover .dropdown-content { 
        display: block !important; 
    }
    /* Hide mobile-only dropdown class on desktop just in case */
    .active-dropdown .dropdown-content {
        display: none;
    }
}
/* Ensure dropdowns are visible on mobile when active */
@media (max-width: 768px) {
    .nav-links li.active-dropdown > .dropdown-content {
        display: block !important;
        position: relative !important; /* Pushes other menu items down */
        visibility: visible !important;
        opacity: 1 !important;
        background: #f9f9f9 !important;
        border-left: 4px solid #d4af37 !important; /* Gold bar for clarity */
    }
    
    /* Hide dropdowns by default on mobile */
    .nav-links li:not(.active-dropdown) .dropdown-content {
        display: none !important;
    }
}
.dropdown-content li a { padding: 10px 20px; display: block; border-bottom: 1px solid #eee; }

/* --- 4. BUTTONS & UI --- */
.btn-gold, .btn-sm, .btn {
    display: inline-block;
    padding: 12px 25px;
    text-decoration: none !important;
    font-weight: bold;
    border-radius: 4px;
    transition: 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
}
.btn-gold { background-color: #d4af37 !important; color: #1a1a1b !important; }
.btn-sm, .btn { background-color: #4a5c3e; color: #ffffff !important; }
.btn-gold:hover, .btn-sm:hover { transform: translateY(-2px); box-shadow: 0 4px 8px rgba(0,0,0,0.2); }

/* --- 5. GRIDS & PAGE LAYOUTS --- */
.feature-grid, .groups-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 60px 0;
    align-items: stretch;
}
.feature-item, .group-card {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    text-align: center;
    display: flex;
    flex-direction: column;
}
.feature-item img {
    width: 100%; height: 200px;
    object-fit: cover; border-radius: 6px;
    margin-bottom: 20px;
}
.group-card .btn-sm { margin-top: auto; width: 100%; }
.hero-banner {
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('images/evanston-hero.jpg');
    background-size: cover !important;      /* Forces image to fill the space without tiling */
    background-position: center !important;  /* Keeps the focus on the center of the photo */
    background-repeat: no-repeat !important; /* Stops the tiling/repeating */
    height: 450px !important;               /* Forces the vertical thickness back */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    width: 100%;
}

/* --- 6. MOBILE NAVIGATION (The Fix) --- */
.menu-toggle { display: none; }

@media (max-width: 768px) {
    .menu-toggle {
        display: block !important;
        cursor: pointer;
        font-size: 2rem;
        color: #4a5c3e;
        padding-right: 20px;
    }

    .nav-links {
        display: none; 
        flex-direction: column;
        position: absolute;
        top: 90px; left: 0; width: 100%;
        background: #ffffff !important;
        border-bottom: 2px solid #4a5c3e;
        z-index: 1500;
        padding: 0;
    }

    /* Shows the main list when hamburger is clicked */
    .nav-links.active { 
        display: flex !important; 
    }

    /* FORCES THE CHILD MENU TO SHOW when active-dropdown class is added */
    .nav-links li.active-dropdown > .dropdown-content {
        display: block !important;
        position: relative !important;
        top: 0 !important;
        width: 100% !important;
        background-color: #f9f9f9 !important;
        border: none !important;
        border-left: 5px solid #d4af37 !important;
        box-shadow: none !important;
        padding: 0 !important;
    }

    /* Hide sub-menus unless the specific parent is active */
    .nav-links li:not(.active-dropdown) > .dropdown-content {
        display: none !important;
    }

    .nav-links li { width: 100%; text-align: left; }
    .nav-links li a {
        display: block;
        padding: 18px 25px;
        border-bottom: 1px solid #eee;
        width: 100%;
        font-weight: 600;
    }

    .dropdown-content li a {
        padding-left: 50px !important;
        background-color: #f9f9f9 !important;
        font-weight: 400;
    }
}
/* --- 7. THE DEFINITIVE EVENTS LAYOUT --- */
.events-stack {
    display: flex;
    flex-direction: column;
    gap: 50px; /* Space between each event card */
    margin: 40px 0;
}

.event-card {
    display: flex;
    flex-direction: row; /* Forces side-by-side */
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    min-height: 500px;
}

.event-image-side {
    flex: 0 0 60%; /* Image takes up 60% of the card width */
    background: #f4f4f4;
}

.event-image-side img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Prevents tiling/stretching */
    display: block;
}

.event-content-side {
    flex: 1; /* Text takes up the remaining 45% */
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.event-content-side h2 {
    margin-top: 0;
    color: #4a5c3e;
    border-bottom: 2px solid #d4af37;
    display: inline-block;
    padding-bottom: 10px;
}

.event-meta {
    margin: 20px 0;
    font-size: 0.95rem;
    color: #666;
}

/* Mobile Fix: Stack them vertically on phones */
@media (max-width: 850px) {
    .event-card {
        flex-direction: column;
    }
    .event-image-side {
        height: 350px;
        width: 100%;
    }
}

/* --- 7b. LANDSCAPE EVENT CARD --- */
.event-card--landscape {
    flex-direction: column !important; /* Stack image on top, content below */
}

.event-card--landscape .event-image-top {
    width: 100%;
    flex: none;
}

.event-card--landscape .event-image-top img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    border-radius: 12px 12px 0 0;
}

.event-card--landscape .event-content-side {
    width: 100%;
    flex: none;
    padding: 40px;
}
/* --- 8. CONFERENCE VIDEO GRID --- */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.media-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    text-align: center;
}

.slideshow-video {
    width: 100%;
    height: 300px;
    object-fit: cover; /* Ensures videos fill the space without stretching */
    display: block;
}

.caption {
    padding: 15px;
    font-weight: bold;
    color: #4a5c3e;
    margin: 0;
    background: #fdfdfb;
}

/* --- 9. PHOTO GALLERY --- */
.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    height: 300px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05); /* Subtle zoom effect */
}

.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(74, 92, 62, 0.85); /* EWW Brand Green with transparency */
    color: white;
    padding: 15px;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
    border-top: 3px solid #d4af37; /* Gold accent line */
}

/* Special fix for the EVIE winners photo to ensure it stands out */
.evie-fix {
    grid-column: span 1;
}

@media (max-width: 600px) {
    .video-grid {
        grid-template-columns: 1fr;
    }
    .gallery-item {
        height: 250px;
    }
}
/* --- 10. CRITIQUE GROUPS REFINEMENTS --- */
.groups-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.group-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 40px;
    display: flex;
    flex-direction: column; /* Stack content vertically */
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.group-card:hover {
    transform: translateY(-5px);
    border-color: #d4af37;
}

.group-icon { 
    font-size: 50px; 
    margin-bottom: 20px; 
    text-align: center; 
}

.group-card h3 { 
    text-align: center; 
    color: #4a5c3e; 
    border-bottom: 2px solid #d4af37; 
    padding-bottom: 10px; 
    margin-bottom: 15px; 
}

.meet-time { 
    color: #c0392b; /* Deep red for visibility */
    font-weight: bold; 
    font-size: 0.95rem; 
    margin-bottom: 20px; 
    text-align: center; 
    min-height: 45px; /* Keeps headings aligned even if time is 1 vs 2 lines */
}

.group-card p {
    font-size: 0.95rem;
    color: #444;
    margin-bottom: 15px;
}

/* Forces the button to the absolute bottom of the card */
.group-card .btn-sm { 
    margin-top: auto; 
    width: 100%; 
    padding: 15px;
}

.group-card ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.group-card ul li {
    margin-bottom: 8px;
    color: #555;
}
/* --- 11. DONATIONS PAGE REFINEMENTS --- */
.donate-icon {
    font-size: 70px; /* This makes the emojis large and prominent */
    margin-bottom: 20px;
    display: block;
}

.payment-box {
    background-color: #f9f9f9;
    border: 1px dashed #d4af37;
    padding: 20px;
    border-radius: 8px;
    margin-top: 15px;
    font-size: 1.1rem;
    color: #4a5c3e;
    line-height: 1.4;
}

.payment-box strong {
    display: block;
    margin-top: 5px;
    color: #1a1a1b;
    word-wrap: break-word; /* Prevents email/handle from breaking on mobile */
}

.section-divider {
    height: 3px;
    background: #d4af37;
    width: 60px;
    margin: 0 auto 40px;
}
/* --- 12. 2026 CONFERENCE SPECIAL STYLES --- */
.conf-hero {
    background: linear-gradient(rgba(26, 37, 47, 0.9), rgba(26, 37, 47, 0.8)), 
                url('images/evanston-hero.jpg'); /* Use your existing hero img */
    background-size: cover;
    background-position: center;
    padding: 100px 0 160px;
    color: #ffffff;
    text-align: center;
}

.conf-date {
    display: inline-block;
    background: #d4af37;
    color: #1a252f;
    padding: 5px 20px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 50px;
    margin-bottom: 20px;
}

.conf-title {
    font-size: 4rem;
    margin: 0;
    font-family: 'Georgia', serif;
    font-style: italic;
}

.conf-subtitle {
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-top: 10px;
    color: #d4af37;
}

.conf-location {
    font-size: 1.2rem;
    margin-top: 20px;
    opacity: 0.9;
}

.conf-divider {
    height: 4px;
    width: 80px;
    background: #d4af37;
    margin: 30px auto 0;
}

.conf-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.cta-box {
    background: #ffffff;
    border: 3px solid #4a5c3e;
    padding: 60px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.cta-box h3 {
    font-size: 2rem;
    color: #4a5c3e;
    margin-bottom: 15px;
}

/* Mobile Tweaks */
@media (max-width: 768px) {
    .conf-title { font-size: 2.5rem; }
    .conf-hero { padding: 60px 0 120px; }
    .cta-box { padding: 30px; }
}
/* --- SUCCESS STORIES IMAGE REFINEMENT --- */

.success-card-alt .event-image-side {
    flex: 0 0 180px; /* This sets a fixed small width for the headshot */
    background: #f4f4f4;
    display: flex;
    align-items: flex-start; /* Keeps image at the top if text is long */
}

/* 2. Ensure the image doesn't stretch vertically too far */
.success-card-alt .event-image-side img {
    width: 100%;
    height: 220px; /* Limits the vertical height of the headshot */
    object-fit: cover;
    display: block;
}

/* 3. Adjust the content side padding now that the image is smaller */
.event-content-side {
    padding: 30px;
}

/* Mobile Fix: Make sure they still look good on phones */
@media (max-width: 850px) {
    .success-card-alt .event-image-side {
        flex: 0 0 auto;
        width: 100%;
        height: 200px;
    }
    .success-card-alt .event-image-side img {
        height: 100%;
    }
}
/* --- COMPACT SUCCESS STORY STYLE --- */

.success-card-alt {
    display: block !important; /* Overrides the two-column flex layout */
    padding: 20px;
}

.author-header {
    display: flex;
    align-items: center; /* Centers image vertically with the name */
    gap: 15px;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.author-headshot-small {
    width: 60px;  /* Small, profile-sized image */
    height: 60px;
    border-radius: 50%; /* Makes it a circle */
    object-fit: cover;
    border: 2px solid #d4af37; /* Adds a nice gold ring */
    flex-shrink: 0;
}

.author-header h2 {
    margin: 0;
    border: none !important; /* Remove the old underline since we have the header border */
    font-size: 1.5rem;
    color: #4a5c3e;
}

.success-card-alt .event-description {
    padding: 0 5px;
    line-height: 1.7;
}
/* --- SUCCESS STORY HEIGHT FIX --- */

.success-card-alt {
    display: block !important;
    padding: 25px;
    /* This is the fix: override the 400px min-height from .event-card */
    min-height: auto !important; 
    height: auto !important;
    margin-bottom: 30px;
}

.success-card-alt .event-content-side {
    padding: 0; /* Remove extra padding since the card itself has padding now */
}

.author-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

/* Ensure the description doesn't have a massive bottom margin */
.success-card-alt .event-description p {
    margin-bottom: 0;
}

/* If a book box exists, give it some breathing room from the text */
.success-card-alt .book-highlight-box {
    margin-top: 20px;
}