/* Upcoming event detail page styles (moved from upcoming-event-detail.blade.php). */
    :root {
        --page-bg: #ffffff;
        --card-bg: #f6f6f6;
        --text-main: #0d0d0d;
        --border-color: #e5e5e5;
        --radius: 16px;
        --padding: 24px;
        --transition: 0.22s ease-out;
    }

    /* --- OVERFLOW AND CONTAINER ALIGNMENT FIX --- */
    html,
    body {
        overflow-x: hidden;
        width: 100%;
    }

    .container-fluid {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    @media (min-width: 768px) {
        .container-fluid {
            padding-left: 32px !important;
            padding-right: 32px !important;
        }
    }

    /* --- GLOBAL TEXT JUSTIFICATION FOR CONTENT & DESCRIPTIONS --- */
    .event-overview-content,
    .event-overview-content p,
    .event-overview-content div,
    .event-overview-content span,
    .themes-overview-description,
    .themes-overview-description p,
    .themes-overview-description div,
    .themes-overview-description span,
    .theme-box-desc,
    #section-overview p,
    #section-themes p,
    #section-themes .theme-box-desc,
    #section-expectation p:not(.small):not(.section-title),
    .wte-card p:not(.small),
    #section-eligibility p:not(.small):not(.section-title),
    .eligibility-box-desc,
    .eligibility-box-card p,
    #section-how-to-apply p:not(.small):not(.section-title),
    .hta-content p:not(.small),
    #section-selection-criteria p:not(.small):not(.section-title),
    #section-topics p:not(.small):not(.section-title),
    .card-modern-dark p,
    .faq-content,
    .faq-content p,
    .faq-content div,
    .faq-content li,
    .faq-content span,
    #speakerModalRole,
    #speakerModalRole p {
        text-align: justify !important;
        text-justify: inter-word !important;
    }

    /* --- GLOBAL SYMMETRY UTILITIES --- */
    .section-spacing {
        padding-top: 48px;
        padding-bottom: 48px;
    }

    .section-heading-wrapper {
        text-align: center;
        margin-bottom: 26px;
    }

    .section-title {
        font-weight: 700;
        font-size: clamp(28px, 4vw, 36px);
        color: var(--text-main);
        line-height: 1.3;
        margin-bottom: 12px;
    }

    /* --- EQUAL HEIGHT ROW FIX --- */
    @media (min-width: 768px) {
        .flex-stretch-row {
            display: flex;
            flex-wrap: wrap;
        }

        .flex-stretch-row::before,
        .flex-stretch-row::after {
            display: none !important;
        }

        .flex-stretch-row>[class*='col-'] {
            display: flex;
            flex-direction: column;
        }

        .flex-stretch-row>[class*='col-']>div {
            flex: 1 1 auto;
            height: 100%;
        }
    }

    /* Ensure clear horizontal and vertical spacing on all grid items regardless of screen size */
    .flex-stretch-row>[class*='col-'] {
        margin-bottom: 30px;
    }

    .card-modern {
        background: #ffffff;
        border-radius: var(--radius);
        padding: 30px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
        border: 1px solid var(--border-color);
        transition: all var(--transition);
        height: 100%;
        display: flex;
        flex-direction: column;
    }

    .card-modern:hover {
        transform: translateY(-6px);
        box-shadow: 0 16px 32px rgba(252, 203, 6, 0.15);
        border-color: #fccb06;
    }

    .card-modern-dark {
        background: #111;
        color: #fff;
        border-radius: var(--radius);
        padding: 30px;
        border: 1px solid #333;
        transition: all var(--transition);
        height: 100%;
    }

    .card-modern-dark:hover {
        transform: translateY(-6px);
        border-color: #fccb06;
        box-shadow: 0 16px 32px rgba(252, 203, 6, 0.15);
    }

    .empty-state-row {
        opacity: 0.7;
        filter: grayscale(0.5);
    }

    .text-light-gray {
        color: #cccccc !important;
    }

    .text-white {
        color: #ffffff !important;
    }

    .section-title.text-white {
        color: #ffffff !important;
    }

    .card-scholarship {
        background: rgba(17, 17, 17, 0.85);
        border: 2px solid #fccb06;
        border-radius: var(--radius);
        padding: 32px;
        transition: all var(--transition);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        position: relative;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 24px;
    }

    .card-scholarship:hover {
        transform: translateY(-8px);
        box-shadow: 0 15px 40px rgba(252, 203, 6, 0.25);
        background: rgba(17, 17, 17, 1);
    }

    .card-scholarship .title {
        color: #fff !important;
        margin: 0 !important;
    }

    .card-scholarship .num {
        color: #fccb06 !important;
        font-size: 56px;
        font-weight: 700;
        margin: 0 !important;
        line-height: 1;
    }

    .card-scholarship .icon {
        margin: 0 !important;
    }

    .faq-section {
        padding: 0;
        background: transparent;
    }

    .faq-container {
        max-width: 100%;
        padding: 0;
        margin: 0 auto;
        width: 100%;
    }

    .faq-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 22px 28px;
        align-items: start;
        width: 100%;
    }

    @media (max-width: 991px) {
        .faq-list {
            grid-template-columns: 1fr;
            gap: 16px;
        }
    }

    .faq-item {
        background: #ffffff;
        border-radius: 14px;
        border: 1.5px solid #d4dce5;
        border-left: 4px solid #e2e8f0;
        transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
        box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
        margin-bottom: 0;
        overflow: hidden;
    }

    .faq-item:hover {
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
        border-color: #fccb06;
        border-left-color: #fccb06;
        transform: translateY(-2px);
    }

    .faq-item.is-open {
        border-color: #fccb06;
        border-left: 4.5px solid #fccb06;
        box-shadow: 0 10px 28px rgba(0, 0, 0, 0.09), 0 0 14px rgba(252, 203, 6, 0.18);
    }

    .faq-header {
        width: 100%;
        padding: 18px 20px;
        background: transparent;
        border: none;
        display: flex;
        align-items: center;
        justify-content: space-between;
        cursor: pointer;
        font-size: 15.5px;
        font-weight: 700;
        text-align: left;
        gap: 14px;
        line-height: 1.4;
    }

    .faq-question {
        color: #111111;
        font-size: 15.5px;
        font-weight: 700;
        line-height: 1.4;
        transition: color 0.2s ease;
        flex: 1;
    }

    .faq-item:hover .faq-question,
    .faq-item.is-open .faq-question {
        color: #000000;
    }

    .faq-icon {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        background: #f1f4f8;
        position: relative;
        flex-shrink: 0;
        transition: all 0.25s ease;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .faq-icon::before,
    .faq-icon::after {
        content: "";
        position: absolute;
        left: 50%;
        top: 50%;
        width: 14px;
        height: 2px;
        background: #222222;
        transform: translate(-50%, -50%);
        transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        border-radius: 2px;
    }

    .faq-icon::after {
        transform: translate(-50%, -50%) rotate(90deg);
    }

    .faq-item.is-open .faq-icon {
        background: #fccb06;
        transform: rotate(45deg);
    }

    .faq-item.is-open .faq-icon::before,
    .faq-item.is-open .faq-icon::after {
        background: #000000;
    }

    .faq-body {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease;
        padding: 0;
        margin: 0;
    }

    .faq-content {
        padding: 16px 20px 24px 20px;
        border-top: 1px solid #f1f4f8;
        font-size: 14.5px;
        line-height: 1.7;
        color: #4b5563;
    }

    .faq-content p {
        font-size: 14.5px;
        line-height: 1.7;
        margin: 0 0 10px 0;
        color: #4b5563;
    }

    .faq-content p:last-child {
        margin-bottom: 0;
    }

    .faq-content ul,
    .faq-content ol {
        margin: 8px 0 12px 20px;
        padding: 0;
        color: #4b5563;
    }

    .faq-content li {
        margin-bottom: 6px;
        line-height: 1.6;
    }

    /* MOBILE */
    @media (max-width: 480px) {
        .faq-title {
            font-size: clamp(20px, 5vw, 26px);
        }
    }

    /* ===== Alumni Card Slider (Fully Responsive) ===== */

    .yda-alumni-wrap {
        position: relative;
        margin-top: 12px;
    }

    .ydaAlumniSwiper {
        padding-bottom: 0px !important;
    }

    .ydaAlumniSwiper .swiper-slide {
        display: flex;
        justify-content: center;
        height: auto;
        padding-left: 2px;
        padding-right: 2px;
    }

    .ydaAlumniSwiper .swiper-wrapper {
        align-items: stretch;
    }

    /* ✅ Card base - Prominent Elevated White Theme */
    .yda-alumni-card {
        width: 100%;
        max-width: 380px;
        height: 520px;
        border-radius: 18px;
        overflow: hidden;
        background: #ffffff !important;
        border: 1.5px solid #d4dce5 !important;
        border-top: 4px solid #fccb06 !important;
        box-shadow: 0 14px 34px rgba(15, 23, 42, 0.12), 0 3px 10px rgba(15, 23, 42, 0.05) !important;
        display: flex;
        flex-direction: column;
        transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
    }

    .yda-alumni-card:hover {
        transform: translateY(-8px);
        border-color: #fccb06 !important;
        box-shadow: 0 24px 48px rgba(0, 0, 0, 0.16), 0 0 22px rgba(252, 203, 6, 0.28) !important;
    }

    .yda-alumni-preview {
        height: 340px;
        padding: 14px;
        overflow: hidden;
        background: #f1f4f8;
        border-bottom: 1px solid #e2e8f0;
    }

    .yda-alumni-preview img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: top;
        display: block;
        border-radius: 12px;
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
        border: 1px solid rgba(0, 0, 0, 0.05);
        background: #ffffff;
        transition: transform 0.35s ease;
    }

    .yda-alumni-card:hover .yda-alumni-preview img {
        transform: scale(1.03);
    }

    .yda-alumni-footer {
        position: relative;
        z-index: 2;
        padding: 16px 18px 18px;
        margin-top: auto;
        background: #ffffff;
        border-top: 1px solid #edf1f5;
    }

    .yda-alumni-user {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-bottom: 14px;
    }

    .yda-alumni-avatar {
        width: 48px;
        height: 48px;
        border-radius: 50%;
        overflow: hidden;
        border: 2px solid #fccb06;
        box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
        flex: 0 0 48px;
    }

    .yda-alumni-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .yda-alumni-name {
        color: #111111;
        font-weight: 700;
        font-size: 16px;
        line-height: 1.25;
        transition: color 0.2s ease;
    }

    .yda-alumni-card:hover .yda-alumni-name {
        color: #000000;
    }

    .yda-alumni-desig {
        color: #666666;
        font-size: 12px;
        margin-top: 3px;
        line-height: 1.35;
    }

    /* ✅ View LinkedIn Button - Matches View Gallery Button */
    .yda-alumni-btn {
        width: 100%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 11px 20px;
        border-radius: 30px;
        background-color: #fccb06 !important;
        color: #000000 !important;
        border: none !important;
        text-decoration: none !important;
        font-weight: 600;
        font-size: 13.5px;
        letter-spacing: 0.5px;
        text-transform: none !important;
        animation: none !important;
        box-shadow: 0 4px 14px rgba(252, 203, 6, 0.35);
        transition: all 0.25s ease;
        cursor: pointer;
    }

    .yda-alumni-btn:hover {
        background-color: #000000 !important;
        color: #fccb06 !important;
        border: none !important;
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3) !important;
    }

    /* ✅ Swiper arrows */
    .ydaAlumniSwiper .swiper-button-prev,
    .ydaAlumniSwiper .swiper-button-next {
        width: 44px;
        height: 44px;
        border-radius: 50%;
        background: #ffffff;
        color: #111111;
        border: 1px solid #eef0f3;
        box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
        transition: all 0.25s ease;
    }

    .ydaAlumniSwiper .swiper-button-prev:hover,
    .ydaAlumniSwiper .swiper-button-next:hover {
        background: #fccb06;
        color: #000000;
        border-color: #fccb06;
        transform: scale(1.06);
    }

    .ydaAlumniSwiper .swiper-button-prev:after,
    .ydaAlumniSwiper .swiper-button-next:after {
        font-size: 16px;
        font-weight: 900;
    }


    /* ✅ Pagination dots */
    .ydaAlumniSwiper .swiper-pagination {
        position: static !important;
        margin-top: 16px;
        text-align: center;
    }

    .ydaAlumniSwiper .swiper-pagination-bullet {
        opacity: 0.35;
        transform: scale(0.95);
    }

    .ydaAlumniSwiper .swiper-pagination-bullet-active {
        opacity: 1;
        background: #fccb06;
        transform: scale(1.05);
    }

    /* =========================
   Responsive Breakpoints
   ========================= */

    /* Large Desktop */
    @media (min-width: 1400px) {
        .yda-alumni-card {
            max-width: 400px;
            height: 540px;
        }

        .yda-alumni-preview {
            height: 360px;
        }
    }

    /* Laptop / Desktop */
    @media (max-width: 1200px) {
        .yda-alumni-card {
            max-width: 360px;
            height: 510px;
        }

        .yda-alumni-preview {
            height: 330px;
        }
    }

    /* Tablet */
    @media (max-width: 992px) {
        .yda-alumni-card {
            max-width: 340px;
            height: 500px;
        }

        .yda-alumni-preview {
            height: 320px;
            padding: 12px;
        }

        .ydaAlumniSwiper .swiper-button-prev,
        .ydaAlumniSwiper .swiper-button-next {
            width: 40px;
            height: 40px;
        }
    }

    /* Mobile */
    @media (max-width: 768px) {
        .yda-alumni-card {
            max-width: 92vw;
            height: 480px;
        }

        .yda-alumni-preview {
            height: 290px;
            padding: 12px;
        }
    }

    /* Small Mobile */
    @media (max-width: 480px) {
        .yda-alumni-card {
            height: 460px;
        }

        .yda-alumni-preview {
            height: 270px;
            padding: 10px;
        }

        .yda-alumni-name {
            font-size: 15px;
        }

        .yda-alumni-btn {
            padding: 11px 12px;
            font-size: 13px;
        }
    }



    /* Hero Section Responsive Layout & Scaling */
    .slide-tmargin {
        margin-top: 0 !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        width: 100% !important;
        float: left;
        position: relative;
    }

    #rev_slider,
    .rev_slider,
    .rev_slider_wrapper {
        width: 100% !important;
        height: 520px !important;
        max-height: 520px !important;
    }

    /* Plain-image event hero: same sizes as the old slider, cover-fit and centred */
    .yda-event-hero {
        width: 100%;
        height: 520px;
        overflow: hidden;
    }
    .yda-event-hero img {
        display: block;
        width: 100%;
        height: 100%;
        max-width: none;
        object-fit: cover;
        object-position: center center;
    }
    @media (min-width: 1400px) { .yda-event-hero { height: 560px; } }
    @media (max-width: 1199px) { .yda-event-hero { height: 440px; } }
    @media (max-width: 991px)  { .yda-event-hero { height: 360px; } }
    @media (max-width: 767px)  { .yda-event-hero { height: 250px; } }
    @media (max-width: 480px)  { .yda-event-hero { height: 190px; } }

    #rev_slider .rev-slidebg,
    #rev_slider .defaultimg {
        object-fit: cover !important;
        object-position: center center !important;
        width: 100% !important;
        height: 100% !important;
    }

    .event-title-overlay {
        font-size: clamp(16px, 2.2vw, 26px) !important;
        line-height: 1.35 !important;
        padding: 10px 22px !important;
        max-width: 85% !important;
        border-radius: 12px !important;
        background: rgba(10, 14, 26, 0.72) !important;
        backdrop-filter: blur(8px) !important;
        -webkit-backdrop-filter: blur(8px) !important;
        border: 1px solid rgba(255, 255, 255, 0.18) !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4) !important;
        text-align: center !important;
        white-space: normal !important;
        word-break: break-word !important;
    }

    @media (min-width: 1400px) {
        #rev_slider,
        .rev_slider,
        .rev_slider_wrapper {
            height: 560px !important;
            max-height: 560px !important;
        }
    }

    @media (max-width: 1199px) {
        #rev_slider,
        .rev_slider,
        .rev_slider_wrapper {
            height: 440px !important;
            max-height: 440px !important;
        }
    }

    @media (max-width: 991px) {
        #rev_slider,
        .rev_slider,
        .rev_slider_wrapper {
            height: 360px !important;
            max-height: 360px !important;
        }
    }

    @media (max-width: 767px) {
        #rev_slider,
        .rev_slider,
        .rev_slider_wrapper {
            height: 250px !important;
            max-height: 250px !important;
        }


        /* Safeguard typography on tight screen widths to prevent occlusion */
        .event-title-overlay {
            font-size: 13px !important;
            line-height: 1.3 !important;
            padding: 6px 12px !important;
            max-width: 92% !important;
            border-radius: 8px !important;
        }
        .event-title-overlay .ce-title-line {
            margin: 4px auto 0 auto !important;
            width: 25px !important;
        }

        /* Scale clock downward to fit narrower container thresholds natively */
        .clock {
            transform: scale(0.75) !important;
            margin: 28px auto 12px auto !important;
            transform-origin: center center;
        }


        /* Optimization: Reduce empty spacing gaps on compact mobile viewports */
        .section-spacing {
            padding-top: 32px !important;
            padding-bottom: 32px !important;
        }

        /* Optimization: Reclaim space in feature cards avoiding narrow text columns */
        .wte-card {
            padding: 20px 16px !important;
        }

        /* Correction: Prevent circular process steps numbers from clipping left boundary */
        .hta-timeline {
            padding-left: 45px !important;
        }
        .hta-step::before {
            left: -40px !important;
        }
    }

    @media (max-width: 480px) {
        #rev_slider,
        .rev_slider,
        .rev_slider_wrapper {
            height: 190px !important;
            max-height: 190px !important;
        }
    }

    .clock {
        transform: scale(1.2);
        display: flex;
        justify-content: center;
    }

    /* Circle rotation */
    @keyframes spin {
        0% {
            transform: rotate(0deg);
        }

        100% {
            transform: rotate(360deg);
        }
    }

    /* .flex-stretch-row {
        display: flex;
        flex-wrap: wrap;
    }

    .flex-stretch-row>[class^="col-"] {
        display: flex;
    }

    .flex-stretch-row .ce-feature-box-30 {
        flex: 1;
    } */

    .section-side-image .container {
        position: relative;
        z-index: 10;
    }

    /* Apply hover effects ONLY within this section */
    .num_of_scholarship .text-box {
        transition: all 0.35s ease;
        border: 1px solid #eee;
        border-radius: 10px;
        /*background: rgba(255, 255, 255, 0); !* slight transparent for dark bg *!*/
        padding: 25px;
        backdrop-filter: blur(3px);
        margin-top: 20px;
        /* Added top margin */
    }

    .num_of_scholarship .text-box:hover {
        transform: translateY(-12px);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.35);
        background: rgba(255, 255, 255, 0.15);
    }

    .num_of_scholarship .text-box .icon-plain-msmall {
        transition: all 0.35s ease;
    }

    .num_of_scholarship .text-box:hover .icon-plain-msmall {
        transform: scale(1) rotate(5deg);
    }

    .countdown-card {
        max-width: 950px;
        margin: 0 auto;
        background: #f3f3f3;
        border-radius: 20px;
        padding: 30px 20px;
        text-align: center;
        color: black;
        box-shadow: 0 20px 18px rgba(58, 57, 57, 0.1);
    }

    /* Bright, Clean Light Theme FlipClock Digits (resolves dark timer look) */
    .countdown-card .flip-clock-wrapper ul {
        background: #ffffff !important;
        border: 1px solid #d4d4d4 !important;
        border-radius: 8px !important;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08) !important;
    }
    .countdown-card .flip-clock-wrapper ul li a div div.inn {
        background-color: #ffffff !important;
        color: #111111 !important;
        text-shadow: none !important;
        border-radius: 8px !important;
    }
    .countdown-card .flip-clock-wrapper ul li a div.up:after {
        background-color: rgba(0, 0, 0, 0.12) !important;
        height: 1px !important;
    }
    .countdown-card .flip-clock-dot {
        background: #fccb06 !important;
        box-shadow: 0 0 3px rgba(252, 203, 6, 0.6) !important;
    }
    .countdown-card .flip-clock-divider .flip-clock-label {
        color: #444444 !important;
        font-weight: 700 !important;
        font-size: 13px !important;
        text-transform: uppercase !important;
        letter-spacing: 0.6px !important;
        top: -1.7em !important;
    }
    .countdown-card .flip-clock-wrapper ul.play li.flip-clock-before .up .shadow,
    .countdown-card .flip-clock-wrapper ul.play li.flip-clock-active .up .shadow,
    .countdown-card .flip-clock-wrapper ul.play li.flip-clock-before .down .shadow,
    .countdown-card .flip-clock-wrapper ul.play li.flip-clock-active .down .shadow {
        background: none !important;
    }

    .countdown-title {
        font-weight: 700;
        margin-bottom: 25px;
    }

    .countdown-wrapper {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 25px;
        flex-wrap: wrap;
    }

    .time-box {
        flex: 1;
    }

    .time-value {
        display: block;
        font-size: 28px;
        font-weight: 700;
    }

    .time-label {
        font-size: 14px;
        margin-top: 5px;
        display: block;
    }

    /* --- EVENT OVERVIEW (Content Left, Cover Image Right) --- */
    .event-overview-row {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
    }
    .event-overview-img-wrap {
        position: relative;
        overflow: hidden;
        border-radius: 20px;
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
        background: #ffffff;
        width: 100%;
    }
    .event-overview-img {
        width: 100%;
        height: auto;
        max-height: 480px;
        object-fit: cover;
        display: block;
        border-radius: 20px;
    }
    @media (max-width: 991px) {
        .event-overview-img-wrap {
            margin-top: 25px;
        }
    }

    /* --- CARD BASE --- */
    .cbp-item {
        background-color: #e4e4e4;
        border-radius: 6px;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
        overflow: visible;
        /* allow content to expand */
        transition: transform 0.3s ease, box-shadow 0.3s ease;

        display: flex;
        flex-direction: column;
    }

    .cbp-item:hover {
        transform: translateY(-4px);
        box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
    }

    /* --- IMAGE --- */
    .cbp-item img {
        width: 100%;
        height: 200px;
        object-fit: cover;
        display: block;
        transition: none !important;
    }

    /* Prevent CubePortfolio hover movement */
    .cbp-caption,
    .cbp-caption-defaultWrap,
    .cbp-caption-activeWrap {
        transform: none !important;
        transition: none !important;
    }

    /* --- RESTORE HOVER OVERLAY --- */
    .cbp-caption {
        position: relative;
    }

    .cbp-caption-activeWrap {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.55);
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s ease;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .cbp-item:hover .cbp-caption-activeWrap {
        opacity: 1;
        visibility: visible;
    }

    /* --- BUTTON STYLE --- */
    .cbp-l-caption-body a {
        background: #00bcd4;
        color: #fff;
        padding: 10px 20px;
        border-radius: 4px;
        text-decoration: none;
        font-weight: 600;
        transition: background 0.3s ease;
    }

    .cbp-l-caption-body a:hover {
        background: #0097a7;
    }

    /* --- INFO SECTION BELOW IMAGE --- */
    .cbp-l-grid-projects-info {
        text-align: left;
        padding: 15px 10px 20px;

        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        background-color: #e4e4e4;
        flex: none;
        /* allow content to define height */
    }

    .cbp-l-grid-projects-title {
        font-size: 18px;
        font-weight: 700;
        color: #2a3f7c;
        margin-bottom: 8px;
    }

    .cbp-l-grid-projects-meta {
        font-size: 13px;
        color: black;
    }

    /* ensure title & meta wrap properly */
    .cbp-l-grid-projects-title,
    .cbp-l-grid-projects-meta {
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: unset !important;
        display: block;
        word-break: break-word;
    }

    /* --- ROW / COLUMN FLEX FIX --- */
    #js-grid-slider-projects {
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
        /* optional spacing between cards */
    }

    /* --- CARD WIDTH FOR 3 COLUMNS + RESPONSIVE --- */
    .cbp-item {
        flex: 1 1 calc(33.333% - 20px);
        /* 3 cards per row */
    }

    @media (max-width: 992px) {
        .cbp-item {
            flex: 1 1 calc(50% - 20px);
        }
    }

    @media (max-width: 768px) {
        .cbp-item {
            flex: 1 1 100%;
        }
    }

    /* --- PARTNER SECTION RESPONSIVENESS FIX --- */
    .clients-list.grid-cols-4 {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr);
        gap: 15px;
        align-items: center;
    }

    @media (max-width: 768px) {
        .clients-list.grid-cols-4 {
            grid-template-columns: repeat(2, 1fr);
        }
    }

    @media (max-width: 480px) {
        .clients-list.grid-cols-4 {
            grid-template-columns: 1fr;
        }
    }

    .clients-list.grid-cols-4 li {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
    }

    .clients-list.grid-cols-4 img {
        max-width: 100%;
        height: auto;
        max-height: 90px;
        object-fit: contain;
    }

    /* Button styling */
    .apply-btn {
        background-color: #fccb06;
        color: #000000;
        padding: 10px 25px;
        text-decoration: none;
        font-weight: 600;
        letter-spacing: 0.5px;
        border-radius: 30px;
        box-shadow: 0 0 0 transparent;
        transition: all 0.3s ease;
    }

    .apply-btn:hover {
        box-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
    }

    /* Attention pulse: a yellow ring grows out from behind the button and fades.
       The label keeps full contrast, and only transform/opacity animate, so the
       browser runs it on the GPU without repainting the page every frame. */
    .apply-btn {
        position: relative;
        isolation: isolate;
    }

    .apply-btn::after {
        content: "";
        position: absolute;
        inset: 0;
        z-index: -1;
        border-radius: inherit;
        background: #fccb06;
        pointer-events: none;
        will-change: transform, opacity;
        animation: apply-glow 1.2s infinite ease-out;
    }

    @keyframes apply-glow {
        0% {
            transform: scale(1);
            opacity: 0.75;
        }

        70% {
            transform: scale(1.12, 1.45);
            opacity: 0;
        }

        100% {
            transform: scale(1.12, 1.45);
            opacity: 0;
        }
    }

    .btn-yda-view-gallery::after {
        display: none;
    }

    @media (prefers-reduced-motion: reduce) {
        .apply-btn::after {
            animation: none;
            opacity: 0;
        }
    }

    .read-more-link {
        color: #2563eb;
        font-weight: 500;
        text-decoration: none;
        transition: all 0.3s ease;
    }

    .read-more-link:hover {
        color: #ffcc00;
        text-decoration: underline;
    }

    .event-title-overlay {
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100% !important;
        width: 90vw !important;
        display: block !important;
        padding: 15px 15px !important;
        margin: 0 auto 60px !important;
        /* Bottom margin: 30px */
        text-align: center !important;
        box-sizing: border-box;
        position: relative;
        /* Agar positioning issues ho */
        bottom: 20px !important;
        /* Neeche move karne ke liye */
    }

    /* --- NEW UI ENHANCEMENTS CSS --- */

    /* What to Expect */
    .wte-card {
        background: var(--card-bg);
        border-radius: var(--radius);
        padding: 30px;
        text-align: center;
        border: 1px solid var(--border-color);
        transition: all var(--transition);
        height: 100%;
        position: relative;
        overflow: hidden;
        z-index: 1;
    }

    .wte-card::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: #fccb06;
        transform: translateY(100%);
        transition: all 0.4s ease;
        z-index: -1;
    }

    .wte-card:hover {
        transform: translateY(-8px);
        border-color: #fccb06;
        box-shadow: 0 15px 30px rgba(252, 203, 6, 0.15);
    }

    .wte-card:hover::before {
        transform: translateY(0);
    }

    .wte-card:hover h4,
    .wte-card:hover p,
    .wte-card:hover .wte-icon {
        color: #000 !important;
    }

    .wte-icon {
        font-size: 40px;
        color: #fccb06;
        margin-bottom: 20px;
        transition: all var(--transition);
    }

    /* Who Should Apply */
    .wsa-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 24px;
        margin-top: 30px;
    }

    .wsa-item {
        background: #111;
        color: #fff;
        padding: 24px;
        border-radius: var(--radius);
        display: flex;
        align-items: flex-start;
        gap: 16px;
        border-left: 4px solid #fccb06;
        transition: all 0.3s ease;
        height: 100%;
    }

    .wsa-item:hover {
        background: #1a1a1a;
        transform: translateX(6px);
    }

    .wsa-item i {
        color: #fccb06;
        font-size: 24px;
        margin-top: 4px;
    }

    /* How to Apply */
    .hta-timeline {
        position: relative;
        padding-left: 40px;
        margin-top: 40px;
    }

    .hta-timeline::before {
        content: '';
        position: absolute;
        left: 15px;
        top: 0;
        bottom: 0;
        width: 2px;
        background: #e5e5e5;
    }

    .hta-step {
        position: relative;
        margin-bottom: 30px;
    }

    .hta-step::before {
        content: attr(data-step);
        position: absolute;
        left: -53px;
        top: 0;
        width: 30px;
        height: 30px;
        background: #fccb06;
        color: #000;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: bold;
        font-size: 14px;
        z-index: 2;
    }

    .hta-content {
        background: #fff;
        padding: 24px;
        border-radius: var(--radius);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
        border: 1px solid var(--border-color);
        transition: all 0.3s ease;
    }

    .hta-step:hover .hta-content {
        border-color: #fccb06;
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(252, 203, 6, 0.15);
    }

    /* Event Success Stories */
    .ess-card {
        background: #fff;
        border-radius: var(--radius);
        overflow: hidden;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
        margin-bottom: 30px;
        transition: all 0.3s ease;
        border-bottom: 4px solid transparent;
    }

    .ess-card:hover {
        transform: translateY(-5px);
        border-bottom-color: #fccb06;
    }

    /* ========================================================= */
    /* INTERACTIVE ENHANCEMENTS & CRO UPGRADES */
    /* ========================================================= */

    html {
        scroll-behavior: smooth;
    }

    /* 1. Interactive Pricing & Scholarship Cards */
    .pkg-card-interactive {
        position: relative;
        background: #141414 !important;
        border: 1px solid rgba(255, 255, 255, 0.12) !important;
        border-radius: 18px !important;
        padding: 34px 24px 28px !important;
        transition: all 0.32s cubic-bezier(0.16, 1, 0.3, 1) !important;
        display: flex;
        flex-direction: column;
        height: 100%;
        overflow: hidden !important;
    }
    .pkg-card-interactive:hover {
        transform: translateY(-10px) !important;
        border-color: #fccb06 !important;
        box-shadow: 0 20px 45px rgba(0, 0, 0, 0.7), 0 0 25px rgba(252, 203, 6, 0.2) !important;
    }
    .pkg-card-img-wrap {
        margin: -34px -24px 22px -24px;
        width: calc(100% + 48px);
        height: 195px;
        overflow: hidden;
        border-top-left-radius: 17px;
        border-top-right-radius: 17px;
        flex-shrink: 0;
        background: #1e1e1e;
    }
    .pkg-card-img-wrap img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }
    .pkg-benefit-item {
        display: block;
        padding: 7px 10px;
        border-radius: 8px;
        transition: all 0.2s ease;
        color: rgba(255, 255, 255, 0.88);
        font-size: 13.5px;
        line-height: 1.5;
        margin-bottom: 3px;
    }
    .pkg-benefit-item:hover {
        background: rgba(252, 203, 6, 0.08);
        color: #ffffff;
        transform: translateX(3px);
    }
    .pkg-cta-btn {
        background: linear-gradient(135deg, #fccb06 0%, #ffd838 100%) !important;
        color: #111111 !important;
        font-weight: 800 !important;
        font-size: 14px !important;
        letter-spacing: 0.6px !important;
        text-transform: uppercase !important;
        border-radius: 30px !important;
        padding: 13px 24px !important;
        box-shadow: 0 6px 18px rgba(252, 203, 6, 0.35) !important;
        transition: all 0.25s ease !important;
        display: block !important;
        width: 100% !important;
        text-align: center !important;
        text-decoration: none !important;
    }
    .pkg-cta-btn:hover {
        transform: translateY(-2px) !important;
        box-shadow: 0 8px 24px rgba(252, 203, 6, 0.55) !important;
        color: #000000 !important;
    }

    /* 4. Interactive "How to Apply" Stepper */
    .hta-step-interactive {
        position: relative;
        margin-bottom: 24px;
        transition: transform 0.2s ease;
    }
    .hta-step-interactive:hover .hta-content {
        border-color: #fccb06 !important;
        box-shadow: 0 10px 28px rgba(252, 203, 6, 0.18) !important;
        transform: translateX(4px);
    }
    .hta-step-interactive:hover::before {
        background: #fccb06 !important;
        color: #111 !important;
        box-shadow: 0 0 14px rgba(252, 203, 6, 0.7);
        transform: scale(1.1);
    }

    /* 5. Interactive FAQ Search & Category Filter Pills */
    .faq-search-box {
        position: relative;
        max-width: 620px;
        margin: 0 auto 24px auto;
    }
    .faq-search-box input {
        width: 100%;
        padding: 14px 20px 14px 46px;
        border-radius: 30px;
        border: 2px solid #e5e5e5;
        font-size: 15px;
        outline: none;
        transition: all 0.25s ease;
        background: #ffffff;
    }
    .faq-search-box input:focus {
        border-color: #fccb06;
        box-shadow: 0 0 0 4px rgba(252, 203, 6, 0.15);
    }
    .faq-search-icon {
        position: absolute;
        left: 18px;
        top: 50%;
        transform: translateY(-50%);
        color: #888888;
        font-size: 16px;
    }
    .faq-item.is-open {
        border-left: 4px solid #fccb06 !important;
    }

    /* 6. Speaker Quick-Bio Modal Styling */
    .btn-speaker-bio {
        background: transparent;
        color: #2563eb;
        border: 1px solid rgba(37, 99, 235, 0.3);
        padding: 5px 14px;
        border-radius: 20px;
        font-size: 13px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.2s ease;
    }
    .btn-speaker-bio:hover {
        background: #fccb06;
        border-color: #fccb06;
        color: #111111;
        transform: translateY(-2px);
    }
    .speaker-modal-backdrop {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.75);
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
        z-index: 10000;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 20px;
    }
    .speaker-modal-card {
        background: #141414;
        border: 2px solid #fccb06;
        border-radius: 18px;
        max-width: 650px;
        width: 100%;
        box-shadow: 0 25px 60px rgba(0,0,0,0.8);
        position: relative;
        padding: 28px;
        animation: modalZoom 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }
    @keyframes modalZoom {
        from { transform: scale(0.92); opacity: 0; }
        to { transform: scale(1); opacity: 1; }
    }
    .speaker-modal-close {
        position: absolute;
        top: 15px;
        right: 18px;
        background: transparent;
        border: none;
        color: #fccb06;
        font-size: 32px;
        cursor: pointer;
        line-height: 1;
        transition: transform 0.2s;
    }
    .speaker-modal-close:hover {
        transform: rotate(90deg);
        color: #ffffff;
    }
    .speaker-modal-content-grid {
        display: flex;
        gap: 24px;
        align-items: flex-start;
    }
    .speaker-modal-photo {
        width: 160px;
        height: 190px;
        object-fit: cover;
        border-radius: 12px;
        border: 2px solid rgba(252, 203, 6, 0.4);
        flex-shrink: 0;
    }
    @media (max-width: 600px) {
        .speaker-modal-content-grid {
            flex-direction: column;
            align-items: center;
            text-align: center;
        }
    }

    /* 7. Themes & Objectives Section (SS Reference Layout) */
    .themes-overview-row {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        margin-bottom: 50px;
    }
    .themes-overview-img-wrap {
        width: 100%;
        border-radius: 24px;
        overflow: hidden;
        box-shadow: 0 20px 45px rgba(0, 0, 0, 0.55);
        border: 1px solid rgba(255, 255, 255, 0.1);
        background: #111111;
    }
    .themes-overview-img {
        width: 100%;
        height: 380px;
        object-fit: cover;
        display: block;
        transition: transform 0.4s ease;
    }
    .themes-overview-img-wrap:hover .themes-overview-img {
        transform: scale(1.025);
    }
    .themes-overview-content {
        padding-left: 20px;
    }
    @media (max-width: 991px) {
        .themes-overview-content {
            padding-left: 0;
            margin-top: 30px;
        }
        .themes-overview-img {
            height: 280px;
        }
    }
    .theme-box-card {
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 18px;
        padding: 32px 24px 28px;
        transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        height: 100%;
        display: flex;
        flex-direction: column;
    }
    .theme-box-card:hover {
        transform: translateY(-8px);
        border-color: #fccb06;
        background: rgba(255, 255, 255, 0.08);
        box-shadow: 0 20px 45px rgba(0, 0, 0, 0.65), 0 0 24px rgba(252, 203, 6, 0.2);
    }
    .theme-box-icon {
        font-size: 32px;
        color: #fccb06;
        margin-bottom: 18px;
        display: inline-block;
        line-height: 1;
    }
    .theme-box-title {
        color: #ffffff;
        font-size: 15px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        line-height: 1.4;
        margin-bottom: 12px;
    }
    .theme-box-desc {
        color: rgba(255, 255, 255, 0.75);
        font-size: 14px;
        line-height: 1.65;
        margin: 0;
        flex-grow: 1;
    }

    /* 8. Who Should Apply Section (Side-by-side with Vertically Aligned Boxes) */
    .eligibility-row {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
    }
    .eligibility-boxes-col {
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding-left: 25px;
    }
    .eligibility-title-wrap {
        margin-bottom: 24px;
        width: 100%;
    }
    .eligibility-box-card {
        background: #111111;
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-left: 4px solid #fccb06;
        border-radius: 14px;
        padding: 20px 22px;
        margin-bottom: 16px;
        display: flex;
        align-items: flex-start;
        gap: 16px;
        transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
    }
    .eligibility-box-card:hover {
        transform: translateX(6px);
        border-color: #fccb06;
        background: #1a1a1a;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 16px rgba(252, 203, 6, 0.15);
    }
    .eligibility-box-icon {
        width: 44px;
        height: 44px;
        border-radius: 10px;
        background: rgba(252, 203, 6, 0.15);
        color: #fccb06;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 20px;
        flex-shrink: 0;
        transition: all 0.25s ease;
    }
    .eligibility-box-card:hover .eligibility-box-icon {
        background: #fccb06;
        color: #111111;
        transform: scale(1.08);
    }
    .eligibility-box-title {
        color: #ffffff;
        font-size: 16px;
        font-weight: 700;
        margin: 0 0 4px 0;
        line-height: 1.35;
    }
    .eligibility-box-sub {
        font-size: 12.5px;
        color: #fccb06;
        font-weight: 600;
        display: block;
        margin-bottom: 4px;
    }
    .eligibility-box-desc {
        color: rgba(255, 255, 255, 0.75);
        font-size: 14px;
        line-height: 1.6;
        margin: 0;
    }
    .eligibility-img-wrap {
        width: 100%;
        height: 100%;
        min-height: 480px;
        border-radius: 24px;
        overflow: hidden;
        box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
        background: #141414;
        border: 1px solid rgba(255, 255, 255, 0.12);
    }
    .eligibility-side-img {
        width: 100%;
        height: 100%;
        min-height: 480px;
        object-fit: cover;
        display: block;
        transition: transform 0.4s ease;
    }
    .eligibility-img-wrap:hover .eligibility-side-img {
        transform: scale(1.025);
    }
    @media (max-width: 991px) {
        .eligibility-boxes-col {
            padding-left: 15px;
            padding-right: 15px;
            margin-top: 30px;
        }
        .eligibility-img-wrap,
        .eligibility-side-img {
            min-height: 320px;
            height: 320px;
        }
    }

    /* 9. How to Apply Section (Header + Steps on Left, Image on Right) */
    .hta-row {
        display: flex;
        flex-wrap: wrap;
        align-items: stretch;
    }
    .hta-content-col {
        padding-right: 30px;
    }
    .hta-content-col .hta-step:last-child {
        margin-bottom: 0;
    }
    .hta-img-col {
        display: flex;
    }
    /* Image height follows the left column instead of forcing its own height */
    .hta-img-wrap {
        position: relative;
        flex: 1 1 auto;
        width: 100%;
        min-height: 360px;
        border-radius: 20px;
        overflow: hidden;
        box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
        background: #f8f9fa;
        border: 1px solid rgba(0, 0, 0, 0.06);
    }
    /* Image fills the whole frame (same as Who Should Apply), no empty side space */
    .hta-side-img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: transform 0.4s ease;
    }
    .hta-img-wrap:hover .hta-side-img {
        transform: scale(1.025);
    }
    .hta-header-wrap {
        margin-bottom: 24px;
    }
    /* Tighter step cards, matching the Who Should Apply boxes */
    .hta-content-col .hta-step-interactive {
        margin-bottom: 16px;
    }
    .hta-content-col .hta-content {
        padding: 20px 22px;
    }
    /* Inner spacing matches the Who Should Apply box text */
    .hta-content h4 {
        margin: 0 0 4px 0;
        line-height: 1.35;
    }
    .hta-content p {
        margin: 0;
    }
    .hta-content p.small {
        margin-bottom: 4px;
    }
    .hta-content p:last-child {
        margin-bottom: 0 !important;
    }
    @media (max-width: 991px) {
        .hta-content-col {
            padding-right: 15px;
            margin-bottom: 30px;
        }
        .hta-img-col {
            width: 100%;
        }
        /* Stacked layout: fixed-height cover frame, same as Who Should Apply */
        .hta-img-wrap {
            min-height: 320px;
            height: 320px;
        }
    }

