:root {
    --bg: #f8f6f1;
    --bg2: #ffffff;
    --bg3: #f0ece3;
    --border: #e0d8cc;
    --accent: #c4713a;
    --accent2: #2d5a3d;
    --text: #1a1208;
    --text-muted: #6b5e4e;
    --radius: 6px;
    --font-head: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: 16px; line-height: 1.7; }
a { color: inherit; text-decoration: none; }

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

/* HEADER */
.site-header { background: var(--text); border-bottom: 3px solid var(--accent); position: sticky; top: 0; z-index: 100; padding: 12px 0; }
.header-inner { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.logo { font-family: var(--font-head); font-size: 28px; font-weight: 900; color: #fff; white-space: nowrap; }
.logo span { color: var(--accent); }
.header-search { display: flex; flex: 1; min-width: 200px; max-width: 440px; }
.header-search input { flex: 1; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); border-right: none; color: #fff; padding: 8px 14px; border-radius: var(--radius) 0 0 var(--radius); font-family: var(--font-body); font-size: 14px; outline: none; }
.header-search input::placeholder { color: rgba(255,255,255,0.5); }
.header-search input:focus { border-color: var(--accent); background: rgba(255,255,255,0.15); }
.header-search button { background: var(--accent); border: none; padding: 8px 14px; border-radius: 0 var(--radius) var(--radius) 0; cursor: pointer; font-size: 16px; }
nav { display: flex; gap: 20px; flex-wrap: wrap; }
nav a { color: rgba(255,255,255,0.7); font-family: var(--font-body); font-size: 14px; font-weight: 500; transition: color 0.2s; }
nav a:hover { color: var(--accent); }

main.container { padding-top: 40px; padding-bottom: 60px; }

/* HERO */
.site-hero { background: var(--text); color: #fff; padding: 60px 0; margin-bottom: 0; }
.site-hero .container { }
.site-hero-content { max-width: 700px; }
.site-hero-content h1 { font-family: var(--font-head); font-size: clamp(32px, 5vw, 60px); font-weight: 900; line-height: 1.1; margin-bottom: 16px; }
.site-hero-content h1 span { color: var(--accent); }
.site-hero-content p { color: rgba(255,255,255,0.75); font-size: 18px; margin-bottom: 28px; }
.hero-search { display: flex; max-width: 540px; border-radius: var(--radius); overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,0.3); }
.hero-search input { flex: 1; background: #fff; border: none; color: var(--text); padding: 14px 20px; font-size: 15px; font-family: var(--font-body); outline: none; }
.hero-search button { background: var(--accent); border: none; padding: 14px 24px; font-size: 14px; font-weight: 600; font-family: var(--font-body); cursor: pointer; color: #fff; white-space: nowrap; transition: background 0.2s; }
.hero-search button:hover { background: #b0612e; }

/* FEATURED */
.featured-card { display: grid; grid-template-columns: 1fr 1fr; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); transition: box-shadow 0.2s; margin-bottom: 10px; }
.featured-card:hover { box-shadow: 0 8px 30px rgba(0,0,0,0.12); }
.featured-img { background-size: cover; background-position: center; min-height: 380px; }
.featured-content { padding: 40px; background: var(--bg2); display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.featured-content h2 { font-family: var(--font-head); font-size: clamp(20px, 2.5vw, 30px); font-weight: 700; line-height: 1.2; }
.featured-content p { color: var(--text-muted); font-size: 15px; }

/* CAT BADGE */
.cat-badge { background: var(--accent); color: #fff; font-family: var(--font-body); font-size: 11px; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; padding: 3px 10px; border-radius: 3px; display: inline-block; }

/* ARTICLE DATE */
.article-date { color: var(--text-muted); font-size: 13px; }
.article-author { color: var(--text-muted); font-size: 13px; }

/* ARTICLE GRID */
.article-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.article-card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: box-shadow 0.2s, transform 0.2s; display: flex; flex-direction: column; }
.article-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,0.1); transform: translateY(-2px); }
.article-img { height: 200px; background-size: cover; background-position: center; }
.article-content { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.article-content h3 { font-family: var(--font-head); font-size: 18px; font-weight: 700; line-height: 1.3; }
.article-content p { color: var(--text-muted); font-size: 14px; line-height: 1.6; flex: 1; }

/* SECTION */
.section { margin: 40px 0; }
.section-title { font-family: var(--font-head); font-size: 28px; font-weight: 700; margin-bottom: 24px; }

/* CATEGORY GRID */
.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.category-card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 8px; transition: box-shadow 0.2s, border-color 0.2s; }
.category-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); border-color: var(--accent); }
.cat-emoji { font-size: 28px; }
.cat-label { font-family: var(--font-head); font-size: 16px; font-weight: 700; color: var(--text); }
.cat-desc { font-size: 13px; color: var(--text-muted); line-height: 1.5; }

/* ARTICLE DETAIL */
.article-layout { display: grid; grid-template-columns: 1fr 300px; gap: 40px; margin-top: 20px; }
.article-hero { height: 440px; background-size: cover; background-position: center; border-radius: var(--radius); margin-bottom: 30px; }
.article-body h1 { font-family: var(--font-head); font-size: clamp(26px, 4vw, 44px); font-weight: 900; line-height: 1.15; margin: 12px 0; }
.article-meta { display: flex; gap: 20px; margin-bottom: 20px; flex-wrap: wrap; }
.article-excerpt { font-size: 18px; color: var(--text-muted); border-left: 4px solid var(--accent); padding-left: 16px; margin-bottom: 24px; font-style: italic; }
.article-content { font-size: 16px; line-height: 1.85; }
.article-content h2 { font-family: var(--font-head); font-size: 24px; font-weight: 700; margin: 32px 0 12px; color: var(--text); }
.article-content p { margin-bottom: 18px; color: var(--text-muted); }
.article-content strong { color: var(--text); }
.article-content a { color: var(--accent); text-decoration: underline; }

/* SHARE */
.article-share { display: flex; align-items: center; gap: 12px; margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.article-share span { font-size: 13px; color: var(--text-muted); font-weight: 500; }
.share-btn { padding: 8px 16px; border-radius: var(--radius); font-size: 13px; font-weight: 600; border: none; cursor: pointer; font-family: var(--font-body); }
.share-twitter { background: #1da1f2; color: #fff; }
.share-facebook { background: #1877f2; color: #fff; }
.share-copy { background: var(--bg3); color: var(--text); border: 1px solid var(--border); }

/* SIDEBAR */
.sidebar-widget { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin-bottom: 24px; }
.widget-title { font-family: var(--font-head); font-size: 16px; font-weight: 700; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--accent); }
.sidebar-article { display: flex; gap: 12px; margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.sidebar-article:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.sidebar-img { width: 70px; height: 70px; background-size: cover; background-position: center; border-radius: 4px; flex-shrink: 0; }
.sidebar-title { font-size: 13px; font-weight: 600; line-height: 1.4; margin-bottom: 4px; font-family: var(--font-head); }
.sidebar-cat { display: block; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 14px; color: var(--text-muted); transition: color 0.2s; }
.sidebar-cat:last-child { border-bottom: none; }
.sidebar-cat:hover { color: var(--accent); }

/* PAGE HEADER */
.page-header { margin-bottom: 28px; padding-bottom: 20px; border-bottom: 2px solid var(--border); }
.page-header h1 { font-family: var(--font-head); font-size: clamp(28px, 5vw, 48px); font-weight: 900; }
.page-header h1 span { color: var(--accent); }
.page-header p { color: var(--text-muted); margin-top: 8px; font-size: 17px; }

/* STATIC PAGES */
.static-page { max-width: 800px; margin: 0 auto; padding: 40px 0 60px; }
.static-page h1 { font-family: var(--font-head); font-size: clamp(30px, 5vw, 48px); font-weight: 900; margin-bottom: 8px; }
.static-page h2 { font-family: var(--font-head); font-size: 22px; font-weight: 700; margin: 28px 0 10px; }
.static-page p { color: var(--text-muted); margin-bottom: 14px; line-height: 1.8; }
.static-page a { color: var(--accent); text-decoration: underline; }
.static-date { color: var(--text-muted); font-size: 13px; margin-bottom: 24px !important; }

/* CONTACT */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; margin: 30px 0; }
.contact-card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; text-align: center; }
.contact-icon { font-size: 36px; margin-bottom: 12px; }
.contact-card h3 { font-family: var(--font-head); font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.contact-card p { font-size: 13px; margin-bottom: 10px; color: var(--text-muted); }
.contact-link { color: var(--accent) !important; font-weight: 600; font-size: 14px; text-decoration: none !important; word-break: break-all; }

/* EMPTY STATE */
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-muted); }

/* BTN */
.btn-action { background: var(--accent); color: #fff; padding: 10px 22px; border-radius: var(--radius); font-family: var(--font-body); font-weight: 600; font-size: 14px; display: inline-block; transition: background 0.2s; }
.btn-action:hover { background: #b0612e; }

/* AD */
.ad-native-wrap { margin: 24px 0; min-height: 80px; border-radius: var(--radius); overflow: hidden; }

/* FOOTER */
.site-footer { background: var(--text); color: rgba(255,255,255,0.7); padding: 50px 0 24px; margin-top: 60px; }
.footer-top { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 30px; }
.footer-logo { font-family: var(--font-head); font-size: 30px; font-weight: 900; color: #fff; margin-bottom: 10px; }
.footer-logo span { color: var(--accent); }
.footer-brand p { font-size: 14px; line-height: 1.6; }
.footer-cats h4 { font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: rgba(255,255,255,0.4); margin-bottom: 12px; }
.footer-cats { display: flex; flex-direction: column; gap: 8px; }
.footer-cats a { font-size: 14px; transition: color 0.2s; }
.footer-cats a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { font-size: 13px; transition: color 0.2s; }
.footer-links a:hover { color: var(--accent); }
.footer-copy { font-size: 12px; }

/* RESPONSIVE */
@media (max-width: 900px) {
    .featured-card { grid-template-columns: 1fr; }
    .featured-img { min-height: 260px; }
    .article-layout { grid-template-columns: 1fr; }
    .article-sidebar { display: none; }
    .footer-top { grid-template-columns: 1fr; }
    .site-hero { padding: 40px 0; }
}
@media (max-width: 600px) {
    nav { display: none; }
    .article-grid { grid-template-columns: 1fr; }
    .category-grid { grid-template-columns: repeat(2, 1fr); }
}
