/* ==========================================================================
   CSS BIẾN (VARIABLES) & RESET
   ========================================================================== */
/* Tìm đoạn :root ở đầu file style.css và sửa --accent-color */
:root {
    --primary-color: #1a1a1a;
    --accent-color: #0e8388; /* Màu Xanh Ngọc Bích Hạ Long */
    --text-main: #333333;
    --text-muted: #666666;
    --bg-white: #ffffff;
    --bg-light: #f7f7f7;
    
    /* Font Variables - Khai báo đầy đủ để không bị rơi về Times New Roman */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Inter', sans-serif;
    
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    
    --transition-fast: 0.3s ease;
    --transition-slow: 0.8s cubic-bezier(0.65, 0, 0.35, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--bg-white);
    overflow-x: hidden; /* Ngăn scroll ngang không mong muốn */
}

html {
    scroll-behavior: smooth;
}

/* --- UTILITIES --- */
.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}
.section-padding { padding: 100px 0; }
.bg-light { background-color: var(--bg-light); }
.bg-white { background-color: var(--bg-white); }
.w-100 { width: 100%; }

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-weight: 700;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.8rem;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-top: 20px;
    font-style: italic;
    font-family: var(--font-heading);
}

/* --- BUTTONS --- */
.btn-ghost {
    padding: 16px 40px;
    border: 1px solid #ffffff;
    background: transparent;
    color: #ffffff;
    font-size: 1rem;
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: var(--transition-fast);
    backdrop-filter: blur(4px);
}

.btn-ghost:hover {
    background: #ffffff;
    color: var(--primary-color);
}

.btn-solid {
    padding: 14px 28px;
    background: var(--primary-color);
    color: #ffffff;
    border: none;
    font-family: var(--font-body);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border-radius: var(--border-radius-sm);
    transition: var(--transition-fast);
}

.btn-solid:hover {
    background: var(--accent-color);
}

.btn-small {
    padding: 10px 20px;
    background: var(--primary-color);
    color: #ffffff;
    border: none;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-small:hover {
    background: var(--accent-color);
}

/* ==========================================================================
   HEADER & NAVBAR (Desktop & Mobile)
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0; left: 0; width: 100%;
    z-index: 1000;
    transition: all 0.4s ease;
    background: transparent;
    padding: 25px 0;
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    transition: color var(--transition-fast);
}
.logo span { color: var(--accent-color); }
.site-header.scrolled .logo { color: var(--primary-color); }

.nav-links {
    display: flex;
    list-style: none;
    gap: 35px;
    align-items: center;
}

/* Typography Navbar Tinh tế */
.nav-link {
    text-decoration: none;
    color: #ffffff;
    font-weight: 400; 
    font-size: 0.95rem; 
    letter-spacing: 0.5px;
    opacity: 0.8; 
    transition: all var(--transition-fast);
    text-transform: none; 
}

.nav-link:hover {
    opacity: 1;
    color: var(--accent-color) !important;
}

.site-header.scrolled .nav-link { 
    color: var(--text-main); 
    opacity: 0.85;
}
.site-header.scrolled .nav-link:hover { 
    opacity: 1; 
}

/* Nút Liên hệ Solid Xanh Ngọc Bích */
.btn-contact {
    padding: 10px 24px;
    background-color: var(--accent-color); 
    color: #ffffff !important;
    border: none;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(14, 131, 136, 0.4);
    transition: all var(--transition-fast);
    opacity: 1 !important;
}

.btn-contact:hover {
    background-color: #096266; 
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(14, 131, 136, 0.5);
}

.site-header.scrolled .btn-contact {
    background-color: var(--accent-color); 
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(14, 131, 136, 0.25);
}

.site-header.scrolled .btn-contact:hover {
    background-color: #096266;
}

/* Hamburger Mobile */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001; 
}
.bar {
    width: 28px;
    height: 3px;
    background-color: #ffffff;
    border-radius: 3px;
    transition: all 0.3s ease;
}
.site-header.scrolled .bar { background-color: var(--primary-color); }

.nav-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 998;
    display: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.nav-overlay.active { display: block; opacity: 1; }

