/*
Theme Name: Flavor Theme
Theme URI: https://flavor-theme.dev
Author: Flavor Dev
Author URI: https://flavor-theme.dev
Description: A modern WordPress theme with hero section, featured posts grid, latest posts list with sidebar.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: flavor-theme
Tags: blog, grid-layout, custom-header, featured-images, full-width-template
*/

/* ============================================
   RESET & BASE
   ============================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --color-primary: #2563eb;
    --color-primary-dark: #1d4ed8;
    --color-secondary: #0f172a;
    --color-accent: #f59e0b;
    --color-text: #334155;
    --color-text-light: #64748b;
    --color-bg: #f8fafc;
    --color-white: #ffffff;
    --color-border: #e2e8f0;
    --color-card-bg: #ffffff;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
    --radius: 8px;
    --radius-lg: 12px;
    --transition: 0.3s ease;
    --max-width: 1200px;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-bg);
}

a { color: var(--color-primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-primary-dark); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, h5, h6 { color: var(--color-secondary); line-height: 1.3; font-weight: 700; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

/* HEADER */
.site-header {
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    position: sticky; top: 0; z-index: 1000;
    box-shadow: var(--shadow-sm);
}
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 24px; max-width: var(--max-width); margin: 0 auto; height: 56px;
}
.site-branding { display: flex; align-items: center; gap: 10px; }
.site-branding .site-title { font-size: 1.2rem; font-weight: 800; margin: 0; line-height: 1; }
.site-branding .site-title a { color: var(--color-secondary); text-decoration: none; }
.site-branding .site-title a:hover { color: var(--color-primary); }
.site-branding .site-description { display: none; }
.site-branding .custom-logo-link img { max-height: 32px; width: auto; }

.main-navigation ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.main-navigation ul li a {
    display: block; padding: 6px 14px; font-size: 0.875rem; font-weight: 500;
    color: var(--color-text); border-radius: var(--radius); transition: all var(--transition);
    line-height: 1.4;
}
.main-navigation ul li a:hover { background: var(--color-bg); color: var(--color-primary); }
.main-navigation ul li.current-menu-item a { background: var(--color-primary); color: var(--color-white); }

.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; color: var(--color-secondary); }
.menu-toggle .hamburger { display: block; width: 20px; height: 2px; background: currentColor; position: relative; transition: all var(--transition); }
.menu-toggle .hamburger::before,
.menu-toggle .hamburger::after { content: ''; display: block; width: 20px; height: 2px; background: currentColor; position: absolute; transition: all var(--transition); }
.menu-toggle .hamburger::before { top: -6px; }
.menu-toggle .hamburger::after { top: 6px; }

