:root {
    --primary-color: #c94a13;
    /* Orange/Rust Primary */
    --secondary-color: #ffffff;
    /* White Secondary */
    --accent-color: #EDF2FB;
    /* Blue-tinted Soft White */
    --cta-color: #2563EB;
    /* Bright Blue — for primary CTAs */
    --text-dark: #111827;
    /* Near-black for max readability */
    --header-font: 'DM Sans', sans-serif;
    --body-font: 'Inter', sans-serif;
    --title-font: 'Raleway', sans-serif;
}

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

.badge-school {
    background-color: rgba(201, 74, 19, 0.15);
    color: var(--primary-color);
    border: 1px solid rgba(201, 74, 19, 0.5);
    font-weight: 700;
    letter-spacing: 0.5px;
}


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

/* --- Header Wrapper (multi-row, not fixed) --- */
.header-wrapper {
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    width: 100%;
}

/* 1. Thin Accent Strip — same color as branding banner */
.header-accent-strip {
    height: 6px;
    background: var(--primary-color);
}

/* 2. Partner Logos Strip */
.header-logos-strip {
    background-color: #ffffff;
    border-bottom: 1px solid #e2e8f0;
}

.partner-strip-logo {
    height: 42px;
    width: auto;
    max-width: 130px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.partner-strip-logo:hover {
    transform: scale(1.08);
}

/* 3. Conference Branding Banner */
.header-branding-banner {
    background: linear-gradient(135deg, #0e2a4d 0%, var(--primary-color) 50%, #1a4070 100%);
    border-bottom: 3px solid var(--secondary-color);
}

.branding-logo-left {
    height: 200px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
    border-radius: 10px;
    background: rgba(255,255,255,0.92);
    padding: 8px;
}

.branding-logo-right {
    height: 200px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
}

.branding-center-text {
    padding: 0 16px;
    min-width: 0;
}

.branding-conf-title {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-weight: 900;
    font-size: 2.2rem;
    color: #ffffff;
    line-height: 1.45;
    letter-spacing: 1.5px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.35);
}

.branding-conf-date {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-weight: 600;
    font-size: 2.2rem;
    color: var(--secondary-color);
    letter-spacing: 0.5px;
    margin-top: 8px;
}

/* --- Navigation Strip (white, below branding banner) --- */
.navbar-strip {
    background: #ffffff !important;
    border-bottom: 2px solid #e2e8f0;
    padding: 0 !important;
}

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

.navbar-strip .nav-link:hover,
.navbar-strip .nav-link.active {
    color: var(--primary-color) !important;
    border-bottom: 2px solid var(--secondary-color);
}

.dropdown-menu {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-top: 3px solid var(--secondary-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

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

.dropdown-item:hover {
    background-color: var(--accent-color);
    color: var(--primary-color);
}

.page-section {
    padding-top: 8px !important;
}

/* Conference Name Strip (below carousel) */
.conf-name-strip {
    background: var(--primary-color);
    color: #ffffff;
    font-family: var(--title-font);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border-top: 2px solid var(--secondary-color);
}

@media (max-width: 767px) {
    .conf-name-strip { font-size: 0.72rem; letter-spacing: 0.5px; }
}

/* --- Carousel Below Header --- */
.hero-carousel-below {
    position: relative;
    width: 100%;
    height: 55vh;
    min-height: 360px;
    max-height: 550px;
    overflow: hidden;
}

.hero-inner,
.hero-inner .carousel-item {
    height: 100%;
}

.hero-slide {
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-indicators {
    bottom: 20px;
    z-index: 4;
}

/* CTA overlay on carousel */
.carousel-cta-overlay {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
}

.hero-btn-primary {
    background: var(--primary-color);
    color: #fff;
    font-weight: 700;
    font-family: var(--header-font);
    border: none;
    padding: 12px 32px;
    border-radius: 4px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

.hero-btn-primary:hover {
    background: #a0380d;
    color: #fff;
    transform: translateY(-2px);
}

.hero-btn-outline {
    background: rgba(0,0,0,0.35);
    color: #fff;
    font-weight: 700;
    font-family: var(--header-font);
    border: 2px solid rgba(255,255,255,0.7);
    padding: 12px 32px;
    border-radius: 4px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

.hero-btn-outline:hover {
    background: rgba(255,255,255,0.15);
    color: #fff;
    border-color: #fff;
    transform: translateY(-2px);
}

/* Responsive Header */
@media (max-width: 991px) {
    .branding-conf-title { font-size: 1.4rem; }
    .branding-conf-date { font-size: 1.4rem; }
    .branding-logo-left { height: 150px; }
    .branding-logo-right { height: 150px; }
}

@media (max-width: 767px) {
    .header-branding-banner .d-flex { flex-direction: row !important; flex-wrap: nowrap !important; gap: 2vw !important; }
    .branding-logo-left { height: 18vw; max-width: 22vw; padding: 1vw; border-radius: 6px; }
    .branding-logo-right { height: 18vw; max-width: 22vw; }
    .branding-center-text { padding: 0 1vw; }
    .branding-conf-title { font-size: 3.2vw; line-height: 1.3; letter-spacing: 0.2px; }
    .branding-conf-date { font-size: 3.2vw; margin-top: 1vw; letter-spacing: 0; }
    .hero-carousel-below { height: 40vh; min-height: 260px; }
    .carousel-cta-overlay { bottom: 30px; }
    .hero-btn-primary, .hero-btn-outline { padding: 8px 20px; font-size: 0.85rem; }
    .partner-strip-logo { height: 30px; }
}


/* --- Announcement Ticker --- */
.announcement-ticker {
    display: flex;
    align-items: center;
    background: var(--primary-color);
    border-top: 3px solid var(--secondary-color);
    border-bottom: 2px solid rgba(255,255,255,0.08);
    height: 44px;
    overflow: hidden;
    position: relative;
    z-index: 10;
}

.ticker-label {
    flex-shrink: 0;
    background: var(--secondary-color);
    color: var(--primary-color);
    font-family: var(--header-font);
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 0 16px;
    height: 100%;
    display: flex;
    align-items: center;
    white-space: nowrap;
    z-index: 2;
}

.ticker-wrapper {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.ticker-content {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    animation: ticker-scroll 40s linear infinite;
    gap: 0;
}

.ticker-content:hover {
    animation-play-state: paused;
}

.ticker-item {
    font-family: var(--body-font);
    font-size: 0.88rem;
    color: rgba(255,255,255,0.9);
    padding: 0 28px;
}

.ticker-item strong {
    color: var(--secondary-color);
}

.ticker-sep {
    color: var(--secondary-color);
    font-size: 0.65rem;
    opacity: 0.6;
    flex-shrink: 0;
}

@keyframes ticker-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* --- Legacy carousel styles (for other uses) --- */

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

/* --- Top Logo Strip --- */
.top-logo-strip {
    background-color: #ffffff;
    border-bottom: 2px solid #e2e8f0;
}

.top-strip-logo {
    height: 50px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.top-strip-logo:hover {
    transform: scale(1.05);
}

/* --- 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;
    border-radius: 0;
}

.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(--primary-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;
}

/* --- Global Justified Text --- */
/* Applies to all paragraph and list-item text inside every page section */
.page-section p,
.page-section li,
.page-section .accordion-body,
.page-section .card-text,
.page-section .committee-bio-text {
    text-align: justify;
}

.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: 16px !important;
    }

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

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

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

/* --- 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);
}