/* ===================================
   COMMON.CSS - CSS chung cho tất cả pages
   Navbar + Footer theo phong cách Index
   =================================== */

/* ========== NAVBAR ========== */
.navbar {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.brand-icon {
    font-size: 2rem;
}

.brand-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: #8B4513;
    font-weight: 700;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.nav-menu li a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s ease;
    padding: 8px 15px;
    border-radius: 5px;
}

.nav-menu li a:hover {
    color: #8B4513;
    background: #f9f9f9;
}

.nav-menu li a.active {
    color: #8B4513;
    background: #FFF8DC;
    font-weight: 600;
}

/* Mobile menu toggle (if needed) */
@media (max-width: 768px) {
    .navbar .container {
        height: auto;
        flex-wrap: wrap;
        padding: 15px 20px;
    }
    
    .nav-menu {
        flex-direction: column;
        width: 100%;
        gap: 10px;
        margin-top: 15px;
    }
    
    .nav-menu li a {
        display: block;
        text-align: center;
    }
}

/* ========== FOOTER ========== */
.footer {
    background: #2c1810;
    color: #fff;
    padding: 60px 20px 20px;
    margin-top: auto; /* Push footer to bottom */
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto 40px;
}

.footer-section h3 {
    color: #FFD700;
    margin-bottom: 15px;
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
}

.footer-section h4 {
    color: #FFF8DC;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.footer-section p {
    color: #ccc;
    line-height: 1.6;
    font-size: 0.95rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.footer-section a:hover {
    color: #FFD700;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #999;
}

.footer-bottom p {
    margin: 5px 0;
    font-size: 0.9rem;
}

/* ========== CONTAINER ========== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== BODY LAYOUT ========== */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    font-family: 'Merriweather', serif;
}

/* Main content should grow */
.main-content,
.page-content {
    flex: 1;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer {
        padding: 40px 20px 20px;
    }
    
    .footer-section {
        text-align: center;
    }
    
    .brand-text {
        font-size: 1.2rem;
    }
}

/* ========== UTILITIES ========== */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.py-1 { padding: 1rem 0; }
.py-2 { padding: 2rem 0; }
/* ========================================
   🔍 SEARCH BOX
   ======================================== */

   input[type="text"][id^="search"] {
    padding: 8px 12px;
    border: 1px solid #dcdde1;
    border-radius: 6px;
    outline: none;
    transition: all 0.25s ease;
    font-size: 0.9rem;
    background: #f8f9fa;
    width: 260px;
}

input[type="text"][id^="search"]:focus {
    border-color: #3498db;
    background: #fff;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.15);
}

input[type="text"][id^="search"]::placeholder {
    color: #999;
}

