/* Hero Section */
.hero {
    height: 93vh; 
    position: relative; 
    display: flex;
    align-items: flex-end; 
    /* Thay đổi quan trọng: Bỏ padding cố định, dùng flex để căn giữa khối nội dung */
    padding: 0; 
    justify-content: center; 
    width: 100%;
}

/* Thêm lớp phủ sẫm màu */
.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.1); /* Độ sẫm 25%, mày có thể tăng lên 0.3 nếu muốn tối hơn */
    z-index: 1;
}

.hero-bg { 
    position: absolute; 
    inset: 0; 
    z-index: -1; 
}


.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 0;
}

.hero-text { 
    color: #fff; 
    width: 100%;
    max-width: var(--container-max); /* Khóa chặt ở 1650px */
    margin: 0 auto; /* Ép vào giữa màn hình */
    padding: 0 var(--side-padding); /* Trả lại đúng 55px padding để chữ đứng đúng vị trí cũ */
    margin-bottom: 48px;
    z-index: 2;
    text-align: left; /* Đảm bảo chữ vẫn canh trái bên trong cái lồng 1650px */
}


.hero-text h1 { font-size: 30px; line-height: 1.1; margin-bottom: 40px; font-weight: 400; }
.hero-text p { letter-spacing: 0px; font-size: 13px; margin-bottom: 35px; }


.btn-shop {
    display: inline-block; 
    padding: 15px 40px; 
    background: #fff;
    color: #000; 
    text-decoration: none; 
    border-radius: 50px;
    font-size: 15px; 
    font-weight: 400;
}

.btn-shop:hover {
    color:#ffffff !important;
    background-color: transparent !important;
    box-shadow: inset 0 0 0 2px #ffffff !important; 
}

.mobile-only { 
    display: none !important; 
}

/* Mặc định trên Desktop: Giấu nút Mobile */
.mobile-menu-btn, .mobile-overlay { display: none; }





@media (max-width: 1024px) {
    .hero {
        /* 1. Xóa bỏ chiều cao 75vh cũ */
        height: auto !important; 
        
        /* 2. Dùng min-height theo % chiều ngang màn hình (tương đương tỉ lệ 4:5) */
        /* Cách này giúp nó co giãn thông minh mà không bị ép cứng như aspect-ratio */
        min-height: 120vw !important; 
        
        /* 3. Đảm bảo ảnh nền luôn lấp đầy cái khung mới này */
        background-size: cover !important;
        background-position: center !important;

        /* GIỮ NGUYÊN TOÀN BỘ CẤU TRÚC CỦA MÀY */
        display: flex;
        flex-direction: column;
        justify-content: flex-end; 
        align-items: center;    
        text-align: center;
        padding: 0 20px;
        padding-bottom: 20px !important; 
        padding-left: 20px !important;
        padding-right: 20px !important;
        border-top: 1px solid #ffffff;
    }

    .hero-text {
        /* [QUAN TRỌNG] Ghi đè triệt để padding 55px của desktop */
        padding: 0 !important; 
        margin: 0 auto !important;
        max-width: 100% !important; 
        width: 100% !important;
        
        /* Đảm bảo căn giữa tuyệt đối */
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center !important;
        margin-bottom: 20px !important; /* Khoảng cách so với đáy section 20px */
    }


    .hero-text h1 {
        font-size: 28px; 
        font-weight: 400;
        margin-bottom: 27px;
        line-height: 1.2;
    }

    .hero-text p {
        font-size: 12px;
        letter-spacing: 0px;
        margin-bottom: 25px;
    }

    .btn-shop {
        padding: 13px 30px;
        font-size: 15px;
        /* Đảm bảo nút không bị kéo dãn ngang */
        width: fit-content !important; 
        display: inline-block;
        margin: 0 auto;
    }
}


/* TABLET: Dàn ngang ra tối ưu */
@media (min-width: 768px) and (max-width: 1024px) {
    .hero {
        min-height: 56vw !important; /* Tỉ lệ ngang cho Tablet [cite: 2026-02-07] */
    }
}









.certificatehero {
    height: 93vh; 
    position: relative; 
    display: flex;
    align-items: flex-end; 
    /* Thay đổi quan trọng: Bỏ padding cố định, dùng flex để căn giữa khối nội dung */
    padding: 0; 
    justify-content: center; 
    width: 100%;
}

.certificatehero-bg { position: absolute; inset: 0; z-index: -1; }

.certificatehero-bg img { width: 100%; height: 100%; object-fit: cover; }


.certificatehero-text { 
    color: #fff; 
    width: 100%;
    max-width: var(--container-max); /* Khóa chặt ở 1650px */
    margin: 0 auto; /* Ép vào giữa màn hình */
    padding: 0 var(--side-padding); /* Trả lại đúng 55px padding để chữ đứng đúng vị trí cũ */
    margin-bottom: 48px;
    z-index: 2;
    text-align: left; /* Đảm bảo chữ vẫn canh trái bên trong cái lồng 1650px */
}


.certificatehero-text h1
 { font-size: 60px; line-height: 1.1; margin-bottom: 40px; font-weight: 400; }

.certificatehero-text p { letter-spacing: 0px; font-size: 13px; margin-bottom: 35px; }

.mobile-only { 
    display: none !important; 
}

/* Mặc định trên Desktop: Giấu nút Mobile */
.mobile-menu-btn, .mobile-overlay { display: none; }



@media (max-width: 1024px) {
    .certificatehero {
        /* 1. Xóa bỏ chiều cao 75vh cũ */
        height: auto !important; 
        
        /* 2. Dùng min-height theo % chiều ngang màn hình (tương đương tỉ lệ 4:5) */
        /* Cách này giúp nó co giãn thông minh mà không bị ép cứng như aspect-ratio */
        min-height: 120vw !important; 
        
        /* 3. Đảm bảo ảnh nền luôn lấp đầy cái khung mới này */
        background-size: cover !important;
        background-position: center !important;

        /* GIỮ NGUYÊN TOÀN BỘ CẤU TRÚC CỦA MÀY */
        display: flex;
        flex-direction: column;
        justify-content: flex-end; 
        align-items: center;    
        text-align: center;
        padding: 0 20px;
        padding-bottom: 20px !important; 
        padding-left: 20px !important;
        padding-right: 20px !important;
        border-top: 1px solid #ffffff;
    }

    .certificatehero-text {
        padding: 0 !important; 
        margin: 0 auto !important;
        max-width: 100% !important; 
        width: 100% !important;
        
        /* Đảm bảo căn giữa tuyệt đối */
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center !important;
        margin-bottom: 20px !important; /* Khoảng cách so với đáy section 20px */
    }

    .certificatehero-text h1 {
        font-size: 28px; 
        font-weight: 400;
        margin-bottom: 20px;
        line-height: 1.2;
    }

    .certificatehero-text p {
        font-size: 12px;
        letter-spacing: 0px;
        margin-bottom: 0px;
    }
}


/* TABLET: Dàn ngang ra tối ưu */
@media (min-width: 768px) and (max-width: 1024px) {
    .certificatehero {
        min-height: 56vw !important; /* Tỉ lệ ngang cho Tablet [cite: 2026-02-07] */
    }
}




