
/* =========================================
   VINASEN V7.3
   PREMIUM HERO BANNER
========================================= */

.vinasen-banner {

    position: relative;

    width: 100%;
    height: clamp(500px, 38vw, 680px);

    overflow: hidden;

    isolation: isolate;

    background: #174c45;

    font-family: "Times New Roman", serif;

}

.banner-slides {

    position: absolute;

    inset: 0;

}

/* =========================================
   CAC BANNER
========================================= */

.banner-slide {

    position: absolute;

    inset: 0;

    display: flex;
    align-items: center;

    background-color: #174c45;

    background-size: cover;
    background-position: center;

    opacity: 0;
    visibility: hidden;

    pointer-events: none;

    transition:

        opacity 0.9s ease,

        visibility 0.9s ease;

}

.banner-slide.is-active {

    opacity: 1;
    visibility: visible;

    pointer-events: auto;

}

/* HINH ANH */

.banner-01 {

    background-image:
        url("../images/banners/banner-01.jpg");

}

.banner-02 {

    background-image:
        url("../images/banners/banner-02.jpg");

}

.banner-03 {

    background-image:
        url("../images/banners/banner-03.jpg");

}

/* =========================================
   LOP PHU XANH THUONG HIEU
========================================= */

.banner-overlay {

    position: absolute;

    inset: 0;

    background: linear-gradient(

        90deg,

        rgba(13, 53, 47, 0.97) 0%,

        rgba(23, 76, 69, 0.92) 28%,

        rgba(23, 76, 69, 0.65) 55%,

        rgba(23, 76, 69, 0.12) 100%

    );

}

/* =========================================
   NOI DUNG BANNER
========================================= */

.banner-content {

    position: relative;

    z-index: 2;

    width: min(1200px, 86%);

    margin: 0 auto;

    padding: 40px 0 65px;

    color: #ffffff;

}

.banner-eyebrow {

    display: inline-block;

    color: #d5a85b;

    font-family: Arial, sans-serif;

    font-size: 13px;
    font-weight: 600;

    letter-spacing: 3px;

    margin-bottom: 22px;

}

.banner-eyebrow::before {

    content: "";

    display: inline-block;

    width: 32px;
    height: 2px;

    margin-right: 12px;

    background: #d5a85b;

    vertical-align: middle;

}

.banner-content h1,
.banner-content h2 {

    max-width: 760px;

    margin: 0 0 22px;

    font-family: "Times New Roman", serif;

    font-size: clamp(36px, 4vw, 62px);

    line-height: 1.15;

    font-weight: bold;

    color: #ffffff;

}

.banner-content h1 span,
.banner-content h2 span {

    display: block;

    color: #d5a85b;

}

.banner-content p {

    max-width: 570px;

    margin: 0 0 30px;

    color: #e5efec;

    font-size: 20px;

    line-height: 1.65;

}

/* =========================================
   NUT BANNER
========================================= */

.banner-actions {

    display: flex;

    flex-wrap: wrap;

    gap: 14px;

}

.banner-btn {

    display: inline-flex;

    justify-content: center;
    align-items: center;

    padding: 15px 25px;

    border: 1px solid transparent;

    border-radius: 7px;

    font-size: 17px;
    font-weight: bold;

    text-decoration: none;

    transition:

        transform 0.3s ease,

        background 0.3s ease,

        box-shadow 0.3s ease;

}

.banner-primary {

    background: #d5a85b;

    color: #174c45;

}

.banner-secondary {

    background: rgba(255,255,255,0.05);

    border-color: rgba(255,255,255,0.7);

    color: #ffffff;

}

@media (hover: hover) and (pointer: fine) {

    .banner-btn:hover {

        transform: translateY(-4px);

    }

    .banner-primary:hover {

        background: #e7be7a;

        box-shadow:
            0 8px 24px rgba(213,168,91,0.3);

    }

    .banner-secondary:hover {

        background: rgba(255,255,255,0.15);

    }

}

/* =========================================
   HIEU UNG NOI DUNG XUAT HIEN
========================================= */

.banner-slide.is-active .banner-eyebrow {

    animation: bannerReveal 0.7s both;

}

.banner-slide.is-active h1,
.banner-slide.is-active h2 {

    animation: bannerReveal 0.8s 0.1s both;

}