/* HERO SLIDER */
.hero-slider {
    position: relative; width: 100%; height: 520px; overflow: hidden;
    background: var(--color-secondary);
}
.hero-slides { position: relative; width: 100%; height: 100%; }
.hero-slide {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    opacity: 0; transition: opacity 0.8s ease;
    display: flex; align-items: center; justify-content: center;
}
.hero-slide.active { opacity: 1; z-index: 1; }
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.25) 50%, rgba(0,0,0,0.15) 100%);
    z-index: 1;
}
.hero-slide-content {
    position: relative; z-index: 2; text-align: center;
    max-width: 720px; padding: 0 24px; color: var(--color-white);
}
.hero-category {
    display: inline-block; margin-bottom: 14px;
    padding: 4px 16px; background: var(--color-primary); border-radius: 50px;
    font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
}
.hero-category a { color: var(--color-white); }
.hero-slide-content h2 {
    font-size: 2.6rem; font-weight: 800; color: var(--color-white);
    margin-bottom: 14px; line-height: 1.2; letter-spacing: -0.5px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.hero-slide-content h2 a { color: var(--color-white); }
.hero-slide-content h2 a:hover { color: var(--color-accent); }
.hero-excerpt {
    font-size: 1.05rem; opacity: 0.9; margin-bottom: 12px; line-height: 1.6;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.hero-meta { font-size: 0.85rem; opacity: 0.75; margin-bottom: 24px; }
.hero-meta span { margin: 0 4px; }

/* Hero Arrows */
.hero-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    z-index: 5; background: rgba(255,255,255,0.15); backdrop-filter: blur(4px);
    color: var(--color-white); border: none; width: 48px; height: 48px;
    border-radius: 50%; font-size: 1.3rem; cursor: pointer;
    transition: all var(--transition); display: flex; align-items: center; justify-content: center;
}
.hero-arrow:hover { background: rgba(255,255,255,0.3); }
.hero-prev { left: 20px; }
.hero-next { right: 20px; }

/* Hero Dots */
.hero-dots {
    position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
    z-index: 5; display: flex; gap: 10px;
}
.hero-dot {
    width: 12px; height: 12px; border-radius: 50%;
    background: rgba(255,255,255,0.4); border: none; cursor: pointer;
    transition: all var(--transition); padding: 0;
}
.hero-dot.active,
.hero-dot:hover { background: var(--color-white); transform: scale(1.2); }

/* Hero transition */
.hero-slide-content h2,
.hero-slide-content .hero-category,
.hero-slide-content .hero-excerpt,
.hero-slide-content .hero-meta,
.hero-slide-content .hero-btn {
    opacity: 0; transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.hero-slide.active .hero-category { opacity: 1; transform: translateY(0); transition-delay: 0.2s; }
.hero-slide.active h2 { opacity: 1; transform: translateY(0); transition-delay: 0.35s; }
.hero-slide.active .hero-excerpt { opacity: 1; transform: translateY(0); transition-delay: 0.5s; }
.hero-slide.active .hero-meta { opacity: 1; transform: translateY(0); transition-delay: 0.6s; }
.hero-slide.active .hero-btn { opacity: 1; transform: translateY(0); transition-delay: 0.7s; }

/* SECTION TITLES */
.section-title {
    font-size: 1.75rem; font-weight: 800; margin-bottom: 30px;
    padding-bottom: 12px; position: relative; display: inline-block;
}
.section-title::after {
    content: ''; position: absolute; bottom: 0; left: 0;
    width: 50px; height: 3px; background: var(--color-primary); border-radius: 2px;
}

/* FEATURED POSTS GRID */
.featured-posts-section { padding: 60px 0; }
.featured-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.featured-card {
    background: var(--color-card-bg); border-radius: var(--radius-lg);
    overflow: hidden; box-shadow: var(--shadow-md); transition: all var(--transition);
}
.featured-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.featured-card .card-thumbnail { width: 100%; height: 200px; overflow: hidden; }
.featured-card .card-thumbnail img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition); }
.featured-card:hover .card-thumbnail img { transform: scale(1.05); }
.featured-card .card-thumbnail .no-thumb {
    width: 100%; height: 100%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    display: flex; align-items: center; justify-content: center;
    color: var(--color-white); font-size: 2rem; font-weight: 700;
}
.featured-card .card-body { padding: 20px; }
.featured-card .card-category {
    display: inline-block; font-size: 0.75rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.5px; color: var(--color-primary); margin-bottom: 8px;
}
.featured-card .card-body h3 { font-size: 1.1rem; margin-bottom: 10px; line-height: 1.4; }
.featured-card .card-body h3 a { color: var(--color-secondary); }
.featured-card .card-body h3 a:hover { color: var(--color-primary); }
.featured-card .card-excerpt {
    font-size: 0.9rem; color: var(--color-text-light); margin-bottom: 12px;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.featured-card .card-meta { font-size: 0.8rem; color: var(--color-text-light); display: flex; align-items: center; gap: 12px; }

/* CONTENT + SIDEBAR */
.content-sidebar-wrap { padding: 60px 0; }
.content-sidebar-inner { display: grid; grid-template-columns: 1fr 320px; gap: 40px; align-items: start; }

/* LATEST POSTS LIST */
.post-list-item {
    display: flex; gap: 20px; background: var(--color-card-bg);
    border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: var(--shadow-sm); margin-bottom: 20px; transition: all var(--transition);
}
.post-list-item:hover { box-shadow: var(--shadow-md); transform: translateX(4px); }
.post-list-item .post-thumbnail { flex-shrink: 0; width: 240px; min-height: 180px; overflow: hidden; }
.post-list-item .post-thumbnail img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition); }
.post-list-item:hover .post-thumbnail img { transform: scale(1.05); }
.post-list-item .post-thumbnail .no-thumb {
    width: 100%; height: 100%;
    background: linear-gradient(135deg, #64748b, #475569);
    display: flex; align-items: center; justify-content: center;
    color: var(--color-white); font-weight: 700; font-size: 1.2rem;
}
.post-list-item .post-content { padding: 20px 20px 20px 0; display: flex; flex-direction: column; justify-content: center; }
.post-list-item .post-category {
    font-size: 0.75rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.5px; color: var(--color-primary); margin-bottom: 6px;
}
.post-list-item .post-content h3 { font-size: 1.15rem; margin-bottom: 8px; line-height: 1.4; }
.post-list-item .post-content h3 a { color: var(--color-secondary); }
.post-list-item .post-content h3 a:hover { color: var(--color-primary); }
.post-list-item .post-excerpt {
    font-size: 0.9rem; color: var(--color-text-light); margin-bottom: 12px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.post-list-item .post-meta { font-size: 0.8rem; color: var(--color-text-light); display: flex; gap: 12px; }
.read-more-link { display: inline-block; font-size: 0.85rem; font-weight: 600; color: var(--color-primary); margin-top: 8px; }
.read-more-link:hover { color: var(--color-primary-dark); }

/* PAGINATION */
.pagination { margin-top: 40px; display: flex; justify-content: center; gap: 8px; }
.pagination .page-numbers {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 40px; height: 40px; padding: 0 12px; border-radius: var(--radius);
    background: var(--color-card-bg); color: var(--color-text); font-weight: 500;
    border: 1px solid var(--color-border); transition: all var(--transition);
}
.pagination .page-numbers.current,
.pagination .page-numbers:hover { background: var(--color-primary); color: var(--color-white); border-color: var(--color-primary); }

/* SIDEBAR */
.sidebar { position: sticky; top: 72px; }
.widget {
    background: var(--color-card-bg); border-radius: var(--radius-lg);
    padding: 24px; margin-bottom: 24px; box-shadow: var(--shadow-sm);
}
.widget-title {
    font-size: 1.1rem; font-weight: 700; margin-bottom: 16px;
    padding-bottom: 10px; border-bottom: 2px solid var(--color-border); color: var(--color-secondary);
}
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget ul li { padding: 8px 0; border-bottom: 1px solid var(--color-border); }
.widget ul li:last-child { border-bottom: none; }
.widget ul li a { color: var(--color-text); font-size: 0.9rem; transition: color var(--transition); }
.widget ul li a:hover { color: var(--color-primary); }
.widget .search-form { display: flex; }
.widget .search-form .search-field {
    flex: 1; padding: 10px 14px; border: 1px solid var(--color-border);
    border-right: none; border-radius: var(--radius) 0 0 var(--radius);
    font-size: 0.9rem; outline: none; transition: border-color var(--transition);
}
.widget .search-form .search-field:focus { border-color: var(--color-primary); }
.widget .search-form .search-submit {
    padding: 10px 16px; background: var(--color-primary); color: var(--color-white);
    border: none; border-radius: 0 var(--radius) var(--radius) 0;
    cursor: pointer; font-weight: 600; transition: background var(--transition);
}
.widget .search-form .search-submit:hover { background: var(--color-primary-dark); }
.widget .tagcloud a {
    display: inline-block; padding: 4px 12px; margin: 3px 2px;
    background: var(--color-bg); border-radius: 50px; font-size: 0.8rem !important;
    color: var(--color-text); transition: all var(--transition);
}
.widget .tagcloud a:hover { background: var(--color-primary); color: var(--color-white); }

/* FOOTER */
.site-footer { background: var(--color-secondary); color: rgba(255,255,255,0.65); position: relative; }
.footer-top { padding: 60px 0 40px; }
.footer-widgets {
    display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 48px;
}
.footer-widgets .widget { background: transparent; box-shadow: none; padding: 0; margin: 0; }
.footer-widgets .widget-title {
    color: var(--color-white); font-size: 1rem; font-weight: 700;
    margin-bottom: 20px; padding-bottom: 12px;
    border-bottom: 2px solid var(--color-primary); border-bottom-color: var(--color-primary);
    display: inline-block;
}
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-brand .footer-logo-link img,
.footer-brand .custom-logo-link img { max-height: 36px; width: auto; }
.footer-brand .widget-title { margin-bottom: 0; border: none; padding: 0; }
.footer-brand .widget-title a { color: var(--color-white); text-decoration: none; }
.footer-brand .widget-title a:hover { color: var(--color-accent); }
.footer-desc { font-size: 0.9rem; line-height: 1.7; margin: 0; color: rgba(255,255,255,0.55); }
.footer-widgets .widget ul { list-style: none; padding: 0; margin: 0; }
.footer-widgets .widget ul li {
    padding: 0; border: none; margin-bottom: 10px;
}
.footer-widgets .widget ul li a {
    color: rgba(255,255,255,0.6); font-size: 0.9rem;
    transition: color var(--transition), padding-left var(--transition);
    display: inline-block;
}
.footer-widgets .widget ul li a:hover {
    color: var(--color-white); padding-left: 6px;
}
.footer-widgets .widget ul li a::before {
    content: ''; display: inline-block; width: 0; height: 0;
    border-top: 4px solid transparent; border-bottom: 4px solid transparent;
    border-left: 5px solid var(--color-primary);
    margin-right: 10px; vertical-align: middle;
    opacity: 0; transition: opacity var(--transition);
}
.footer-widgets .widget ul li a:hover::before { opacity: 1; }

/* Footer bottom */
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 18px 0;
}
.footer-bottom-inner {
    display: flex; align-items: center; justify-content: space-between;
}
.footer-copy, .footer-credit { margin: 0; font-size: 0.82rem; color: rgba(255,255,255,0.4); }
.footer-bottom a { color: var(--color-accent); transition: color var(--transition); }
.footer-bottom a:hover { color: #fbbf24; }

/* Back to top */
.back-to-top {
    position: fixed; bottom: 30px; right: 30px; z-index: 999;
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--color-primary); color: var(--color-white);
    border: none; font-size: 1.2rem; cursor: pointer;
    box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    display: flex; align-items: center; justify-content: center;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--color-primary-dark); transform: translateY(-2px); }

