/* Homepage-only styles. Shared design tokens are defined in design-system.css. */
        @keyframes modalSlideUp {
            from {
                opacity: 0;
                transform: translateY(50px) scale(0.95);
            }
            to {
                opacity: 1;
                transform: translateY(0) scale(1);
            }
        }

        @keyframes successPulse {
            0% {
                transform: scale(0.8);
                opacity: 0;
            }
            50% {
                transform: scale(1.1);
                opacity: 1;
            }
            100% {
                transform: scale(1);
                opacity: 1;
            }
        }

        #leadCaptureForm button[type="submit"]:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(54, 3, 131, 0.4) !important;
        }

        #leadCaptureForm input:focus,
        #leadCaptureForm select:focus {
            border-color: #ffc400 !important;
            box-shadow: 0 0 0 3px rgba(255, 196, 0, 0.16) !important;
            outline: none;
        }

    .hero-overlay {
        background:
            linear-gradient(120deg, rgba(7, 13, 90, 0.92) 0%, rgba(10, 15, 92, 0.82) 58%, rgba(255, 196, 0, 0.28) 100%),
            linear-gradient(180deg, rgba(0, 0, 0, 0.16), rgba(7, 13, 90, 0.74));
    }

    .hero-content {
        max-width: 980px;
    }

    .hero-title {
        font-weight: 800;
        text-shadow: 0 18px 45px rgba(0, 0, 0, 0.34);
    }

    .hero-subtitle {
        max-width: 700px;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-btn {
        background: linear-gradient(135deg, #ffc400 0%, #ffb800 100%);
        color: var(--brand-navy);
        border-radius: 999px;
        padding: 15px 34px;
        box-shadow: 0 16px 36px rgba(255, 196, 0, 0.32);
    }

    .hero-btn:hover {
        background: linear-gradient(135deg, #ffb800 0%, #ffc400 100%);
        color: var(--brand-navy);
        box-shadow: 0 20px 44px rgba(255, 196, 0, 0.38);
    }

    .course-finder {
        padding: 30px;
        border: 1px solid rgba(255, 255, 255, 0.84);
        background:
            linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 251, 255, 0.96) 58%, rgba(255, 248, 236, 0.96) 100%);
        box-shadow: 0 28px 70px rgba(15, 23, 42, 0.16);
    }

    .finder-title,
    .section-title h2,
    .events-section .section-title {
        color: #070d5a;
    }

    .finder-title::after {
        content: "";
        display: block;
        width: 82px;
        height: 4px;
        margin: 12px auto 0;
        border-radius: 999px;
        background: linear-gradient(90deg, #070d5a, #ffc400);
    }

    .tab-navigation {
        background: #070d5a;
        box-shadow: 0 14px 30px rgba(15, 23, 42, 0.16);
    }

    .tab-button {
        color: rgba(255, 255, 255, 0.82);
    }

    .tab-button.active {
        color: #070d5a;
        background: linear-gradient(135deg, #ffc400 0%, #ffb800 100%);
        box-shadow: 0 8px 22px rgba(255, 196, 0, 0.26);
    }

    .tab-button:hover:not(.active) {
        background: rgba(255, 255, 255, 0.12);
        color: #ffffff;
    }

    .form-input,
    .form-select {
        border-color: #dde4f0;
        background: rgba(255, 255, 255, 0.9);
    }

    .form-input:focus,
    .form-select:focus {
        border-color: #ffc400;
        box-shadow: 0 0 0 4px rgba(255, 196, 0, 0.16);
    }

    .search-button,
    .support-button {
        color: var(--brand-navy);
        background: linear-gradient(135deg, #ffc400 0%, #ffb800 100%);
        box-shadow: 0 16px 34px rgba(255, 196, 0, 0.26);
    }

    .search-button:hover,
    .support-button:hover {
        background: linear-gradient(135deg, #ffb800 0%, #ffc400 100%);
        color: var(--brand-navy);
        box-shadow: 0 18px 40px rgba(255, 196, 0, 0.32);
    }

    .support-section {
        border: 0;
        background: linear-gradient(135deg, #fff9df 0%, #f8fafc 100%);
        box-shadow: inset 0 0 0 1px rgba(255, 196, 0, 0.18);
    }

    .blue-bg {
        background:
            #070d5a;
    }

    .dest-content {
        color: #ffffff;
    }

    .dest-content .sec-title {
        color: #ffffff;
        text-shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
    }

    .dest-content .highlighter {
        color: #ffc400;
    }

    .dest-content .highlighter::after {
        background: rgba(255, 196, 0, 0.34);
    }

    .dest-content .comm-para p {
        color: rgba(255, 255, 255, 0.88);
    }

    .dest-img {
        border: 3px solid rgba(255, 255, 255, 0.22);
        box-shadow: 0 20px 44px rgba(15, 23, 42, 0.28);
    }

    @keyframes destinationScrollLeft {
        0% {
            transform: translateX(0);
        }

        100% {
            transform: translateX(-50%);
        }
    }

    @keyframes destinationScrollRight {
        0% {
            transform: translateX(-50%);
        }

        100% {
            transform: translateX(0);
        }
    }

    .service-card {
        border: 1px solid #dbe4f1;
        background: #ffffff;
        box-shadow: 0 18px 42px rgba(15, 23, 42, 0.06);
        justify-content: flex-start !important;
    }

    .service-copy {
        margin-top: 72px !important;
    }

    .service-card .service-title,
    .service-card .service-description {
        color: #070d5a !important;
        text-shadow: none !important;
    }

    .service-card .service-description {
        opacity: 0.82;
    }

    .service-icon-wrap {
        background: #ffb800;
    }

    .service-icon-wrap i {
        color: #070d5a;
    }

    #how-it-works.how-it-works {
        padding: 0;
        background: #070d5a;
        color: #ffffff;
        overflow: hidden;
    }

    #how-it-works.how-it-works::before {
        display: none;
    }

    #how-it-works .journey-section {
        padding: 86px 0 !important;
        background: #070d5a;
    }

    #how-it-works .steps-main-wrapper {
        display: grid;
        grid-template-columns: minmax(0, 0.92fr) minmax(520px, 1.08fr);
        align-items: center;
        gap: clamp(48px, 7vw, 120px);
        margin-top: 0;
    }

    #how-it-works .journey-intro {
        max-width: 760px;
    }

    #how-it-works .journey-eyebrow {
        margin: 0 0 24px;
        color: #ffc400;
        font-size: 1.05rem;
        font-weight: 800;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }

    #how-it-works .journey-title {
        max-width: 760px;
        margin: 0;
        color: #ffffff;
        font-family: var(--heading-font);
        font-size: clamp(2.65rem, 4.4vw, 5.4rem);
        font-weight: 800;
        line-height: 1.04;
    }

    #how-it-works .journey-description {
        max-width: 800px;
        margin: 26px 0 54px;
        color: rgba(255, 255, 255, 0.9);
        font-size: clamp(1.18rem, 0.65vw + 1rem, 1.7rem);
        line-height: 1.45;
    }

    #how-it-works .steps-img {
        position: relative;
        top: auto;
        max-width: 560px;
        width: 100%;
    }

    #how-it-works .steps-img img,
    #how-it-works .step-dynamic-image {
        width: 100%;
        max-height: 330px;
        aspect-ratio: 16 / 10;
        object-fit: contain;
        border-radius: 0;
        box-shadow: none;
        filter: drop-shadow(0 26px 42px rgba(0, 0, 0, 0.22));
        background: transparent;
    }

    #how-it-works .steps-card-wrap {
        display: flex;
        flex-direction: column;
        gap: 30px;
        width: 100%;
    }

    #how-it-works .steps-card {
        position: relative;
        top: auto;
        display: grid;
        grid-template-columns: 72px minmax(0, 1fr);
        align-items: center;
        gap: 28px;
        padding: 30px 34px;
        border: 0;
        border-radius: 24px;
        background: rgba(255, 255, 255, 0.07);
        box-shadow: none;
        transition: transform 0.24s ease, background 0.24s ease;
    }

    #how-it-works .steps-card:hover,
    #how-it-works .steps-card.active-step {
        transform: translateY(-3px);
        border: 0;
        background: rgba(255, 255, 255, 0.1);
        box-shadow: none;
    }

    #how-it-works .numbers {
        width: 72px;
        height: 72px;
        min-width: 72px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 18px;
        background: #ffc400;
        color: #070d5a;
        -webkit-text-fill-color: #070d5a;
        font-family: var(--heading-font);
        font-size: 1.35rem;
        font-weight: 800;
        line-height: 1;
        transform: none;
    }

    #how-it-works .steps-card:hover .numbers,
    #how-it-works .steps-card.active-step .numbers {
        transform: none;
    }

    #how-it-works .card-content-wrap {
        min-width: 0;
    }

    #how-it-works .steps-card .comm-card-hdn {
        display: flex;
        align-items: center;
        gap: 12px;
        margin: 0 0 8px;
        color: #ffffff;
        font-family: var(--heading-font);
        font-size: clamp(1.2rem, 0.7vw + 1rem, 1.65rem);
        font-weight: 800;
        line-height: 1.22;
        letter-spacing: 0;
    }

    #how-it-works .steps-card .comm-card-hdn i {
        color: #ffc400;
        font-size: 1.08rem;
        width: 22px;
        text-align: center;
        flex: 0 0 auto;
    }

    #how-it-works .comm-para p {
        margin: 0;
        color: rgba(255, 255, 255, 0.76);
        font-size: clamp(1rem, 0.35vw + 0.95rem, 1.28rem);
        line-height: 1.4;
    }

    #how-it-works .step-features {
        display: none;
    }

    /* Ensure single-slide layout stays stable and avoids side gaps */
        .reviewSwiper { overflow: hidden; }
        .reviewSwiper .swiper-wrapper { align-items: stretch; }
        .story-slide.review-slide { width: 100%; }

    .home-data-section {
        padding: 42px 0 24px;
        background: linear-gradient(135deg, #fff9df 0%, #f8fafc 100%);
    }

    .home-data-grid {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 16px;
    }

    .home-data-card {
        min-height: 152px;
        padding: 22px 18px;
        border: 1px solid rgba(255, 255, 255, 0.82);
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.86);
        box-shadow: 0 16px 34px rgba(15, 23, 42, 0.1);
        text-align: center;
    }

    .home-data-icon {
        width: 42px;
        height: 42px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 12px;
        border-radius: 50%;
        background: #ffb800;
        color: #070d5a;
        font-size: 18px;
    }

    .home-data-counter {
        display: block;
        color: #070d5a;
        font-size: 34px;
        font-weight: 800;
        line-height: 1;
    }

    .home-data-card span:last-child {
        display: block;
        margin-top: 8px;
        color: #4b5563;
        font-size: 14px;
        font-weight: 600;
    }

    @media (max-width: 991px) {
        .course-finder {
            width: calc(100% - 32px);
            max-width: 640px;
            margin-left: auto;
            margin-right: auto;
            padding: 24px;
            border-radius: 22px;
            overflow: hidden;
        }

        .course-finder .finder-header {
            margin-bottom: 24px;
            padding: 0;
        }

        .course-finder .tab-navigation {
            max-width: 100%;
            margin-bottom: 18px;
            padding: 6px;
            border-radius: 24px;
            gap: 0;
        }

        .course-finder .tab-button {
            min-width: 0;
            padding: 12px 10px;
            border-radius: 18px;
            white-space: nowrap;
        }

        .course-finder .tab-content {
            margin-top: 0;
            padding: 24px;
            border-radius: 22px;
        }

        .course-finder .search-form {
            grid-template-columns: 1fr;
            gap: 20px;
            margin-bottom: 0;
        }

        .course-finder .form-input,
        .course-finder .form-select,
        .course-finder .select2-container {
            width: 100% !important;
            max-width: 100%;
        }

        .destinations .blue-bg {
            padding: 36px 0 !important;
        }

        .destination-sec-wrap {
            display: flex;
            flex-direction: column;
            align-items: stretch;
            gap: 26px;
            height: auto;
            min-height: 0;
            overflow: hidden;
        }

        .dest-img-left,
        .dest-img-right {
            display: flex;
            flex-wrap: nowrap;
            gap: 14px;
            width: max-content;
            min-width: 100%;
            margin: 0;
            will-change: transform;
        }

        .dest-img-left {
            order: 1;
            animation: destinationScrollLeft 28s linear infinite;
        }

        .dest-content {
            order: 2;
            width: 100%;
            padding: 8px 18px;
        }

        .dest-img-right {
            order: 3;
            animation: destinationScrollRight 28s linear infinite;
        }

        .dest-img {
            flex: 0 0 150px;
            width: 150px;
            height: 190px;
            margin: 0;
            border-radius: 28px;
        }

        .dest-img img {
            border-radius: 24px;
        }

        .dest-content .sec-title {
            font-size: 2.05rem;
            margin-bottom: 16px;
        }

        .dest-content .comm-para {
            margin: 0;
        }

        .dest-content .comm-para p {
            max-width: 560px;
            font-size: 1rem;
            line-height: 1.65;
        }

        #how-it-works .journey-section {
            padding: 64px 0 !important;
        }

        #how-it-works .steps-main-wrapper {
            grid-template-columns: 1fr;
            gap: 34px;
        }

        #how-it-works .journey-description {
            margin-bottom: 32px;
        }

        #how-it-works .steps-img {
            max-width: 460px;
        }

        #how-it-works .steps-card {
            grid-template-columns: 64px minmax(0, 1fr);
            gap: 20px;
            padding: 24px;
            text-align: left;
            align-items: center;
        }

        #how-it-works .numbers {
            width: 64px;
            height: 64px;
            min-width: 64px;
            border-radius: 16px;
        }

        .home-data-grid {
            grid-template-columns: repeat(2, minmax(0, 1fr));
        }
    }

    @media (max-width: 575px) {
        .course-finder {
            width: calc(100% - 24px);
            padding: 18px;
            border-radius: 18px;
        }

        .course-finder .finder-title {
            font-size: 1.7rem;
        }

        .course-finder .finder-subtitle {
            font-size: 0.95rem;
        }

        .course-finder .tab-navigation {
            margin-bottom: 14px;
            border-radius: 20px;
        }

        .course-finder .tab-button {
            padding: 11px 8px;
            font-size: 0.92rem;
            border-radius: 15px;
        }

        .course-finder .tab-content {
            padding: 20px;
            border-radius: 18px;
        }

        .course-finder .form-label {
            font-size: 0.94rem;
        }

        .course-finder .form-input,
        .course-finder .form-select {
            min-height: 52px;
            padding: 13px 14px;
        }

        .course-finder .search-button {
            min-height: 54px;
            padding: 14px 18px;
            border-radius: 12px;
            font-size: 1rem;
        }

        .destinations .blue-bg {
            padding: 30px 0 !important;
        }

        .destination-sec-wrap {
            gap: 22px;
        }

        .dest-img-left,
        .dest-img-right {
            gap: 12px;
        }

        .dest-img {
            flex-basis: 118px;
            width: 118px;
            height: 158px;
            border-radius: 24px;
        }

        .dest-img img {
            border-radius: 20px;
        }

        .dest-content {
            padding: 4px 10px;
        }

        .dest-content .sec-title {
            font-size: 1.72rem;
        }

        .dest-content .comm-para p {
            font-size: 0.96rem;
        }

        #how-it-works .journey-section {
            padding: 52px 0 !important;
        }

        #how-it-works .journey-eyebrow {
            margin-bottom: 16px;
            font-size: 0.88rem;
        }

        #how-it-works .journey-title {
            font-size: 2.28rem;
        }

        #how-it-works .journey-description {
            font-size: 1rem;
            margin: 18px 0 28px;
        }

        #how-it-works .steps-card-wrap {
            gap: 18px;
        }

        #how-it-works .steps-card {
            grid-template-columns: 56px minmax(0, 1fr);
            gap: 16px;
            padding: 20px;
            border-radius: 18px;
        }

        #how-it-works .numbers {
            width: 56px;
            height: 56px;
            min-width: 56px;
            border-radius: 14px;
            font-size: 1.05rem;
        }

        #how-it-works .steps-card .comm-card-hdn {
            font-size: 1.08rem;
        }

        #how-it-works .comm-para p {
            font-size: 0.92rem;
        }

        .home-data-grid {
            grid-template-columns: 1fr;
        }
    }

    /* Select2 Custom Styling to match existing design */
    .select2-container--default .select2-selection--single {
        height: 50px !important;
        border: 2px solid #e5e7eb !important;
        border-radius: 8px !important;
        padding: 10px 15px !important;
        display: flex !important;
        align-items: center !important;
        background-color: #fff !important;
        transition: all 0.3s ease !important;
    }

    .select2-container--default .select2-selection--single:hover,
    .select2-container--default.select2-container--focus .select2-selection--single {
        border-color: #ffc400 !important;
        box-shadow: 0 0 0 3px rgba(255, 196, 0, 0.16) !important;
    }

    .select2-container--default .select2-selection--single .select2-selection__rendered {
        color: #374151 !important;
        line-height: 30px !important;
        padding-left: 0 !important;
        font-size: 15px !important;
    }

    .select2-container--default .select2-selection--single .select2-selection__placeholder {
        color: #9ca3af !important;
    }

    .select2-container--default .select2-selection--single .select2-selection__arrow {
        height: 48px !important;
        right: 10px !important;
    }

    .select2-dropdown {
        border: 2px solid #ffc400 !important;
        border-radius: 8px !important;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
        margin-top: 5px !important;
    }

    .select2-container--default .select2-search--dropdown .select2-search__field {
        border: 2px solid #e5e7eb !important;
        border-radius: 6px !important;
        padding: 10px 15px !important;
        font-size: 14px !important;
        margin: 8px !important;
        width: calc(100% - 16px) !important;
    }

    .select2-container--default .select2-search--dropdown .select2-search__field:focus {
        border-color: #ffc400 !important;
        outline: none !important;
    }

    .select2-container--default .select2-results__option {
        padding: 12px 15px !important;
        font-size: 14px !important;
        transition: background-color 0.2s ease !important;
    }

    .select2-container--default .select2-results__option--highlighted[aria-selected] {
        background-color: #070d5a !important;
        color: white !important;
    }

    .select2-container--default .select2-results__option[aria-selected=true] {
        background-color: #fff7d6 !important;
        color: #070d5a !important;
    }

    .select2-container--default .select2-selection--single .select2-selection__clear {
        color: #6b7280 !important;
        font-size: 20px !important;
        margin-right: 10px !important;
        cursor: pointer !important;
    }

    .select2-container--default .select2-selection--single .select2-selection__clear:hover {
        color: #ef4444 !important;
    }

    /* Ensure Select2 fits nicely with form-select styling */
    .form-select.select2-hidden-accessible + .select2-container {
        width: 100% !important;
    }

    /* Loading state */
    .select2-container--default.select2-container--open .select2-selection--single {
        border-color: #ffc400 !important;
    }
