/* ==========================================================================
   Base Styles & Resets
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f4f7f6;
    color: #333;
    line-height: 1.6;
}

/* ==========================================================================
   Header & Hero Section
   ========================================================================== */
/* Top Hero Image Container */
.top-hero-image {
    width: 100%; 
    height: 100px; 
    background: url('images/logo_capture_better50.png') no-repeat center center;
    background-size: contain; 
    background-position: center; 
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    margin: 0 auto; 
}

/* Text Container Below Image */
.hero-text-container {
    background-color: black; 
    color: white;
    text-align: center;
    padding: 0.5rem 1rem;
}

.hero-text h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.hero-text p {
    font-size: 1.2rem;
}

/* ==========================================================================
   Navigation Menu
   ========================================================================== */
.main-nav {
    background-color: #004b87;
    position: relative;
    z-index: 999; /* Forces the nav to sit above the carousel */
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.main-nav > ul {
    background-color: rgb(153, 0, 51);
    list-style: none;
    display: flex;
    justify-content: center; /* Centers the navigation links */
    margin: 0;
    padding: 0;
}

.main-nav > ul > li {
    position: relative; /* Crucial for absolute positioning of dropdowns */
}

.main-nav > ul > li > a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 1.2rem 2rem;
    font-weight: 500;
    font-size: 1.1rem;
    transition: background-color 0.3s ease;
}

.main-nav > ul > li > a:hover {
    background-color: #003366;
}

/* Active Page Indicator */
.main-nav > ul > li > a.active {
    background-color: #003366; /* Matches your hover color */
    font-weight: 700; /* Makes the text bolder */
    box-shadow: inset 0 -6px 0 #aed6f1; /* Adds a clean, light blue underline effect inside the button */
}

/* Dropdown Menu Styling */
.dropdown {
    display: none; /* Hidden by default */
    position: absolute;
    top: 100%; /* Positions right below the parent li */
    left: 0;
    background-color: #003366;
    min-width: 220px;
    list-style: none;
    padding: 0;
    margin: 0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    border-radius: 0 0 4px 4px;
}

.dropdown li {
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.dropdown li:last-child {
    border-bottom: none;
}

.dropdown a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 1rem 1.5rem;
    font-size: 0.95rem;
    transition: background-color 0.2s ease, padding-left 0.2s ease;
}

.dropdown a:hover {
    background-color: #002244;
    padding-left: 1.8rem; /* Slight indent on hover for polish */
}

/* Hover effect to reveal dropdown */
.main-nav > ul > li:hover .dropdown {
    display: block;
}

/* ==========================================================================
   Layout Containers
   ========================================================================== */
/* Standardize the padding for your main text containers */
.container {
    max-width: 1300px;
    margin: 3rem auto; /* 3rem top/bottom, centered left/right */
    padding: 0 2rem;
}

/* --- Two-Column Layout --- */
.page-container {
    max-width: 1300px;
    margin: 3rem auto;
    padding: 0 2rem;
    display: flex;
    gap: 3rem; /* Space between sidebar and main content */
    align-items: flex-start;
}

/* Left Sidebar */
.sidebar {
    flex: 0 0 25%;   /* 25% of container width */
    min-width: 300px;
    max-width: 450px;
    
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    padding: 1.5rem;
}

.sidebar-title {
    font-size: 1.2rem;
    color: #004b87;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #004b87;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu li {
    margin-bottom: 0.5rem;
}

.sidebar-menu a {
    display: block;
    color: #333;
    text-decoration: none;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background-color 0.2s, color 0.2s;
}

.sidebar-menu a:hover, 
.sidebar-menu a.active {
    background-color: #f4f7f6;
    color: #004b87;
    font-weight: bold;
    border-left: 3px solid #004b87;
}

