.responsive-card-section {
    width: 50% !important;
    min-height: 50vh !important;
}

.video-section-heading {
    width: 120% !important;
}

.card-section-paragraph {
    margin-top: -1.5rem !important;
}

.right-arrow-icon {
    margin-left: 0.5rem !important;
}

.card-spacing {
    margin-bottom: 1rem !important;
}

@media (max-width: 640px) {
    .responsive-card-section {
        width: 100% !important;
        min-height: 0px !important;
    }

    .video-section-heading {
        width: 100% !important;
    }

    .card-section-paragraph {
        margin-top: 0rem !important;
    }

    .card-spacing {
        margin-bottom: 1.5rem !important;
    }
}

.slide-arrow svg {
    width: 20px !important;
    height: 20px !important;
}

.slide-link {
    text-decoration: none !important;
    cursor: pointer !important;
}

.slide-img-responsive {
    max-width: 600px !important;
}

@media (max-width: 768px) {
    .slide-img-responsive {
        max-width: 400px !important;
    }
}

@media (max-width: 480px) {
    .slide-img-responsive {
        max-width: 300px !important;
        padding: 0.5rem !important;
    }
}

.container-width {
    max-width: 1200px !important;
    width: clamp(300px, 85vw, 1200px) !important;
}

/* No width here: it would override .container-width's clamp() on the same element */
.swiper {
    margin: auto !important;
}

.swiper-slide {
    width: auto !important;
    /* let Swiper handle width */
    flex-shrink: 0 !important;
    /* prevents shrinking on smaller screens */
}

.swiper-nav-wrapper {
    padding: 2rem 2rem !important;
}

/* Base bullets — circles */
.swiper-pagination-bullets .swiper-pagination-bullet {
    position: relative !important;
    width: 10px !important;
    /* small circle */
    height: 10px !important;
    background-color: rgb(140, 193, 212) !important;
    /* light blue circle */
    border-radius: 50% !important;
    margin: 0 4px !important;
    overflow: hidden !important;
    /* for fill effect */
    transition: all 0.3s ease !important;
    /* smooth transform when active */
}

/* Pseudo-element for fill (inactive bullets start empty) */
.swiper-pagination-bullets .swiper-pagination-bullet::after {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    height: 100% !important;
    width: 100% !important;
    /* Fill is animated with transform, not width: !important on width would block the animation */
    transform-origin: left center !important;
    background-color: rgb(0, 118, 152) !important;
    /* darker blue fill */
    border-radius: 10px !important;
    /* matches pill shape when active */
    transition: none !important;
    animation: none !important;
}

/* Active bullet — transform to pill and animate fill */
.swiper-pagination-bullets .swiper-pagination-bullet-active {
    width: 50px !important;
    /* pill width */
    height: 10px !important;
    /* flat pill height */
    border-radius: 999px !important;
    /* rounded ends */
}

/* Active bullet fill animation */
.swiper-pagination-bullets .swiper-pagination-bullet-active::after {
    animation: fillBullet 5s linear forwards !important;
}

/* Reset inactive bullets' fill */
.swiper-pagination-bullets .swiper-pagination-bullet:not(.swiper-pagination-bullet-active)::after {
    transform: scaleX(0) !important;
    animation: none !important;
}

/* Keyframes for left-to-right fill */
/* No !important here: browsers ignore !important declarations inside @keyframes */
@keyframes fillBullet {
    from {
        transform: scaleX(0);
    }

    to {
        transform: scaleX(1);
    }
}

/* move pagination position up or down */
.swiper-pagination-bullets.swiper-pagination-horizontal {
    bottom: 3.5rem !important;
}

@media (max-width: 640px) {
    .swiper-pagination-bullets.swiper-pagination-horizontal {
        bottom: 1.5rem !important;
    }
}