/* SINGLE POST */
.single-post-header { padding: 50px 0 30px; text-align: center; }
.single-post-header .entry-category {
    display: inline-block; padding: 4px 14px; background: var(--color-primary);
    color: var(--color-white); border-radius: 50px; font-size: 0.8rem;
    font-weight: 600; text-transform: uppercase; margin-bottom: 16px;
}
.single-post-header h1 { font-size: 2.2rem; max-width: 800px; margin: 0 auto 16px; }
.single-post-header .entry-meta { color: var(--color-text-light); font-size: 0.9rem; }
.single-featured-image { max-width: 900px; margin: 0 auto 40px; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.single-featured-image img { width: 100%; }
.entry-content { max-width: 760px; margin: 0 auto; padding-bottom: 40px; }
.entry-content p { margin-bottom: 1.5em; }
.entry-content h2 { margin-top: 2em; margin-bottom: 0.8em; }
.entry-content h3 { margin-top: 1.5em; margin-bottom: 0.6em; }
.entry-content blockquote {
    border-left: 4px solid var(--color-primary); padding: 16px 24px; margin: 1.5em 0;
    background: rgba(37,99,235,0.05); border-radius: 0 var(--radius) var(--radius) 0; font-style: italic;
}
.entry-content img { border-radius: var(--radius); margin: 1em 0; }
.entry-content ul, .entry-content ol { padding-left: 1.5em; margin-bottom: 1.5em; }

/* 404 PAGE */
.error-404-section { padding: 80px 0; text-align: center; }
.error-content .error-code {
    font-size: 8rem; font-weight: 900; color: var(--color-primary);
    line-height: 1; margin-bottom: 10px; opacity: 0.8;
}
.error-content h2 { font-size: 2rem; margin-bottom: 16px; }
.error-content p { color: var(--color-text-light); max-width: 500px; margin: 0 auto 30px; }
.error-search { max-width: 400px; margin: 30px auto 0; }

/* ARCHIVE / SEARCH HEADER */
.archive-page-header {
    background: var(--color-white); padding: 40px 0;
    border-bottom: 1px solid var(--color-border);
}
.archive-page-header h1 { font-size: 2rem; }
.archive-page-header h1 span { color: var(--color-primary); }
.archive-description { color: var(--color-text-light); margin-top: 8px; }
.no-results { text-align: center; padding: 40px 0; }
.no-results p { margin-bottom: 20px; color: var(--color-text-light); }

/* SINGLE POST EXTRAS */
.entry-footer { padding: 30px 0; border-top: 1px solid var(--color-border); }
.post-tags { margin-bottom: 24px; font-size: 0.9rem; }
.post-tags a { color: var(--color-primary); }
.post-tags a:hover { color: var(--color-primary-dark); }
.post-navigation { padding: 20px 0; }
.post-navigation .nav-links { display: flex; justify-content: space-between; gap: 20px; }
.post-navigation .nav-previous,
.post-navigation .nav-next { flex: 1; }
.post-navigation .nav-next { text-align: right; }
.post-navigation .nav-label { display: block; font-size: 0.8rem; color: var(--color-text-light); margin-bottom: 4px; }
.post-navigation a { font-weight: 600; font-size: 0.95rem; }

/* COMMENTS */
.comments-area { max-width: 760px; padding: 40px 20px 60px; }
.comments-title { font-size: 1.5rem; margin-bottom: 24px; padding-bottom: 12px; border-bottom: 2px solid var(--color-border); }
.comment-list { list-style: none; padding: 0; margin: 0; }
.comment-list .comment { padding: 20px 0; border-bottom: 1px solid var(--color-border); }
.comment-list .comment-body { display: flex; gap: 16px; }
.comment-list .comment-author img { border-radius: 50%; }
.comment-list .comment-author .fn { font-weight: 600; }
.comment-list .comment-metadata { font-size: 0.8rem; color: var(--color-text-light); margin-bottom: 8px; }
.comment-list .comment-content p { font-size: 0.95rem; }
.comment-list .children { padding-left: 40px; }
.comment-respond { margin-top: 30px; }
.comment-reply-title { font-size: 1.3rem; margin-bottom: 16px; }
.comment-form label { display: block; font-weight: 600; margin-bottom: 4px; font-size: 0.9rem; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%; padding: 10px 14px; border: 1px solid var(--color-border);
    border-radius: var(--radius); font-size: 0.95rem; margin-bottom: 16px;
    font-family: inherit; transition: border-color var(--transition);
}
.comment-form input:focus,
.comment-form textarea:focus { border-color: var(--color-primary); outline: none; }
.comment-form .form-submit .submit {
    background: var(--color-primary); color: var(--color-white);
    padding: 12px 28px; border: none; border-radius: var(--radius);
    font-size: 1rem; font-weight: 600; cursor: pointer; transition: background var(--transition);
}
.comment-form .form-submit .submit:hover { background: var(--color-primary-dark); }
.page-links { padding: 20px 0; font-weight: 600; }
.page-links .post-page-numbers { padding: 4px 12px; border: 1px solid var(--color-border); border-radius: var(--radius); margin: 0 4px; }
.page-links .post-page-numbers.current { background: var(--color-primary); color: var(--color-white); border-color: var(--color-primary); }

/* HERO BUTTON (global) */
.hero-btn {
    display: inline-block; padding: 14px 32px; background: var(--color-accent);
    color: var(--color-secondary); font-size: 1rem; font-weight: 700;
    border-radius: 50px; transition: all var(--transition);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}
.hero-btn:hover { background: #d97706; color: var(--color-white); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(245,158,11,0.5); }

/* Slider progress bar */
.hero-progress { position: absolute; bottom: 0; left: 0; height: 3px; background: var(--color-accent); z-index: 6; width: 0; transition: none; }
.hero-progress.running { transition: width 6s linear; width: 100%; }

/* AD CONTAINERS */
.flavor-ad-container {
    text-align: center; padding: 20px; margin: 24px auto;
    max-width: var(--max-width); position: relative;
    background: var(--color-bg); border-radius: var(--radius);
    overflow: hidden;
}
.flavor-ad-container .ad-label {
    display: block; font-size: 0.7rem; text-transform: uppercase;
    letter-spacing: 1px; color: var(--color-text-light); margin-bottom: 8px;
    opacity: 0.6;
}
.ad-below-header { margin: 0 auto; padding: 12px 20px; border-radius: 0; background: var(--color-white); border-bottom: 1px solid var(--color-border); }
.ad-before-content { margin: 30px auto; }
.ad-in-content { margin: 30px 0; padding: 24px; background: var(--color-bg); border-radius: var(--radius-lg); }
.ad-after-content { margin: 30px auto 0; }
.ad-sidebar-top { margin: 0 0 24px; padding: 16px; background: var(--color-bg); }
.ad-between-sections { margin: 0 auto; padding: 30px 20px; }
.ad-before-footer { margin: 0 auto; padding: 30px 20px; background: var(--color-white); border-top: 1px solid var(--color-border); }

@media (max-width: 768px) {
    .flavor-ad-container { padding: 16px 12px; margin: 16px auto; }
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .featured-grid { grid-template-columns: repeat(2, 1fr); }
    .content-sidebar-inner { grid-template-columns: 1fr 280px; gap: 30px; }
    .footer-widgets { grid-template-columns: repeat(2, 1fr); gap: 36px; }
}
@media (max-width: 768px) {
    .menu-toggle { display: block; }
    .main-navigation {
        display: none; position: absolute; top: 100%; left: 0; right: 0;
        background: var(--color-white); border-top: 1px solid var(--color-border);
        box-shadow: var(--shadow-md); padding: 12px;
    }
    .main-navigation.toggled { display: block; }
    .main-navigation ul { flex-direction: column; }
    .hero-slider { height: 400px; }
    .hero-slide-content h2 { font-size: 1.6rem; }
    .hero-excerpt { font-size: 0.9rem; }
    .hero-arrow { width: 36px; height: 36px; font-size: 1rem; }
    .hero-prev { left: 10px; }
    .hero-next { right: 10px; }
    .featured-grid { grid-template-columns: 1fr; }
    .content-sidebar-inner { grid-template-columns: 1fr; }
    .sidebar { position: static; }
    .post-list-item { flex-direction: column; }
    .post-list-item .post-thumbnail { width: 100%; height: 200px; }
    .post-list-item .post-content { padding: 16px; }
    .footer-widgets { grid-template-columns: 1fr; gap: 30px; }
    .footer-top { padding: 40px 0 30px; }
    .footer-bottom-inner { flex-direction: column; text-align: center; gap: 4px; }
    .back-to-top { bottom: 20px; right: 20px; width: 40px; height: 40px; font-size: 1rem; }
    .single-post-header h1 { font-size: 1.6rem; }
}
@media (max-width: 480px) {
    .header-inner { padding: 0 16px; height: 48px; }
    .site-branding .site-title { font-size: 1rem; }
    .featured-card .card-thumbnail { height: 160px; }
}