/* Right Main Content */
.main-content {
    flex: 1; /* Takes up all remaining space */
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.main-content h3 {
    font-size: 2rem;
    color: #004b87;
    margin-bottom: 0.5rem;
}

.content-divider {
    border: 0;
    height: 1px;
    background: #ccc;
    margin-bottom: 1.5rem;
}

.award-item {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: #f9fbfd;
    border-left: 4px solid #004b87;
    border-radius: 0 4px 4px 0;
}

.award-item h4 {
    color: #003366;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

/* ==========================================================================
   Dynamic Carousel
   ========================================================================== */
.carousel-container {
    position: relative;
    width: 100%;
    height: 700px;
    overflow: hidden;
    margin-bottom: 3rem; /* Breathing room below the carousel */
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

/* Carousel Buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 75, 135, 0.5);
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    cursor: pointer;
    font-size: 1.5rem;
    z-index: 10;
    transition: background 0.3s;
}

.carousel-btn:hover {
    background: rgba(0, 75, 135, 0.9);
}

.carousel-btn.prev { left: 0; }
.carousel-btn.next { right: 0; }

/* Carousel Dots */
.carousel-dots {
    position: absolute;
    bottom: 20px;
    width: 100%;
    text-align: center;
    z-index: 10;
}

.dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active, .dot:hover {
    background: white;
    box-shadow: 0 0 5px rgba(0,0,0,0.5);
}


/* ==========================================================================
   Continuous Sliding Sponsor Marquee
   ========================================================================== */

/* The hidden window the logos slide through */
.sponsor-marquee {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
    /* Creates a faded edge effect on the left and right */
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

/* The track holding the logos */
.sponsor-track {
    display: flex;
    width: max-content; /* Allows track to be as wide as all logos combined */
    gap: 2rem;
    padding: 1rem 0; /* Padding allows the drop-shadows to show without clipping */
    /* 15s dictates speed. linear keeps it smooth. infinite loops it. */
    animation: slide-sponsors 15s linear infinite; 
}

/* Pause the animation when the user hovers over the logos so they can click */
.sponsor-track:hover {
    animation-play-state: paused;
}

/* The Keyframe Animation */
@keyframes slide-sponsors {
    0% {
        transform: translateX(0);
    }
    100% {
        /* Shifts exactly 50% of the track (one full set of logos) + half the gap */
        transform: translateX(calc(-50% - 1rem));
    }
}

/* (Keep your existing .sponsor-card and .sponsor-card img styles from the previous step here!) */


/* ==========================================================================
   Sponsors Section Redesign
   ========================================================================== */
.sponsors-section {
    background-color: #eef2f5;
    padding: 4rem 2rem;
    text-align: center;
    margin-top: 4rem; 
}

.sponsors-section h3 {
    color: #004b87;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

/* Styled text list */
.sponsor-list {
    margin-bottom: 3rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.sponsor-list ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.sponsor-list li {
    background: #ffffff;
    color: #333;
    padding: 8px 18px;
    border-radius: 25px;
    font-size: 0.95rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    border: 1px solid #dce4ec;
}

/* Card-based Logo Grid */
/* .sponsor-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto;
} */

.sponsor-card {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 220px;
    height: 120px;
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none; /* Removes underline from links */
}

.sponsor-card:hover {
    transform: translateY(-5px); /* Gentle lift effect */
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.sponsor-card img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* Prevents stretching; keeps original proportions */
    filter: grayscale(50%);
    opacity: 0.6;
    transition: all 0.4s ease;
}

.sponsor-card:hover img {
    filter: grayscale(0%);
    opacity: 1;
}


/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background-color: #002244;
    color: #aed6f1;
    padding-top: 0.8rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-col h4 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 1.2rem;
    border-bottom: 2px solid #004b87;
    padding-bottom: 0.5rem;
    display: inline-block;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col ul a {
    color: #aed6f1;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col ul a:hover {
    color: white;
}

.footer-col p {
    margin-bottom: 0.8rem;
}

.footer-bottom {
    /* background-color: #00152b; */
    background-color: black;
    text-align: center;
    padding: 1.5rem;
    color: white;
    font-size: 0.9rem;
}

/* ==========================================================================
   Media Queries (Responsive Design)
   ========================================================================== */
@media (max-width: 768px) {
    /* Navigation Adjustments */
    .main-nav > ul {
        flex-direction: column;
    }
    
    .dropdown {
        position: static; /* Un-stack dropdowns on mobile */
        box-shadow: none;
        background-color: #002244;
    }
    
    .main-nav > ul > li:hover .dropdown {
        display: block;
    }

    /* Layout Adjustments */
    .page-container {
        flex-direction: column; /* Stacks sidebar on top of content */
        gap: 2rem;
    }

    .sidebar {
        flex: auto;
        width: 100%; /* Full width on mobile */
    }

    /* Carousel Adjustments */
    .carousel-container {
        height: 250px;
    }

    .carousel-btn {
        padding: 0.5rem 1rem;
    }
}

/* ==========================================================================
   Gallery Grid & Hover/Scroll Animations (Seamless & Borderless)
   ========================================================================== */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 2rem 0;
}

.gallery-item {
    /* Removed background colors so the image blends directly into the page */
    background-color: transparent; 
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    z-index: 1;
    
    /* Ensure absolutely no borders or shadows by default */
    border: none;
    box-shadow: none; 
    
    /* Animation Starting State (Invisible and pushed down) */
    opacity: 0;
    transform: translateY(40px) scale(1);
    
    /* Smooth transition for when the shadow/border appears */
    transition: opacity 0.6s ease-out, 
                transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                box-shadow 0.4s ease, 
                z-index 0s ease 0.4s; 
}

/* Animation Ending State (Triggered by JS on scroll) */
.gallery-item.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* --- The Enhanced Hover Effect --- */
.gallery-item.show:hover {
    /* Scale the ENTIRE frame up slightly */
    transform: translateY(-5px) scale(1.06); 
    
    /* This single line draws BOTH a 3px border AND the drop shadow!
       Value 1: 0 0 0 3px #aed6f1 creates the light blue border.
       Value 2: 0 20px 40px rgba(...) creates the deep drop shadow beneath it.
    */
    box-shadow: 0 0 0 3px #aed6f1, 0 20px 40px rgba(0,0,0,0.4); 
    
    z-index: 10; 
    transition-delay: 0s; 
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover; 
    display: block;
    /* Ensure the image itself adopts the rounded corners */
    border-radius: 8px; 
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.4s ease;
}

/* Subtle inner zoom compounding with the frame zoom */
.gallery-item.show:hover img {
    transform: scale(1.05); 
    opacity: 0.95; 
}

/* ==========================================================================
   Lightbox / Modal Styling
   ========================================================================== */

.lightbox {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85); /* Semi-transparent dark background */
    backdrop-filter: blur(5px); /* Modern blur effect behind the image */
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Active state for smooth fade in */
.lightbox.active {
    opacity: 1;
}

.lightbox-content {
    max-width: 90%;
    max-height: 85vh;
    border-radius: 4px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.lightbox.active .lightbox-content {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.lightbox-close:hover {
    color: #aed6f1; /* Your theme's light blue */
}

/* Modal Responsive adjustments */
@media (max-width: 768px) {
    .lightbox-close {
        top: 10px;
        right: 20px;
    }
}



/* ==========================================================================
   Base Form & Button Styles (Fix for unstyled forms)
   ========================================================================== */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
}

.btn {
    background-color: #004b87;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    cursor: pointer;
    border-radius: 4px;
    font-size: 1rem;
    width: 100%;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #003366;
}

/* ==========================================================================
   Contact Page & Form Styles (Premium UI)
   ========================================================================== */

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    padding: 2rem 0;
}

/* --- Left Side: Contact Cards --- */
.contact-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-card {
    background-color: #ffffff;
    border-left: 4px solid #004b87;
    padding: 1.8rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-3px); /* Subtle lift on hover */
}

.contact-card h4 {
    color: #003366;
    margin-bottom: 0.8rem;
    font-size: 1.15rem;
}

.contact-card p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
}

.contact-card a {
    color: #004b87;
    font-weight: 500;
}

/* --- Right Side: Elegant Form --- */
.contact-form-container {
    background-color: #ffffff;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08); /* Deep, soft shadow */
}

.contact-form-container h3 {
    color: #004b87;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.contact-form-container > p {
    color: #666;
    margin-bottom: 2.5rem;
    font-size: 1.05rem;
}

/* Input & Label Styling */
.form-group {
    margin-bottom: 1.8rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.6rem;
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
}

.form-group .required {
    color: #e74c3c; /* Elegant red for asterisks */
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #dcdfe6;
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    background-color: #f8fafc; /* Very light gray/blue background */
    transition: all 0.3s ease;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Premium Focus States */
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #004b87;
    background-color: #ffffff;
    /* Creates a beautiful soft blue glow around the active input */
    box-shadow: 0 0 0 4px rgba(0, 75, 135, 0.1); 
}

.char-counter {
    text-align: right;
    font-size: 0.85rem;
    color: #888;
    margin-top: 6px;
}

/* Submit Button */
.btn {
    background-color: #004b87;
    color: #ffffff;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-top: 1rem;
}

.btn:hover {
    background-color: #003366;
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
}

/* Form Validation Alert Boxes */
.alert {
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    font-weight: 500;
}
.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .contact-layout {
        grid-template-columns: 1fr;
    }
    .contact-form-container {
        padding: 2rem 1.5rem;
    }
}


/* ==========================================================================
   Archives Page Styles (Premium Cards)
   ========================================================================== */

.archive-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 900px;
    margin: 2rem auto;
}

.archive-card {
    display: flex;
    align-items: center;
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    text-decoration: none;
    color: #333;
    border-left: 5px solid #004b87;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.archive-card:hover {
    transform: translateY(-5px); /* Smooth lift effect */
    box-shadow: 0 10px 25px rgba(0,0,0,0.1); /* Deeper shadow on hover */
}

.archive-icon {
    font-size: 2.5rem;
    margin-right: 1.5rem;
    color: #004b87;
}

.archive-content {
    flex: 1; /* Pushes the arrow to the far right */
}

.archive-content h3 {
    color: #004b87;
    font-size: 1.3rem;
    margin-bottom: 0.4rem;
    line-height: 1.4;
}

.archive-content p {
    color: #666;
    font-size: 0.95rem;
    margin: 0;
}

.archive-arrow {
    font-size: 1.8rem;
    color: #aed6f1; /* Light blue from your theme */
    margin-left: 1rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

/* Make the arrow turn dark blue and slide right when hovering the card */
.archive-card:hover .archive-arrow {
    color: #004b87;
    transform: translateX(5px);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .archive-card {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }
    
    .archive-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .archive-arrow {
        display: none; /* Hide arrow on mobile to save space */
    }
}



/* ==========================================================================
   About Us Page Styles
   ========================================================================== */

/* Utility Classes */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }

.section-header {
    margin-bottom: 3rem;
}

.section-header h2 {
    color: #004b87;
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.section-header .subtitle {
    color: #555;
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
}

/* --- Mission & Vision Grid --- */
.mission-vision-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 4rem;
}

.mv-card {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.06);
    border-top: 5px solid #004b87;
    transition: transform 0.3s ease;
}