/* Homepage event cards and layout helpers */
.events-section .event-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
    margin-bottom: 15px;
}

.events-section .event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-events-all {
    margin-top: 50px;
    text-align: center;
}

.home-no-reviews {
    margin: 40px 0;
    padding: 40px;
    border-radius: 10px;
    background: #ffebee;
    text-align: center;
}

/* Keep the existing global contact-modal layout hidden until explicitly opened. */
#contactModal[hidden],
#eventModal[hidden],
#attendanceForm[hidden],
#attendanceSuccess[hidden] {
    display: none !important;
}

/* Homepage event details modal */
.home-event-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.5);
}

.home-event-modal__panel {
    position: relative;
    max-width: 600px;
    margin: 50px auto;
    border-radius: 10px;
    background: #fff;
}

.home-event-modal__close {
    position: absolute;
    z-index: 1;
    top: 15px;
    right: 20px;
    border: 0;
    background: none;
    color: #666;
    font-size: 24px;
    cursor: pointer;
}

.home-event-modal__content {
    padding: 30px;
}

.home-event-modal__overview {
    margin-bottom: 20px;
}

.home-event-modal__type {
    display: inline-block;
    margin-bottom: 10px;
    padding: 4px 12px;
    border-radius: 20px;
    background: var(--brand-navy);
    color: #fff;
    font-size: 12px;
}

