@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;700&display=swap");

html {
    font-family: "Poppins", Courier, monospace;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    font-family: "Poppins", Courier, monospace;
    /* overflow-x: hidden; */
}

.hero {
    position: relative;
    z-index: 1;
    min-height: 110dvh;
    width: 100%;
    overflow: visible;
    padding-bottom: 200px;
}

/* Each slide fills the hero */
.slide-hero {
    position: absolute;
    top: 25px;
    left: 30px;
    width: 97%;
    height: 100dvh;
    border-radius: 15px;
    opacity: 0;
    transition: opacity 1s linear;
    z-index: 0;
}

.slide-hero.active {
    opacity: 1;
    z-index: 1;
}

/* Image inside the slide */
.slide-hero .img-hero {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* border-radius: 15px; */
}

/* OVERLAY SLIDE-UP */
.overlay-animate {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 80dvh;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), transparent);
    /* border-radius: 15px; */
    opacity: 0;
    transition: opacity 1s ease;
    z-index: 2;
}

.overlay-animate.show-overlay {
    opacity: 1;
}

/* HERO TEXT */
.slide-hero .hero-text {
    position: absolute;
    top: 120px;
    width: 100%;
    text-align: center;
    color: white;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease, transform 1s ease;
    z-index: 8;
}

/* Text shown after delay */
.slide-hero.active .hero-text.show {
    opacity: 1;
    transform: translateY(0);
}

/* TITLE + SUBTITLE */
.hero-text .title-hero {
    color: #fff;
    text-align: center;
    font-size: 2.75rem;
    font-style: normal;
    font-weight: 700;
    line-height: 110.19%;
    z-index: 8;
}

.hero-text .subtitle-hero {
    color: #fff;
    font-size: 1.45rem;
    font-style: normal;
    font-weight: 400;
    line-height: 130%;
    max-width: 600px;
    text-align: center;
    margin: 0 auto;
    z-index: 8;
}

.port-wrapper {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 40px;
    padding: 0.5rem;
    max-width: 700px;
    margin: auto;
}

.port-box {
    background: rgba(255, 255, 255, 0.15);
    padding: 0.6rem 1rem;
}

.form-select {
    color: #fff;
    font-size: 0.9rem;
}

.form-select option {
    color: #000;
}

.swap-btn-wrapper {
    margin: 0 -0.6rem;
    z-index: 2;
}

.swap-btn {
    width: 40px;
    height: 40px;
    border-width: 2px;
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(6px);
    transition: 0.3s;
}

.swap-btn:hover {
    background-color: #fff;
    color: #0d6efd;
}

/* RESPONSIVE */

/* Tablet and below (≤ 1024px) */
@media (max-width: 1024px) {
    .hero {
        height: 600px;
    }
    .slide-hero {
        height: 400px;
        top: 20px;
        left: 20px;
        width: 95%;
        border-radius: 30px;
    }
    .overlay-animate {
        height: 400px;
    }
    .slide-hero .hero-text {
        top: 90px;
    }
    .hero-text .title-hero {
        font-size: 2.2rem;
    }
    .hero-text .subtitle-hero {
        font-size: 1.2rem;
        max-width: 90%;
    }
}

@media (min-width: 2000px) {
    .slide-hero .hero-text {
        top: 378px;
    }

    .hero-text .title-hero {
        font-size: 4.75rem;
    }

    .hero-text .subtitle-hero {
        font-size: 2.45rem;
        /* min-width: 1500px; */
    }

    .hero-card {
        bottom: 100px;
    }

    .section-why-choose-us {
        height: 624px;
    }

    .section-why-choose-us > .container {
        max-width: 2000px;
        margin-right: 15rem;
        margin-top: 95px;
    }

    .section-tab-news .nav-link {
        font-size: 24px;
    }
}

/* Mobile (≤ 640px) */
@media (max-width: 640px) {
    .slide-hero {
        height: 105%;
        top: 10px;
        left: 10px;
        width: 95%;
        border-radius: 20px;
    }
    .overlay-animate {
        height: 350px;
    }
    .slide-hero .hero-text {
        top: 60px;
        padding: 0 1rem;
    }
    .hero-text .title-hero {
        font-size: 1.5rem;
        line-height: 1.2;
    }
    .hero-text .subtitle-hero {
        font-size: 1rem;
        max-width: 100%;
    }
    .hero {
        min-height: 140dvh;
    }

    #nav-schedule-btn{
        margin-top: 10px !important;
    }

}

/* ============================================================================================== */
/* ----------------------------WHY CHOSE US SECTION----------------------------------------------- */
.section-why-choose-us {
    background: rgba(16, 129, 198, 0.1);
    width: 100%;
    /* height: 500px; */
    background-image: url(/hms/assets/hero/why-choose-us/bg-wcu.png);
    padding: 4rem 0;
    overflow-x: hidden;
    /* margin-bottom: 20rem; */
}

.wcu-icon {
    color: #1081c6;
    font-size: 2rem;
    margin-bottom: 3rem;
}

.wcu-title {
    text-align: center;
    color: #232323;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
}

.slider {
    position: relative;
    width: 100%;
    margin: auto;
    overflow: hidden;
}

.slide-track {
    display: flex;
    gap: 20px;
    will-change: transform;
}

.slide {
    flex: 0 0 auto;
    width: 200px;
    background-color: #fff;
    border-radius: 10px;
    color: #1081c6;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 1rem;
    user-select: none;
    /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); */
    cursor: default;
}

