:root {
    --primary-color: #0A192F;
    /* Premium Navy */
    --secondary-color: #D4AF37;
    /* Muted Gold */
    --accent-color: #F8F9FA;
    /* Soft Gray BG */
    --text-dark: #1F2937;
    /* Darker Slate */
    --header-font: 'Montserrat', sans-serif;
    --body-font: 'Inter', sans-serif;
    --title-font: 'Playfair Display', serif;
}

body {
    font-family: var(--body-font);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: #fff;
}


h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--header-font);
    color: var(--primary-color);
}

/* --- Header Wrapper (Sticky & Glassmorphism) --- */
.header-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    background: rgba(10, 25, 47, 0.9);
    /* Semi-transparent Navy */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 2px solid var(--secondary-color);
    transition: all 0.3s ease;
}

/* --- Branding Header (Integrated) --- */
.branding-header {
    padding: 15px 0;
    display: flex;
    align-items: center;
}

.branding-header .brand-title {
    font-family: var(--title-font);
    font-weight: 900;
    font-size: 1.8rem;
    line-height: 1.2;
    color: white;
    margin: 0;
}

.branding-header .brand-title span {
    color: var(--secondary-color);
}

/* --- Navigation Strip (Integrated) --- */
.navbar-strip {
    background-color: transparent !important;
    padding: 5px 0 10px 0;
    border: none;
}

.navbar-strip .nav-link {
    font-family: var(--header-font);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85) !important;
    margin: 0 12px;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.navbar-strip .nav-link:hover,
.navbar-strip .nav-link.active {
    color: var(--secondary-color) !important;
}