@media (max-width: 992px) {
    .menu-toggle { display: flex; }
    
    .navbar {
        position: fixed;
        top: 0; right: -100%; 
        width: 75%; max-width: 320px;
        height: 100vh;
        background-color: var(--bg-white);
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        display: flex;
        align-items: center;
        justify-content: center;
        transition: right 0.4s cubic-bezier(0.65, 0, 0.35, 1);
        z-index: 999;
    }
    
    .navbar.active { right: 0; }
    
    .nav-links {
        flex-direction: column;
        gap: 30px;
        width: 100%;
        text-align: center;
    }
    
    .nav-link { 
        color: var(--primary-color); 
        font-size: 1.2rem; 
    }
    
    .menu-toggle.active .bar:nth-child(1) { transform: translateY(9px) rotate(45deg); background-color: var(--primary-color); }
    .menu-toggle.active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.active .bar:nth-child(3) { transform: translateY(-9px) rotate(-45deg); background-color: var(--primary-color); }
}


/* ==========================================================================
   1. HERO BANNER (Tối ưu Màu chữ Trắng & Lớp phủ Nền)
   ========================================================================== */
.hero-section {
    position: relative;
    height: 75vh;
    min-height: 500px;
    background-color: #000000;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slider {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-color: #000000;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.05);
    z-index: 1;
    will-change: transform, opacity;
}

/* LỚP PHỦ MỜ TỐI (GRADIENT OVERLAY): Giúp chữ trắng luôn nổi bật trên mọi bức ảnh */
.hero-section::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(
        to bottom, 
        rgba(0, 0, 0, 0.45) 0%, 
        rgba(0, 0, 0, 0.30) 50%, 
        rgba(0, 0, 0, 0.60) 100%
    );
    pointer-events: none;
}

/* Lớp nhiễu hạt Film Grain */
.film-grain {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    z-index: 3;
    background-image: url('data:image/svg+xml;charset=utf8,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.8" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)"/%3E%3C/svg%3E');
    opacity: 0.10;
    mix-blend-mode: overlay;
}

.hero-content {
    position: relative;
    z-index: 4; /* Nâng lên cao nhất để đè lên các lớp phủ */
    text-align: center;
    color: #ffffff !important;
    padding: 0 20px;
    margin-top: 50px;
}

/* Tiêu đề chính: Màu trắng tinh, sắc nét */
.hero-title {
    font-family: var(--font-serif) !important;
    font-size: clamp(3.5rem, 7vw, 5.8rem);
    font-weight: 400; 
    letter-spacing: -0.01em; 
    line-height: 1.15;
    margin-bottom: 20px;
    color: #ffffff !important;
    text-shadow: 0 4px 25px rgba(0, 0, 0, 0.8); /* Bóng đổ đậm nâng chữ nổi hẳn khỏi nền */
}

/* Dòng Slogan: Màu trắng kem nhẹ */
.hero-slogan {
    font-family: var(--font-serif) !important; 
    font-size: clamp(1.2rem, 2.5vw, 1.7rem);
    font-style: italic; 
    font-weight: 400;
    letter-spacing: 1px;
    margin-bottom: 50px; 
    color: #f5f5f5 !important;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.8);
}

/* Nút Cuộn Minimalist */
.cta-scroll {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    font-family: var(--font-sans) !important;
    font-size: 0.8rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #ffffff !important;
    text-decoration: none;
    opacity: 0.85;
    font-weight: 500;
    transition: all 0.3s ease;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.cta-scroll:hover {
    opacity: 1;
    color: var(--accent-color) !important;
    transform: translateY(3px);
}

.bounce-arrow {
    margin-top: 12px;
    font-size: 1.1rem;
    animation: bounce 2.5s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-8px); }
    60% { transform: translateY(-4px); }
}

/* ==========================================================================
   2. KỲ QUAN & ĐIỂM ĐẾN (Bento Editorial Grid - Tạp Chí)
   ========================================================================== */
.destinations-wrapper {
    display: flex;
    flex-direction: column;
    gap: 90px;
}

.destination-row {
    position: relative;
}

.dest-row-header {
    margin-bottom: 35px;
    position: relative;
    z-index: 2;
}

.dest-bg-number {
    position: absolute;
    top: -50px;
    left: -15px;
    font-size: 14rem;
    font-family: var(--font-serif);
    color: var(--bg-light);
    line-height: 1;
    z-index: 0;
    opacity: 0.8;
    pointer-events: none;
    user-select: none;
}

.dest-row-title {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    font-weight: 400;
    color: var(--primary-color);
    position: relative;
    z-index: 1;
    margin-bottom: 8px;
}

.dest-row-sub {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 300;
}

/* ==========================================================================
   LƯỚI BENTO ARTWORK (DESKTOP)
   ========================================================================== */
.bento-grid-editorial {
    display: grid;
    gap: 20px;
    position: relative;
    z-index: 2;
}

