/* ========== RESET & GLOBAL ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f8fafc;
    color: #0f172a;
    line-height: 1.6;
    scroll-behavior: smooth;
}

/* Google Fonts */
@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');

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
}

/* ========== TYPOGRAPHY ========== */
h1 {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

h2 {
    font-size: 2rem;
    font-weight: 700;
    margin: 1.8rem 0 1rem;
    letter-spacing: -0.01em;
    border-left: 5px solid #3b82f6;
    padding-left: 20px;
}

h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 1.5rem 0 0.8rem;
    color: #1e293b;
}

p {
    margin-bottom: 1.2rem;
    font-size: 1.05rem;
    color: #334155;
}

/* ========== HEADER ========== */
.site-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    border-bottom: 1px solid #e2e8f0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-menu a {
    text-decoration: none;
    font-weight: 500;
    color: #334155;
    transition: color 0.2s ease;
}

.nav-menu a:hover {
    color: #3b82f6;
}

/* ========== HERO ========== */
.hero {
    background: linear-gradient(120deg, #eef2ff 0%, #ffffff 100%);
    border-radius: 32px;
    padding: 60px 48px;
    margin: 40px 0;
    text-align: center;
    border: 1px solid #e0e7ff;
}

.hero h1 {
    font-size: 3.2rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.3rem;
    color: #475569;
    max-width: 700px;
    margin: 0 auto;
}

/* ========== CARDS GRID ========== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 32px;
    margin: 60px 0;
}

.article-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    border: 1px solid #f1f5f9;
}

.article-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
    border-color: #cbd5e1;
}

.card-image {
    height: 220px;
    object-fit: cover;
    width: 100%;
}

.card-content {
    padding: 24px;
}

.card-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
}

.card-title a {
    text-decoration: none;
    color: #0f172a;
    transition: color 0.2s;
}

.card-title a:hover {
    color: #3b82f6;
}

.card-excerpt {
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ========== ARTICLE PAGE LAYOUT ========== */
.article-layout {
    display: flex;
    gap: 48px;
    margin: 50px 0;
}

.main-content {
    flex: 3;
}

.sidebar {
    flex: 1;
}

.sidebar-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 32px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid #f1f5f9;
}

.sidebar-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 10px;
}

.related-articles {
    list-style: none;
}

.related-articles li {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
}

.related-articles a {
    text-decoration: none;
    font-weight: 500;
    color: #1e293b;
    transition: color 0.2s;
}

.related-articles a:hover {
    color: #3b82f6;
}

/* ========== AD BLOCKS ========== */
.ad-block {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 16px;
    padding: 24px 16px;
    text-align: center;
    margin: 24px 0;
    color: #64748b;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.ad-block-inline {
    background: #f1f5f9;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
    font-size: 14px;
    color: #475569;
}

/* ========== ARTICLE IMAGE ========== */
.article-image {
    margin: 30px 0;
    border-radius: 20px;
    overflow: hidden;
}

/* ========== FOOTER ========== */
.site-footer {
    background: #0f172a;
    color: #cbd5e1;
    margin-top: 80px;
    padding: 50px 0 30px;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: white;
    margin-bottom: 16px;
    font-size: 1.1rem;
}

.footer-col p, .footer-col a {
    color: #94a3b8;
    text-decoration: none;
    line-height: 1.8;
}

.footer-col a:hover {
    color: white;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #1e293b;
    color: #64748b;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    .article-layout {
        flex-direction: column;
    }
    .hero {
        padding: 40px 24px;
    }
    h1 {
        font-size: 2rem;
    }
    .cards-grid {
        grid-template-columns: 1fr;
    }
    .header-inner {
        flex-direction: column;
        gap: 15px;
    }
    .nav-menu {
        gap: 24px;
    }
}