/* ==============================================================
   0. CỐT LÕI - BIẾN MÀU SẮC VÀ THIẾT LẬP CHUNG
============================================================== */
:root {
    --primary-color: #D4AF37; /* Vàng Gold Luxury */
    --primary-hover: #b5952f;
    --bg-main: #121212; /* Nền Đen nhám */
    --bg-darker: #050505; /* Nền Đen sâu */
    --text-main: #ffffff; /* Chữ trắng */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
}

/* Nút bấm dùng chung */
.btn-primary {
    background-color: var(--primary-color);
    color: #000;
    padding: 12px 25px;
    border: none;
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
    transition: 0.3s;
}
.btn-primary:hover {
    background-color: var(--primary-hover);
}

/* ==============================================================
   1. BỐ CỤC CHUNG CỦA TRANG CHỦ & BANNER
============================================================== */
main { padding-top: 0 !important; }
section:not(.hero-slider-section) { padding-top: 80px; }

/* Banner Slider & Form */
.hero-slider-section { position: relative; height: 100vh; overflow: hidden; }
.slider-wrapper { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; }
.slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; opacity: 0; transition: opacity 1s ease-in-out; }
.slide.active { opacity: 1; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.6); z-index: 2; }

.hero-content {
    position: relative; z-index: 3; display: flex; justify-content: space-between; align-items: center; width: 100%; height: 100%; padding: 0 40px; margin: auto; max-width: 1200px;
}
.hero-text { flex: 0 1 50%; text-align: left; }
.hero-text h1 { color: #ffffff; font-size: 4rem; text-shadow: 2px 2px 15px rgba(0,0,0,0.9); margin-bottom: 20px; }
.hero-text .font-kieu-1 { font-family: 'Dancing Script', cursive; color: var(--primary-color); font-weight: 700; display: block; font-size: 3.5rem; line-height: 0.8; }
.hero-text .font-kieu-2 { font-family: 'Montserrat', sans-serif; font-weight: 900; text-transform: uppercase; letter-spacing: 3px; }
.hero-text p { font-size: 1.2rem; color: #f5f5f5; text-shadow: 1px 1px 5px rgba(0,0,0,0.8); max-width: 600px; line-height: 1.6; }

.hero-form-box { flex: 0 1 400px; background: rgba(10, 10, 10, 0.75); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); padding: 35px 30px; border-radius: 12px; border: 1px solid rgba(212, 175, 55, 0.3); box-shadow: 0 20px 50px rgba(0,0,0,0.8); }
.hero-form-box h3 { text-align: center; color: var(--primary-color); margin-bottom: 25px; font-size: 1.3rem; text-transform: uppercase; letter-spacing: 1px; }

/* ==============================================================
   2. COMPONENT: HEADER (FULL TRANG, CẠNH VUÔNG, SMART STICKY)
============================================================== */
.site-header, .sub-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    z-index: 1000;
    transition: transform 0.4s ease-in-out, opacity 0.3s ease;
}

/* Hiệu ứng ẩn hiện */
.site-header.hide { transform: translateY(-100%); }
.sub-header { z-index: 999; transform: translateY(-100%); opacity: 0; }
.sub-header.show { transform: translateY(0); opacity: 1; }

.header-container {
    width: 100%;
    padding: 0 40px;
    display: flex;
    justify-content: flex-end; /* Đẩy tất cả nội dung sang bên PHẢI */
    align-items: center;
    height: 40px;
}

/* Cụm Logo + Menu nằm cạnh nhau */
.header-center-group {
    display: flex;
    align-items: center;
    gap: 100px; /* Khoảng cách giữa Logo và chữ Trang Chủ */
}

/* LOGO: Zoom nhẹ khi rê chuột */
.logo {
    display: flex;
    align-items: center;
}
.logo-img {
    height: 25px;
    width: auto;
    transition: transform 0.3s ease;
}
.logo:hover .logo-img {
    transform: scale(1.1); /* Phóng to nhẹ 10% */
}

/* MENU: Chữ bình thường, không viết hoa All-caps */
.main-nav {
    display: flex;
    align-items: center;
}
.nav-list {
    display: flex;
    list-style: none;
    gap: 25px;
}
.nav-link {
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: none; /* Giữ nguyên chữ thường chữ hoa như lúc gõ */
    text-decoration: none;
    transition: color 0.3s ease;
}
.nav-link:hover, .nav-link.active {
    color: var(--primary-color);
}

.header-action {
    display: flex;
    align-items: center;
    margin-left: 20px;
}

/* ==============================================================
   3. RESPONSIVE: TỐI ƯU CHO DI ĐỘNG & TABLET
============================================================== */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 2rem;
    cursor: pointer;
}