/* --- KHOANH 1: Biển Đảo (Lưới 8 thẻ chuẩn 4 cột - Xếp vừa khít 100%) --- */
.grid-layout-1 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 220px; /* Hạ nhẹ chiều cao ô xuống 220px để tổng thể rất vừa mắt */
    gap: 18px;
}

/* Hàng 1 & 2: Vịnh Hạ Long làm Hero (chiếm 2 cột x 2 hàng bên trái) */
.grid-layout-1 .bento-card:nth-child(1) { grid-column: span 2; grid-row: span 2; } /* Vịnh Hạ Long */

/* Hàng 1 (Bên phải Vịnh Hạ Long - 2 ô) */
.grid-layout-1 .bento-card:nth-child(2) { grid-column: span 1; grid-row: span 1; } /* Đảo Cô Tô */
.grid-layout-1 .bento-card:nth-child(3) { grid-column: span 1; grid-row: span 1; } /* Đảo Quan Lạn */

/* Hàng 2 (Bên phải Vịnh Hạ Long - 2 ô) */
.grid-layout-1 .bento-card:nth-child(4) { grid-column: span 1; grid-row: span 1; } /* Đảo Mắt Rồng (Thu về 1 ô) */
.grid-layout-1 .bento-card:nth-child(5) { grid-column: span 1; grid-row: span 1; } /* Biển Bãi Cháy */

/* Hàng 3 (Hàng dưới cùng - Trọn vẹn 4 ô chia đều) */
.grid-layout-1 .bento-card:nth-child(6) { grid-column: span 1; grid-row: span 1; } /* Đảo Ngọc Vừng */
.grid-layout-1 .bento-card:nth-child(7) { grid-column: span 1; grid-row: span 1; } /* Đảo Thanh Lân */
.grid-layout-1 .bento-card:nth-child(8) { grid-column: span 2; grid-row: span 1; } /* Vân Đồn / Bãi Dài (Tạo điểm nhấn ngang cuối hàng) */

/* --- KHOANH 2: Tâm Linh & Đại Ngàn (Gọt chuẩn đúng 3 hàng x 220px) --- */
.grid-layout-2 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 220px; /* Khóa cứng chiều cao bằng đúng Khoanh 1 & 3 */
    gap: 18px;
}

/* Hàng 1 (4 cột): Yên Tử làm điểm nhấn rộng ngang (2 cột) + 2 ô đơn */
.grid-layout-2 .bento-card:nth-child(1) { grid-column: span 2; grid-row: span 1; } /* Non thiêng Yên Tử */
.grid-layout-2 .bento-card:nth-child(2) { grid-column: span 1; grid-row: span 1; } /* Chùa Ba Vàng */
.grid-layout-2 .bento-card:nth-child(3) { grid-column: span 1; grid-row: span 1; } /* Đền Cửa Ông */

/* Hàng 2 (4 cột): 2 ô đơn + Bình Liêu rộng ngang (2 cột) */
.grid-layout-2 .bento-card:nth-child(4) { grid-column: span 1; grid-row: span 1; } /* Chùa Cái Bầu */
.grid-layout-2 .bento-card:nth-child(5) { grid-column: span 1; grid-row: span 1; } /* Chùa Lôi Âm */
.grid-layout-2 .bento-card:nth-child(6) { grid-column: span 2; grid-row: span 1; } /* Bình Liêu / Sống lưng khủng long */

/* Hàng 3 (4 cột): Đền Lăng Mẹ + 1 điểm nhấn cuối hàng (2 cột) */
.grid-layout-2 .bento-card:nth-child(7) { grid-column: span 2; grid-row: span 1; } /* Khu di tích nhà Trần */
.grid-layout-2 .bento-card:nth-child(8) { grid-column: span 2; grid-row: span 1; } /* Đèo Gió / Thác Sông Tróc */

/* --- KHOANH 3: Đô Thị & Văn Hóa (Lưới 8 thẻ - Masonry Lưới Đen) --- */
.grid-layout-3 {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 220px;
}
.grid-layout-3 .bento-card:nth-child(1) { grid-column: span 1; grid-row: span 2; } /* Bảo tàng dọc */
.grid-layout-3 .bento-card:nth-child(2) { grid-column: span 2; grid-row: span 1; }
.grid-layout-3 .bento-card:nth-child(3) { grid-column: span 1; grid-row: span 1; }
.grid-layout-3 .bento-card:nth-child(4) { grid-column: span 2; grid-row: span 1; }
.grid-layout-3 .bento-card:nth-child(5) { grid-column: span 1; grid-row: span 1; }