/* ---- gallery / lightbox ---- */
.yda-gallery-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16) !important;
}
.yda-gallery-card:hover .yda-gallery-thumb {
    transform: scale(1.05);
}
.yda-gallery-card:hover .yda-gallery-overlay {
    opacity: 1 !important;
}
.btn-yda-view-gallery {
    animation: none !important;
    text-transform: none !important;
}
.btn-yda-view-gallery:hover {
    background-color: #fccb06 !important;
    color: #000000 !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25) !important;
    transform: translateY(-2px);
}
.yda-lightbox-btn-close:hover {
    color: #fccb06 !important;
    opacity: 1 !important;
}
.yda-lightbox-nav:hover {
    background: #fccb06 !important;
    color: #000000 !important;
    border-color: #fccb06 !important;
}

/* Creative Event Cards for Modal */
.yda-modal-event-card {
    display: flex;
    align-items: center;
    background: #181818;
    border: 1px solid #2a2a2a;
    border-left: 4px solid #fccb06;
    border-radius: 14px;
    padding: 14px 16px;
    text-decoration: none !important;
    transition: all 0.28s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
    height: 100%;
}
.yda-modal-event-card:hover {
    background: #202020;
    border-color: #fccb06;
    border-left: 5px solid #fccb06;
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(252, 203, 6, 0.22);
    text-decoration: none !important;
}
.yda-modal-card-thumb-wrap {
    width: 72px;
    height: 72px;
    min-width: 72px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    background: #252525;
    border: 1px solid rgba(252, 203, 6, 0.3);
    margin-right: 14px;
    flex-shrink: 0;
}
.yda-modal-card-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}
.yda-modal-event-card:hover .yda-modal-card-thumb {
    transform: scale(1.08);
}
.yda-modal-card-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #222222;
    color: #fccb06;
    font-size: 22px;
}
.yda-modal-card-cam-icon {
    position: absolute;
    bottom: 3px;
    right: 3px;
    background: rgba(0, 0, 0, 0.75);
    color: #fccb06;
    font-size: 9px;
    width: 18px;
    height: 18px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.yda-modal-card-content {
    flex: 1;
    min-width: 0;
    padding-right: 10px;
}
.yda-modal-card-title {
    color: #ffffff;
    font-size: 14.5px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 5px 0;
    transition: color 0.2s ease;
    word-break: break-word;
}
.yda-modal-event-card:hover .yda-modal-card-title {
    color: #ffffff;
}
.yda-modal-card-location {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #fccb06;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 4px;
}
.yda-modal-card-location i {
    color: #fccb06;
    font-size: 14px;
    flex-shrink: 0;
}
.yda-modal-card-gallery-hint {
    color: #8c8c8c;
    font-size: 11.5px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.2s ease;
}
.yda-modal-card-gallery-hint i {
    color: #fccb06;
    font-size: 11px;
}
.yda-modal-event-card:hover .yda-modal-card-gallery-hint {
    color: #d1d1d1;
}
.yda-modal-card-arrow {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 50%;
    background: #222222;
    color: #fccb06;
    border: 1px solid rgba(252, 203, 6, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.25s ease;
}
.yda-modal-event-card:hover .yda-modal-card-arrow {
    background: #fccb06;
    color: #000000;
    border-color: #fccb06;
    transform: translateX(3px);
}
#btnClosePreviousEventsModal:hover {
    transform: rotate(90deg);
    opacity: 1 !important;
}
@keyframes ydaModalPop {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: scale(1); }
}
.ydaPastEventsSwiper .swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.6) !important;
    opacity: 0.7;
}
.ydaPastEventsSwiper .swiper-pagination-bullet-active {
    background: #fccb06 !important;
    opacity: 1 !important;
}