@media (max-width: 992px) {
    .header-container { 
        padding: 0 20px; 
        justify-content: center; /* 1. Đưa Logo ra chính giữa */
        position: relative; /* 2. Làm mốc tọa độ cho nút menu bên phải */
    }
    
    /* 3. Ghim nút Menu sang bên phải */
    .header-action {
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%); /* Đảm bảo nút menu luôn canh giữa theo chiều dọc */
    }
    
    .mobile-menu-btn { display: block; }
    
    .main-nav {
        display: none; 
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(10, 10, 10, 0.98);
        padding: 20px 0;
        box-shadow: 0 10px 20px rgba(0,0,0,0.5);
        border-top: 1px solid rgba(212, 175, 55, 0.2);
    }

    .main-nav.show { display: block; }
    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
       padding-left: 25px;
    }
}
/* ==============================================================
   LÕI FORM VẠN NĂNG (NGANG - DỌC - SIDEBAR - POPUP)
============================================================== */
.greenia-master-form { width: 100%; display: flex; gap: 12px; }

/* Các ô nhập liệu dùng chung */
.greenia-master-form input {
    box-sizing: border-box; background: rgba(255,255,255,0.05); border: 1px solid rgba(212, 175, 55, 0.3);
    color: #fff; padding: 12px 15px; font-size: 13px; font-family: 'Manrope', sans-serif;
    border-radius: 4px; outline: none; transition: 0.3s;
}
.greenia-master-form input:focus { border-color: var(--primary-color); background: rgba(0, 0, 0, 0.5); box-shadow: 0 0 10px rgba(212, 175, 55, 0.2); }

/* Nút Submit dùng chung */
.greenia-master-form button {
    background: var(--primary-color); color: #000; border: 1px solid var(--primary-color);
    padding: 12px 25px; font-weight: bold; font-family: 'Montserrat', sans-serif; text-transform: uppercase;
    border-radius: 4px; cursor: pointer; transition: 0.3s; white-space: nowrap;
}
.greenia-master-form button:hover { background: transparent; color: var(--primary-color); }

/* 1. LAYOUT FORM DỌC (Dùng cho Sidebar, Popup) */
.greenia-master-form.layout-doc { flex-direction: column; }
.greenia-master-form.layout-doc input, .greenia-master-form.layout-doc button { width: 100%; }

/* 2. LAYOUT FORM NGANG (Dùng cho Footer, Banner rộng) */
.greenia-master-form.layout-ngang { flex-direction: row; flex-wrap: wrap; justify-content: center; align-items: stretch; }
.greenia-master-form.layout-ngang input { flex: 1; min-width: 200px; }
.greenia-master-form.layout-ngang button { flex: 0 0 auto; }

/* Thông báo thành công */
.master-success-msg { display: none; padding: 20px; background: rgba(46, 204, 113, 0.1); border: 1px solid #2ecc71; border-radius: 8px; text-align: center; color: #fff; animation: fadeIn 0.5s; }

/* MOBILE RESPONSIVE CHO FORM NGANG */
@media (max-width: 768px) {
    .greenia-master-form.layout-ngang { flex-direction: column; }
    .greenia-master-form.layout-ngang input, .greenia-master-form.layout-ngang button { width: 100%; }
}

/* ==============================================================
   NÚT NỔI (FLOATING BUTTONS) & POPUP ĐÃ TỐI ƯU TỪ CODE CỦA BẠN
============================================================== */
/* (Bạn dán toàn bộ đoạn CSS .greenia-floating-contact-new, .popup-overlay-new, .cookie-box-new của bạn vào ĐÂY, tôi bỏ qua để tránh dài dòng vì CSS của bạn đã rất đẹp rồi) */

/* ==============================================================
   HIỆU ỨNG CHÈN LINK BÀI VIẾT TỰ ĐỘNG (ICON ĐỘNG)
============================================================== */
@keyframes pointRight {
    0% { transform: translateX(0); }
    100% { transform: translateX(6px); }
}
.gr-hot-icon {
    display: inline-block;
    animation: pointRight 0.5s infinite alternate ease-in-out;
    margin-right: 5px;
    font-size: 16px;
}
.gr-related-link {
    color: #c5a059 !important;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px dashed rgba(197, 160, 89, 0.5);
    transition: all 0.3s ease;
    font-size: 16px;
}
.gr-related-link:hover {
    color: #fff !important;
    border-bottom-color: #fff;
    padding-left: 5px;
}
.gr-related-item {
    margin-bottom: 10px;
    margin-top: 5px;
    padding-left: 10px;
}