/* ==========================================================================
   CẤU TRÚC THẺ BENTO (Khóa Gradient Tĩnh & Zoom Siêu Chậm Siêu Mượt)
   ========================================================================== */
.bento-card {
    position: relative;
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
    /* Bật GPU Acceleration chống nhấp nháy khung hình */
    transform: translate3d(0, 0, 0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.bento-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Giảm tỉ lệ zoom từ 1.03 xuống 1.018 (cực kỳ nhẹ nhàng) */
    /* Tăng thời gian lên 1.8 giây với nhịp chuyển động vô cùng thong thả */
    transition: transform 6.0s cubic-bezier(0.15, 1, 0.3, 1);
    will-change: transform;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* Hover chỉ thực hiện nhích nhẹ kích thước cực mượt */
.bento-card:hover img {
    transform: scale(1.2);
}

/* Lớp phủ Gradient TĨNH NGUYÊN (Khóa cố định, không thay đổi màu khi hover để triệt tiêu chớp giật) */
.bento-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(
        to top, 
        rgba(0, 0, 0, 0.88) 0%, 
        rgba(0, 0, 0, 0.30) 50%, 
        rgba(0, 0, 0, 0.0) 100%
    );
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: #ffffff;
    pointer-events: none; /* Tránh cản trở sự kiện hover của chuột */
}

/* Xóa bỏ hoàn toàn quy tắc .bento-card:hover .bento-overlay để tránh repaint nền */
.bento-title {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 500;
    line-height: 1.25;
    margin-bottom: 6px;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.bento-card:nth-child(1) .bento-title {
    font-size: 1.8rem; /* Thẻ chính chữ to hơn */
}

.bento-desc {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.82);
    font-weight: 300;
    line-height: 1.5;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Ép tối đa 2 dòng cho gọn */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bento-action {
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--accent-color);
    font-weight: 600;
    opacity: 0.9;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.bento-card:hover .bento-action {
    color: #ffffff;
}

/* ==========================================================================
   RESPONSIVE MOBILE (HIỂN THỊ ĐƠN GIẢN 2 CỘT)
   ========================================================================== */
@media (max-width: 992px) {
    .bento-grid-editorial {
        grid-template-columns: repeat(2, 1fr) !important;
        grid-auto-rows: 200px !important;
        gap: 12px;
    }

    /* Đưa toàn bộ các thẻ trên Mobile về kích thước chuẩn 2 cột đồng đều */
    .bento-card {
        grid-column: span 1 !important;
        grid-row: span 1 !important;
    }

    .bento-overlay {
        padding: 12px;
    }

    .bento-title {
        font-size: 1rem !important;
        margin-bottom: 2px;
    }

    .bento-desc {
        display: none; /* Trên Mobile ẩn bớt mô tả cho thoáng, chỉ giữ tên & CTA */
    }

    .bento-action {
        font-size: 0.65rem;
    }

    .dest-bg-number {
        font-size: 8rem;
        top: -30px;
    }
}


/* ==========================================================================
   3. TINH HOA ẨM THỰC (Bento Slider - Header, Nút Bấm & Lưới Bento)
   ========================================================================== */
.showcase-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 35px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.showcase-controls {
    display: flex;
    align-items: center;
    gap: 18px;
}

/* Thiết kế Nút Prev/Next hình tròn Minimalist cao cấp */
.sc-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.15);
    background: var(--bg-white);
    color: var(--primary-color);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.sc-btn:hover {
    background: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.sc-progress-bar {
    width: 140px;
    height: 3px;
    background: #e0e0e0;
    border-radius: 3px;
    position: relative;
    overflow: hidden;
}

.sc-progress-fill {
    position: absolute;
    top: 0; left: 0;
    height: 100%;
    width: 0%;
    background: var(--accent-color);
}

/* Khung Trượt Cụm Ẩm thực */
.magazine-slider-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: var(--border-radius-sm);
}

.food-slides-track {
    display: flex;
    transition: transform 0.8s cubic-bezier(0.65, 0, 0.35, 1);
    width: 100%;
}

.food-cluster-slide {
    flex: 0 0 100%;
    min-width: 100%;
    box-sizing: border-box;
}

/* Lưới Bento 6 món ăn (Đột phá với Lưới 5 Cột) */
.food-bento-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-auto-rows: 240px; /* Tăng nhẹ chiều cao để các ô 1 cột vuông vắn hơn */
    gap: 18px;
}