.dropdown-menu {
    background: rgba(10, 25, 47, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid var(--secondary-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.dropdown-item {
    color: rgba(255, 255, 255, 0.8);
    font-family: var(--body-font);
    font-size: 0.9rem;
    padding: 10px 20px;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background-color: rgba(212, 175, 55, 0.1);
    color: var(--secondary-color);
}

.page-section {
    padding-top: calc(var(--header-height, 240px) + 20px) !important;
    /* Dynamically adjusted for integrated header */
}

/* --- Hero Carousel --- */
.carousel-item {
    height: 400px;
    background-color: #333;
    position: relative;
}

.carousel-item img {
    object-fit: cover;
    height: 100%;
    width: 100%;
    opacity: 0.6;
}

.carousel-caption {
    background: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(5px);
    padding: 30px;
    border-radius: 12px;
    border-left: 5px solid var(--secondary-color);
    text-align: left;
    max-width: 600px;
    left: 10%;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    color: #ffffff;
    display: inline-block;
    /* auto height — sizes to content */
}

.carousel-caption h1,
.carousel-caption h2,
.carousel-caption p {
    color: #ffffff;
}

/* --- Sidebar Cards --- */
.sidebar-card {
    border: none;
    border-radius: 12px;
    margin-bottom: 30px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.sidebar-header {
    background-color: var(--primary-color);
    color: white;
    padding: 20px;
    font-family: var(--header-font);
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.sidebar-body {
    padding: 25px;
    background-color: #fff;
}

.date-item {
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.date-item:last-child {
    border-bottom: none;
}

.date-badge {
    background-color: var(--secondary-color);
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
}

/* --- Speaker/Committee Cards --- */
.speaker-card {
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    border-radius: 12px;
    background: #fff;
}

.speaker-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.speaker-img {
    height: 280px;
    object-fit: cover;
    background-color: #f8fafc;
}

/* Committee specific adjustments */
.committee-card-vertical {
    background-color: #fff;
    border: none;
    border-radius: 12px;
    padding: 40px 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
}

.committee-card-vertical:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* REPLACED: Circular style with Rectangular Portrait style */
.committee-photo {
    width: 160px;
    height: 190px;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin: 0 auto 15px auto;
    /* CENTER */
    display: block;
    /* REQUIRED */
    border: 1px solid #dee2e6;
}


.committee-bio-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
    padding: 20px;
    text-align: justify;
}

/* Responsive stack for mobile */
@media (max-width: 767px) {
    .committee-left-col {
        border-right: none;
        border-bottom: 1px solid #eee;
    }
}


/* --- Schedule --- */
.nav-tabs {
    border-bottom: 2px solid #e2e8f0;
    gap: 10px;
}

.nav-tabs .nav-link {
    color: var(--text-dark);
    font-weight: 600;
    border: none;
    padding: 12px 25px;
    border-radius: 8px 8px 0 0;
    transition: all 0.3s ease;
    font-family: var(--header-font);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.nav-tabs .nav-link:hover {
    color: var(--secondary-color);
    background-color: #f8fafc;
}

.nav-tabs .nav-link.active {
    color: var(--secondary-color);
    background-color: #f8fafc;
    border-bottom: 3px solid var(--secondary-color);
}

.table {
    border-radius: 12px;
    overflow: hidden;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.table thead th {
    background-color: var(--primary-color);
    color: #fff;
    padding: 20px;
    font-family: var(--header-font);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    border: none;
}

.table tbody td {
    padding: 20px;
    vertical-align: middle;
    border-color: #f1f5f9;
}

.schedule-time {
    background-color: var(--accent-color) !important;
    font-weight: 700;
    color: var(--primary-color);
    width: 140px;
}

/* --- Gallery --- */
.gallery-item {
    cursor: pointer;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 30px;
    position: relative;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.gallery-item:hover img {
    transform: scale(1.08);
}

/* --- Footer --- */
footer {
    background-color: var(--primary-color);
    color: #fff;
    padding: 80px 0 0 0;
    margin-top: 100px;
    border-top: 5px solid var(--secondary-color);
}

footer h5 {
    color: var(--secondary-color);
    margin-bottom: 30px;
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-family: var(--header-font);
}

footer p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.8;
}

footer a {
    color: rgba(255, 255, 255, 0.7) !important;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    font-weight: 500;
}

footer a:hover {
    color: var(--secondary-color) !important;
    transform: translateX(5px);
}

.social-links a {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.05);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 10px;
    color: #fff !important;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--secondary-color);
    color: var(--primary-color) !important;
    transform: translateY(-5px) !important;
}

.copyright-bar {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 25px 0;
    margin-top: 60px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* --- Utility --- */
.section-padding {
    padding: 60px 0;
}

.hidden-section {
    display: none !important;
}

/* Fake Images for Preview */
.bg-placeholder {
    background-color: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #adb5bd;
    font-size: 3rem;
}

/* Hover support for desktop dropdowns - Updated to xl breakpoint */
@media (min-width: 1200px) {
    .navbar-nav .dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0;
    }
}

/* Justify only speaker bio paragraphs */
#speakers .card p.mb-0 {
    text-align: justify;
}

/* --- Mobile Adjustments --- */
@media (max-width: 767px) {
    .page-section {
        padding-top: 0 !important;
    }

    .header-wrapper {
        position: relative !important;
        background: var(--primary-color);
        /* Ensure solid background when not fixed */
        backdrop-filter: none;
    }

    .carousel-item {
        height: 300px;
    }

    .carousel-caption {
        padding: 15px;
        bottom: 10%;
        left: 5%;
        right: 5%;
        top: auto;
        transform: none;
    }

    .carousel-caption h1 {
        font-size: 1.25rem;
    }

    .carousel-caption h2 {
        font-size: 1.15rem;
    }

    .carousel-caption p {
        font-size: 0.85rem;
        margin-bottom: 10px !important;
    }

    .header-logo {
        height: 50px !important;
        padding: 3px !important;
    }

    .branding-header {
        padding: 5px 0;
    }

    .branding-header .brand-title {
        font-size: 1.5rem;
    }

    .brand-title-full {
        display: none !important;
    }

    .brand-title-short {
        display: block !important;
    }

    body {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .section-padding {
        padding: 60px 20px !important;
    }

    .sidebar-body {
        padding: 20px !important;
    }
}

.brand-title-short {
    display: none;
}

/* --- Reusable Section Divider --- */
.section-divider {
    width: 100%;
    height: 4px;
    background-color: var(--secondary-color);
    border: none;
    opacity: 1;
    margin: 0 0 3rem 0;
}

.header-logo {
    height: 100px;
    width: auto;
    background: white;
    padding: 5px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

/* =========================================
   SCROLL REVEAL & TRANSITION ANIMATIONS
   ========================================= */

/* Fade In Animation for Page Sections */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-section:not(.hidden-section) {
    animation: fadeIn 0.6s ease-out forwards;
}

/* Scroll Reveal Base Utility Classes */
.reveal,
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 0;
    transition: all 0.8s ease-out;
}

/* Base Reveal - Upwards */
.reveal,
.reveal-up {
    transform: translateY(40px);
}

/* Reveal from Left */
.reveal-left {
    transform: translateX(-40px);
}

/* Reveal from Right */
.reveal-right {
    transform: translateX(40px);
}

/* Active State for Triggering Reveal */
.reveal.active,
.reveal-up.active,
.reveal-left.active,
.reveal-right.active {
    opacity: 1;
    transform: translate(0, 0);
}

/* Delay Helpers for Staggered Animations */
.delay-100 {
    transition-delay: 100ms;
}

.delay-200 {
    transition-delay: 200ms;
}

.delay-300 {
    transition-delay: 300ms;
}

.delay-400 {
    transition-delay: 400ms;
}

.delay-500 {
    transition-delay: 500ms;
}

/* Enhancing Hover Effects on Interactive Elements */
.btn {
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}