/* ======================================================= */
/* == 1. THEME & GLOBAL STYLES (Light & Dark Modes)    == */
/* ======================================================= */
:root {
    /* --- Light Theme (Default) --- */
    --clr-red: #C62828;
    --clr-red-hover: #A32020;
    --clr-turquoise: #0097A7;
    --clr-turquoise-dark: #007A87;
    --clr-dark: #222831;
    --clr-grey: #5F6769;
    --clr-light-grey: #F5F7F9;
    --clr-white: #ffffff;
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --radius: 8px;
    --shadow: 0 10px 30px rgba(0,0,0,0.07);
    /* Dynamic Theme Variables */
    --clr-background: var(--clr-light-grey);
    --clr-card-background: var(--clr-white);
    --clr-heading-text: var(--clr-dark);
    --clr-body-text: var(--clr-grey);
    --clr-border: #eef0f3;
    --clr-card-background-rgb: 255, 255, 255;
    --clr-pastel-red: #ffa2ab;
}

@media (prefers-color-scheme: dark) {
    :root {
        /* --- Dark Theme Overrides --- */
        --clr-red: #C62828;
        --clr-turquoise: #0097A7;
        --clr-turquoise-dark: #00BCD4;
        --clr-background: #111827;
        --clr-card-background: #1F2937;
        --clr-heading-text: #F9FAFB;
        --clr-body-text: #D1D5DB;
        --clr-border: #374151;
        --clr-card-background-rgb: 31, 41, 55;
    }
}

/* --- Global Element Styles --- */
body {
    background-color: var(--clr-background);
    color: var(--clr-body-text);
    font-family: var(--font-body);
    padding-top: 80px;
    line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--clr-heading-text);
    font-weight: 700;
}

a {
    color: var(--clr-turquoise);
    text-decoration: none;
    transition: color 0.2s ease;
}

    a:hover {
        color: var(--clr-turquoise-dark);
    }

hr {
    border-top: 1px solid var(--clr-border);
}

.form-control {
    background-color: var(--clr-background);
    border-color: var(--clr-border);
    color: var(--clr-heading-text);
}

    .form-control:focus {
        background-color: var(--clr-background);
        border-color: var(--clr-turquoise);
        color: var(--clr-heading-text);
        box-shadow: none;
    }

    .form-control::placeholder {
        color: var(--clr-grey);
    }

.contact-detail a[href^="mailto"] {
    word-break: break-all;
    overflow-wrap: anywhere;
}

/* ============================================= */
/* == 2. LAYOUT & REUSABLE COMPONENTS        == */
/* ============================================= */


/* --- Navbar Logo Styling --- */
.navbar-logo {
    height: 60px; /* Constrain the height of the logo to fit the navbar */
    width: auto; /* Let the width adjust automatically */
    margin-right: 0.5rem; /* THIS CREATES THE SPACE between the logo and the text */
    border-radius: 0.2rem;
}

/* --- Generic Content Card --- */
.content-card {
    background-color: var(--clr-card-background);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius);
    padding: 1rem;
    box-shadow: var(--shadow);
    margin-top: 2rem;
}

.navbar {
    background: rgba(var(--clr-card-background-rgb), 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--clr-border);
}

.navbar-brand {
    color: var(--clr-turquoise) !important;
    font-weight: 700;
}

.navbar-nav .nav-link,
.navbar-nav .btn-link {
    color: var(--clr-heading-text) !important; /* Use !important to override defaults */
    font-family: var(--font-heading);
    font-weight: 600;
    margin: 0 0.5rem;
    padding-bottom: 5px;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
    background: none; /* Ensure logout button has no background */
    border: none; /* Ensure logout button has no border */
    cursor: pointer;
}
    /* This rule targets the active/hover state for all links */
    .navbar-nav .nav-link.active,
    .navbar-nav .nav-link:hover,
    .navbar-nav .btn-link:hover {
        color: var(--clr-turquoise) !important;
        border-bottom-color: var(--clr-turquoise);
    }

    .navbar-nav .nav-link.active, .navbar-nav .nav-link:hover {
        color: var(--clr-turquoise) !important;
        border-bottom-color: var(--clr-turquoise);
    }

.btn-register {
    background-color: var(--clr-red);
    border-color: var(--clr-red);
    border-radius: 50px;
    color: var(--clr-white) !important;
    font-weight: 600;
    transition: all 0.2s;
}

    .btn-register:hover {
        background-color: var(--clr-red-hover);
        border-color: var(--clr-red-hover);
        transform: scale(1.05);
    }