/* Bố cục Bento 6 Món (Khớp khít 5 Cột x 2 Hàng) */
.food-bento-grid .bento-card:nth-child(1) { grid-column: span 2; grid-row: span 2; } /* Món Hero to nhất (Trái) */
.food-bento-grid .bento-card:nth-child(2) { grid-column: span 2; grid-row: span 1; } /* Món chữ nhật ngang (Trên giữa) */
.food-bento-grid .bento-card:nth-child(3) { grid-column: span 1; grid-row: span 1; } /* Góc trên phải */
.food-bento-grid .bento-card:nth-child(4) { grid-column: span 1; grid-row: span 1; } /* Hàng dưới */
.food-bento-grid .bento-card:nth-child(5) { grid-column: span 1; grid-row: span 1; } /* Hàng dưới */
.food-bento-grid .bento-card:nth-child(6) { grid-column: span 1; grid-row: span 1; } /* Góc dưới phải */

/* Định danh nhãn Cụm Ẩm thực (Đưa lên góc phải trên, đặt trong box trắng) */
/* Định danh nhãn Cụm Ẩm thực (Thu nhỏ chữ và box tinh tế hơn) */
.cluster-tag {
    position: absolute;
    top: 15px; /* Đẩy sát lên góc hơn một chút để gọn gàng */
    right: 15px;
    background-color: #ffffff;
    color: var(--primary-color);
    padding: 3px 8px; /* Ép mỏng độ dày của box trắng */
    border-radius: 3px; /* Bo góc nhẹ hơn để hợp với size nhỏ */
    font-size: 0.55rem; /* Cỡ chữ siêu nhỏ bé */
    letter-spacing: 1px; /* Giảm khoảng cách giữa các chữ */
    text-transform: uppercase;
    font-weight: 700;
    z-index: 3;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* Giảm bóng đổ cho thanh thoát */
    margin-bottom: 0;
}

/* Đổi màu chữ nút Thưởng thức thành Trắng đặc biệt cho phần Ẩm thực */
.food-bento-grid .bento-action {
    color: #ffffff;
    opacity: 0.85; /* Hơi mờ nhẹ để tạo điểm nhấn khi hover */
}

.food-bento-grid .bento-card:hover .bento-action {
    color: #ffffff;
    opacity: 1;
}

/* Responsive Mobile & Tablet (Giữ nguyên cấu trúc thu gọn) */
@media (max-width: 992px) {
    .showcase-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    .food-bento-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        grid-auto-rows: 200px !important;
        gap: 12px;
    }
    .food-bento-grid .bento-card {
        grid-column: span 1 !important;
        grid-row: span 1 !important;
    }
}


/* ==========================================================================
   4. LỊCH SỬ VẺ VANG (Bố Cục Đột Phá: 2 Trên - Trục Ngang - 3 Dưới)
   ========================================================================== */
.tl-grid-wrapper {
    width: 100%;
    padding: 20px 0 60px 0;
}

.tl-grid-layout {
    display: grid;
    /* Áp dụng thuật toán Lưới 30 Cột: Chia hết chẵn cho cả 2, 3 và 5 */
    grid-template-columns: repeat(30, 1fr);
    grid-template-rows: auto auto auto; /* Hàng 1 (Nội dung), Hàng 2 (Trục thời gian), Hàng 3 (Nội dung) */
    gap: 25px; /* Khoảng cách ngang */
    row-gap: 50px; /* Cách xa trục ngang cho thoáng */
    position: relative;
}

/* Thanh ngang xuyên suốt toàn màn hình ở hàng 2 */
.tl-horizontal-line {
    grid-column: 1 / -1;
    grid-row: 2;
    height: 2px;
    background: #e0e0e0;
    align-self: flex-end;
    margin-bottom: 8px; /* Căn đúng vào tâm của chấm tròn 18px */
    z-index: 1;
}

/* Ép các phần tử con trực tiếp tham gia vào grid cha */
.tl-item { display: contents; }

/* === HÀNG 2: 5 MỐC THỜI GIAN === */
.tl-marker {
    grid-row: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
    z-index: 2;
}
.tl-item-1 .tl-marker { grid-column: 1 / 7; }
.tl-item-2 .tl-marker { grid-column: 7 / 13; }
.tl-item-3 .tl-marker { grid-column: 13 / 19; }
.tl-item-4 .tl-marker { grid-column: 19 / 25; }
.tl-item-5 .tl-marker { grid-column: 25 / 31; }

