/* =========================================
   1. CẤU HÌNH DÙNG CHUNG (QUAN TRỌNG NHẤT)
   ========================================= */

/* Reset mặc định */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Căn giữa toàn bộ trang web ngay từ Body */
body {
    display: flex;            /* Dùng Flexbox */
    justify-content: center;  /* Căn giữa theo chiều ngang */
    min-height: 100vh;        /* Chiều cao ít nhất bằng màn hình */
    background-color: #fdfbf7; /* Màu nền kem nhạt dễ chịu */
    padding: 20px;            
}

/* Khung chứa chính (Container) - Sẽ nằm giữa màn hình */
.container {
    background-color: white;
    width: 100%;              
    max-width: 1000px;        /* Giới hạn độ rộng */
    margin: 0 auto;           /* THẦN CHÚ: Tự động căn giữa khung */
    padding: 40px;            
    border-radius: 20px;      
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); 
    
    /* Căn giữa nội dung bên trong container */
    display: flex;
    flex-direction: column;
    align-items: center;      
}

/* Đảm bảo các khối con vẫn có thể rộng full khung nếu cần */
.menu-grid, .content-box, section, .video-section, .student-info {
    width: 100%; 
}

/* --- NÚT VỀ TRANG CHỦ (DÙNG CHUNG) --- */
.btn-home {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    
    text-decoration: none;
    color: #555;
    font-weight: 600;
    font-size: 0.95em;
    
    background-color: white;
    padding: 10px 25px;
    border-radius: 30px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.btn-home:hover {
    background-color: #2c3e50;
    color: white;
    border-color: #2c3e50;
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

/* --- CLASS PHỤ TRỢ --- */
.text-center { text-align: center; }

.page-title { 
    color: #2c3e50; 
    margin-bottom: 25px; 
    text-transform: uppercase;
    text-align: center;
    font-weight: 800;
}

/* Căn giữa khối nội dung (cho trang Đặc sản) */
.content-box { 
    text-align: center;
    margin-bottom: 30px; 
    padding-bottom: 30px; 
    border-bottom: 1px solid #eee;
    
    /* Căn giữa khối content-box nếu nó nhỏ hơn khung chứa */
    margin-left: auto;
    margin-right: auto;
    max-width: 800px;
}
.content-box p {
    margin: 0 auto;
    max-width: 90%;
}

/* =========================================
   2. CODE CHO TRANG CHỦ (MENU)
   ========================================= */
.home-menu {
    max-width: 900px !important;
}

.menu-grid {
    display: flex;
    justify-content: center; 
    align-items: center;     
    gap: 30px;               
    flex-wrap: wrap; 
    margin-top: 30px;
}

.menu-card {
    background: #f8f9fa;
    width: 260px;           
    padding: 35px 25px;
    border-radius: 20px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center;     
    justify-content: center;
    text-align: center;      
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.menu-card:hover {
    transform: translateY(-8px); 
    box-shadow: 0 15px 30px rgba(0,0,0,0.12);
}

.menu-card .icon { font-size: 3.5em; margin-bottom: 20px; }
.menu-card h3 { margin-bottom: 12px; font-size: 1.3em; font-weight: bold; }
.menu-card p { font-size: 0.95em; color: #666; line-height: 1.5; }

.menu-card.color-1:hover { border-color: #3498db; background: #f0f8ff; }
.menu-card.color-2:hover { border-color: #e67e22; background: #fff5eb; }
.menu-card.color-3:hover { border-color: #27ae60; background: #f0fff4; }


/* =========================================
   3. CODE CHO TRANG ĐỊA ĐIỂM DU LỊCH
   ========================================= */

body.travel-page {
    /* Kế thừa body gốc, chỉ đổi màu chữ nếu cần */
    color: #444;
}

.travel-container {
    background: transparent !important; /* Bỏ nền trắng */
    box-shadow: none !important;
    max-width: 1000px !important;
    padding-top: 20px;
    /* Kế thừa căn giữa từ container gốc */
}

.page-header {
    text-align: center;
    margin-bottom: 60px;
}

.main-heading {
    font-family: 'Merriweather', serif;
    font-size: 2.5em;
    color: #2c3e50;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.sub-heading { font-style: italic; color: #888; margin-top: 10px; }

/* Khối địa điểm (ZIG-ZAG) */
.location-card {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-bottom: 80px;
    background: #fff;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.location-card.reverse { flex-direction: row-reverse; }

.loc-content { flex: 1; }
.loc-number {
    display: block;
    font-size: 4em;
    font-weight: 900;
    color: #eee;
    line-height: 0.5;
    margin-bottom: 20px;
}
.loc-content h2 {
    font-family: 'Merriweather', serif;
    font-size: 2em;
    color: #d35400;
    margin-bottom: 15px;
}
.loc-content p {
    line-height: 1.8;
    font-size: 1.1em;
    text-align: justify;
}

.loc-image {
    flex: 1;
    position: relative;
    text-align: center;
}
.loc-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 10px 10px 0px rgba(211, 84, 0, 0.2);
    transition: transform 0.4s ease;
    object-fit: cover;
    height: 300px; 
}
.loc-image:hover img { transform: scale(1.02) rotate(-1deg); }
.img-caption { font-size: 0.9em; margin-top: 15px; font-style: italic; color: #7f8c8d; }

/* Video */
.cinema-section {
    background: #2c3e50;
    padding: 50px;
    border-radius: 30px;
    text-align: center;
    color: white;
    margin: 50px 0;
}
.video-heading {
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 2px solid #e74c3c;
    display: inline-block;
    padding-bottom: 10px;
}
.video-frame video {
    width: 100%;
    max-width: 800px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .location-card, .location-card.reverse { flex-direction: column; gap: 20px; }
    .main-heading { font-size: 1.8em; }
}


/* =========================================
   4. CODE CHO TRANG ABOUT (THÔNG TIN SINH VIÊN)
   ========================================= */
.student-info {
    background: linear-gradient(to bottom right, #ffffff, #f9f9f9);
    max-width: 500px;
    padding: 40px;
    border-radius: 25px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border: 1px solid #eee;
    
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px auto;
    transition: transform 0.3s ease;
}
.student-info:hover { transform: translateY(-5px); }

.avatar {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #3498db;
    padding: 3px;
    background-color: white;
    margin-bottom: 25px;
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.3);
}

.info-text { text-align: center; width: 100%; }
.info-text h2 {
    color: #2c3e50;
    font-size: 1.8em;
    font-weight: 800;
    margin-bottom: 5px;
}
.info-text h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: #3498db;
    margin: 10px auto 20px auto;
    border-radius: 2px;
}
.info-text p {
    color: #555;
    font-size: 1.1em;
    margin: 10px 0;
    background: #f0f2f5;
    padding: 10px 15px;
    border-radius: 10px;
    font-weight: 500;
}
.info-text p strong { color: #333; margin-right: 5px; }

/* =========================================
   5. CODE CHO TRANG ĐẶC SẢN (FOOD STYLE)
   ========================================= */

/* Nền trang món ăn */
body.food-page {
    background-color: #fff8f0; /* Màu kem vàng nhạt tạo cảm giác ngon miệng */
}

/* Intro giới thiệu */
.intro {
    text-align: center;
    font-style: italic;
    color: #888;
    margin-bottom: 30px;
    font-size: 1.1em;
}

/* Đường kẻ phân cách */
.divider {
    border: 0;
    height: 1px;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0));
    margin-bottom: 40px;
}

/* --- THẺ MÓN ĂN (FOOD CARD) --- */
.food-card {
    /* Kế thừa .content-box nhưng tùy biến thêm */
    background: #fff;
    padding: 0 0 30px 0; /* Bỏ padding trên để ảnh tràn viền nếu muốn style khác */
}

/* Tiêu đề món ăn */
.food-card h2 {
    font-family: 'Playfair Display', serif; /* Font chữ kiểu nghệ thuật */
    color: #e67e22; /* Màu cam đậm của thức ăn */
    font-size: 2.2em;
    margin-bottom: 15px;
    text-shadow: 1px 1px 0px rgba(0,0,0,0.1);
}

/* Mô tả món ăn */
.food-card p {
    font-size: 1.1em;
    color: #555;
    margin-bottom: 25px;
    line-height: 1.7;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

/* --- HÌNH ẢNH MÓN ĂN --- */
.food-image {
    position: relative;
    width: 100%;
    max-width: 700px; /* Giới hạn chiều rộng ảnh */
    margin: 0 auto;   /* Căn giữa ảnh */
    border-radius: 15px;
    overflow: hidden; /* Để cắt bo góc ảnh */
    box-shadow: 0 8px 20px rgba(0,0,0,0.15); /* Đổ bóng */
    transition: transform 0.3s ease;
}

/* Hiệu ứng khi di chuột vào ảnh */
.food-image:hover {
    transform: scale(1.02); /* Phóng to nhẹ */
    box-shadow: 0 15px 30px rgba(230, 126, 34, 0.2); /* Bóng màu cam */
}

.food-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 16/9; /* Tỷ lệ khung hình chữ nhật đẹp */
}

/* Chú thích ảnh */
.food-image figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.6); /* Nền đen mờ */
    color: #fff;
    padding: 10px;
    text-align: center;
    font-style: italic;
    font-size: 0.9em;
    opacity: 0; /* Ẩn đi bình thường */
    transition: opacity 0.3s ease;
}

/* Hiện chú thích khi di chuột vào ảnh */
.food-image:hover figcaption {
    opacity: 1;
}