.home-event-modal__title {
    margin: 10px 0;
    color: #333;
}

.home-event-modal__details {
    margin: 20px 0;
}

.home-event-modal__detail {
    display: flex;
    align-items: center;
    margin: 8px 0;
    color: #666;
}

.home-event-modal__detail i {
    width: 16px;
    margin-right: 10px;
    color: var(--brand-navy);
}

.home-event-modal__description-section {
    margin-bottom: 30px;
}

.home-event-modal__heading {
    margin: 0 0 10px;
    color: #333;
}

.home-event-modal__heading--form {
    margin-bottom: 15px;
}

.home-event-modal__description,
.home-event-modal__intro {
    color: #666;
}

.home-event-modal__description {
    line-height: 1.6;
}

.home-event-modal__intro {
    margin-bottom: 20px;
}

.home-event-modal__field,
.home-event-modal__row {
    margin-bottom: 15px;
}

.home-event-modal__row {
    display: flex;
    gap: 15px;
}

.home-event-modal__column {
    min-width: 0;
    flex: 1;
}

.home-event-modal__field label,
.home-event-modal__column label {
    display: block;
    margin-bottom: 5px;
    color: #333;
    font-weight: 500;
}

.home-event-modal__input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.home-event-modal__submit {
    padding: 12px 24px;
    border: 0;
    border-radius: 5px;
    background: #28a745;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
}

.home-event-modal__success {
    margin-top: 20px;
    padding: 30px;
    border: 1px solid #c3e6cb;
    border-radius: 10px;
    background: #d4edda;
    text-align: center;
}

.home-event-modal__success-icon {
    margin-bottom: 15px;
    color: #28a745;
    font-size: 48px;
}

.home-event-modal__success-title,
.home-event-modal__success-text {
    color: #155724;
}

.home-event-modal__success-title {
    margin-bottom: 10px;
}

@media (max-width: 640px) {
    .home-event-modal__panel {
        margin: 20px 12px;
    }

    .home-event-modal__content {
        padding: 24px 18px;
    }

    .home-event-modal__row {
        flex-direction: column;
    }
}
