/* ==========================================================================
   HERO BANNER - BASE STYLES
   Path: template-parts/sections/hero/style.css
   ========================================================================== */

.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 650px;
    overflow: hidden;
    background-color: var(--color-primary-second, #456967);
}

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

.hero__slide {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 650px;
    display: flex !important;
    align-items: center !important;     /* Căn giữa mặc định */
    justify-content: center !important;  /* Căn giữa mặc định */
    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.3);
    z-index: 2;
    pointer-events: none;
}

.hero__slide > .container {
    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 */
.hero-title,
.hero__title {
    font-family: var(--ff-hero, var(--font-heading));
    font-size: var(--fs-hero, 70px);
    line-height: 1.2 !important;
    font-weight: var(--fw-hero, 400);
    margin: 0 0 var(--space-heading-bottom, 16px) 0;
    color: #FFFFFF !important;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero__desc,
.hero__content p {
    font-family: var(--ff-body, var(--font-body));
    font-size: var(--fs-body-m, 20px);
    line-height: var(--lh-body-m, 27px);
    font-weight: var(--fw-body-m, 400);
    margin: 0 0 var(--space-text-bottom, 24px) 0;
    color: #FFFFFF !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    max-width: 680px;
    font-style: normal;
}

.hero__desc.is-italic,
.hero__desc.is-quote,
.hero__desc--italic,
.hero__desc em,
.hero__desc i,
.hero__desc q {
    font-family: var(--font-body), sans-serif;
    font-style: italic;
    font-weight: 300;
    font-size: var(--fs-h2);
    line-height: 1.5;
    letter-spacing: 0.5px;
    display: inline-block;
}

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

/* 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: var(--transition-base, all 0.3s ease);
    cursor: pointer;
}

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

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

    .hero-title,
    .hero__title {
        font-size: var(--fs-h2, 45px);
        line-height: 1.25 !important;
    }

    .hero__desc,
    .hero__content p {
        font-size: var(--fs-body-s, 14px);
    }
}

/* ==========================================================================
   GHI ĐÈ TRIỆT ĐỂ CHO TRANG CONTACT US 2 (ĐẨY TEXT LÊN TRÊN - TRÁI)
   ========================================================================== */

/* 1. Ép tất cả các container bọc ngoài dồn về góc trên - trái */
.page-template-page-contact-us-2 .hero,
.page-template-page-contact-us-2 .hero__container,
.page-template-page-contact-us-2 .hero__slide,
.page-contact-us-2 .hero,
.page-contact-us-2 .hero__container,
.page-contact-us-2 .hero__slide,
.page-id-2592 .hero,
.page-id-2592 .hero__container,
.page-id-2592 .hero__slide {
    align-items: flex-start !important;
    justify-content: flex-start !important;
}

/* 2. Căn lề lùi từ mép màn hình vào (tránh dính sát lề) */
.page-template-page-contact-us-2 .hero__slide,
.page-contact-us-2 .hero__slide,
.page-id-2592 .hero__slide {
    padding-top: 140px !important; /* Khoảng cách từ thanh Topbar/Header xuống */
    padding-left: 80px !important;  /* Khoảng cách từ lề trái vào */
    padding-right: 20px !important;
}

/* 3. Xóa bỏ thuộc tính căn giữa của Container & Content */
.page-template-page-contact-us-2 .hero__slide > .container,
.page-contact-us-2 .hero__slide > .container,
.page-id-2592 .hero__slide > .container {
    margin: 0 !important;
    max-width: 100% !important;
    justify-content: flex-start !important;
    align-items: flex-start !important;
}

.page-template-page-contact-us-2 .hero__content,
.page-contact-us-2 .hero__content,
.page-id-2592 .hero__content {
    margin: 0 !important;
    text-align: left !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    max-width: 650px !important;
}

/* 4. Ép Tiêu đề, Đoạn văn căn lề trái */
.page-template-page-contact-us-2 .hero-title,
.page-template-page-contact-us-2 .hero__title,
.page-template-page-contact-us-2 .hero__desc,
.page-template-page-contact-us-2 .hero__content p,
.page-contact-us-2 .hero-title,
.page-contact-us-2 .hero__title,
.page-contact-us-2 .hero__desc,
.page-contact-us-2 .hero__content p,
.page-id-2592 .hero-title,
.page-id-2592 .hero__title,
.page-id-2592 .hero__desc,
.page-id-2592 .hero__content p {
    text-align: left !important;
    margin-left: 0 !important;
}

/* Responsive cho Mobile */
@media (max-width: 768px) {
    .page-template-page-contact-us-2 .hero__slide,
    .page-contact-us-2 .hero__slide,
    .page-id-2592 .hero__slide {
        padding-top: 100px !important;
        padding-left: 20px !important;
    }
}