/* Past Events Dark Cards (Matching above dark sections) */
.past-event-dark-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
    background: #141414;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: all 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}
.past-event-dark-card:hover {
    transform: translateY(-8px);
    border-color: #fccb06;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.7), 0 0 22px rgba(252, 203, 6, 0.2);
}
.past-event-dark-card .past-event-card-img-wrap {
    position: relative;
    overflow: hidden;
    height: 240px;
}
.past-event-dark-card .past-event-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.past-event-dark-card:hover .past-event-card-img {
    transform: scale(1.06);
}
.past-event-dark-card .past-event-card-body {
    background: #141414;
    padding: 22px 22px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.past-event-dark-card .past-event-card-title {
    color: #ffffff !important;
    font-size: 16.5px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 14px 0;
    min-height: 46px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.25s ease;
}
.past-event-dark-card:hover .past-event-card-title {
    color: #fccb06 !important;
}
.past-event-dark-card .past-event-meta-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13.5px;
    font-weight: 600;
}
.past-event-dark-card .past-event-meta-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: rgba(252, 203, 6, 0.12);
    color: #fccb06;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
    border: 1px solid rgba(252, 203, 6, 0.25);
    transition: all 0.25s ease;
}
.past-event-dark-card:hover .past-event-meta-icon {
    background: #fccb06;
    color: #000000;
}
.past-event-dark-card .past-event-card-footer {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.past-event-dark-card .past-event-arrow-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #222222;
    color: #fccb06;
    border: 1px solid rgba(252, 203, 6, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all 0.25s ease;
}
.past-event-dark-card:hover .past-event-arrow-circle {
    background: #fccb06;
    color: #000000;
    border-color: #fccb06;
    transform: translateX(3px);
}
@media (max-width: 767px) {
    .yda-gallery-card { height: 140px !important; }
    .yda-events-modal-dialog { padding: 24px 16px !important; }
    .yda-modal-card-thumb-wrap { width: 58px; height: 58px; min-width: 58px; margin-right: 10px; }
    .yda-modal-card-title { font-size: 13.5px; }
    .yda-modal-card-location { font-size: 12px; }
    .yda-modal-card-arrow { width: 32px; height: 32px; min-width: 32px; font-size: 11px; }
    .yda-lightbox-prev { left: 10px !important; width: 44px !important; height: 44px !important; }
    .yda-lightbox-next { right: 10px !important; width: 44px !important; height: 44px !important; }
}

/* Card titles retagged h5 -> h4 for a correct heading outline; keep the old h5 metrics.
   :where() keeps specificity equal to the theme's plain h4 rule, so class-based rules still win. */
h4:where(.yda-h5) {
    font-size: 18px;
    line-height: 23px;
    margin-top: 10px; /* theme zeroes h1-h4 top margin; h5 kept Bootstrap's 10px */
    margin-bottom: 16px;
}

/* Accessibility: lift footer copyright text to a 4.5:1 contrast ratio on the dark band */
.fo-copyright-holder {
    color: #8a8a8a;
}

/* Accessibility: give Swiper pagination dots a 24px tap pitch */
.swiper-pagination-bullet {
    margin-left: 8px !important;
    margin-right: 8px !important;
}

/* <picture> wrappers that only pick WebP vs original: add no box of their own,
   so existing image rules and layout behave exactly as before */
.yda-webp-picture {
    display: contents;
}

/* ---- Past Events slider arrows ---- */
.yda-pe-slider {
    position: relative;
}
.yda-pe-nav {
    position: absolute;
    top: 30%;
    z-index: 5;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid rgba(252, 203, 6, 0.5);
    background: rgba(10, 10, 10, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fccb06;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.5);
    transition: all 0.25s ease;
}
.yda-pe-nav:hover,
.yda-pe-nav:focus-visible {
    background: #fccb06;
    color: #111111;
    border-color: #fccb06;
    transform: scale(1.08);
    outline: none;
}
.yda-pe-prev { left: -8px; }
.yda-pe-next { right: -8px; }
.yda-pe-nav.swiper-button-disabled {
    opacity: 0.35;
    cursor: default;
}
@media (max-width: 575px) {
    .yda-pe-nav {
        width: 38px;
        height: 38px;
        font-size: 13px;
    }
    .yda-pe-prev { left: 0; }
    .yda-pe-next { right: 0; }
}
