/* --- Global Variables (Ensure these exist in your root) --- */
:root {
    /* Đặt màu chính là Xanh lá cây (Success color) */
    --primary-color: #28a745;      
    --secondary-color: #ffc107;    /* Vàng nổi bật (Hover, Gạch chân) */
    --success-color: #28a745;      /* Xanh lá cây (Nút) */
    --danger-color: #dc3545;       /* Đỏ (Giá Tour) */
    --background-main: #f4f4f4;    /* Nền chung của trang (Màu xám nhạt trong ảnh) */
    --background-light: #ffffff;   /* Nền trắng (Header, Card, Form) */
    --text-dark: #333;
    --text-muted: #6c757d;
    --shadow-light: 0 4px 8px rgba(0, 0, 0, 0.1);
    --header-height: 70px;
    --header-bg:#ffffff;
}
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--background-main); 
    color: var(--text-dark);
    line-height: 1.6;
    font-size: 16px;
}
/* --- Header Container --- */
header.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background: var(--header-bg);
    width: 100%;
    z-index: 9999;
    position: fixed;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    box-sizing: border-box;
}

/* --- Logo & Animation --- */
.logo-container {
    display: flex;
    align-items: center;
}

.logo-container .logo {
    height: 45px; 
    width: auto;
    margin-right: 12px; 
}

.logo-container h1 {
    margin: 0;
    font-size: 1.8em;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: var(--primary-color);
    text-shadow: var(--text-shadow);
    white-space: nowrap;
    opacity: 0;
    animation: revealAndSlide 1.2s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

/* --- Navigation Bar (Desktop) --- */
.main-nav {
    display: flex;
    gap: 30px;
}

.main-nav a {
    position: relative;
    color: var(--primary-color); 
    text-decoration: none;
    font-weight: 600;
    padding: 8px 0;
    transition: color 0.3s ease;
}

/* Stylish Underline Effect */
.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.main-nav a.active, 
.main-nav a:hover {
    color: var(--secondary-color);
}

/* --- Menu Toggle (Hamburger) --- */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.menu-toggle span {
    width: 30px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 10px;
    transition: all 0.3s linear;
    position: relative;
    transform-origin: 1px;
}

/* --- Mobile Responsive (max-width: 768px) --- */
@media (max-width: 768px) {
   
    header.main-header {
        position: fixed; /* Header stays stuck at the top */
        top: 0;
        left: 0;
        padding: 10px 5%; /* Slightly tighter for mobile */
    }

    /* CRITICAL: This prevents your website content from being hidden 
       behind the header. Adjust the pixels to match your header height. */
    body {
        padding-top: 75px; 
    }

    .logo-container {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .logo-container h1 {
        font-size: 1.1em; /* Scaled down for mobile fit */
        white-space: nowrap;
    }

    .logo-container .logo {
        height: 35px; /* Smaller logo for mobile */
    }
    .menu-toggle { display: flex; }
body {
        padding-top: 110px; /* Adjust this to match your total header height */
    }
    .main-nav {
        position: fixed; /* Fixed for full-screen feel */
        top: 0;
        right: -100%; /* Hidden off-screen */
        height: 100vh;
        width: 70%;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px); /* Stylish Glass effect */
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    }
    .main-nav.active {
        right: 0; /* Slide in */
    }

    /* Hamburger to 'X' Animation */
    .menu-toggle.open span:nth-child(1) { transform: rotate(45deg); }
    .menu-toggle.open span:nth-child(2) { opacity: 0; transform: translateX(20px); }
    .menu-toggle.open span:nth-child(3) { transform: rotate(-45deg); }
}

/* --- Animations --- */
@keyframes revealAndSlide {
    0% { opacity: 0; transform: translateX(-20px); clip-path: inset(0 100% 0 0); }
    100% { opacity: 1; transform: translateX(0); clip-path: inset(0 0 0 0); }
}

/* --- Footer --- */
.main-footer a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.main-footer a:hover { color: var(--secondary-color); }