.banner-slide.is-active p {

    animation: bannerReveal 0.8s 0.2s both;

}

.banner-slide.is-active .banner-actions {

    animation: bannerReveal 0.8s 0.3s both;

}

@keyframes bannerReveal {

    from {

        opacity: 0;

        transform: translateY(22px);

    }

    to {

        opacity: 1;

        transform: translateY(0);

    }

}

/* =========================================
   NUT CHUYEN ANH
========================================= */

.banner-arrow {

    position: absolute;

    top: 50%;

    z-index: 5;

    width: 44px;
    height: 44px;

    display: grid;
    place-items: center;

    transform: translateY(-50%);

    background: rgba(255,255,255,0.12);

    border: 1px solid rgba(255,255,255,0.4);

    border-radius: 50%;

    color: #ffffff;

    font-size: 18px;

    cursor: pointer;

    transition: background 0.3s ease;

}

.banner-prev {

    left: 16px;

}

.banner-next {

    right: 16px;

}

.banner-arrow:hover {

    background: #d5a85b;

    color: #174c45;

}

/* =========================================
   DIEU HUONG BANNER
========================================= */

.banner-navigation {

    position: absolute;

    bottom: 26px;
    left: 50%;

    transform: translateX(-50%);

    z-index: 6;

    display: flex;
    align-items: center;

    gap: 12px;

}

.banner-dot {

    width: 12px;
    height: 12px;

    padding: 0;

    border: none;

    border-radius: 20px;

    background: rgba(255,255,255,0.5);

    cursor: pointer;

    transition:

        width 0.3s ease,

        background 0.3s ease;

}

.banner-dot.is-active {

    width: 36px;

    background: #d5a85b;

}

.banner-play {

    display: grid;
    place-items: center;

    width: 32px;
    height: 32px;

    border: 1px solid rgba(255,255,255,0.5);

    border-radius: 50%;

    background: transparent;

    color: #ffffff;

    cursor: pointer;

}

/* =========================================
   THANH TIEN DO
========================================= */

.banner-progress {

    position: absolute;

    bottom: 0;
    left: 0;

    width: 100%;
    height: 4px;

    z-index: 6;

    background: rgba(255,255,255,0.15);

}

#bannerProgress {

    width: 0;
    height: 100%;

    background: #d5a85b;

}

/* BAN PHIM */

.vinasen-banner button:focus-visible,
.vinasen-banner a:focus-visible {

    outline: 3px solid #d5a85b;

    outline-offset: 4px;

}

/* =========================================
   MAY TINH BANG
========================================= */

@media (max-width: 992px) {

    .vinasen-banner {

        height: 540px;

    }

    .banner-content {

        width: 82%;

    }

    .banner-content h1,
    .banner-content h2 {

        font-size: 44px;

    }

}

/* =========================================
   DIEN THOAI
========================================= */

@media (max-width: 600px) {

    .vinasen-banner {

        height: 620px;

        touch-action: pan-y;

    }

    .banner-slide {

        align-items: flex-end;

        background-position: 65% center;

    }

    .banner-overlay {

        background: linear-gradient(

            0deg,

            rgba(13,53,47,0.99) 0%,

            rgba(23,76,69,0.9) 45%,

            rgba(23,76,69,0.2) 100%

        );

    }

    .banner-content {

        width: 84%;

        padding: 25px 0 85px;

    }

    .banner-eyebrow {

        font-size: 10px;

        letter-spacing: 1.5px;

        margin-bottom: 15px;

    }

    .banner-content h1,
    .banner-content h2 {

        font-size: 34px;

        margin-bottom: 15px;

    }

    .banner-content p {

        font-size: 17px;

        margin-bottom: 22px;

    }

    .banner-actions {

        flex-direction: column;

        align-items: flex-start;

        gap: 10px;

    }

    .banner-btn {

        padding: 12px 18px;

        font-size: 15px;

    }

    .banner-arrow {

        width: 32px;
        height: 32px;

        font-size: 14px;

    }

    .banner-prev {

        left: 5px;

    }

    .banner-next {

        right: 5px;

    }

}

/* GIAM CHUYEN DONG */

@media (prefers-reduced-motion: reduce) {

    .vinasen-banner *,
    .vinasen-banner *::before,
    .vinasen-banner *::after {

        animation: none !important;

        transition: none !important;

    }

}
