/* Visual Update CSS - Grainy Background & Light Waves */

:root {
    /* Increased Opacity for Visibility */
    --grain-opacity: 0.15;
    --wave-opacity: 0.5;
    --bg-color: #ffffff;

    /* Unified Color - Favor Blue over Teal (logo-informed) */
    --wave-1-color: rgba(30, 115, 255, 0.5);
    --wave-2-color: rgba(30, 135, 230, 0.45);
    --wave-3-color: rgba(20, 90, 220, 0.45);
}

[data-theme="dark"] {
    --grain-opacity: 0.20;
    --wave-opacity: 0.4;
    --bg-color: #0a0a0a;
    --wave-1-color: rgba(30, 115, 255, 0.4);
    --wave-2-color: rgba(30, 135, 230, 0.35);
    --wave-3-color: rgba(20, 90, 220, 0.35);
}

/* Base Body Background */
body {
    background-color: var(--bg-color);
    position: relative;
    min-height: 100vh;
    z-index: 1;
    /* Ensure stacking context for children */
}

/* 
   GRAIN OVERLAY 
   Sit on TOP of absolutely everything.
*/
.visual-grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10000;
    /* highest priority */
    mix-blend-mode: overlay;
    /* Blend with content */
}

.visual-grain {
    position: absolute;
    top: -100%;
    left: -100%;
    width: 300%;
    height: 300%;
    opacity: var(--grain-opacity);
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 150px 150px;
    animation: noise 2s steps(10) infinite;
    pointer-events: none;
}

@keyframes noise {

    0%,
    100% {
        transform: translate(0, 0);
    }

    10% {
        transform: translate(-5%, -10%);
    }

    20% {
        transform: translate(-15%, 5%);
    }

    30% {
        transform: translate(7%, -25%);
    }

    40% {
        transform: translate(-5%, 25%);
    }

    50% {
        transform: translate(-15%, 10%);
    }

    60% {
        transform: translate(15%, 0%);
    }

    70% {
        transform: translate(0%, 15%);
    }

    80% {
        transform: translate(3%, 35%);
    }

    90% {
        transform: translate(-10%, 10%);
    }
}

/* 
   WAVES CONTAINER
   Sit BEHIND content.
*/
.visual-waves-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
    /* Normal blend mode for background usage to keep colors true */
    mix-blend-mode: normal;
}

/* Dark mode handling for blend modes */
[data-theme="dark"] .visual-waves-container {
    mix-blend-mode: screen;
    /* Light on Dark works well with screen */
}

/* 
   Light mode adjustment: 
   'screen' on white background makes things disappear (White + Color = White).
   So for light mode, we might need 'multiply' (for shadows) or 'hard-light'/'overlay'.
   Or, we position them BEHIND if body bg is transparent enough... but it's not.
   Solution: Use 'multiply' for light mode if we want colored blobs on white.
*/
:root:not([data-theme="dark"]) .visual-waves-container {
    mix-blend-mode: multiply;
    /* Will darken the white background with color */
}


.visual-wave {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    /* Soft blur */
    opacity: var(--wave-opacity);
    transition: transform 0.1s linear;
    will-change: transform;
}

.visual-wave-1 {
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--wave-1-color) 0%, rgba(0, 0, 0, 0) 70%);
    top: -200px;
    left: -200px;
}

.visual-wave-2 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--wave-2-color) 0%, rgba(0, 0, 0, 0) 70%);
    top: 40%;
    right: -100px;
}

.visual-wave-3 {
    width: 900px;
    height: 900px;
    background: radial-gradient(circle, var(--wave-3-color) 0%, rgba(0, 0, 0, 0) 70%);
    bottom: -300px;
    left: 20%;
}

/* Committee Icon Styling */
.committee-icon {
    background-color: var(--rr-color-grey-2) !important;
    /* Dark grey background for white icons */
    transition: all 0.3s ease-in-out;
}

.service-card:hover .committee-icon {
    background-color: var(--rr-color-theme-primary) !important;
    /* Change color on hover for better UX */
}

