/* ==========================================================================
   RECIPEO - MAIN GLOBAL CSS
   ========================================================================== */

/* --- 1. Variables & Base --- */
:root {
    --primary-color: #f16e36;
    --primary-hover: #d95f2a;
    --text-dark: #1a1a1a;
    --text-gray: #666666;
    --bg-color: #fcfbfa;
    --white: #ffffff;
    --green: #4f805d;
    --border-color: #e5e5e5;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body { 
    font-family: var(--font-body); 
    color: var(--text-dark); 
    background-color: var(--bg-color); 
    line-height: 1.6; 
}

a { 
    text-decoration: none; 
    color: inherit; 
}

ul { 
    list-style: none; 
}

.container { 
    max-width: 1280px; 
    margin: 0 auto; 
    padding: 0 20px; 
}

/* --- 2. Reusable Components (Buttons, Breadcrumbs) --- */
.btn { 
    padding: 10px 20px; 
    border-radius: 25px; 
    font-weight: 500; 
    font-size: 15px; 
    cursor: pointer; 
    border: none; 
    transition: background-color 0.3s; 
    display: inline-flex; 
    align-items: center; 
    gap: 8px; 
}
.btn-primary { 
    background-color: var(--primary-color); 
    color: var(--white); 
}
.btn-primary:hover { 
    background-color: var(--primary-hover); 
}
.btn-outline { 
    background-color: var(--white); 
    color: var(--text-dark); 
    border: 1px solid var(--border-color); 
}
.btn-outline:hover { 
    background-color: #f5f5f5; 
}

.breadcrumb { padding: 20px 0; font-size: 14px; color: var(--text-gray); }
.breadcrumb a { font-weight: 500; }
.breadcrumb a:hover { color: var(--primary-color); }
.breadcrumb span { margin: 0 8px; }

/* --- 3. Header, Navigation & Dropdown --- */
header { 
    background-color: var(--white); 
    padding: 20px 0; 
    position: sticky; 
    top: 0; 
    z-index: 100; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.05); 
}
.header-content { display: flex; justify-content: space-between; align-items: center; }

.logo { display: flex; align-items: center; gap: 10px; }
.logo-text h1 { font-family: var(--font-heading); font-size: 24px; font-weight: 700; line-height: 1; }
.logo-text p { font-size: 10px; color: var(--text-gray); margin-top: 2px; }

nav ul { display: flex; gap: 30px; }
nav a { font-size: 15px; font-weight: 500; transition: color 0.3s; }
nav a:hover, nav a.active { color: var(--primary-color); }
nav a.active { border-bottom: 2px solid var(--primary-color); padding-bottom: 5px; }

/* Submenu Dropdown */
nav ul li.has-dropdown { position: relative; }
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background-color: var(--white);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 16px;
    padding: 10px 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s ease;
    z-index: 1000;
}
nav ul li.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown-menu li { width: 100%; }
.dropdown-menu li a {
    display: block;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    transition: background-color 0.2s, color 0.2s;
    border-bottom: none; 
}
.dropdown-menu li a:hover { background-color: #fcf4ec; color: var(--primary-color); }

.header-actions { display: flex; align-items: center; gap: 15px; }
.search-bar { position: relative; }
.search-bar input { padding: 10px 35px 10px 15px; border: 1px solid var(--border-color); border-radius: 20px; font-size: 14px; width: 200px; outline: none; }
.search-bar i { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--text-gray); font-size: 14px; }

