/* =========================================================
   RIGHTWAY ABROAD - FINAL HOMEPAGE PARITY FIX
   Fixes: horizontal overflow + hero CTA hidden by search form
   Target: desktop / tablet / mobile
   ========================================================= */

/* ---------- GLOBAL OVERFLOW SAFETY ---------- */
html,
body {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    margin: 0;
    padding: 0;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

img,
video,
iframe {
    max-width: 100%;
}

/* Prevent Bootstrap rows/sections from widening the whole page */
body > *,
header,
main,
footer,
section {
    max-width: 100%;
}

.row {
    max-width: 100%;
}

/* =========================================================
   HERO
   ========================================================= */

.hero-with-search {
    position: relative !important;
    width: 100% !important;
    max-width: 100vw !important;
    min-height: 680px !important;
    overflow-x: hidden !important;
    overflow-y: visible !important;
}

/* Hero/slider layers */
.hero-with-search .main-slider,
.hero-with-search .slider-area,
.hero-with-search .slider-wrapper,
.hero-with-search .slide-item {
    max-width: 100% !important;
    overflow-x: hidden !important;
}

/* Keep hero content above background */
.hero-with-search .slide-content,
.hero-with-search .hero-content,
.hero-with-search .slider-content {
    position: relative !important;
    z-index: 20 !important;
}

/* CTA: Explore Now / Get Started */
.hero-with-search .slide-content .btn,
.hero-with-search .hero-content .btn,
.hero-with-search .slider-content .btn,
.hero-with-search .theme-btn,
.hero-with-search a.theme-btn,
.hero-with-search .slide-content a {
    position: relative !important;
    z-index: 30 !important;
}

/* Search panel */
.hero-with-search .course-search-box,
.hero-with-search .hero-search-box,
.hero-with-search .search-box,
.hero-with-search .search-wrapper {
    z-index: 15 !important;
    max-width: calc(100% - 30px) !important;
}

/* =========================================================
   DESKTOP
   ========================================================= */
@media (min-width: 992px) {
    .hero-with-search {
        min-height: 680px !important;
        padding-bottom: 0 !important;
    }

    .hero-with-search .slide-content .btn,
    .hero-with-search .hero-content .btn,
    .hero-with-search .slider-content .btn,
    .hero-with-search .theme-btn,
    .hero-with-search a.theme-btn {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        min-width: 210px !important;
        min-height: 64px !important;
        margin-top: 20px !important;
        margin-bottom: 125px !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .hero-with-search .course-search-box,
    .hero-with-search .hero-search-box,
    .hero-with-search .search-box,
    .hero-with-search .search-wrapper {
        bottom: 20px !important;
    }
}

/* =========================================================
   TABLET
   ========================================================= */
@media (min-width: 768px) and (max-width: 991px) {
    .hero-with-search {
        min-height: 650px !important;
    }

    .hero-with-search .slide-content .btn,
    .hero-with-search .hero-content .btn,
    .hero-with-search .slider-content .btn,
    .hero-with-search .theme-btn,
    .hero-with-search a.theme-btn {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        min-height: 56px !important;
        margin-top: 18px !important;
        margin-bottom: 115px !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .hero-with-search .course-search-box,
    .hero-with-search .hero-search-box,
    .hero-with-search .search-box,
    .hero-with-search .search-wrapper {
        bottom: 15px !important;
    }
}

/* =========================================================
   MOBILE
   Search form becomes normal-flow content so it can never
   cover Explore Now / Get Started.
   ========================================================= */
@media (max-width: 767px) {
    html,
    body {
        width: 100% !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }

    .container,
    .container-fluid {
        max-width: 100% !important;
    }

    .hero-with-search {
        min-height: auto !important;
        height: auto !important;
        padding-bottom: 25px !important;
        overflow-x: hidden !important;
        overflow-y: visible !important;
    }

    .hero-with-search .slide-content .btn,
    .hero-with-search .hero-content .btn,
    .hero-with-search .slider-content .btn,
    .hero-with-search .theme-btn,
    .hero-with-search a.theme-btn {
        display: inline-flex !important;
        position: relative !important;
        align-items: center !important;
        justify-content: center !important;
        z-index: 30 !important;
        min-height: 50px !important;
        margin-top: 18px !important;
        margin-bottom: 20px !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .hero-with-search .course-search-box,
    .hero-with-search .hero-search-box,
    .hero-with-search .search-box,
    .hero-with-search .search-wrapper {
        position: relative !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        bottom: auto !important;
        transform: none !important;
        width: calc(100% - 30px) !important;
        max-width: 100% !important;
        margin: 15px auto 0 !important;
        z-index: 15 !important;
    }
}

/* =========================================================
   DESTINATION CAROUSEL OVERFLOW
   Carousel moves internally; webpage itself does not.
   ========================================================= */
.destinations-section,
.study-destinations-section,
.destinations-carousel,
.destinations-slider,
#destinationsCarousel {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
}

.destinations-track,
.destinations-carousel-track,
#destinationsTrack {
    max-width: 100% !important;
}

/* 2026-09-03 final home testimonial parity/responsive patch */
.rwa-testimonial-kicker{display:inline-block;color:#ed2057;font-weight:800;letter-spacing:.14em;font-size:14px;margin-bottom:10px}.rwa-testimonial-title{font-size:clamp(30px,3vw,46px);font-weight:800;margin:0 0 10px;color:#151515}.rwa-testimonial-subtitle{max-width:760px;margin:0 auto;color:#666;line-height:1.7}.testimonial-section-new .testimonial-card{padding:42px;max-width:1400px}.testimonial-section-new #homeTestimonialSlider>.col-12{display:flex}.testimonial-section-new .review-card{width:100%}.testimonial-section-new .review-card__stars{color:#ffc107;letter-spacing:2px}@media(max-width:767px){.testimonial-section-new .px-5{padding-left:16px!important;padding-right:16px!important}.testimonial-section-new .testimonial-card{padding:20px 14px;border-radius:14px}.rwa-testimonial-title{font-size:30px}.rwa-testimonial-subtitle{font-size:14px}.testimonial-section-new .review-card{padding:20px}.testimonial-section-new .review-card__avatar{width:62px;height:62px}}