/* Make the <a> inside service-card inherit the grid layout */
.service-card > a {
    display: grid;
    grid-template-columns: 70px 1fr;
    grid-gap: 20px;
    align-items: center;
    text-decoration: none;
    color: inherit;
    width: 100%;
    padding: 20px 10px 20px 0;
}

.service-card .icon.committee-icon {
    width: 70px;
    height: 70px;
}

@media only screen and (max-width: 992px) {
    .service-card > a {
        grid-template-columns: 60px 1fr;
        grid-gap: 15px;
        padding: 10px 10px 10px 0;
    }
}

/* When service-card has a link child, disable the card's own grid */
.service-card:has(> a) {
    display: block;
}

/* Committee title text wrapping - max 2 lines */
.service-card .content .title {
    margin-bottom: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media only screen and (min-width: 1200px) {
    .service-card .content .title {
        white-space: nowrap;
    }
}

@media only screen and (max-width: 1199px) {
    .service-card .content .title {
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}

.committee-icon img {
    width: 70% !important;
    /* Scaled to fit comfortably inside the 85px circle */
    height: 70% !important;
    object-fit: contain;
}

/* Floating Register Button - Glassmorphic Style */
#floating-register-btn {
    position: fixed;
    bottom: 58px;
    right: 125px;
    z-index: 99;
    padding: 14px 24px;
    font-size: 14px;
    background: rgba(30, 115, 255, 0.25);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50px;
    box-shadow: 0 8px 32px rgba(30, 115, 255, 0.3), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

#floating-register-btn.visible {
    opacity: 1;
    pointer-events: auto;
}

#floating-register-btn:hover {
    background: rgba(30, 115, 255, 0.4);
    box-shadow: 0 8px 32px rgba(30, 115, 255, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.3);
}

@media (max-width: 992px) {
    #floating-register-btn {
        bottom: 38px;
        right: 105px;
    }
}

@media (max-width: 767px) {
    #floating-register-btn {
        bottom: 28px;
        right: 95px;
        padding: 10px 16px;
        font-size: 13px;
    }
}

/* Hero Background Styling */
.active .slide-img-wrap .slide-img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: 1;
}

/* Ensure the overlay is above the video */
.slider-item .overlay {
    z-index: 2;
}

/* Ensure the content is above everything */
.slider-item .slider-content-wrap {
    z-index: 3;
}

/* About Slideshow */
.about-slideshow {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 12px;
}

.about-slideshow img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.05);
    transition: opacity 1.5s ease-in-out, transform 8s linear;
    z-index: 1;
}

.about-slideshow img.active {
    opacity: 1;
    z-index: 2;
    transform: translate(-50%, -50%) scale(1);
}

.about-slideshow img.pull-down {
    object-position: top !important;
}

/* Fix for reveal animation cutting off images */
.about-img-6.reveal {
    width: 100% !important;
    height: 100% !important;
}

.testi-img-5.about-slideshow {
    aspect-ratio: 641 / 508;
}

/* Contact Section Background - Team Photo */
.cta-section-5 .bg-img {
    object-fit: cover !important;
    object-position: center !important;
}

/* =============================================
   STATISTICS COUNTER V2 — Icon + Number Design
   ============================================= */
.statistics-section-v2 {
    padding: 40px 0 80px;
    position: relative;
}

.stats-grid {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
    padding: 0 20px;
}

.stat-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 20px;
    padding: 0;
    background: transparent;
    border: none;
    transition: transform 0.4s ease;
}

.stat-item:hover {
    transform: translateY(-8px);
}