/* --- 4. Home Page (Hero & Common Sections) --- */
.hero { position: relative; padding: 80px 0; background-color: #f7ede2; overflow: hidden; border-radius: 0 0 40px 40px; margin-bottom: 60px; }
.hero-bg { position: absolute; top: 0; right: 0; width: 60%; height: 100%; background-image: url('https://images.unsplash.com/photo-1621996346565-e3dbc646d9a9?q=80&w=2000&auto=format&fit=crop'); background-size: cover; background-position: center; border-radius: 50% 0 0 50%; mask-image: radial-gradient(circle, black 70%, transparent 100%); -webkit-mask-image: radial-gradient(circle, black 70%, transparent 100%); }
.hero-content { position: relative; z-index: 10; max-width: 50%; }
.hero-subtitle { color: var(--green); font-size: 13px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 15px; display: block; }
.hero-title { font-family: var(--font-heading); font-size: 64px; line-height: 1.1; margin-bottom: 20px; }
.hero-desc { font-size: 16px; color: var(--text-gray); margin-bottom: 30px; max-width: 400px; }
.hero-buttons { display: flex; gap: 15px; margin-bottom: 50px; }
.hero-features { display: flex; gap: 30px; border-top: 1px solid rgba(0,0,0,0.1); padding-top: 20px; }
.feature-item { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-gray); font-weight: 500; }
.feature-item i { color: var(--green); font-size: 18px; }

section.content-section { padding: 40px 0; }
.section-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 30px; }
.section-title { font-family: var(--font-heading); font-size: 32px; }
.view-all { color: var(--primary-color); font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 5px; }
.view-all:hover { text-decoration: underline; }

/* --- 5. Recipe Cards & Badges --- */
.recipe-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-bottom: 50px; }
.recipe-grid-5 { grid-template-columns: repeat(5, 1fr); }
.recipe-card { background: var(--white); border-radius: 16px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.03); transition: transform 0.3s, box-shadow 0.3s; position: relative; }
.recipe-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.08); }
.recipe-img { height: 220px; width: 100%; object-fit: cover; }

