/* ==========================================================================
   HERO BANNER - BASE STYLES & CONTAINER BREAKOUT
   ========================================================================== */

/* 1. Ép phá khung tràn màn hình trên mọi theme */
.crb-block-fullwidth.hero {
    width: 100vw !important;
    position: relative !important;
    left: 50% !important;
    right: 50% !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    box-sizing: border-box !important;
    height: 100vh;
    min-height: 650px;
    overflow: hidden;
    background-color: var(--color-primary-second, #456967);
}

.hero__slider {
    width: 100%;
    height: 100%;
}

/* 2. Slide căn chỉnh mặc định (CĂN GIỮA) */
.hero__slide {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 650px;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    overflow: hidden;
    padding: 0 20px !important;
    box-sizing: border-box;
}

.hero__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    pointer-events: none;
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35);
    z-index: 2;
    pointer-events: none;
}

/* Loại bỏ hoàn toàn lớp phủ màu khi slide là Video */
.hero__slide--has-video .hero__overlay {
    display: none !important;
    background: transparent !important;
}

.hero__container-inner {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero__content {
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    text-align: center;
    color: #FFFFFF !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* TYPOGRAPHY ISOLATION */
.hero__title {
    font-family: var(--ff-hero, var(--font-heading, inherit));
    font-size: var(--fs-hero, 42px);
    line-height: var(--lh-hero, 50px) !important;
    font-weight: var(--fw-hero, 400);
    margin: 0 0 16px 0 !important;
    color: #FFFFFF !important;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero__desc,
.hero__desc p {
    font-family: var(--ff-body, var(--font-body, inherit));
    font-size: var(--fs-body, 16px);
    line-height: var(--lh-body, 1.6) !important;
    margin: 0 0 24px 0 !important;
    color: #FFFFFF !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    max-width: 680px;
}

.hero__action {
    display: flex;
    justify-content: center;
}

/* NÚT BẤM (BUTTON RESET) */
.hero__btn {
    display: inline-block;
    padding: 10px 10px;
    border: 2px solid #FFFFFF;
  	border-radius: 5px;
    color: #FFFFFF !important;
    text-decoration: none !important;
    text-transform: uppercase;
    font-weight: 600;
    transition: all 0.3s ease;
}

.hero__btn:hover {
    background-color: #FFFFFF;
    color: #000000 !important;
}

/* PAGINATION */
.hero__pagination {
    position: absolute;
    bottom: 30px;
    left: 0;
    width: 100%;
    z-index: 5;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.hero__pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    opacity: 1;
    transition: all 0.3s ease;
    cursor: pointer;
}

.hero__pagination .swiper-pagination-bullet-active {
    width: 24px;
    border-radius: 12px;
    background-color: #FFFFFF;
}

/* ==========================================================================
   MODIFIER: CĂN TRÁI (LEFT ALIGNMENT MODIFIER)
   ========================================================================== */
.hero__slide--left {
    align-items: flex-start !important;
    justify-content: flex-start !important;
    padding-top: 140px !important;
    padding-left: 80px !important;
}

.hero__slide--left .hero__container-inner {
    margin: 0 !important;
    max-width: 100% !important;
    justify-content: flex-start !important;
    align-items: flex-start !important;
}

.hero__slide--left .hero__content {
    margin: 0 !important;
    text-align: left !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    max-width: 650px !important;
}

.hero__slide--left .hero__title,
.hero__slide--left .hero__desc,
.hero__slide--left .hero__desc p {
    text-align: left !important;
    margin-left: 0 !important;
}

.hero__slide--left .hero__action {
    justify-content: flex-start !important;
}

/* RESPONSIVE BASE */
@media (max-width: 768px) {
    .crb-block-fullwidth.hero,
    .hero__slide {
        height: 100vh;
        min-height: 520px;
    }

    .hero__title {
        font-size: var(--fs-hero, 28px);
        line-height: var(--lh-hero, 36px) !important;
    }

    .hero__desc,
    .hero__desc p {
        font-size: var(--fs-body, 16px);
        line-height: var(--lh-body, 1.6);
    }

    .hero__slide--left {
        padding-top: 100px !important;
        padding-left: 20px !important;
    }
}