.mv-card:hover {
    transform: translateY(-5px);
}

.mv-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.mv-card h3 {
    color: #004b87;
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.mv-card p {
    color: #444;
    margin-bottom: 1rem;
}

.mv-card p:last-child {
    margin-bottom: 0;
}


/* --- Workshop Chair Profile --- */
.chair-profile-card {
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin-bottom: 3rem;
    gap: 2.5rem;
    border: 1px solid #e1e8ed;
}

.chair-avatar {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border: 4px solid #ffffff;
}

.chair-info {
    flex: 1;
}

.chair-info .badge {
    background: #eef2f5;
    color: #004b87;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: inline-block;
}

.chair-info h3 {
    color: #003366;
    font-size: 1.8rem;
    margin-bottom: 0.2rem;
}

.chair-info .chair-title {
    color: #666;
    font-style: italic;
    margin-bottom: 1.2rem;
    font-size: 0.95rem;
}

.chair-info p {
    color: #444;
}

/* --- Committees Grid --- */
.committee-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.committee-card {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #e1e8ed;
}

.committee-card h4 {
    color: #004b87;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #aed6f1;
    padding-bottom: 0.5rem;
    display: inline-block;
}

.committee-card p {
    color: #555;
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
}

.committee-card ul {
    margin-left: 1.2rem;
    color: #444;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.committee-card ul li {
    margin-bottom: 0.4rem;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 900px) {
    .mission-vision-grid {
        grid-template-columns: 1fr;
    }
    
    .chair-profile-card {
        flex-direction: column;
        text-align: center;
    }
    
    .theme-banner h2 {
        font-size: 1.8rem;
    }
}

/* ==========================================================================
   Welcome Message Page Styles
   ========================================================================== */

.welcome-letter-container {
    background-color: #ffffff;
    max-width: 900px;
    margin: 4rem auto;
    padding: 4rem;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border-top: 6px solid #004b87;
}

.welcome-header {
    text-align: center;
    margin-bottom: 2rem;
}

.welcome-header h2 {
    color: #003366;
    font-size: 2rem;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.welcome-header .theme-title {
    color: #004b87;
    font-size: 1.4rem;
    font-style: italic;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.event-details {
    display: inline-block;
    background-color: #f8fafc;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    color: #555;
    font-size: 0.95rem;
    font-weight: 500;
    border: 1px solid #e1e8ed;
}

.event-details .divider {
    color: #ccc;
    margin: 0 10px;
}

.event-details .detail-icon {
    margin-right: 5px;
}

.welcome-body {
    color: #333;
    font-size: 1.1rem;
    line-height: 1.8;
}

.welcome-body p {
    margin-bottom: 1.5rem;
}

.welcome-body p:last-child {
    margin-bottom: 0;
}

.welcome-signature {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e1e8ed;
}

.welcome-signature p {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.welcome-signature .signature-name {
    color: #004b87;
    font-size: 1.4rem;
    font-family: 'Georgia', serif; /* Gives the name a slightly more distinguished, formal look */
    margin-bottom: 0.2rem;
}

.welcome-signature .signature-title {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .welcome-letter-container {
        padding: 2rem 1.5rem;
        margin: 2rem auto;
    }

    .welcome-header h2 {
        font-size: 1.6rem;
    }

    .welcome-header .theme-title {
        font-size: 1.2rem;
    }

    .event-details {
        border-radius: 8px;
        line-height: 1.8;
    }

    .event-details .divider {
        display: none; /* Hide divider on small screens */
    }

    .event-details .detail-icon {
        display: inline-block;
        margin-top: 5px;
    }
}



/* ==========================================================================
   Registration Page Styles
   ========================================================================== */

/* Layout & Sidebar Improvements */
.mt-2 { margin-top: 2rem; }

.sidebar-card {
    background: #f8fafc;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.sidebar-card .small-text {
    font-size: 0.85rem;
    color: #666;
    margin-top: 1rem;
    line-height: 1.4;
}

.sidebar-menu li a {
    display: block;
    padding: 0.8rem;
    background: #ffffff;
    border: 1px solid #e1e8ed;
    border-radius: 6px;
    margin-bottom: 0.8rem;
    color: #004b87;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.sidebar-menu li a:hover {
    background: #004b87;
    color: #ffffff;
    transform: translateX(5px);
}

/* Info Cards */
.info-card.lead-card {
    background-color: #ffffff;
    border-left: 5px solid #004b87;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-radius: 0 8px 8px 0;
    margin-bottom: 2.5rem;
}

.info-card p {
    margin-bottom: 1rem;
    line-height: 1.7;
    color: #333;
}

.info-card p:last-child {
    margin-bottom: 0;
}

.info-card strong {
    color: #004b87;
}

/* Details Grid */
.details-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.detail-box {
    background: #ffffff;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.detail-box h4 {
    color: #003366;
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    border-bottom: 2px solid #aed6f1;
    padding-bottom: 0.5rem;
    display: inline-block;
}

.detail-box p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Premium CTA Button Area */
.registration-cta {
    background: linear-gradient(135deg, #f8fafc 0%, #e1e8ed 100%);
    padding: 3rem 2rem;
    border-radius: 12px;
    border: 1px solid #dcdfe6;
    margin-top: 2rem;
}

.registration-cta h3 {
    color: #004b87;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.registration-cta p {
    color: #555;
    margin-bottom: 2rem;
}

/* Premium CTA Button Area */
.premium-btn {
    display: inline-block;
    background-color: #004b87;
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 600;
    padding: 1rem 3rem;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 75, 135, 0.3);
    
    /* Adds the infinite dancing animation */
    animation: gentle-dance 4s infinite ease-in-out;
    transition: background-color 0.3s ease;
}

/* The Animation Keyframes */
@keyframes gentle-dance {
    0% {
        transform: scale(1) translateY(0);
        box-shadow: 0 4px 15px rgba(0, 75, 135, 0.3);
    }
    50% {
        transform: scale(1.05) translateY(-3px); /* Gently grows and lifts up */
        box-shadow: 0 10px 25px rgba(0, 75, 135, 0.5); /* Shadow gets deeper and wider */
    }
    100% {
        transform: scale(1) translateY(0);
        box-shadow: 0 4px 15px rgba(0, 75, 135, 0.3);
    }
}

/* When the user actually hovers, we pause the dance so it's easy to click */
.premium-btn:hover {
    background-color: #003366;
    animation-play-state: paused; /* Stops the dancing on hover */
    transform: scale(1.05) translateY(-4px); /* Locks it in the 'lifted' state */
    box-shadow: 0 10px 25px rgba(0, 75, 135, 0.5);
    color: orange;
}


/* ==========================================================================
   Participants Page Styles (Premium Tables)
   ========================================================================== */

/* Responsive wrapper to prevent tables from breaking layouts */
.table-responsive {
    width: 100%;
    max-width: 1400px; /* Prevents the table from getting too wide on large screens */
    margin: 0 auto; /* Centers the table nicely in the main content area */
    overflow-x: auto; /* Keeps the horizontal scrollbar ONLY for very small mobile screens */
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid #e1e8ed;
}

.premium-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    /* We removed white-space: nowrap; so long emails or affiliations can wrap onto a second line gracefully */
}

/* Table Header */
.premium-table thead {
    background-color: #004b87;
    color: #ffffff;
}

.premium-table th {
    padding: 1.2rem 1.5rem;
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #003366;
    white-space: nowrap; /* Keeps the headers strictly on one line so they don't look squished */
}

/* Table Body & Rows */
.premium-table td {
    padding: 1rem 1.5rem;
    color: #444;
    font-size: 0.95rem;
    border-bottom: 1px solid #edf2f7;
    transition: background-color 0.2s ease;
    line-height: 1.5; /* Gives wrapped text some breathing room */
}

/* Zebra Striping for readability */
.premium-table tbody tr:nth-child(even) {
    background-color: #f8fafc;
}

/* Row Hover Effect */
.premium-table tbody tr:hover td {
    background-color: #e6f0fa; /* Very soft light blue highlight */
    color: #003366;
}

/* --- Smooth Cascading Row Animation --- */
.animated-row {
    opacity: 0;
    transform: translateY(15px);
    animation: fade-in-up 0.6s ease-out forwards;
}

@keyframes fade-in-up {
    0% {
        opacity: 0;
        transform: translateY(15px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ==========================================================================
   Home Page Styles (Carousel, About, and Marquee)
   ========================================================================== */

/* --- Interactive Carousel --- */
.carousel-container {
    position: relative;
    /* max-width: 1400px;
    height: 500px; */

    /* 2. Prevents the carousel from growing beyond 1600px on large screens */
    max-width: 1600px; 
    
    /* 3. Optional: Makes the height responsive too (highly recommended) */
    height: auto; 
    aspect-ratio: 12 / 5; /* At 1400px wide, height will scale up to ~583px */

    margin: 1rem auto;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    background-color: #000;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    z-index: 1;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 2;
}

/* Carousel Buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 75, 135, 0.6);
    color: white;
    border: none;
    padding: 1rem 1.2rem;
    cursor: pointer;
    font-size: 1.5rem;
    border-radius: 50%;
    z-index: 10;
    transition: background 0.3s ease;
}

.carousel-btn:hover {
    background: rgba(0, 75, 135, 1);
}

.carousel-btn.prev { left: 20px; }
.carousel-btn.next { right: 20px; }

/* Carousel Dots */
.carousel-dots {
    position: absolute;
    bottom: 20px;
    width: 100%;
    text-align: center;
    z-index: 10;
}

.dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin: 0 6px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.dot.active, .dot:hover {
    background: #ffffff;
    transform: scale(1.3);
}

/* --- Home About Section --- */
.home-about-section {
     max-width: 1600px; /* same width with carousel photoes */
    margin: 3rem auto;
}

.home-about-card {
    background: #ffffff;
    padding: 3.5rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border-top: 5px solid #004b87;
}

.home-about-card h3 {
    color: #004b87;
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
}

.home-about-card p {
    color: #444;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.2rem;
}

.home-about-card strong {
    color: #003366;
}

.sponsor-thanks-text {
    font-size: 1.15rem;
    font-weight: 600;
    color: #333;
}

.sponsor-list {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: #004b87;
    font-weight: 600;
    line-height: 1.8;
}

.sponsor-thanks-italic {
    font-style: italic;
    color: #0077b6;
    font-size: 1.1rem;
}

/* --- 2026 Theme Banner --- */
.theme-banner {
    background: linear-gradient(135deg, #002244 0%, #004b87 100%);
    color: #ffffff;
    padding: 2rem 2rem;
    margin: 1rem 0;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.2);
}

.theme-banner .theme-year {
    display: inline-block;
    background: #aed6f1;
    color: #002244;
    padding: 0.4rem 1.2rem;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.theme-banner h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.3;
    font-style: italic;
}

.theme-banner p {
    font-size: 1.15rem;
    max-width: 1000px;
    margin: 0 auto;
    color: #dceaf5;
}


/* --- Infinite Sponsor Marquee --- */
.sponsor-marquee {
     max-width: 1600px; /* same width for carousel-container photo section */

    background: #ffffff;
    padding: 3rem 0;
    margin-top: 4rem;
    border-top: 1px solid #e1e8ed;
    border-bottom: 1px solid #e1e8ed;
}

.sponsor-marquee h2 {
    text-align: center;
    color: #003366;
    margin-bottom: 2.5rem;
    font-size: 1.8rem;
}

.sponsor-track-container {
    width: 100%;
    overflow: hidden; /* Hides the logos outside the screen */
    white-space: nowrap;
    position: relative;
}

/* Adds a fading effect to the left and right edges of the marquee */
.sponsor-track-container::before,
.sponsor-track-container::after {
    content: "";
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
}
.sponsor-track-container::before {
    left: 0;
    background: linear-gradient(to right, #ffffff, transparent);
}
.sponsor-track-container::after {
    right: 0;
    background: linear-gradient(to left, #ffffff, transparent);
}

.sponsor-track {
    display: inline-flex;
    align-items: center;
    gap: 5rem;
    width: max-content;
    /* This creates the continuous slide effect */
    animation: scroll-marquee 25s linear infinite; 
}

/* Pauses the animation when someone hovers over a logo */
.sponsor-track:hover {
    animation-play-state: paused;
}

.sponsor-card img {
    height: 70px; /* Uniform height for all logos */
    width: auto;
    filter: grayscale(100%) opacity(70%); /* Makes logos gray by default */
    transition: filter 0.3s ease, transform 0.3s ease;
}

.sponsor-card:hover img {
    filter: grayscale(0%) opacity(100%); /* Full color on hover */
    transform: scale(1.1); /* Slight zoom on hover */
}

/* The Keyframe Animation for Scrolling */
@keyframes scroll-marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .carousel-container { height: 300px; border-radius: 0; }
    .home-about-card { padding: 2rem 1.5rem; }
    .sponsor-card img { height: 50px; }
}




/* ==========================================================================
   Global Responsive Layout (Program & Register Pages)
   ========================================================================== */

/* The main layout wrapper */
.page-container {
    display: grid;
    /* Default to stacked columns for mobile and small tablets */
    grid-template-columns: 1fr;
    gap: 3rem;
    max-width: 1300px;
    margin: 3rem auto;
    padding: 0 1.5rem;
    align-items: start;
}

/* On large tablets and desktop screens, switch to a Side-by-Side layout */
@media (min-width: 992px) {
    .page-container {
        /* Sidebar is 320px wide, Main content takes up the remaining space */
        grid-template-columns: 320px 1fr; 
    }
}

/* ==========================================================================
   Program Page Styles (Speaker Cards)
   ========================================================================== */

.intro-link a {
    color: #004b87;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    transition: color 0.3s;
}

.intro-link a:hover {
    color: #0077b6;
    text-decoration: underline;
}

.award-item {
    background: #ffffff;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-left: 5px solid #004b87;
}

.award-item h4 {
    color: #003366;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #aed6f1;
    padding-bottom: 0.5rem;
    display: inline-block;
}

.topic-tag {
    background: #eef2f5;
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    color: #333;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.speaker-info {
    margin-bottom: 1.5rem;
}

.speaker-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: #004b87;
    margin-bottom: 0.3rem;
}

.speaker-title {
    color: #333;
    margin-bottom: 0.5rem;
}

.speaker-position {
    font-style: italic;
    color: #666;
    margin-bottom: 0.2rem;
}

.speaker-affiliation {
    font-weight: 600;
    color: #333;
}

.speaker-awards {
    color: #d35400; /* Distinct orange for awards */
    font-size: 0.95rem;
    margin-top: 0.5rem;
    font-weight: 500;
}

.event-meta {
    background: #f8fafc;
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid #e1e8ed;
    color: #444;
}

.event-meta p {
    margin-bottom: 0.5rem;
}
.event-meta p:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   Registration Page Styles (Pricing Table)
   ========================================================================== */

.registration-container {
    margin-top: 4rem;
}

/* Allow the registration fee table to stretch the full width of the main content area */
.registration-container .table-responsive {
    max-width: 100%;
}

.fee-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    text-align: center;
    white-space: nowrap; /* Prevents columns from squishing on mobile */
}

.fee-table thead th {
    background-color: #004b87;
    color: #ffffff;
    padding: 1rem;
    font-weight: 600;
    border: 1px solid #003366;
    vertical-align: middle;
}

.fee-table thead th small {
    display: block;
    font-weight: 400;
    font-size: 0.8rem;
    opacity: 0.8;
    margin-top: 4px;
}

.fee-table tbody td {
    padding: 1rem;
    border: 1px solid #e1e8ed;
    color: #444;
    font-size: 1.05rem;
}

.fee-table tbody tr:nth-child(even) {
    background-color: #f8fafc;
}

.category-col {
    text-align: left;
    min-width: 200px;
}

.category-name {
    text-align: left;
    font-weight: 600;
    color: #003366;
}

.category-name small {
    display: block;
    font-size: 0.85rem;
    font-weight: normal;
    color: #7f8c8d;
    margin-top: 4px;
}

.text-free {
    color: #27ae60;
    font-weight: bold;
}

.notes-card {
    background: #fdf2f1; /* Soft red tint */
    border-left: 4px solid #e74c3c;
    padding: 1.5rem;
    margin-top: 2rem;
    border-radius: 0 8px 8px 0;
    color: #444;
}

.notes-card ul {
    margin-left: 1.5rem;
}