:root {
    --bg: #f7f9fc;
    --bg2: #ffffff;
    --bg3: #eef2f7;
    --border: #e0e7ef;
    --accent: #2563eb;
    --accent2: #f59e0b;
    --accent-light: #eff6ff;
    --text: #111827;
    --text-muted: #6b7280;
    --success: #16a34a;
    --radius: 8px;
    --font-head: 'Sora', sans-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(--bg2); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; padding: 12px 0; box-shadow: 0 1px 8px rgba(0,0,0,0.06); }
.header-inner { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.logo { font-family: var(--font-head); font-size: 24px; font-weight: 800; color: var(--text); 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: var(--bg3); border: 1px solid var(--border); border-right: none; color: var(--text); padding: 9px 14px; border-radius: var(--radius) 0 0 var(--radius); font-family: var(--font-body); font-size: 14px; outline: none; }
.header-search input:focus { border-color: var(--accent); background: #fff; }
.header-search button { background: var(--accent); border: none; padding: 9px 14px; border-radius: 0 var(--radius) var(--radius) 0; cursor: pointer; font-size: 15px; }
nav { display: flex; gap: 20px; flex-wrap: wrap; }
nav a { color: var(--text-muted); font-size: 14px; font-weight: 500; transition: color 0.2s; }
nav a:hover { color: var(--accent); }

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

/* HERO */
.site-hero { background: linear-gradient(135deg, #1d4ed8 0%, #1e3a8a 100%); color: #fff; padding: 56px 0 48px; }
.hero-inner { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.site-hero h1 { font-family: var(--font-head); font-size: clamp(30px, 5vw, 54px); font-weight: 800; line-height: 1.1; margin-bottom: 14px; }
.site-hero h1 span { color: var(--accent2); }
.site-hero p { color: rgba(255,255,255,0.85); font-size: 18px; margin-bottom: 24px; }
.hero-search { display: flex; max-width: 580px; border-radius: var(--radius); overflow: hidden; box-shadow: 0 4px 24px rgba(0,0,0,0.25); margin-bottom: 20px; }
.hero-search input { flex: 1; background: #fff; border: none; color: var(--text); padding: 14px 18px; font-size: 15px; font-family: var(--font-body); outline: none; }
.hero-search button { background: var(--accent2); border: none; padding: 14px 22px; font-size: 14px; font-weight: 700; font-family: var(--font-head); cursor: pointer; color: #fff; white-space: nowrap; transition: background 0.2s; }
.hero-search button:hover { background: #d97706; }
.hero-quick { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hero-quick span { color: rgba(255,255,255,0.6); font-size: 13px; }
.hero-quick a { background: rgba(255,255,255,0.15); color: #fff; padding: 5px 12px; border-radius: 20px; font-size: 13px; font-weight: 500; border: 1px solid rgba(255,255,255,0.2); transition: background 0.2s; }
.hero-quick a:hover { background: rgba(255,255,255,0.25); }

/* BRAND GRID */
.brand-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.brand-card { background: var(--bg2); border: 2px solid var(--border); border-radius: var(--radius); padding: 20px; text-align: center; display: flex; flex-direction: column; gap: 6px; transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s; }
.brand-card:hover { border-color: var(--accent); box-shadow: 0 4px 16px rgba(37,99,235,0.1); transform: translateY(-2px); }
.brand-icon { font-size: 32px; }
.brand-name { font-family: var(--font-head); font-size: 18px; font-weight: 700; color: var(--text); }
.brand-desc { font-size: 12px; color: var(--text-muted); }

/* FEATURED */
.featured-card { display: grid; grid-template-columns: 1fr 1fr; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); box-shadow: 0 2px 12px rgba(0,0,0,0.06); transition: box-shadow 0.2s; }
.featured-card:hover { box-shadow: 0 8px 30px rgba(0,0,0,0.1); }
.featured-img { background-size: cover; background-position: center; min-height: 340px; }
.featured-content { padding: 36px; background: var(--bg2); display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.featured-content h2 { font-family: var(--font-head); font-size: clamp(18px, 2.5vw, 26px); font-weight: 700; line-height: 1.2; }
.featured-content p { color: var(--text-muted); font-size: 15px; }
.read-more { color: var(--accent); font-weight: 600; font-size: 14px; }
.read-more-sm { color: var(--accent); font-weight: 600; font-size: 13px; margin-top: auto; display: block; }

/* CAT BADGE */
.cat-badge { background: var(--accent-light); color: var(--accent); font-size: 11px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; padding: 3px 10px; border-radius: 4px; 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.08); transform: translateY(-2px); }
.article-img { height: 180px; background-size: cover; background-position: center; }
.article-content { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.article-content h3 { font-family: var(--font-head); font-size: 16px; 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: 22px; font-weight: 700; margin-bottom: 20px; }

/* CATEGORY GRID */
.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.category-card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; display: flex; gap: 14px; align-items: flex-start; transition: border-color 0.2s, box-shadow 0.2s; }
.category-card:hover { border-color: var(--accent); box-shadow: 0 4px 16px rgba(37,99,235,0.08); }
.cat-emoji { font-size: 24px; flex-shrink: 0; }
.cat-label { font-family: var(--font-head); font-size: 15px; font-weight: 700; margin-bottom: 3px; }
.cat-desc { font-size: 12px; color: var(--text-muted); line-height: 1.5; }

/* ARTICLE DETAIL */
.article-layout { display: grid; grid-template-columns: 1fr 300px; gap: 40px; margin-top: 30px; }
.article-hero { height: 380px; background-size: cover; background-position: center; border-radius: var(--radius); margin-bottom: 24px; }
.article-breadcrumb { font-size: 13px; color: var(--text-muted); margin-bottom: 12px; }
.article-breadcrumb a { color: var(--accent); }
.article-body h1 { font-family: var(--font-head); font-size: clamp(22px, 4vw, 36px); font-weight: 800; line-height: 1.2; margin: 10px 0; }
.article-meta { display: flex; gap: 20px; margin-bottom: 16px; flex-wrap: wrap; }
.article-summary { background: var(--accent-light); border-left: 4px solid var(--accent); padding: 14px 16px; border-radius: 0 var(--radius) var(--radius) 0; font-size: 15px; color: var(--text); margin-bottom: 20px; }
.article-content { font-size: 16px; line-height: 1.85; }
.article-content h2 { font-family: var(--font-head); font-size: 20px; font-weight: 700; margin: 28px 0 10px; color: var(--text); padding-left: 12px; border-left: 3px solid var(--accent); }
.article-content p { margin-bottom: 16px; 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: 10px; 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: 7px 14px; 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: 18px; margin-bottom: 20px; }
.widget-title { font-family: var(--font-head); font-size: 15px; font-weight: 700; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid var(--accent); color: var(--text); }
.sidebar-article { display: flex; gap: 10px; margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.sidebar-article:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.sidebar-img { width: 60px; height: 60px; 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: 3px; }
.sidebar-cat { display: block; padding: 7px 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: 30px 0 24px; padding-bottom: 18px; border-bottom: 2px solid var(--border); }
.page-header h1 { font-family: var(--font-head); font-size: clamp(24px, 4vw, 40px); font-weight: 800; }
.page-header h1 span { color: var(--accent); }
.page-header p { color: var(--text-muted); margin-top: 6px; }

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

/* CONTACT */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin: 24px 0; }
.contact-card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; text-align: center; }
.contact-icon { font-size: 32px; margin-bottom: 10px; }
.contact-card h3 { font-family: var(--font-head); font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.contact-card p { font-size: 13px; margin-bottom: 8px; color: var(--text-muted); }
.contact-link { color: var(--accent) !important; font-weight: 600; font-size: 13px; 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 20px; border-radius: var(--radius); font-weight: 600; font-size: 14px; display: inline-block; transition: background 0.2s; }
.btn-action:hover { background: #1d4ed8; }

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

/* FOOTER */
.site-footer { background: #111827; color: rgba(255,255,255,0.65); padding: 48px 0 24px; margin-top: 60px; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; margin-bottom: 30px; }
.footer-logo { font-family: var(--font-head); font-size: 24px; font-weight: 800; color: #fff; margin-bottom: 8px; }
.footer-logo span { color: var(--accent2); }
.footer-brand p { font-size: 14px; line-height: 1.6; }
.footer-cats h4, .footer-brands h4 { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(255,255,255,0.35); margin-bottom: 12px; }
.footer-cats, .footer-brands { display: flex; flex-direction: column; gap: 8px; }
.footer-cats a, .footer-brands a { font-size: 14px; transition: color 0.2s; }
.footer-cats a:hover, .footer-brands a:hover { color: var(--accent2); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); 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: #fff; }
.footer-copy { font-size: 12px; }

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