/* Phân loại Tags */
.tags-container { position: absolute; top: 15px; left: 15px; display: flex; flex-direction: column; gap: 5px; z-index: 5; }
.tag-badge { padding: 4px 10px; border-radius: 6px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--white); box-shadow: 0 2px 4px rgba(0,0,0,0.2); width: fit-content; }
.tag-featured  { background-color: #f39c12; }
.tag-exclusive { background-color: #8e44ad; }
.tag-highlight { background-color: #2980b9; }
.tag-new       { background-color: #27ae60; }
.tag-trend     { background-color: #e74c3c; }

/* Huy hiệu thời gian và Nút Like */
.recipe-badge { position: absolute; bottom: 15px; left: 15px; background: rgba(255,255,255,0.9); padding: 5px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; display: flex; align-items: center; gap: 5px; z-index: 5;}
.like-btn { position: absolute; top: 15px; right: 15px; background: rgba(255,255,255,0.9); width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--text-gray); cursor: pointer; border: none; z-index: 5;}
.like-btn:hover { color: #e74c3c; }

.recipe-content { padding: 20px; }
.recipe-title { font-size: 18px; font-weight: 600; margin-bottom: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.recipe-meta { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--text-gray); }
.recipe-rating { display: flex; align-items: center; gap: 4px; }
.recipe-rating i { color: #f1c40f; }

/* --- 6. Category Components (Grid, Page Banner, Toolbar) --- */
.category-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.category-card { background: var(--white); border-radius: 16px; overflow: hidden; text-align: center; box-shadow: 0 4px 15px rgba(0,0,0,0.03); display: flex; flex-direction: column; transition: transform 0.3s; cursor: pointer; }
.category-card:hover { transform: translateY(-5px); }
.category-icon-wrapper { padding: 25px 20px 10px; }
.category-icon { width: 60px; height: 60px; background-color: #fff9f0; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 15px; font-size: 24px; }
.cat-icon-1 { color: #f39c12; background-color: #fef5e7; }
.cat-icon-2 { color: #2ecc71; background-color: #eafaf1; }
.cat-icon-3 { color: #e67e22; background-color: #fdf2e9; }
.cat-icon-4 { color: #e74c3c; background-color: #fdedec; }
.cat-icon-5 { color: #1abc9c; background-color: #e8f8f5; }
.category-card .category-title { font-size: 16px; font-weight: 600; margin-bottom: 5px; text-transform: capitalize; }
.category-count { font-size: 12px; color: var(--text-gray); margin-bottom: 15px; }
.category-img { height: 100px; width: 100%; object-fit: cover; }

/* Category Banner & Toolbar */
.category-banner { background-color: #fcf4ec; border-radius: 24px; padding: 60px 40px; text-align: center; margin-bottom: 40px; position: relative; overflow: hidden; }
.category-banner::before { content: "\f2e7"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; top: -20px; left: 20px; font-size: 150px; color: rgba(241, 110, 54, 0.05); transform: rotate(-15deg); }
.category-banner .category-title { font-family: var(--font-heading); font-size: 48px; margin-bottom: 15px; color: var(--text-dark); position: relative; z-index: 1; text-transform: capitalize; }
.category-desc { font-size: 16px; color: var(--text-gray); max-width: 600px; margin: 0 auto; position: relative; z-index: 1; }

.category-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; padding-bottom: 15px; border-bottom: 1px solid var(--border-color); }
.results-count { font-size: 15px; color: var(--text-gray); }
.results-count span { font-weight: 600; color: var(--text-dark); }
.sort-filter { display: flex; align-items: center; gap: 15px; }
.sort-filter label { font-size: 14px; color: var(--text-gray); }
.sort-select { padding: 8px 15px; border: 1px solid var(--border-color); border-radius: 20px; background-color: var(--white); font-family: var(--font-body); font-size: 14px; color: var(--text-dark); outline: none; cursor: pointer; }

/* Pagination */
.pagination { display: flex; justify-content: center; align-items: center; gap: 10px; margin-bottom: 80px; }
.page-item { min-width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 20px; background-color: var(--white); border: 1px solid var(--border-color); font-weight: 500; color: var(--text-dark); transition: all 0.3s; cursor: pointer; padding: 0 15px; }
.page-item:hover:not(.disabled) { background-color: #f5f5f5; }
.page-item.active { background-color: var(--primary-color); color: var(--white); border-color: var(--primary-color); }
.page-item.next-prev { gap: 5px; }
.page-item.disabled { color: #ccc; cursor: not-allowed; border-color: #eee; }
.no-results { text-align: center; padding: 50px 0; grid-column: span 4; color: var(--text-gray); }

/* --- 7. Recipe Detail Page --- */
.recipe-header { text-align: center; max-width: 800px; margin: 0 auto 30px; }
.recipe-header .recipe-title { font-family: var(--font-heading); font-size: 48px; margin-bottom: 15px; line-height: 1.2; }
.recipe-description { font-size: 16px; color: var(--text-gray); margin-bottom: 20px; }

.recipe-author-meta { display: flex; align-items: center; justify-content: center; gap: 20px; font-size: 14px; color: var(--text-gray); }
.author-info { display: flex; align-items: center; gap: 10px; font-weight: 500; color: var(--text-dark); }
.author-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background-color: #eee; }

.recipe-actions { display: flex; gap: 10px; justify-content: center; margin-top: 20px; }
.action-btn { width: 40px; height: 40px; border-radius: 50%; background-color: var(--white); border: 1px solid var(--border-color); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.3s; color: var(--text-dark); }
.action-btn:hover { background-color: var(--primary-color); color: var(--white); border-color: var(--primary-color); }

.featured-image-container { width: 100%; height: 500px; border-radius: 20px; overflow: hidden; margin-bottom: 40px; }
.featured-image-container img { width: 100%; height: 100%; object-fit: cover; }

.recipe-info-bar { background-color: #fff4ef; border-radius: 16px; padding: 30px; display: flex; justify-content: space-between; margin-bottom: 40px; }
.info-item { text-align: center; flex: 1; border-right: 1px solid rgba(0,0,0,0.1); }
.info-item:last-child { border-right: none; }
.info-label { font-size: 13px; color: var(--text-gray); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 5px; font-weight: 600; }
.info-value { font-size: 18px; font-weight: 600; color: var(--text-dark); }

.main-content { display: grid; grid-template-columns: 2fr 1fr; gap: 50px; margin-bottom: 60px; }
.recipe-details h2 { font-family: var(--font-heading); font-size: 28px; margin-bottom: 25px; border-bottom: 2px solid var(--border-color); padding-bottom: 10px; margin-top: 40px; }
.recipe-details h2:first-child { margin-top: 0; }
.recipe-details p { margin-bottom: 15px; color: var(--text-gray); font-size: 16px; }
.recipe-details ul { margin-bottom: 25px; padding-left: 20px; }
.recipe-details li { margin-bottom: 10px; padding: 8px 0; border-bottom: 1px dashed var(--border-color); font-size: 16px; }

/* Detail Sidebar */
.sidebar-box { background-color: var(--white); border: 1px solid var(--border-color); border-radius: 16px; padding: 25px; margin-bottom: 30px; }
.sidebar-title { font-family: var(--font-heading); font-size: 22px; margin-bottom: 20px; }
.nutrition-list li { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--border-color); font-size: 15px; }
.nutrition-list li:last-child { border-bottom: none; }
.nutrition-list li span:last-child { font-weight: 600; }

/* --- 8. About Us Page --- */
.about-hero { text-align: center; padding: 80px 0 40px; }
.about-hero-subtitle { color: var(--primary-color); font-weight: 600; font-size: 14px; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 15px; display: block; }
.about-hero-title { font-family: var(--font-heading); font-size: 56px; line-height: 1.2; margin-bottom: 20px; color: var(--text-dark); }
.about-hero-desc { font-size: 18px; color: var(--text-gray); max-width: 700px; margin: 0 auto 40px; }
.about-hero-img { width: 100%; height: 500px; object-fit: cover; border-radius: 24px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }

.mission-section { padding: 80px 0; }
.mission-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.mission-content h2 { font-family: var(--font-heading); font-size: 36px; margin-bottom: 20px; }
.mission-content p { color: var(--text-gray); font-size: 16px; margin-bottom: 20px; }
.mission-features { margin-top: 30px; }
.mission-feature { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 20px; }
.mission-feature-icon { width: 50px; height: 50px; background-color: #fff4ef; color: var(--primary-color); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.mission-feature-text h4 { font-size: 18px; margin-bottom: 5px; }
.mission-feature-text p { font-size: 14px; color: var(--text-gray); margin: 0; }
.mission-images { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.mission-images img { width: 100%; border-radius: 16px; object-fit: cover; }
.mission-images img:nth-child(1) { height: 350px; transform: translateY(40px); }
.mission-images img:nth-child(2) { height: 400px; }

.team-section { padding: 80px 0; background-color: #f1f6f3; border-radius: 40px; margin: 0 20px; }
.team-header { text-align: center; margin-bottom: 50px; }
.team-header h2 { font-family: var(--font-heading); font-size: 36px; margin-bottom: 15px; }
.team-header p { color: var(--text-gray); max-width: 600px; margin: 0 auto; }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; max-width: 1000px; margin: 0 auto; }
.team-card { background: var(--white); border-radius: 20px; overflow: hidden; text-align: center; padding: 40px 20px; box-shadow: 0 4px 15px rgba(0,0,0,0.03); transition: transform 0.3s; }
.team-card:hover { transform: translateY(-10px); }
.team-avatar { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; margin: 0 auto 20px; background-color: #eee; }
.team-name { font-size: 20px; font-weight: 600; margin-bottom: 5px; }
.team-role { color: var(--primary-color); font-size: 14px; font-weight: 500; margin-bottom: 15px; }
.team-social { display: flex; justify-content: center; gap: 10px; }
.team-social a { width: 35px; height: 35px; border-radius: 50%; background-color: #f5f5f5; color: var(--text-dark); display: flex; align-items: center; justify-content: center; font-size: 14px; transition: 0.3s; }
.team-social a:hover { background-color: var(--primary-color); color: var(--white); }

.stats-section { padding: 80px 0; text-align: center; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); padding: 40px 0; }
.stat-item h3 { font-family: var(--font-heading); font-size: 40px; color: var(--green); margin-bottom: 5px; }
.stat-item p { color: var(--text-gray); font-weight: 500; text-transform: uppercase; font-size: 13px; letter-spacing: 1px; }

/* --- 9. Legal Pages (Privacy & Terms) --- */
.legal-header { text-align: center; padding: 60px 0 40px; background-color: #fcf4ec; margin-bottom: 50px; }
.legal-title { font-family: var(--font-heading); font-size: 48px; margin-bottom: 10px; }
.legal-date { color: var(--text-gray); font-size: 15px; }

.legal-content { max-width: 800px; margin: 0 auto 80px; padding: 0 20px; background: var(--white); padding: 40px; border-radius: 16px; box-shadow: 0 4px 15px rgba(0,0,0,0.03); }
.legal-content h2 { font-family: var(--font-heading); font-size: 24px; margin: 40px 0 15px; border-bottom: 1px solid var(--border-color); padding-bottom: 10px; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p { color: var(--text-gray); margin-bottom: 20px; font-size: 16px; }
.legal-content ul { margin-bottom: 20px; padding-left: 20px; color: var(--text-gray); }
.legal-content li { margin-bottom: 10px; }
.legal-content a { color: var(--primary-color); text-decoration: underline; }

/* --- Featured Collections --- */
.collection-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.collection-card {
    position: relative;
    height: 250px;
    border-radius: 16px;
    overflow: hidden;
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 25px;
}

.collection-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
    z-index: 1;
}

.collection-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    transition: transform 0.5s;
}

.collection-card:hover .collection-bg {
    transform: scale(1.05);
}

.collection-content {
    position: relative;
    z-index: 2;
}

.collection-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.collection-desc {
    font-size: 13px;
    opacity: 0.9;
    margin-bottom: 15px;
    line-height: 1.4;
}

.collection-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.collection-count {
    font-size: 12px;
    font-weight: 500;
}

.collection-btn {
    width: 32px;
    height: 32px;
    background: var(--white);
    color: var(--text-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
}

/* --- Newsletter --- */
.newsletter {
    margin: 60px 0 0;
    padding: 80px 0;
    background-color: #f1f6f3;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.nl-decor-left {
    position: absolute;
    left: -5%;
    top: 50%;
    transform: translateY(-50%);
    width: 30%;
    opacity: 0.8;
}

.nl-decor-right {
    position: absolute;
    right: -5%;
    top: 50%;
    transform: translateY(-50%);
    width: 25%;
    opacity: 0.8;
}

.newsletter-content {
    position: relative;
    z-index: 10;
    max-width: 500px;
    margin: 0 auto;
}

.nl-subtitle {
    color: var(--green);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.nl-title {
    font-family: var(--font-heading);
    font-size: 36px;
    margin-bottom: 15px;
}

.nl-desc {
    color: var(--text-gray);
    font-size: 15px;
    margin-bottom: 30px;
}

.subscribe-form {
    display: flex;
    background: var(--white);
    border-radius: 30px;
    padding: 5px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin-bottom: 15px;
}

.subscribe-form input {
    flex: 1;
    border: none;
    padding: 15px 20px;
    border-radius: 30px 0 0 30px;
    outline: none;
    font-size: 14px;
}

.btn-subscribe {
    background-color: var(--green);
    color: var(--white);
    border: none;
    padding: 0 30px;
    border-radius: 25px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-subscribe:hover {
    background-color: #3b6146;
}

.nl-note {
    font-size: 11px;
    color: var(--text-gray);
}

/* --- Footer --- */
footer {
    background-color: var(--white);
    padding: 60px 0 20px;
    border-top: 1px solid var(--border-color);
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col h4 {
    font-size: 16px;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul a {
    color: var(--text-gray);
    font-size: 14px;
}

.footer-col ul a:hover {
    color: var(--primary-color);
}

.footer-brand .logo {
    margin-bottom: 15px;
}

.footer-brand p {
    color: var(--text-gray);
    font-size: 14px;
    margin-bottom: 20px;
    max-width: 250px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--green);
    transition: all 0.3s;
}

.social-links a:hover {
    background-color: var(--green);
    color: var(--white);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    font-size: 13px;
    color: var(--text-gray);
}

.footer-links a:hover {
    color: var(--primary-color);
}


/* ==========================================================================
   11. RESPONSIVE / MOBILE & TABLET LAYOUT
   ========================================================================== */

/* --- Tablet (Màn hình dưới 992px) --- */
@media (max-width: 992px) {
    /* Điều chỉnh Grid */
    .recipe-grid { grid-template-columns: repeat(2, 1fr); }
    .recipe-grid-5 { grid-template-columns: repeat(3, 1fr); }
    .category-grid { grid-template-columns: repeat(3, 1fr); }
    .team-grid { grid-template-columns: repeat(2, 1fr); }
    
    /* Trang chi tiết: Đẩy sidebar xuống dưới */
    .main-content { grid-template-columns: 1fr; gap: 30px; }
    
    /* Trang About: Cột sứ mệnh thành 1 cột */
    .mission-grid { grid-template-columns: 1fr; gap: 40px; }
    
    /* Hero Banner: Đưa nội dung ra giữa, làm mờ nền */
    .hero-content { max-width: 100%; text-align: center; }
    .hero-bg { width: 100%; opacity: 0.15; mask-image: none; -webkit-mask-image: none; border-radius: 0; }
    .hero-features, .hero-buttons { justify-content: center; }
}

/* --- Mobile (Màn hình dưới 768px) --- */
@media (max-width: 768px) {
    /* Header (Dàn Menu ra giữa, ẩn nút tìm kiếm cho gọn) */
    .header-content { flex-wrap: wrap; justify-content: center; gap: 15px; padding: 10px 0; }
    .logo { justify-content: center; width: 100%; }
    nav { width: 100%; overflow-x: auto; }
    nav ul { justify-content: center; width: max-content; margin: 0 auto; gap: 15px; }
    .header-actions { display: none; } /* Ẩn bớt công cụ để tiết kiệm không gian */
    .dropdown-menu { position: static; box-shadow: none; padding: 0; display: none; } /* Ẩn dropdown hover trên mobile */

    /* Typography (Thu nhỏ chữ) */
    .hero-title { font-size: 40px; }
    .section-title { font-size: 26px; }
    .about-hero-title, .recipe-header .recipe-title, .category-banner .category-title { font-size: 32px; }
    .legal-title { font-size: 36px; }

    /* Điều chỉnh Grid về 1-2 cột */
    .recipe-grid { grid-template-columns: 1fr; }
    .recipe-grid-5 { grid-template-columns: repeat(2, 1fr); }
    .category-grid { grid-template-columns: repeat(2, 1fr); }
    .team-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; padding: 20px 0; border: none; }
    
    /* Sắp xếp lại ảnh About */
    .mission-images { display: flex; flex-direction: column; gap: 15px; }
    .mission-images img:nth-child(1) { height: 250px; transform: translateY(0); }

    /* Form Đăng ký */
    .subscribe-form { display: flex; flex-direction: column; background: transparent; box-shadow: none; width: 100%; }
    .subscribe-form input { border-radius: 25px; padding: 15px; margin-bottom: 10px; width: 100%; border: 1px solid var(--border-color); }
    .btn-subscribe { padding: 15px; width: 100%; }

    /* Trang Detail */
    .featured-image-container { height: 300px; }
    .recipe-info-bar { flex-direction: column; gap: 15px; padding: 20px; }
    .info-item { border-right: none; border-bottom: 1px solid rgba(0,0,0,0.1); padding-bottom: 15px; }
    .info-item:last-child { border-bottom: none; padding-bottom: 0; }

    /* Toolbar Danh mục */
    .category-toolbar { flex-direction: column; align-items: flex-start; gap: 15px; }
}

/* --- Small Mobile (Màn hình dưới 480px) --- */
@media (max-width: 480px) {
    .recipe-grid-5 { grid-template-columns: 1fr; }
    .category-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr; }
    
    .hero-title { font-size: 34px; }
    .hero-buttons { flex-direction: column; width: 100%; }
    .hero-features { flex-direction: column; gap: 10px; align-items: center; }
}