.slider-customer {
    flex: 0 0 auto;
    width: 200px;
    height: 200px;
    /* background-color: #fff; */
    /* border: 1px solid #1081c6; */
    border-radius: 10px;
    color: #1081c6;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 1rem;
    user-select: none;
    /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); */
    cursor: default;
}

/* === RESPONSIVE === */

@media (max-width: 992px) {
    .wcu-title {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
    .slide h4 {
        font-size: 1.2rem;
    }
    .slide p {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .wcu-title {
        font-size: 1.6rem;
        margin-bottom: 1rem;
    }
    .slide {
        width: 140px;
        height: 200px;
        padding: 0.5rem;
    }
    .slide h4 {
        font-size: 1rem;
    }
    .slide p {
        font-size: 0.8rem;
    }
    .wcu-icon {
        font-size: 2rem;
        margin-bottom: 0.3rem;
    }
}

/* TABS */

/* News */

.news-title-card {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    font-size: 15px;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 85%;
}

.news-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 85%;
}

.page-link {
    display: flex !important;
    width: 50.99px;
    height: 50.99px;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

/* SECTION NAV NEWS */
.section-tab-news .nav-link {
    position: relative;
    color: #333;
    transition: color 0.3s ease;
    margin-right: 1rem;
}

.section-tab-news .nav-item:last-child {
    margin-right: 0;
}

.section-tab-news .nav-link {
    color: #666 !important;
    text-align: center;
    /* font-size: 18.28px; */
    font-style: normal;
    font-weight: 400;
    line-height: 19.355px;
    cursor: pointer;
}

.section-tab-news.nav-link.active,
.section-tab-news.nav-link:hover {
    color: #1081c6 !important;
    text-align: center;
    font-style: normal;
    font-weight: 400;
    line-height: 19.355px;
}

.section-tab-news .nav-link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    transform-origin: center;
    width: 100%;
    height: 2px;
    background-color: #1081c6 !important;
    transition: transform 0.3s ease;
}

.section-tab-news .nav-link.active::after {
    transform: translateX(-50%) scaleX(1);
}

.promotion-list {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 1200px;
}

.promo-card {
    width: 100%;
    max-width: 900px;
    height: auto;
    opacity: 0;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
    display: none;
}

.promo-card.active {
    display: block;
    opacity: 1;
    transform: scale(1);
}

.promo-card.prev,
.promo-card.next {
    display: block;
    opacity: 0.5;
    transform: scale(0.8);
}

.promo-card img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

@media (min-width: 768px) {
    .img-md-180 {
        width: 200px;
    }
}
@media (max-width: 768px) {
    .promo-card {
        width: 100%;
        max-width: 400px;
    }
}

/* COSTUMER */
.section-customer > .customer-title {
    color: #1081c6;
    text-align: center;
    font-size: 25.231px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
}

.section-customer .slider {
    height: 220px;
    margin: auto;
    position: relative;
    /* width: 100%; */
    /* display: flex; */
    place-items: center;
    overflow: hidden;
}

.section-customer .slide-track {
    display: flex;
    gap: 20px;
    will-change: transform;
}

.section-customer .slide {
    background-color: #fff;
    border-radius: 10px;
    width: 200px;
    height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #1081c6;
    padding: 10px;
    flex-shrink: 0;
}

.section-customer .slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.section-customer .slide p {
    margin: 0;
    font-size: 12px;
}

.section-customer .the-member-of {
    display: flex !important;
}

#promo-content {
    /* margin-top: 100px; */
    overflow-x: hidden;
}

/* CTA MEMBERSHIP */
#cta-membership {
    width: 100%;
    min-height: 20rem;
    background-image: url("/hms/assets/hero/cta-membership-bg.png") !important;
    background-repeat: no-repeat;
    background-position: right center;
    background-size: cover;
    padding: 4rem 2rem;
    color: #fff;
}

#cta-membership .row {
    min-height: 15rem;
}

.cta-phone {
    max-height: 24rem;
    width: auto;
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.cta-phone.visible {
    opacity: 1;
    transform: translateX(0);
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.cta-decs {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 2rem;
    line-height: 1.4;
    max-width: 600px;
}

.cta-btn {
    display: inline-flex;
    padding: 0.75rem 1.5rem;
    border-radius: 0.6rem;
    background: #0068a7;
    border: none;
    color: #fff;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.cta-btn:hover {
    background: #00508c;
}

/* === RESPONSIVE === */
@media (max-width: 992px) {
    #cta-membership {
        min-height: auto;
        padding: 3rem 1.5rem;
        background-position: center top;
    }

    #cta-membership .row {
        min-height: auto;
    }

    .cta-title {
        font-size: 2rem;
    }

    .cta-decs {
        font-size: 1.2rem;
        max-width: 100%;
    }

    .cta-phone {
        max-height: 20rem;
    }
}

@media (max-width: 576px) {
    #cta-membership {
        padding: 2rem 1rem;
    }

    #cta-membership .row {
        flex-direction: column;
        text-align: center;
    }

    #cta-membership .col-md-5 {
        order: 1;
        width: 100%;
        max-width: 280px;
        margin: 0 auto 1.5rem;
    }

    #cta-membership .col-md-7 {
        order: 2;
        width: 100%;
    }

    .cta-title {
        font-size: 1.6rem;
        margin-bottom: 1rem;
    }

    .cta-decs {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .cta-btn {
        font-size: 1rem;
        padding: 0.6rem 1.2rem;
    }

    .cta-phone {
        max-height: 16rem;
        opacity: 1;
        transform: translateX(0);
    }
}