.hero-section {
    position: relative;
    padding: 3rem 2rem;
    border-radius: var(--radius);
    overflow: hidden;
    color: var(--clr-white);
    background-image: url('../images/archive/2023/LVA_0418.jpg');
    background-size: cover;
    background-position: center;
}

    .hero-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(45deg, rgba(34, 40, 49, 0.9), rgba(0, 151, 167, 0.8));
        z-index: 1;
    }

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-section h1 {
    color: var(--clr-red);
    -webkit-text-stroke-width: 1px; /* The thickness of the border */
    -webkit-text-stroke-color: var(--clr-white); /* The color of the border */
    font-weight: 900;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.hero-section h3, .hero-section li {
    color: var(--clr-white);
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.hero-section li {
    color: var(--clr-white);
    color: var(--clr-white);
}

.hero-info {
    list-style: none;
    padding-left: 0;
}

    .hero-info i {
        color: var(--clr-white);
        opacity: 0.8;
        margin-right: 10px;
    }

.footer {
    background-color: var(--clr-dark); /* Dark background color */
    color: rgba(255, 255, 255, 0.7); /* Light text color */
    padding: 1.5rem 0;
    position: relative; /* This is necessary for z-index to work */
    z-index: 10; /* Ensures the footer is above the background canvas (which is at z-index: -1) */
    border-top: 1px solid var(--clr-border); /* A subtle separator line */
}

.section-title {
    margin-bottom: 3rem;
    text-align: center;
}

    .section-title h2 {
        font-size: 2.5rem;
    }

    .section-title h3 {
        font-size: 3.5rem;
        color: var(--clr-turquoise);
        -webkit-text-stroke-width: 0.7px; /* The thickness of the border */
        -webkit-text-stroke-color: var(--clr-white); /* The color of the border */
        line-height: 1;
        font-weight: 700;
    }

    .section-title p {
        color: var(--clr-body-text);
        max-width: 600px;
        margin: 0 auto;
    }

.pro-card {
    background: var(--clr-card-background);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
}

    .pro-card:hover {
        transform: translateY(-5px);
    }

.portrait {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid var(--clr-card-background);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.nav-tabs {
    border-bottom: 2px solid var(--clr-border);
}

    .nav-tabs .nav-link {
        border: none;
        background: transparent;
        font-family: var(--font-heading);
        font-weight: 600;
        color: var(--clr-body-text);
        padding: 0.75rem 1.5rem;
        border-bottom: 3px solid transparent;
        transition: all 0.2s;
    }

        .nav-tabs .nav-link.active, .nav-tabs .nav-link:hover {
            color: var(--clr-red);
            border-bottom-color: var(--clr-red);
        }

/* --- Main Content Wrapper with Blur Effect --- */
.main-content-wrapper {
    position: relative;
    padding: 2rem;
    border-radius: var(--radius);
    background-color: rgba(var(--clr-card-background-rgb), 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(var(--clr-border-rgb), 0.2); /* Subtle border */
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

/* RGB versions for border color for the new wrapper */
@media (prefers-color-scheme: light) {
    :root {
        --clr-border-rgb: 238, 240, 243;
    }
}

@media (prefers-color-scheme: dark) {
    :root {
        --clr-border-rgb: 55, 65, 81;
    }
}

.form-inline .btn-link {
    color: var(--clr-heading-text);
    font-family: var(--font-heading);
    font-weight: 600;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: none;
    background: none;
    transition: color 0.2s;
}

    .form-inline .btn-link:hover {
        color: var(--clr-turquoise) !important;
    }

/* On mobile, ensure the login/register buttons stack nicely */
@media (max-width: 991.98px) {
    #login.btn-register {
        width: 100%;
        margin-top: 1rem;
        margin-left: 0 !important;
    }
}


/* --- Dropdown Menu Styling --- */
.dropdown-menu {
    background-color: var(--clr-card-background);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.dropdown-item {
    color: var(--clr-body-text);
    font-weight: 600;
}

    .dropdown-item:hover, .dropdown-item:focus {
        color: var(--clr-heading-text);
        background-color: rgba(var(--clr-turquoise-rgb), 0.1);
    }

.dropdown-divider {
    border-top: 1px solid var(--clr-border);
}

/* ============================================= */
/* == 3. PAGE-SPECIFIC STYLES                == */
/* ============================================= */


/* --- Home: Endorsement Section --- */
.endorsement-section {
    padding: 2rem 0;
    text-align: center;
}

.endorsement-title {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--clr-body-text);
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.endorsement-logos {
    display: flex;
    flex-wrap: wrap; /* Allows logos to wrap onto the next line on smaller screens */
    justify-content: center; /* Horizontally centers the logos */
    align-items: center; /* Vertically aligns the logos */
    gap: 3rem; /* The space between each logo */
}

    .endorsement-logos img {
        max-height: 80px; /* THIS IS THE KEY: Sets a consistent maximum height */
        width: auto; /* Allows the width to adjust to maintain aspect ratio */

        border-radius: 0.1rem;
    }



/* --- Scientific Program --- */
.session-card {
    background: var(--clr-card-background);
    border-radius: var(--radius);
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--clr-border);
    border-left: 4px solid var(--clr-red);
}

.session-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    cursor: pointer; /* Indicates it's clickable */
    border-radius: var(--radius);
    transition: background-color 0.2s ease;
}

    .session-header:hover {
        background-color: rgba(var(--clr-turquoise-rgb), 0.1);
    }

.session-time {
    color: var(--clr-turquoise);
    font-weight: 700;
    flex-shrink: 0;
    margin-right: 1.5rem;
}

.session-title {
    font-family: var(--font-heading);
    color: var(--clr-heading-text);
    font-weight: 600;
    font-size: 1.1rem;
}

.session-toggle-icon {
    font-size: 1.5rem;
    color: var(--clr-turquoise);
    transition: transform 0.3s ease;
}

/* Style for when the accordion is OPEN */
.session-header[aria-expanded="true"] {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom: 1px solid var(--clr-border);
}

    .session-header[aria-expanded="true"] .session-toggle-icon {
        transform: rotate(45deg); /* Rotates the '+' to look like an 'x' */
    }

.session-details {
    padding: 1.5rem;
    text-align: justify;
}

    .session-details h4 {
        font-size: 1.2rem;
        color: var(--clr-turquoise);
        font-weight: 700;
        margin-top: 1.5rem;
        margin-bottom: 0.75rem;
    }

        .session-details h4:first-child {
            margin-top: 0;
        }

    .session-details strong {
        color: var(--clr-heading-text);
    }

    .session-details em {
        color: var(--clr-body-text);
    }

    .session-details ul, .session-details ol {
        padding-left: 2rem;
        margin-top: 1rem;
    }

    .session-details li {
        margin-bottom: 0.5rem;
    }

    .session-details hr {
        margin: 2rem 0;
    }

/* Add RGB versions for Turquoise for the hover effect */
@media (prefers-color-scheme: light) {
    :root {
        --clr-turquoise-rgb: 0, 151, 167;
    }
}

@media (prefers-color-scheme: dark) {
    :root {
        --clr-turquoise-rgb: 38, 198, 218;
    }
}

/* ============================================= */
/* == IMPROVED SCROLLER STYLES               == */
/* ============================================= */

.scroller-section {
    background-color: var(--clr-card-background);
    padding: 4rem 0;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* Scroller Container */
.scroller {
    max-width: 100%;
    overflow: hidden;
    position: relative;
    /* This creates a "feathered" fade on the left and right sides */
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

/* Scroller Inner - the animated element */
.scroller__inner {
    display: flex;
    gap: 2rem; /* Consistent spacing between items */
    width: max-content;
    padding: 1rem 0; /* Add some vertical padding */
}

/* Slower variant if needed */
.scroller__inner--slower {
    /* This class can be used but speed is now controlled by JS */
}

/* Enable animation when data-animated is set */
.scroller[data-animated="true"] .scroller__inner {
    animation: scroll-horizontal linear infinite;
    will-change: transform; /* Optimize performance */
}

/* The scrolling animation using CSS variable for distance */
@keyframes scroll-horizontal {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(var(--animation-distance, -50%));
    }
}

/* Pause on hover for better UX */
.scroller[data-animated="true"]:hover .scroller__inner {
    animation-play-state: paused;
}

.scroller-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin: 0 2.5rem;
    width: 200px;
}

    .scroller-item .portrait {
        width: 120px;
        height: 120px;
        margin-bottom: 1rem;
    }

    .scroller-item h5, .scroller-item p {
        color: var(--clr-heading-text);
    }

.clickable-scroller {
    cursor: pointer;
    transition: box-shadow 0.3s ease;
}

    .clickable-scroller:hover {
        box-shadow: var(--shadow-hover); /* Use the hover shadow for a nice lift effect */
    }

/* --- Partners Page (Improved CSS Scroller) --- */
.partner-tier {
    margin-bottom: 4rem;
    padding: 3rem 0;
    border-radius: 24px; /* Slightly larger radius looks more modern */
    border: none !important; /* Remove the hard border completely */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .partner-tier h2 {
        text-align: center;
        margin-bottom: 2rem;
        font-size: 2rem;
        font-weight: 700;
        position: relative;
        padding-bottom: 1rem;
        /* Text outline using multiple text-shadows */
        text-shadow: -1px -1px 0 rgba(0, 0, 0, 0.3), 1px -1px 0 rgba(0, 0, 0, 0.3), -1px 1px 0 rgba(0, 0, 0, 0.3), 1px 1px 0 rgba(0, 0, 0, 0.3), 0 2px 4px rgba(0, 0, 0, 0.2);
    }

        /* Modern Professional Accent Bar */
        .partner-tier h2::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            /* Dimensions: Shorter and slightly thicker looks more intentional */
            width: 80px;
            height: 5px;
            /* Style: Rounded ends for a modern "pill" shape */
            border-radius: 50px;
            /* Background: Uses the current text color */
            background: currentColor;
            /* Professional Touch: A very soft glow matching the color */
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
            /* Animation: Makes it feel premium when the page loads or tier is hovered */
            transition: width 0.3s ease;
        }

    /* Optional: Subtle "Grow" effect when hovering over the tier */
    .partner-tier:hover h2::after {
        width: 120px;
    }

/* Platinum Tier - Bright Platinum/Silver-Blue */
.partner-tier-platinum {
    background: linear-gradient(135deg, #f0f7f9 0%, #e1eef3 100%);
    box-shadow: 0 10px 30px rgba(91, 154, 184, 0.5), /* Soft bottom shadow */
    0 0 20px 5px rgba(91, 154, 184, 0.1); /* THE FEATHER: soft outer glow */
}
    .partner-tier-platinum h2 {
        color: #2C5E77; 
        text-shadow: 1px 1px 2px rgba(255,255,255,0.8), 0 2px 4px rgba(0,0,0,0.1);
    }
        .partner-tier-platinum h2::after {
            background: linear-gradient(90deg, #5B9AB8 0%, #8EBDD4 100%);
        }


    .partner-tier-platinum .partner-scroller-item {
        border: 2px solid #7FB3CC;
        background: linear-gradient(to bottom, #FFFFFF, #F0F8FB);
    }

        .partner-tier-platinum .partner-scroller-item:hover {
            border-color: #5B9AB8;
            box-shadow: 0 8px 24px rgba(91, 154, 184, 0.25);
        }

/* Gold Tier - Bright Gold */
.partner-tier-gold {
    background: linear-gradient(135deg, #fffcf2 0%, #fff8e1 100%);
    box-shadow: 0 10px 30px rgba(249, 168, 37, 0.5), 0 0 20px 5px rgba(249, 168, 37, 0.1);
}
    .partner-tier-gold h2 {
        color: #B27B00; /* Darkened from #F9A825 */
        text-shadow: 1px 1px 2px rgba(255,255,255,0.8), 0 2px 4px rgba(0,0,0,0.1);
    }
        .partner-tier-gold h2::after {
            background: linear-gradient(90deg, #F9A825 0%, #FFD54F 100%);
        }

    .partner-tier-gold .partner-scroller-item {
        border: 2px solid #FFD54F;
        background: linear-gradient(to bottom, #FFFFFF, #FFFBF0);
    }

        .partner-tier-gold .partner-scroller-item:hover {
            border-color: #F9A825;
            box-shadow: 0 8px 24px rgba(249, 168, 37, 0.25);
        }

/* Silver Tier - Bright Silver */
.partner-tier-silver {
    background: linear-gradient(135deg, #f5f5f5 0%, #eeeeee 100%);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 20px 5px rgba(0, 0, 0, 0.05);
}


    .partner-tier-silver h2 {
        color: #444444; /* Darkened from #757575 */
        text-shadow: 1px 1px 2px rgba(255,255,255,0.8), 0 2px 4px rgba(0,0,0,0.1);
    }
        .partner-tier-silver h2::after {
            background: linear-gradient(90deg, #757575 0%, #BDBDBD 100%);
        }

    .partner-tier-silver .partner-scroller-item {
        border: 2px solid #BDBDBD;
        background: linear-gradient(to bottom, #FFFFFF, #F9F9F9);
    }

        .partner-tier-silver .partner-scroller-item:hover {
            border-color: #9E9E9E;
            box-shadow: 0 8px 24px rgba(117, 117, 117, 0.2);
        }

/* Normal Partners - White/Light Grey */
.partner-tier-normal {
    background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1), 0 0 15px 2px rgba(0, 0, 0, 0.02);
}

    .partner-tier-normal h2 {
        color: #333333; /* Darkened from #616161 */
        text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8), 0 2px 4px rgba(0, 0, 0, 0.1);
    }
        .partner-tier-normal h2::after {
            background: linear-gradient(90deg, #333333 0%, #616161 100%);
        }

    .partner-tier-normal .partner-scroller-item {
        border: 2px solid #E0E0E0;
        background: #FFFFFF;
    }

        .partner-tier-normal .partner-scroller-item:hover {
            border-color: #BDBDBD;
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
        }

/* Media Partners - Dark Blue matching site turquoise */
.partner-tier-media {
    background: linear-gradient(135deg, #e0f2f1 0%, #b2dfdb 100%);
    box-shadow: 0 10px 30px rgba(0, 151, 167, 0.7), 0 0 20px 5px rgba(0, 151, 167, 0.05);
}

    .partner-tier-media h2 {
        color: #006064; /* Darkened from #0097A7 */
        text-shadow: 1px 1px 2px rgba(255,255,255,0.8), 0 2px 4px rgba(0,0,0,0.1);
    }
        .partner-tier-media h2::after {
            background: linear-gradient(90deg, #006064 0%, #0097A7 100%);
        }

    .partner-tier-media .partner-scroller-item {
        border: 2px solid #4DB6C4;
        background: linear-gradient(to bottom, #FFFFFF, #F0FAFB);
    }

        .partner-tier-media .partner-scroller-item:hover {
            border-color: #0097A7;
            box-shadow: 0 8px 24px rgba(0, 151, 167, 0.25);
        }

/* Dark Theme Overrides */
@media (prefers-color-scheme: dark) {
    /* Platinum in Dark Mode */
    .partner-tier-platinum {
        background: linear-gradient(135deg, #1E3A47 0%, #2C4A5A 100%);
        border-color: #4A6B7C;
    }

        .partner-tier-platinum h2 {
            color: #7FB3CC;
            text-shadow: -1px -1px 0 rgba(10, 20, 30, 0.8), 1px -1px 0 rgba(10, 20, 30, 0.8), -1px 1px 0 rgba(10, 20, 30, 0.8), 1px 1px 0 rgba(10, 20, 30, 0.8), 0 2px 8px rgba(127, 179, 204, 0.5);
        }

        .partner-tier-platinum .partner-scroller-item {
            background: linear-gradient(to bottom, #2C3E50, #34495E);
            border-color: #5B9AB8;
        }

    /* Gold in Dark Mode */
    .partner-tier-gold {
        background: linear-gradient(135deg, #3B3420 0%, #4A4228 100%);
        border-color: #9C8033;
    }

        .partner-tier-gold h2 {
            color: #FFD54F;
            text-shadow: -1px -1px 0 rgba(50, 40, 10, 0.8), 1px -1px 0 rgba(50, 40, 10, 0.8), -1px 1px 0 rgba(50, 40, 10, 0.8), 1px 1px 0 rgba(50, 40, 10, 0.8), 0 2px 8px rgba(255, 213, 79, 0.5);
        }

        .partner-tier-gold .partner-scroller-item {
            background: linear-gradient(to bottom, #2C3E50, #34495E);
            border-color: #F9A825;
        }

    /* Silver in Dark Mode */
    .partner-tier-silver {
        background: linear-gradient(135deg, #2A2A2A 0%, #363636 100%);
        border-color: #616161;
    }

        .partner-tier-silver h2 {
            color: #BDBDBD;
            text-shadow: -1px -1px 0 rgba(15, 15, 15, 0.8), 1px -1px 0 rgba(15, 15, 15, 0.8), -1px 1px 0 rgba(15, 15, 15, 0.8), 1px 1px 0 rgba(15, 15, 15, 0.8), 0 2px 8px rgba(189, 189, 189, 0.5);
        }

        .partner-tier-silver .partner-scroller-item {
            background: linear-gradient(to bottom, #2C3E50, #34495E);
            border-color: #9E9E9E;
        }

    /* Normal in Dark Mode */
    .partner-tier-normal {
        background: linear-gradient(135deg, #1F2937 0%, #2D3748 100%);
        border-color: #4A5568;
    }

        .partner-tier-normal h2 {
            color: #E5E7EB;
            text-shadow: -1px -1px 0 rgba(10, 15, 20, 0.8), 1px -1px 0 rgba(10, 15, 20, 0.8), -1px 1px 0 rgba(10, 15, 20, 0.8), 1px 1px 0 rgba(10, 15, 20, 0.8), 0 2px 8px rgba(229, 231, 235, 0.4);
        }

        .partner-tier-normal .partner-scroller-item {
            background: linear-gradient(to bottom, #2C3E50, #34495E);
            border-color: #6B7280;
        }

    /* Media in Dark Mode */
    .partner-tier-media {
        background: linear-gradient(135deg, #0D3D47 0%, #165963 100%);
        border-color: #26818F;
    }

        .partner-tier-media h2 {
            color: #4DB6C4;
            text-shadow: -1px -1px 0 rgba(5, 20, 30, 0.8), 1px -1px 0 rgba(5, 20, 30, 0.8), -1px 1px 0 rgba(5, 20, 30, 0.8), 1px 1px 0 rgba(5, 20, 30, 0.8), 0 2px 8px rgba(77, 182, 196, 0.5);
        }

        .partner-tier-media .partner-scroller-item {
            background: linear-gradient(to bottom, #2C3E50, #34495E);
            border-color: #0097A7;
        }
}

/* Partner Scroller Items - FIXED WIDTH for consistency */
.partner-scroller-item {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 200px;
    height: 120px;
    padding: 1.5rem;
    border-radius: 12px;
    /* Force white background for both modes */
    background: #FFFFFF !important;
    /* Added a slightly stronger shadow so white boxes pop on light backgrounds */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

    .partner-scroller-item:hover {
        transform: translateY(-8px) scale(1.05);
        z-index: 10;
    }

    .partner-scroller-item img {
        max-width: 100%;
        max-height: 100%;
        width: auto;
        height: auto;
        object-fit: contain;
        display: block;
    }

/* Archive */
.archive-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    background-color: var(--clr-dark);
}

    .archive-item img {
        display: block;
        width: 100%;
        transition: transform 0.3s ease;
    }

.archive-item-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem 1rem 1rem;
    color: var(--clr-white);
    background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
    display: flex;
    align-items: center;
    transform: translateY(100%);
    opacity: 0;
    transition: all 0.3s ease-in-out;
}

a.archive-item-link:hover .archive-item-info {
    transform: translateY(0);
    opacity: 1;
}

a.archive-item-link:hover .archive-item img {
    transform: scale(1.05);
}

/* --- Archive Landing Page --- */
.archive-year-card {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

    .archive-year-card img {
        width: 100%;
        display: block;
        transition: transform 0.3s ease;
    }

    .archive-year-card:hover img {
        transform: scale(1.1);
    }

.archive-year-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* The gradient now provides the dark background for the text */
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.5) 40%, transparent 100%);
    display: flex;
    align-items: flex-end; /* Aligns text to the bottom */
    justify-content: center;
    padding: 1.5rem;
}

    .archive-year-overlay span {
        font-family: var(--font-heading);
        font-size: 2.5rem;
        font-weight: 700;
        color: var(--clr-white);
        text-shadow: 0 2px 5px rgba(0,0,0,0.5); /* Add shadow for readability */
        /* The text is now always visible */
        transform: translateY(0);
        opacity: 1;
    }

/* Contact */
.contact-card-content .name {
    font-size: 1.5rem;
    color: var(--clr-heading-text);
}

.contact-card-content .role {
    color: var(--clr-turquoise);
}

.contact-card-content .contact-detail {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

    .contact-card-content .contact-detail i {
        width: 30px;
        color: var(--clr-body-text);
    }

/* --- Home: YouTube Promo Section --- */
.promo-section {
    position: relative;
    padding: 5rem 2rem;
    border-radius: var(--radius);
    overflow: hidden;
    background-image: url('../images/archive/2023/LVA_9991.jpg'); /* Placeholder image */
    background-size: cover;
    background-position: center;
    color: var(--clr-white);
}

    .promo-section::before { /* Dark overlay for text readability */
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(45deg, rgba(34, 40, 49, 0.9), rgba(0, 151, 167, 0.8));
        z-index: 1;
    }

.promo-content {
    position: relative;
    z-index: 2;
}

    .promo-content h2, .promo-content p {
        color: var(--clr-white); /* Ensure text is white */
    }

.btn-outline-light {
    border-radius: 50px;
    font-weight: 600;
}

.event-full-description {
    text-align: justify; /* THIS IS THE FIX */
}

    .event-full-description h3 {
        font-size: 1.5rem;
        color: var(--clr-red); /* Use red for subheadings */
        margin-top: 2.5rem;
        margin-bottom: 1rem;
        text-align: left;
    }

    .event-full-description ul {
        list-style-type: none;
        padding-left: 0;
        text-align: left;
    }

    .event-full-description li {
        padding-left: 1.5rem;
        position: relative;
        margin-bottom: 0.75rem;
        text-align: left;
    }

        .event-full-description li::before {
            content: '\f105'; /* Font Awesome right-arrow icon */
            font-family: "Font Awesome 5 Free";
            font-weight: 900;
            color: var(--clr-turquoise);
            position: absolute;
            left: 0;
            text-align: left;
        }

/* --- Experts Page --- */
.expert-card-link {
    display: block; /* Makes the anchor tag take up the full column space */
    text-decoration: none; /* Removes the default link underline */
    color: inherit; /* Makes the text inside inherit the theme color */
}

    .expert-card-link:hover {
        text-decoration: none; /* Also remove underline on hover */
        color: inherit;
    }

/* --- Hero footer --- */
.hero-footer {
    display: flex;
    flex-direction: column; /* Stacks items vertically */
    justify-content: center;
    align-items: center;
    gap: 1.9rem; /* Space between the logo and the button */
}

.edition-logo {
    display: flex;
    align-items: flex-start;
    font-family: var(--font-heading);
}

    .edition-logo .number {
        font-size: 3.5rem;
        color: var(--clr-turquoise);
        -webkit-text-stroke-width: 0.7px; /* The thickness of the border */
        -webkit-text-stroke-color: var(--clr-white); /* The color of the border */
        line-height: 1;
        font-weight: 700;
    }

    .edition-logo .ordinal {
        font-size: 1.5rem;
        color: var(--clr-turquoise);
        -webkit-text-stroke-width: 0.5px; /* The thickness of the border */
        -webkit-text-stroke-color: var(--clr-white); /* The color of the border */
        font-weight: 700;
        line-height: 1.5;
    }

    .edition-logo .text {
        font-size: 2.5rem;
        color: var(--clr-white);
        font-weight: 600;
        line-height: 1.5;
        margin-left: 0.25rem;
    }
/* ============================================= */
/* == 4. BACKGROUND ANIMATION                == */
/* ============================================= */
#network-canvas {
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
}


/* ============================================= */
/* == 5. MOBILE NAVIGATION (THE FIX)         == */
/* ============================================= */

/* --- Toggler (Burger Icon) Fix --- */
.navbar-toggler {
    border: 1px solid var(--clr-border);
    border-radius: var(--radius);
}

    .navbar-toggler:focus {
        box-shadow: 0 0 0 0.25rem rgba(var(--clr-turquoise-rgb), 0.5);
    }

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(34, 40, 49, 0.7)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

@media (prefers-color-scheme: dark) {
    .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(209, 213, 219, 0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    }
}


/* --- Collapsed Menu Drawer Styling --- */
@media (max-width: 991.98px) {
    .navbar-collapse {
        margin-top: 1rem;
        padding: 1.5rem;
        border-radius: var(--radius);
        background-color: var(--clr-card-background);
        box-shadow: var(--shadow);
        border: 1px solid var(--clr-border);
    }

    .navbar-nav .nav-link {
        padding: 0.75rem 0;
        margin: 0;
        width: 100%;
        border-bottom: 1px solid var(--clr-border);
    }

    .navbar-nav .nav-item:last-child .nav-link {
        border-bottom: none;
    }

    .navbar-nav .nav-link.active,
    .navbar-nav .nav-link:hover {
        border-bottom-color: var(--clr-border);
        background-color: rgba(var(--clr-turquoise-rgb), 0.1);
        border-radius: var(--radius);
    }

    .btn-register {
        width: 100%;
        margin-top: 1rem;
        padding: 0.75rem;
    }
}

/* ============================================= */
/* == 6. BOOTSTRAP COMPONENT OVERRIDE FIXES    == */
/* ============================================= */

/* --- Modal Stacking Fix --- */
/* The backdrop should be high, but not the highest */
.modal {
    z-index: 9999 !important;
}

.modal-backdrop {
    z-index: 9998 !important;
}

/* ============================================= */
/* == 7. CUSTOM IDENTITY FORMS (LOGIN/REGISTER) == */
/* ============================================= */
.identity-card {
    background-color: var(--clr-card-background);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    max-width: 500px; /* Constrain the width of the form */
    margin: 2rem auto; /* Center the card on the page */
}

@media (min-width: 768px) {
    .identity-card {
        padding: 3rem;
    }
}

.identity-card h1 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

.identity-card .form-floating label {
    color: var(--clr-grey);
}

.identity-card .btn-register {
    width: 100%;
    padding: 0.75rem;
    font-size: 1.1rem;
}

.identity-card .form-check-label {
    color: var(--clr-body-text);
}

.identity-card .link-secondary {
    color: var(--clr-turquoise);
    text-decoration: none;
}

    .identity-card .link-secondary:hover {
        text-decoration: underline;
    }

/* ============================================= */
/* == MODAL CONTENT THEME                     == */
/* ============================================= */


/* Ensure modal text is theme-aware */
.modal-content .name {
    color: var(--clr-heading-text);
}

.modal-content .role {
    font: bold;
    color: var(--clr-turquoise-dark);
}

.modal-content #modalExpertBio {
    color: var(--clr-body-text);
    text-align: justify;
}

/* --- Dark Mode Override for the Modal 'X' Button --- */
@media (prefers-color-scheme: dark) {
    .modal-content .btn-close {
        /* This filter inverts the color of the default Bootstrap 'X' icon, making it white */
        filter: invert(1) grayscale(100%) brightness(200%);
    }
}

.rating-stars {
    font-size: 2rem;
    color: var(--clr-turquoise);
    cursor: pointer;
}

    .rating-stars .fa-star { /* Solid star for selected */
        font-weight: 900;
    }

/* ============================================= */
/* == 8. CUSTOM FORM STYLING (CME Page)      == */
/* ============================================= */

/* Style for the dropdown menu */
.form-select {
    background-color: var(--clr-card-background);
    border: 1px solid var(--clr-border);
    color: var(--clr-body-text);
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius);
}

    .form-select:focus {
        border-color: var(--clr-turquoise);
        box-shadow: 0 0 0 0.25rem rgba(var(--clr-turquoise-rgb), 0.25);
    }

/* Custom styles for radio buttons */
.form-check-input {
    border-color: var(--clr-border);
}

    .form-check-input:checked {
        background-color: var(--clr-turquoise);
        border-color: var(--clr-turquoise);
    }

    .form-check-input:focus {
        box-shadow: 0 0 0 0.25rem rgba(var(--clr-turquoise-rgb), 0.25);
    }

/* Styling the star rating hover state */
.rating-stars i:hover ~ i {
    color: var(--clr-grey) !important; /* Make stars to the right of the hovered one grey */
    opacity: 0.5;
}

/* ============================================= */
/* == MEDIA APPEARANCES PAGE                 == */
/* ============================================= */

.media-list-item {
    display: block;
    padding: 1.5rem;
    background-color: var(--clr-card-background);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius);
    margin-bottom: 1rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

    .media-list-item:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow);
        border-color: var(--clr-turquoise);
    }

    .media-list-item h5 {
        color: var(--clr-heading-text);
        margin-bottom: 0.5rem;
    }

    .media-list-item p {
        color: var(--clr-body-text);
        margin-bottom: 0.5rem;
    }

    .media-list-item small {
        color: var(--clr-body-text);
    }

/* Custom badge color that works in both themes */
.badge.bg-media {
    background-color: var(--clr-turquoise) !important;
    color: var(--clr-white) !important;
}


/* ============================================= */
/* == REGISTRATION PAGE                      == */
/* ============================================= */
.registration-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2rem;
    box-shadow: var(--shadow);
    border-radius: var(--radius);
    overflow: hidden; /* Ensures border-radius is applied to corners */
}

    .registration-table th, .registration-table td {
        padding: 1rem 1.5rem;
        text-align: left;
        border-bottom: 1px solid var(--clr-border);
    }

    .registration-table thead th {
        background-color: var(--clr-card-background);
        color: var(--clr-heading-text);
        font-weight: 600;
        text-transform: uppercase;
        font-size: 0.9rem;
    }

    .registration-table tbody td:first-child {
        font-weight: 600;
        color: var(--clr-heading-text);
    }

    .registration-table tbody tr:last-child td {
        border-bottom: none;
    }

    .registration-table .fee-period {
        background-color: var(--clr-background); /* A slightly different background for header columns */
        font-weight: 700;
        font-size: 0.9rem;
    }
/* --- Add this new rule inside the Registration Page section --- */
.table-responsive-container {
    overflow-x: auto; /* This is the key: allows horizontal scrolling */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS devices */
    margin-left: -1.5rem; /* Counteract card padding to make it edge-to-edge */
    margin-right: -1.5rem;
    padding-left: 1.5rem; /* Re-apply padding inside */
    padding-right: 1.5rem;
}

.info-section {
    margin-top: 3rem;
}

    .info-section h4 {
        color: var(--clr-turquoise);
        font-weight: 700;
        margin-bottom: 1rem;
    }

    .info-section ul {
        list-style-type: none;
        padding-left: 0;
        text-align: justify;
    }

        .info-section ul li {
            position: relative;
            padding-left: 25px; /* Space for the icon */
            margin-bottom: 0.5rem;
        }

            .info-section ul li::before {
                content: '\f00c'; /* Font Awesome check icon */
                font-family: "Font Awesome 5 Free";
                font-weight: 900;
                color: var(--clr-turquoise);
                position: absolute;
                left: 0;
            }

    /* ============================================= */
    /* == GENERAL INFORMATION PAGE ICONS         == */
    /* ============================================= */

    .info-section h4 {
        display: flex; /* Aligns the icon and text horizontally */
        align-items: center; /* Vertically centers the icon with the text */
    }

        .info-section h4 i {
            color: var(--clr-turquoise); /* Use our theme's accent color */
            font-size: 1.5rem; /* Make the icon a bit larger */
            margin-right: 1rem; /* Space between the icon and the heading text */
            width: 30px; /* Give the icon a fixed width for consistent alignment */
            text-align: center; /* Center the icon within its space */
        }

/* ========================================
   RESPONSIVE DESIGN FOR SCROLLERS
   ======================================== */

@media (max-width: 992px) {
    .partner-scroller-item {
        width: 180px;
        height: 110px;
        padding: 1.25rem;
    }

    .scroller__inner {
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .partner-scroller-item {
        width: 150px;
        height: 90px;
        padding: 1rem;
    }

    .scroller__inner {
        gap: 1rem;
    }

    .partner-tier h2 {
        font-size: 1.5rem;
    }

    .section-title h2 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .partner-scroller-item {
        width: 130px;
        height: 80px;
        padding: 0.75rem;
    }

    .scroller__inner {
        gap: 0.75rem;
    }
}

.gslide-description {
    display: none !important;
}

/* ========================================
   ACCESSIBILITY
   ======================================== */

/* For users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    .scroller[data-animated="true"] .scroller__inner {
        animation: none;
    }

    .scroller__inner {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
    }

    .partner-scroller-item {
        scroll-snap-align: center;
    }
}