.tl-year {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--accent-color);
    background: var(--bg-white);
    padding: 0 12px;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s ease;
}

.tl-dot {
    width: 18px;
    height: 18px;
    background: var(--bg-white);
    border: 3px solid var(--accent-color);
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}

/* HIỆU ỨNG LIÊN KẾT HOVER: Khi rê chuột vào bất cứ đâu (Ảnh, Chữ, hoặc Mốc) */
.tl-item:hover .tl-dot {
    transform: scale(1.6);
    background: var(--accent-color);
    box-shadow: 0 0 12px rgba(14, 131, 136, 0.5); /* Hiệu ứng phát sáng Glowing */
}

.tl-item:hover .tl-year {
    color: var(--primary-color);
    transform: translateY(-3px) scale(1.05); /* Nhảy mốc năm nhẹ nhàng */
}

/* === HÀNG 1 & 3: CÁC CỤM THÔNG TIN (Dàn ngang & Đồng bộ Theme) === */
.tl-content {
    display: flex;
    align-items: center; 
    gap: 20px;
    text-align: left; 
    padding: 0;
    cursor: pointer; 
}

/* 2 Cụm Ở Trên (Hàng 1) - Đảo cho Sự kiện 2 và 4 */
.tl-item-2 .tl-content { grid-column: 1 / 16; grid-row: 1; }
.tl-item-4 .tl-content { grid-column: 16 / 31; grid-row: 1; }

/* 3 Cụm Ở Dưới (Hàng 3) - Đảo cho Sự kiện 1, 3 và 5 */
.tl-item-1 .tl-content { grid-column: 1 / 11; grid-row: 3; }
.tl-item-3 .tl-content { grid-column: 11 / 21; grid-row: 3; }
.tl-item-5 .tl-content { grid-column: 21 / 31; grid-row: 3; }