.stat-icon-wrap {
    width: 100px;
    height: 100px;
    min-width: 100px;
    border-radius: 50%;
    background: rgba(30, 115, 255, 0.08);
    border: 2px solid rgba(30, 115, 255, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: all 0.4s ease;
}

.stat-item:hover .stat-icon-wrap {
    background: rgba(30, 115, 255, 0.12);
    border-color: rgba(30, 115, 255, 0.3);
    transform: scale(1.05);
}

.stat-icon-wrap i {
    font-size: 28px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1;
}

.stat-icon-wrap i:only-child {
    font-size: 36px;
}

.stat-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.stat-number-wrap {
    display: flex;
    align-items: baseline;
    justify-content: flex-start;
    gap: 2px;
}

.stat-number,
.stat-number .odometer-inside {
    font-family: var(--rr-ff-p), 'Plus Jakarta Sans', sans-serif;
    font-size: 56px;
    font-weight: 300;
    line-height: 1.1;
    color: #ffffff;
    letter-spacing: -1px;
}

/* Fix odometer digit display */
.stat-number.odometer {
    overflow: hidden;
}

.stat-number .odometer-digit {
    padding: 0 2px;
}

.stat-suffix {
    font-family: var(--rr-ff-p), 'Plus Jakarta Sans', sans-serif;
    font-size: 42px;
    font-weight: 300;
    line-height: 1.1;
    color: #ffffff;
}

.stat-label {
    font-family: var(--rr-ff-p), 'Plus Jakarta Sans', sans-serif;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0;
    text-transform: none;
}

/* Light theme adjustments */
[data-theme="light"] .stat-icon-wrap {
    background: rgba(30, 115, 255, 0.06);
    border-color: rgba(30, 115, 255, 0.12);
}

[data-theme="light"] .stat-icon-wrap i {
    color: var(--rr-color-theme-primary, #1E73FF);
}

[data-theme="light"] .stat-number,
[data-theme="light"] .stat-number .odometer-inside,
[data-theme="light"] .stat-suffix {
    color: var(--rr-color-heading-primary, #11151C);
}

[data-theme="light"] .stat-label {
    color: rgba(17, 21, 28, 0.7);
}

/* Responsive: Tablet */
@media only screen and (max-width: 992px) {
    .stats-grid {
        gap: 30px;
    }

    .stat-item {
        gap: 16px;
    }

    .stat-icon-wrap {
        width: 85px;
        height: 85px;
        min-width: 85px;
    }

    .stat-icon-wrap i {
        font-size: 24px;
    }

    .stat-icon-wrap i:only-child {
        font-size: 30px;
    }

    .stat-number,
    .stat-number .odometer-inside {
        font-size: 46px;
    }

    .stat-suffix {
        font-size: 34px;
    }

    .stat-label {
        font-size: 14px;
    }
}

/* Responsive: Mobile */
@media only screen and (max-width: 767px) {
    .statistics-section-v2 {
        padding: 30px 0 60px;
    }

    .stats-grid {
        flex-direction: column;
        align-items: center;
        gap: 30px;
        padding: 0 20px;
    }

    .stat-item {
        width: 100%;
        max-width: 320px;
        gap: 18px;
    }

    .stat-icon-wrap {
        width: 80px;
        height: 80px;
        min-width: 80px;
    }

    .stat-icon-wrap i {
        font-size: 22px;
    }

    .stat-icon-wrap i:only-child {
        font-size: 28px;
    }

    .stat-number,
    .stat-number .odometer-inside {
        font-size: 44px;
    }

    .stat-suffix {
        font-size: 32px;
    }

    .stat-label {
        font-size: 14px;
    }
}

/* Responsive: Small Mobile */
@media only screen and (max-width: 480px) {
    .stat-item {
        gap: 14px;
    }

    .stat-icon-wrap {
        width: 70px;
        height: 70px;
        min-width: 70px;
    }

    .stat-icon-wrap i {
        font-size: 20px;
    }

    .stat-icon-wrap i:only-child {
        font-size: 26px;
    }

    .stat-number,
    .stat-number .odometer-inside {
        font-size: 38px;
    }

    .stat-suffix {
        font-size: 28px;
    }

    .stat-label {
        font-size: 13px;
    }
}

/* Mobile Agenda Text - Hidden by default, shown only on phone view */
.mobile-agenda {
    display: none;
}

/* Mobile Agenda Label - Hidden by default */
.mobile-agenda-label {
    display: none;
}

@media (max-width: 576px) {
    /* Restyled committee cards for phone view */
    .service-card {
        background: rgba(10, 15, 20, 0.95) !important;
        border: none !important;
        border-radius: 16px !important;
        padding: 20px !important;
        position: relative;
        overflow: visible;
        height: auto !important;
        min-height: unset !important;
    }
    
    .service-card > a {
        pointer-events: none;
        cursor: default;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .service-card .icon.committee-icon {
        position: absolute;
        top: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        margin: 0;
    }
    
    .service-card .icon.committee-icon img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        filter: brightness(0) invert(1);
    }
    
    .service-card .content {
        width: calc(100% - 70px);
        padding-right: 0;
    }
    
    .service-card .content .title {
        font-size: 18px;
        font-weight: 600;
        color: #fff;
        margin-bottom: 15px;
        line-height: 1.3;
    }
    
    .mobile-agenda-label {
        display: block;
        font-size: 11px;
        font-weight: 600;
        letter-spacing: 2px;
        color: rgba(255, 255, 255, 0.6);
        margin-bottom: 8px;
        text-transform: uppercase;
    }
    
    .mobile-agenda {
        display: block;
        font-size: 14px;
        line-height: 1.6;
        color: rgba(255, 255, 255, 0.85);
        margin-top: 0;
        padding-top: 0;
        border-top: none;
    }
    
    /* Hide Explore More box on phone since agendas are shown inline */
    .service-section .row.gy-4 > .col-md-6:last-child {
        display: none;
    }
}

/* Stats in About Section */
.stats-in-about {
    width: 100%;
    margin-top: 30px;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 20px;
}

.stats-in-about .stat-item {
    background: rgba(20, 30, 50, 0.6);
    border-radius: 16px;
    padding: 25px 30px;
    flex: 0 1 auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 18px;
}

.stats-in-about .stat-icon-wrap {
    width: 70px;
    height: 70px;
    min-width: 70px;
    border-radius: 50%;
    background: rgba(30, 115, 255, 0.15);
    border: 1px solid rgba(30, 115, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
}

.stats-in-about .stat-icon-wrap i {
    font-size: 30px;
    color: #fff;
}

.stats-in-about .stat-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stats-in-about .stat-number-wrap {
    display: flex;
    align-items: baseline;
    gap: 2px;
}

.stats-in-about .stat-number,
.stats-in-about .stat-number .odometer-inside {
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

.stats-in-about .stat-suffix {
    font-size: 26px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
}

.stats-in-about .stat-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    white-space: nowrap;
}

@media (max-width: 991px) {
    .stats-in-about {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .stats-in-about {
        flex-direction: column;
    }
    
    .stats-in-about .stat-item {
        width: 100%;
    }
}

/* Flip Card Animation - Mobile Only */
.flip-card-back {
    display: none;
}

@media (max-width: 576px) {
    /* Disable flip animation on mobile - just show cards normally */
    .flip-card-wrapper {
        position: relative;
    }
    
    .flip-card-wrapper > a.desktop-link {
        position: relative;
        display: flex;
        flex-direction: column;
        background: rgba(10, 15, 20, 0.95);
        border-radius: 16px;
        padding: 20px;
    }
    
    /* Hide flip card back on mobile */
    .flip-card-back {
        display: none !important;
    }
    
    .flip-logo {
        display: none;
    }
    
    .flip-title {
        display: none;
    }
}

/* =============================================
   DISTINGUISHED SPEAKERS — 3D FLIP CARD SECTION
   ============================================= */

.speakers-section {
    padding-top: 130px;
    position: relative;
}

/* Section label badges */
.speakers-label {
    text-align: center;
    margin-bottom: 36px;
    margin-top: 60px;
}

.speakers-label:first-of-type {
    margin-top: 56px;
}

.speakers-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 26px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.chief-guest-badge {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.18) 0%, rgba(255, 152, 0, 0.14) 100%);
    border: 1px solid rgba(255, 193, 7, 0.35);
    color: #ffc107;
    box-shadow: 0 0 24px rgba(255, 193, 7, 0.12);
}

.colloquium-badge {
    background: linear-gradient(135deg, rgba(30, 115, 255, 0.18) 0%, rgba(20, 90, 220, 0.14) 100%);
    border: 1px solid rgba(30, 115, 255, 0.35);
    color: #5b9cff;
    box-shadow: 0 0 24px rgba(30, 115, 255, 0.12);
}

.mb-60 {
    margin-bottom: 60px;
}

/* ---- Flip Card Shell ---- */
.speaker-flip-card {
    perspective: 1200px;
    height: 460px;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    /* GPU layer for smooth tilt */
    transform-style: preserve-3d;
}

.speaker-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.7s cubic-bezier(0.4, 0.2, 0.2, 1);
    border-radius: 20px;
    will-change: transform;
}

.speaker-flip-card.flipped .speaker-card-inner {
    transform: rotateY(180deg);
}

/* ---- Card Face Base ---- */
.speaker-card-front,
.speaker-card-back {
    position: absolute;
    inset: 0;
    border-radius: 20px;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* ---- FRONT FACE ---- */
.speaker-card-front {
    background:
        linear-gradient(160deg, rgba(14, 20, 40, 0.95) 0%, rgba(7, 11, 25, 0.98) 100%),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%231e73ff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    border: 1px solid rgba(30, 115, 255, 0.1);
    box-shadow:
        0 24px 64px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(255, 255, 255, 0.04) inset;
    align-items: center;
    justify-content: flex-end;
    padding-bottom: 0;
    /* Needed so children with translateZ render in front */
    transform-style: preserve-3d;
}

/* ── Image floats in FRONT of the card plane ── */
.speaker-img-wrap {
    position: absolute;
    bottom: 120px;  /* Pushed way up to clear text */
    left: 0;
    right: 0;
    height: 75%;    /* Slightly shorter image for vertical balance */
    display: flex;
    align-items: flex-end;
    justify-content: center;
    /* Lift image above the card surface — key parallax layer */
    transform: translateZ(50px);
    transform-style: preserve-3d;
    transition: transform 0.08s linear;
    pointer-events: none;
    z-index: 3;
}

/* .speaker-img-parallax is the JS-controlled layer */
.speaker-img-parallax {
    will-change: transform;
}

.speaker-img-front {
    width: 95%;
    height: 100%;
    object-fit: contain;
    object-position: bottom center;
    filter:
        drop-shadow(0 -6px 28px rgba(30, 115, 255, 0.18))
        drop-shadow(0 18px 40px rgba(0, 0, 0, 0.75));
    transition: filter 0.4s ease;
}

.speaker-flip-card:hover .speaker-img-front {
    filter:
        drop-shadow(0 -8px 36px rgba(30, 115, 255, 0.28))
        drop-shadow(0 22px 50px rgba(0, 0, 0, 0.85));
}

/* Frosted strip for text — deeper for better contrast */
.speaker-card-front::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 45%; /* Deeper gradient */
    background: linear-gradient(to top,
        rgba(5, 8, 20, 1) 0%,
        rgba(5, 8, 20, 0.95) 40%,
        rgba(5, 8, 20, 0.7) 70%,
        transparent 100%);
    pointer-events: none;
    z-index: 2;
}

/* Subtle top edge glow like the site's primary color */
.speaker-card-front::before {
    content: '';
    position: absolute;
    top: 0; left: 10%; right: 10%;
    height: 1px;
    background: linear-gradient(90deg,
        transparent,
        rgba(30, 115, 255, 0.4) 40%,
        rgba(91, 156, 255, 0.4) 60%,
        transparent);
    z-index: 5;
}

/* Name / title strip */
.speaker-front-info {
    position: relative;
    z-index: 4;
    width: 100%;
    padding: 0 24px 8px; /* Tighter padding to move text down */
    text-align: center;
    transform: translateZ(10px);
}

.speaker-name {
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 4px;
    line-height: 1.25;
    text-shadow: 
        0 2px 10px rgba(0,0,0,0.9),
        0 0 15px rgba(30, 115, 255, 0.4); /* Blue aura */
    letter-spacing: -0.5px;
}

.speaker-role {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.65);
    margin: 0;
    text-shadow: 0 1px 5px rgba(0,0,0,0.8);
}

/* Elegant Flip Hint Pill */
.flip-hint {
    position: relative;
    z-index: 5;
    background: rgba(30, 115, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    border-radius: 40px;
    padding: 6px 16px; /* More compact */
    margin: 0 auto 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #5b9cff;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    transform: translateZ(15px);
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.flip-hint i {
    font-size: 12px;
    animation: hint-bounce 2s infinite ease-in-out;
}

.flip-hint span {
    color: #fff;
    opacity: 0.9;
}

.flip-hint-sub {
    color: rgba(255,255,255,0.4) !important;
    text-transform: lowercase;
    font-style: italic;
    font-weight: 400;
}

@keyframes hint-bounce {
    0%, 100% { transform: translateY(0) rotate(0); }
    50% { transform: translateY(-3px) rotate(-10deg); }
}

.speaker-flip-card:hover .flip-hint {
    background: rgba(30, 115, 255, 0.2);
    border-color: rgba(91, 156, 255, 0.4);
    box-shadow: 0 10px 30px rgba(30, 115, 255, 0.2);
    transform: translateZ(25px);
}

/* Placeholder for chief guest */
.speaker-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.speaker-img-placeholder i {
    font-size: 90px;
    color: rgba(255, 255, 255, 0.1);
}

/* Chief front special tint */
.chief-front {
    background: linear-gradient(160deg, rgba(30, 20, 8, 0.95) 0%, rgba(20, 12, 4, 0.98) 100%);
    border-color: rgba(255, 193, 7, 0.12);
}

.chief-front .speaker-tag {
    color: #ffc107;
    background: rgba(255, 193, 7, 0.1);
    border-color: rgba(255, 193, 7, 0.25);
}

/* ---- BACK FACE ---- */
.speaker-card-back {
    transform: rotateY(180deg);
    background: linear-gradient(160deg, rgba(10, 18, 40, 0.97) 0%, rgba(5, 10, 25, 1) 100%);
    border: 1px solid rgba(30, 115, 255, 0.2);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(30, 115, 255, 0.08) inset;
    flex-direction: column;
    justify-content: space-between;
    padding: 0;
}

/* Small faded portrait on the back right */
.speaker-back-img-wrap {
    position: absolute;
    right: -10px;
    bottom: 50px;
    width: 48%;
    height: 65%;
    pointer-events: none;
    z-index: 0;
}

.speaker-back-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: bottom right;
    opacity: 0.13;
    filter: grayscale(40%) drop-shadow(0 4px 12px rgba(0,0,0,0.5));
}

/* Text content */
.speaker-back-content {
    position: relative;
    z-index: 1;
    padding: 28px 24px 16px;
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.speaker-back-name {
    font-size: 17px;
    font-weight: 700;
    color: #ffffff;
    margin: 8px 0 14px;
    line-height: 1.3;
}

.speaker-back-divider {
    width: 38px;
    height: 2px;
    background: linear-gradient(90deg, #1e73ff, #5b9cff);
    border-radius: 2px;
    margin-bottom: 16px;
    flex-shrink: 0;
}

.speaker-back-points {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow: hidden;
}

.speaker-back-points li {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-size: 12.5px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.75);
}

.speaker-back-points li i {
    font-size: 8px;
    color: #5b9cff;
    margin-top: 5px;
    flex-shrink: 0;
}

/* Light theme adjustments */
[data-theme="light"] .speaker-card-front,
[data-theme="light"] .chief-front {
    background: linear-gradient(160deg, rgba(15, 22, 45, 0.94) 0%, rgba(8, 14, 32, 0.98) 100%);
}

[data-theme="light"] .speaker-card-back {
    background: linear-gradient(160deg, rgba(8, 16, 38, 0.97) 0%, rgba(5, 10, 25, 1) 100%);
}

/* Responsive */
@media (max-width: 991px) {
    .speaker-flip-card {
        height: 420px;
    }

    .speaker-name {
        font-size: 18px;
    }
}

@media (max-width: 767px) {
    .speaker-flip-card {
        height: 400px;
        max-width: 360px;
        margin: 0 auto;
    }

    .speaker-back-points li {
        font-size: 12px;
    }

    .speaker-back-name {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .speaker-flip-card {
        height: 380px;
    }

    .speaker-name {
        font-size: 16px;
    }

    .speaker-front-info {
        padding: 0 16px 12px;
    }

    .speaker-back-content {
        padding: 20px 18px 12px;
    }
}