/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@import url('https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,300;14..32,400;14..32,500;14..32,600;14..32,700;14..32,800&display=swap');

body {
    font-family: 'Inter', sans-serif;
    background-color: #f8fafc;
    color: #1e293b;
    line-height: 1.6;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== TYPOGRAPHY ===== */
h1 { font-size: 3rem; font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; margin-bottom: 1rem; }
h2 { font-size: 2rem; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; margin: 1.5rem 0 1rem; }
h3 { font-size: 1.5rem; font-weight: 600; margin: 1.25rem 0 0.75rem; }
h4 { font-size: 1.25rem; font-weight: 600; margin: 1rem 0 0.5rem; }
p { margin-bottom: 1.25rem; color: #334155; }
a { text-decoration: none; color: #3b82f6; transition: color 0.2s ease; }
a:hover { color: #2563eb; }

/* ===== HEADER ===== */
.header {
    position: sticky;
    top: 0;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    z-index: 100;
    padding: 16px 0;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav {
    display: flex;
    gap: 32px;
}

.nav a {
    color: #1e293b;
    font-weight: 500;
}

.nav a:hover {
    color: #3b82f6;
}

/* ===== HERO ===== */
.hero {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: white;
    padding: 80px 0;
    border-radius: 32px;
    margin: 32px 0 48px;
    text-align: center;
}

.hero h1 {
    color: white;
    margin-bottom: 20px;
}

.hero p {
    color: #cbd5e1;
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto;
}

/* ===== GRID ARTICLES ===== */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 32px;
    margin: 48px 0;
}

.article-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.article-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.article-card-content {
    padding: 24px;
}

.article-card h3 {
    margin: 0 0 12px;
    font-size: 1.4rem;
}

.article-card p {
    color: #475569;
    margin-bottom: 20px;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #3b82f6;
}

/* ===== ARTICLE PAGE (2 columns) ===== */
.article-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 48px;
    margin: 48px 0;
}

.article-main {
    background: white;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.article-main img {
    width: 100%;
    border-radius: 16px;
    margin: 24px 0;
}

.article-meta {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e2e8f0;
}

.sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    background: white;
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 32px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.sidebar-widget h4 {
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #3b82f6;
    display: inline-block;
}

.related-list {
    list-style: none;
}

.related-list li {
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
}

.related-list a {
    font-weight: 500;
    color: #1e293b;
}

.related-list a:hover {
    color: #3b82f6;
}

/* ===== AD BLOCKS ===== */
.ad-block {
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    margin: 24px 0;
    border: 1px dashed #94a3b8;
}

.ad-block.small {
    padding: 12px;
}

.ad-text {
    color: #64748b;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.ad-placeholder {
    background: white;
    border-radius: 12px;
    padding: 20px;
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: #3b82f6;
    font-weight: 500;
}

/* ===== FOOTER ===== */
.footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 48px 0 24px;
    margin-top: 64px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 32px;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 16px;
}

.footer-links h4 {
    color: white;
    margin-top: 0;
    margin-bottom: 16px;
}

.footer-links a {
    color: #94a3b8;
    display: block;
    margin-bottom: 10px;
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid #1e293b;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .container { padding: 0 16px; }
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    .article-layout { grid-template-columns: 1fr; }
    .sidebar { position: static; margin-top: 24px; }
    .articles-grid { grid-template-columns: 1fr; }
    .header .container { flex-direction: column; gap: 16px; }
    .nav { gap: 20px; flex-wrap: wrap; justify-content: center; }
    .hero { padding: 48px 0; margin: 16px 0 32px; }
    .article-main { padding: 24px; }
    .footer-content { grid-template-columns: 1fr; gap: 32px; text-align: center; }
}

/* ===== UTILS ===== */
ul, ol {
    margin: 0 0 1.25rem 1.5rem;
    color: #334155;
}

li {
    margin-bottom: 0.5rem;
}

blockquote {
    border-left: 4px solid #3b82f6;
    padding-left: 20px;
    margin: 24px 0;
    font-style: italic;
    color: #475569;
}

hr {
    margin: 32px 0;
    border: none;
    height: 1px;
    background: linear-gradient(to right, transparent, #cbd5e1, transparent);
}