:root {
    --primary: #0f172a; /* Deep Navy */
    --accent: #f97316; /* Vibrant Orange */
    --bg-body: #f8fafc;
    --bg-card: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --font-serif: "Georgia", serif;
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--font-sans); background: var(--bg-body); color: var(--text-main); line-height: 1.6; }
a { text-decoration: none; color: inherit; transition: 0.2s; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* Layout */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.header { background: rgba(255,255,255,0.9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 1000; }
.header-inner { height: 70px; display: flex; align-items: center; justify-content: space-between; }
.logo { font-weight: 800; font-size: 1.5rem; letter-spacing: -0.5px; color: var(--primary); }
.logo span { color: var(--accent); }
.nav ul { display: flex; gap: 2rem; }
.nav a { font-weight: 500; color: var(--text-muted); font-size: 0.95rem; }
.nav a:hover { color: var(--primary); }

/* Hero */
.hero { text-align: center; padding: 4rem 0; background: white; border-bottom: 1px solid var(--border); margin-bottom: 3rem; }
.hero h1 { font-family: var(--font-serif); font-size: 3rem; margin-bottom: 1rem; color: var(--primary); }
.hero p { color: var(--text-muted); font-size: 1.2rem; max-width: 600px; margin: 0 auto; }

/* Grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 2rem; margin-bottom: 4rem; }
.card { background: white; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; transition: 0.3s; }
.card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.05); }
.card-img { height: 200px; object-fit: cover; width: 100%; }
.card-body { padding: 1.5rem; }
.cat-tag { font-size: 0.75rem; text-transform: uppercase; color: var(--accent); font-weight: 700; margin-bottom: 0.5rem; display: block; }
.card-title { font-family: var(--font-serif); font-size: 1.25rem; margin-bottom: 0.75rem; color: var(--primary); }
.card-meta { font-size: 0.85rem; color: var(--text-muted); margin-top: 1rem; display: flex; justify-content: space-between; }

/* Detail Page */
.detail-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 3rem; margin-top: 2rem; }
.article-header h1 { font-family: var(--font-serif); font-size: 2.5rem; margin-bottom: 1rem; line-height: 1.2; }
.article-meta { color: var(--text-muted); margin-bottom: 2rem; display: flex; align-items: center; gap: 1rem; }
.featured-img { width: 100%; height: 400px; object-fit: cover; border-radius: 8px; margin-bottom: 2rem; }
.content-body { font-family: var(--font-serif); font-size: 1.15rem; line-height: 1.8; color: #334155; }
.content-body h2 { font-family: var(--font-sans); margin-top: 2rem; margin-bottom: 1rem; font-size: 1.8rem; }
.content-body img { margin: 2rem 0; border-radius: 8px; }
.ad-placeholder { background: #f1f5f9; border: 2px dashed #cbd5e1; height: 100px; display: flex; align-items: center; justify-content: center; color: #94a3b8; margin-bottom: 2rem; font-size: 0.8rem; text-transform: uppercase; }

/* Sidebar */
.sidebar { position: sticky; top: 100px; height: fit-content; }
.widget { background: white; padding: 1.5rem; border: 1px solid var(--border); border-radius: 8px; margin-bottom: 1.5rem; }
.widget-title { font-weight: 700; text-transform: uppercase; font-size: 0.8rem; margin-bottom: 1rem; border-bottom: 2px solid var(--accent); padding-bottom: 0.5rem; display: inline-block; }

/* Footer */
footer { background: var(--primary); color: #94a3b8; padding: 3rem 0; margin-top: 4rem; text-align: center; }
footer a { color: white; margin: 0 10px; }

/* Responsive */
@media (max-width: 768px) {
    .nav { display: none; } /* Simplified for demo */
    .detail-layout { grid-template-columns: 1fr; }
    .sidebar { display: none; }
}