.swiper-slide {
    text-align: center !important;
    font-size: 18px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

.swiper-slide {
    width: 100% !important;
}

.nav-wrapper .swiper-button-prev,
.nav-wrapper .swiper-button-next {
    position: static !important;
    /* remove absolute positioning */
    margin-top: 0 !important;
    /* reset vertical offset */
    top: auto !important;
    left: auto !important;
    right: auto !important;
}

.nav-wrapper {
    display: flex !important;
    justify-content: center !important;
    gap: 16px !important;
    margin-top: 12px !important;
}

/* The CMS editor wraps the arrow buttons in a <p>; display: contents removes it
   from layout so the buttons are flex items of .nav-wrapper again */
.nav-wrapper > p {
    display: contents !important;
}

.slide-border-radius {
    border-radius: 2rem !important;
}

.slide-arrow {

    /*background: rgba(0, 0, 0, 0.4);*/
    background: rgb(222, 222, 226) !important;
    border: none !important;
    color: white !important;
    width: 44px !important;
    height: 44px !important;
    border-radius: 22px !important;
    cursor: pointer !important;
    z-index: 10 !important;
    transition: all 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
}

.slide-arrow:hover {
    /* background: rgba(0, 0, 0, 0.6); */
    transform: scale(1.05) !important;
}

.slide-arrow:active {
    transform: scale(0.95) !important;
}

.slide-arrow svg {
    width: 20px !important;
    height: 20px !important;
}

.slide-arrow svg path {
    stroke: rgb(0, 61, 82) !important;
    stroke-width: 3 !important;
}

/* Responsive for main slide image */
.slide-img-responsive {
    width: 600px !important;
}

@media (max-width: 768px) {
    .slide-img-responsive {
        width: 400px !important;
    }
}

@media (max-width: 480px) {
    .slide-img-responsive {
        width: 300px !important;
        padding: 0.5rem !important;
    }
}

/* Responsive margins for background images */
.bts-background-top {
    margin-top: clamp(-10rem, -8vw, 0rem) !important;
}

.bts-background-bottom {
    margin-bottom: clamp(-14rem, -16vw, 0rem) !important;
}

.health-direct-desktop {
    display: block !important;
}

@media (max-width: 1024px) {
    .health-direct-desktop {
        display: none !important;
    }
}

.health-direct-mobile {
    display: none !important;
}

@media (max-width: 1024px) {
    .health-direct-mobile {
        display: flex !important;
        /* already flex */
        flex-direction: column !important;
        /* stack children vertically */
        align-items: center !important;
        /* center horizontally */
        text-align: center !important;
        /* center text inside h3 */
    }
}

.swiper-arrows-mobile {
    display: none !important;
}

@media (max-width: 640px) {
    .swiper-arrows-desktop {
        display: none !important;
    }

    .swiper-arrows-mobile {
        display: flex !important;
    }
}

.is-container-improved {
    margin: 0 auto !important;
    padding: 0 30px !important;
    position: relative !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
}

.info-grid {
    display: grid !important;
    gap: 1.5rem !important;
    justify-content: center !important;
    justify-items: center !important;
}

/* Mobile: 1 column */
.info-grid {
    grid-template-columns: 1fr !important;
}

/* Tablet: 2 columns */
@media (min-width: 768px) {
    .info-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Desktop: 4 columns */
@media (min-width: 1024px) {
    .info-grid {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

/* Grid item */
.info-grid__item a,
.info-grid__item>div {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    background-color: rgba(0, 114, 152, 0.1) !important;
    width: 256px !important;
    height: 256px !important;
    border-radius: 18px !important;
    padding: 0.5rem 1.5rem !important;
    position: relative !important;
    overflow: hidden !important;
    text-decoration: none !important;
}

/* Typography */
.info-grid__title {
    font-family: Montserrat, sans-serif !important;
    color: rgb(0, 61, 82) !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
}

.info-grid__item p {
    font-family: Montserrat, sans-serif !important;
    color: rgb(0, 61, 82) !important;
}

/* Icons */
.info-grid__icon {
    position: absolute !important;
}

.info-grid__icon--1 {
    bottom: -28px !important;
    right: -24px !important;
}

.info-grid__icon--2 {
    bottom: -12px !important;
    right: 16px !important;
}

.info-grid__icon--3 {
    bottom: -2px !important;
    right: 12px !important;
}

.info-grid__icon--4 {
    bottom: -4px !important;
    right: -12px !important;
}

.bwa_text {
    margin: 3rem 0 !important;
}

@media (min-width: 768px) {
    .bwa_text {
        margin: 0 !important;
    }
}

.info-grid__item-text {
    padding-top: 1rem !important;
}

.custom-row {
    display: flex !important;
    flex-wrap: wrap !important;
}

.custom-row .is-box-6 {
    width: 100% !important;
}

/* Desktop (2 items in one row) */
@media (min-width: 1024px) {
    .custom-row {
        flex-wrap: nowrap !important;
    }

    .custom-row .is-box-6 {
        width: 50% !important;
    }
}

.swiper,
.swiper-wrapper,
.swiper-slide {
    height: 100% !important;
}

.swiper-wrapper,
.swiper-slide {
    min-height: 0 !important;
}

/* Education Series hero slide */
/* Stretch to the height set by the other slides instead of setting it */
.hero-swiper-slide {
    position: relative !important;
    height: auto !important;
    align-self: stretch !important;
}

.hero-slide {
    position: absolute !important;
    inset: 0 !important;
    overflow: hidden !important;
    container-type: size !important;
    background-color: white !important;
    background-image:
        radial-gradient(circle, rgba(255, 99, 78, 0.15) 1px, transparent 1px),
        radial-gradient(circle, rgba(255, 99, 78, 0.15) 1px, transparent 1px) !important;
    background-size: 6px 10.39px !important;
    /* 10.39 ≈ 6 * sqrt(3) */
    background-position: 0 0, 3px 5.2px !important;
}

.hero__link {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
}

.hero,
.hero * {
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

.hero {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    width: 100% !important;
    height: 100% !important;
    padding: 5cqh 24px !important;
}

.hero__heading {
    max-width: 700px !important;
    font-family: "Roboto Slab", serif !important;
    font-weight: 700 !important;
    color: rgb(0, 61, 82) !important;
    font-size: clamp(16px, min(8cqh, 6cqw), 48px) !important;
    line-height: 1.2 !important;
    letter-spacing: -0.01em !important;
    padding: 1rem 0 !important;
}

.hero__logo {
    height: 36cqh !important;
    width: auto !important;
    margin: 4cqh 0 2cqh !important;
}

.hero__logo svg {
    display: block !important;
    height: 100% !important;
    width: auto !important;
}

.hero__subheading {
    font-family: "Montserrat", sans-serif !important;
    font-weight: 700 !important;
    color: rgb(0, 61, 82) !important;
    font-size: clamp(14px, min(6cqh, 4.5cqw), 34px) !important;
}

.hero__subtitle {
    font-family: "Montserrat", sans-serif !important;
    color: rgb(0, 61, 82) !important;
    font-size: clamp(10px, min(6cqh, 4.5cqw), 18px) !important;
}

/* Sized to match the buttons on the other slides */
.cta__button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: clamp(200px, 90%, 315px) !important;
    margin-top: 3cqh !important;
    padding: clamp(0.5rem, 2.5cqh, 0.75rem) 3rem !important;
    background-color: rgb(0, 114, 152) !important;
    color: #fff !important;
    font-family: "Poppins", sans-serif !important;
    font-weight: 800 !important;
    font-size: clamp(14px, min(4.5cqh, 3cqw), 24px) !important;
    line-height: 1 !important;
    text-decoration: none !important;
    border-radius: 10rem !important;
    transition: transform 0.2s ease !important;
}

.cta__button-dot {
    display: block !important;
    width: clamp(8px, 2cqh, 12px) !important;
    height: clamp(8px, 2cqh, 12px) !important;
    margin-left: 6px !important;
    background-color: rgb(255, 99, 78) !important;
    border-radius: 50% !important;
    flex-shrink: 0 !important;
    align-self: flex-end !important;
    margin-bottom: 3px !important;
}