/* Vùng chứa Ảnh - Thu gọn xuống 1/3 để nhường chỗ cho chữ */
.tl-image-box {
    flex: 0 0 33.33%; 
    max-width: 33.33%;
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
    transform: translate3d(0, 0, 0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.tl-image-box img {
    width: 100%;
    height: 150px; 
    object-fit: cover;
    display: block;
    transition: transform 2.5s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

.tl-item:hover .tl-image-box img {
    transform: scale(1.08);
}

/* Vùng chứa Chữ - Chiếm 2/3 diện tích còn lại */
.tl-text-box {
    flex: 1; 
}

.tl-text-box h4 {
    font-family: var(--font-serif);
    font-size: 1.25rem; 
    margin-bottom: 8px;
    line-height: 1.3;
    color: var(--primary-color);
    transition: color 0.4s ease;
}

.tl-item:hover .tl-text-box h4 {
    color: var(--accent-color);
}

.tl-text-box p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 5; /* Tăng nhẹ giới hạn dòng vì không gian chữ đã rộng hơn */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==========================================================================
   RESPONSIVE MOBILE (Hiển thị dọc từ trên xuống)
   ========================================================================== */
@media (max-width: 992px) {
    .tl-grid-layout {
        display: flex;
        flex-direction: column;
        gap: 50px;
    }
    .tl-horizontal-line {
        display: none; 
    }
    .tl-item {
        display: flex;
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    .tl-marker {
        flex-direction: row; 
        align-items: center;
        gap: 15px;
    }
    .tl-year {
        padding: 0;
        font-size: 1.8rem;
    }
    .tl-dot {
        width: 14px;
        height: 14px;
    }
    
    .tl-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .tl-image-box {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .tl-image-box img {
        height: 200px;
    }
}


/* ==========================================================================
   5. VĂN HÓA & CON NGƯỜI (Giao diện Tạp chí Báo in - Sidebar Tối)
   ========================================================================== */
.culture-grid-layout {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 30px;
}

.magazine-article {
    display: flex;
    flex-direction: column;
    gap: 15px;
    cursor: pointer;
}

/* Khung Ảnh & Tag Box Trắng */
.m-image-box {
    position: relative;
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transform: translate3d(0,0,0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.m-image-box img {
    width: 100%;
    object-fit: cover;
    display: block;
    transition: transform 2.5s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

.culture-main .m-image-box img { height: 400px; }
.sub-article .m-image-box img { height: 180px; }

.magazine-article:hover .m-image-box img {
    transform: scale(1.08);
}

/* Tag Box góc phải trên */
.m-tag {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #ffffff;
    color: var(--primary-color);
    padding: 4px 8px;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 3px;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Meta Data (Tác giả, Ngày tháng) */
.m-meta {
    display: flex;
    gap: 15px;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.m-author {
    font-weight: 600;
    color: var(--accent-color);
}

/* Nội dung bài chính */
.culture-main h3 {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    line-height: 1.3;
    margin-bottom: 10px;
    transition: color 0.4s ease;
}

.culture-main:hover h3 { color: var(--accent-color); }

.culture-main p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Thanh Tương tác (Like, Share, Save) với Heroicons SVG */
.m-actions {
    display: flex;
    gap: 25px;
    border-top: 1px solid #eaeaea;
    padding-top: 15px;
    margin-top: 5px;
}

.m-btn {
    display: inline-flex;
    align-items: center; 
    gap: 6px; 
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.3s, transform 0.3s;
}

.m-btn svg {
    width: 18px;
    height: 18px;
    stroke: currentColor; 
}

.m-btn:hover { 
    color: var(--accent-color); 
    transform: translateY(-2px);
}

/* Nội dung bài phụ */
.sub-article h4 {
    font-size: 1.15rem;
    margin-bottom: 5px;
    transition: color 0.4s ease;
}

.sub-article:hover h4 { color: var(--accent-color); }

/* Cột Tin Vắn (Cột 3 - Phiên bản Box Nền Tối) */
.culture-list {
    background-color: var(--primary-color); 
    color: #ffffff;
    padding: 25px 20px;
    border-radius: var(--border-radius-md);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15); 
    border: none; 
    height: fit-content; 
}

.list-heading {
    font-size: 1.15rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 15px;
    color: #ffffff;
}

.list-heading::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 50px; 
    height: 2px;
    background: var(--accent-color);
}

.culture-list-item {
    padding: 12px 0;
    margin-bottom: 0; 
    border-bottom: 1px dashed rgba(255, 255, 255, 0.15); 
    cursor: pointer;
}

.culture-list-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.culture-list-item h4 {
    font-size: 0.9rem;
    margin-bottom: 5px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.95); 
    transition: color 0.3s ease;
}

.culture-list-item:hover h4 { 
    color: var(--accent-color); 
}

.culture-list .m-meta {
    font-size: 0.7rem; 
    color: rgba(255, 255, 255, 0.5); 
    margin-bottom: 0;
}

/* ==========================================================================
   RESPONSIVE MOBILE (VĂN HÓA & CON NGƯỜI)
   ========================================================================== */
@media (max-width: 992px) {
    .culture-grid-layout {
        grid-template-columns: 1fr;
    }
    .culture-list {
        padding: 25px 20px;
        margin-top: 10px;
    }
}


/* ==========================================================================
   6. FOOTER & MODALS
   ========================================================================== */
.site-footer {
    background-color: var(--primary-color);
    color: rgba(255, 255, 255, 0.7);
    font-family: var(--font-body);
}

.footer-top {
    padding: 75px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid-4 {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 2fr;
    gap: 40px;
}

.footer-col {
    display: flex;
    flex-direction: column;
}

/* Tiêu đề chung cho các cột có đường gạch chân hết độ rộng */
.footer-heading-line {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: #ffffff;
    margin-bottom: 25px;
    padding-bottom: 12px;
    position: relative;
    width: 100%;
}

.footer-heading-line span {
    color: var(--accent-color);
}

/* Đường gạch chân chạy hết chiều rộng của cột */
.footer-heading-line::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.15);
}

/* Cột 1: Tình cảm Quảng Ninh */
.footer-desc {
    font-size: 0.9rem;
    line-height: 1.75;
    padding-right: 15px;
    color: rgba(255, 255, 255, 0.65);
}

/* Cột 2 & 3: Danh sách link có Bullet */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links li {
    position: relative;
    padding-left: 15px;
}

.footer-links li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 5px;
    background-color: var(--accent-color);
    border-radius: 50%;
}

.footer-links li a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all var(--transition-fast);
    display: inline-block;
}

.footer-links li a:hover {
    color: var(--accent-color);
    transform: translateX(4px);
}

/* Cột 4: Bản đồ */
.footer-map-wrapper {
    height: 180px;
    width: 100%;
}

/* Footer Bottom: Căn phải toàn bộ thông tin sinh viên & Disclaimer */
.footer-bottom {
    padding: 25px 0;
    background-color: #111111;
}

.footer-bottom-flex {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: right; /* Căn phải toàn bộ cụm */
}

.disclaimer-text {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    font-style: italic;
    margin: 0;
}

.author-text {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    font-weight: 400; /* Đảm bảo không bị in đậm chữ Đặng Ngọc Minh */
}

/* ==========================================================================
   RESPONSIVE MOBILE (FOOTER)
   ========================================================================== */
@media (max-width: 992px) {
    .footer-grid-4 {
        grid-template-columns: 1fr 1fr; 
    }
    .col-about, .col-map {
        grid-column: 1 / -1; 
    }
    .footer-map-wrapper {
        height: 250px;
    }
    .footer-bottom-flex {
        text-align: center; /* Trên mobile đưa về giữa cho cân đối */
    }
}

@media (max-width: 576px) {
    .footer-grid-4 {
        grid-template-columns: 1fr; 
    }
}

/* --- MODALS CƠ BẢN --- */
.modal {
    display: none; 
    position: fixed;
    z-index: 9999;
    left: 0; top: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--bg-white);
    padding: 40px;
    border-radius: var(--border-radius-md);
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.close-modal {
    position: absolute;
    top: 15px; right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover { color: var(--primary-color); }

.modal-content h3 {
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.modal-content input {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: var(--border-radius-sm);
    font-family: var(--font-body);
}

/* --- MODALS CƠ BẢN (Giữ nguyên không thay đổi) --- */
.modal {
    display: none; 
    position: fixed;
    z-index: 9999;
    left: 0; top: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--bg-white);
    padding: 40px;
    border-radius: var(--border-radius-md);
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.close-modal {
    position: absolute;
    top: 15px; right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover { color: var(--primary-color); }

.modal-content h3 {
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.modal-content input {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: var(--border-radius-sm);
    font-family: var(--font-body);
}


/* --- MODALS CƠ BẢN --- */
.modal {
    display: none; /* Ẩn mặc định, JS sẽ chuyển thành 'flex' */
    position: fixed;
    z-index: 9999;
    left: 0; top: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--bg-white);
    padding: 40px;
    border-radius: var(--border-radius-md);
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.close-modal {
    position: absolute;
    top: 15px; right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover { color: var(--primary-color); }

.modal-content h3 {
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.modal-content input {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: var(--border-radius-sm);
    font-family: var(--font-body);
}

/* Action Sheet Buttons */
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 25px;
}
.btn-action {
    padding: 15px;
    text-align: center;
    text-decoration: none;
    color: #fff;
    border-radius: var(--border-radius-sm);
    font-weight: 500;
    transition: opacity var(--transition-fast);
}
.btn-action:hover { opacity: 0.9; }
.btn-phone { background-color: #28a745; }
.btn-zalo { background-color: #0068ff; }
.btn-fb { background-color: #0084ff; }


/* ==========================================================================
   RESPONSIVE (Mobile & Tablet)
   ========================================================================== */
@media (max-width: 992px) {
    .culture-grid-layout {
        grid-template-columns: 1fr;
    }
    .culture-list {
        border-left: none;
        border-top: 1px solid #e0e0e0;
        padding-left: 0;
        padding-top: 30px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .section-title { font-size: 2.2rem; }
    
    .food-layout {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    .food-card { height: 250px; }
    .food-card:nth-child(1), .food-card:nth-child(2), .food-card:nth-child(3), .food-card:nth-child(4) {
        grid-column: 1 / -1 !important;
        grid-row: auto !important;
    }
    
    .academic-info { flex-direction: column; gap: 10px; align-items: center; }
}

/* ==========================================================================
   STYLING CHO FORM LIÊN HỆ Ở CỘT 1 FOOTER
   ========================================================================== */
.footer-contact-box {
    margin-top: 25px;
}

.footer-sub-heading {
    font-size: 1rem;
    color: #ffffff;
    margin-bottom: 12px;
    font-weight: 600;
}

.footer-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-form input,
.footer-form textarea {
    width: 100%;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--border-radius-sm);
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 0.85rem;
    outline: none;
    transition: border-color var(--transition-fast);
}

.footer-form input::placeholder,
.footer-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.footer-form input:focus,
.footer-form textarea:focus {
    border-color: var(--accent-color);
}

.footer-form textarea {
    resize: vertical;
    min-height: 70px;
}

.footer-submit-btn {
    align-self: flex-start;
    background-color: var(--accent-color);
    color: #ffffff;
    border: none;
    padding: 8px 18px;
    border-radius: var(--border-radius-sm);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.footer-submit-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}