/* ==================== 1. TYPOGRAPHY & CORE ==================== */
:root {
    --primary-color: #2d5a27;      /* Xanh đậm đặc trưng của Yến */
    --accent-color: #c5a059;       /* Màu vàng đồng sang trọng */
    --text-main: #2c3e50;
    --text-light: #7f8c8d;
    --bg-footer: #ffffff;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Quicksand', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    background-color: #fcfcfc;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 25px;
}

/* ==================== 2. HEADER LUXURY ==================== */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    padding: 12px 0;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-color);
    text-decoration: none;
    letter-spacing: -1px;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 700;
    font-size: 1rem;
    position: relative;
    padding: 5px 0;
    transition: var(--transition);
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

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

/* ==================== 3. TIN TỨC (CARD DESIGN) ==================== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 35px;
    padding: 50px 0;
}

.news-item {
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.04);
    transition: var(--transition);
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
}

.news-item:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 60px rgba(45, 90, 39, 0.12);
}

.news-image {
    width: 100%;
    height: 240px;
    overflow: hidden;
    position: relative;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.news-item:hover .news-image img {
    transform: scale(1.1);
}

.news-content {
    padding: 30px;
    background: #fff;
}

.news-title {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 12px;
    font-weight: 700;
    line-height: 1.4;
}

.news-excerpt {
    font-size: 0.95rem;
    color: var(--text-light);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==================== 4. FOOTER PREMIUM (OPTIMIZED) ==================== */
.main-footer {
    background: var(--bg-footer);
    padding: 60px 0 30px;
    border-top: 1px solid #f1f1f1;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr; 
    gap: 40px;
    align-items: start;
}

.footer-info {
    text-align: left;
}

.footer-logo {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 25px;
    display: block;
}

.contact-list {
    list-style: none;
}

.contact-list li {
    margin-bottom: 15px;
    font-size: 1rem;
    color: #444;
    line-height: 1.4;
}

.contact-list a {
    color: inherit !important;
    text-decoration: none !important;
    transition: var(--transition);
}

.footer-products {
    text-align: right;
}

.footer-heading {
    font-size: 1.5rem !important;
    color: var(--primary-color);
    font-weight: 800;
    margin-bottom: 25px;
    text-transform: uppercase;
}

.footer-products ul {
    list-style: none;
}

.footer-products li {
    margin-bottom: 10px !important;
}

.footer-products a {
    color: #555;
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
}

.footer-copyright {
    text-align: center;
    margin-top: 50px;
    padding-top: 25px;
    border-top: 1px solid #f5f5f5;
    color: #bdc3c7;
    font-size: 0.85rem;
}

/* ==================== 5. MOBILE RESPONSIVE (SMOOTH & FIX FOOTER) ==================== */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .header .container {
        flex-direction: column;
        padding: 10px;
    }

    .nav ul {
        gap: 12px;
        margin-top: 12px;
        justify-content: center;
    }

    .nav a { font-size: 0.85rem; }

    /* Fix Footer Mobile: Chuyển về 1 cột để chữ không bị nhảy hàng */
    .footer-grid {
        grid-template-columns: 1fr !important; /* Buộc 1 cột để lấy hết chiều ngang */
        gap: 30px !important;
    }

    .footer-products {
        text-align: left !important; /* Căn trái toàn bộ cho đồng nhất trên mobile */
    }

    .footer-logo { font-size: 1.5rem; margin-bottom: 12px; }
    .footer-heading { font-size: 1.3rem !important; margin-bottom: 15px; }
    
    .contact-list li { font-size: 0.9rem; margin-bottom: 10px; }
    .footer-products a { font-size: 1rem; }
    .footer-products li { margin-bottom: 8px !important; }

    .news-grid { grid-template-columns: 1fr; padding: 20px 10px; }
    .news-image { height: 210px; }
    .news-content { padding: 20px; }
}

@media (max-width: 380px) {
    .footer-logo { font-size: 1.3rem; }
    .footer-heading { font-size: 1.1rem !important; }
}