/* ==================== RESET & BASE ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #f8fafc;
    color: #1e293b;
    line-height: 1.65;
    font-size: 16px;
}

/* ==================== TYPOGRAPHY ==================== */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

h1 { font-size: 2.5rem; margin-bottom: 1rem; }
h2 { font-size: 1.8rem; margin: 1.5rem 0 1rem; }
h3 { font-size: 1.4rem; margin: 1.25rem 0 0.75rem; }

p {
    margin-bottom: 1.25rem;
    color: #334155;
}

/* ==================== LAYOUT ==================== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==================== HEADER ==================== */
.main-header {
    background: white;
    backdrop-filter: blur(10px);
    background: rgba(255,255,255,0.98);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #e2e8f0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    flex-wrap: wrap;
    gap: 16px;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #0f2b3d 0%, #1a6d8f 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-decoration: none;
    letter-spacing: -0.02em;
}

.logo span {
    background: linear-gradient(135deg, #e67e22, #f39c12);
    -webkit-background-clip: text;
    background-clip: text;
}

.main-nav {
    display: flex;
    gap: 28px;
}

.main-nav a {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 500;
    transition: color 0.2s ease;
}

.main-nav a:hover {
    color: #e67e22;
}

/* ==================== HERO SECTION ==================== */
.hero {
    background: linear-gradient(135deg, #e8f4f8 0%, #d4eaf0 100%);
    border-radius: 32px;
    padding: 60px 48px;
    margin: 40px 0 60px;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 16px;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    color: #2c3e50;
}

/* ==================== GRID CARDS ==================== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 32px;
    margin: 40px 0;
}

.article-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.05), 0 8px 10px -6px rgba(0,0,0,0.02);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    color: inherit;
    display: block;
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 40px -12px rgba(0,0,0,0.15);
}

.card-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.card-content {
    padding: 24px;
}

.card-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #0f2b3d;
}

.card-excerpt {
    color: #5b6e8c;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ==================== ARTICLE PAGE LAYOUT ==================== */
.article-layout {
    display: flex;
    gap: 48px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.main-content {
    flex: 2;
    min-width: 260px;
}

.sidebar {
    flex: 1;
    min-width: 260px;
}

/* article styles */
.article-header {
    margin-bottom: 32px;
}
.article-img {
    width: 100%;
    border-radius: 24px;
    margin: 24px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.article-text {
    font-size: 1.05rem;
}
.article-text ul, .article-text ol {
    margin: 1rem 0 1rem 1.8rem;
}
.article-text li {
    margin: 0.5rem 0;
}

/* sidebar */
.sidebar-widget {
    background: white;
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 32px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    border: 1px solid #eef2f6;
}
.sidebar-widget h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    border-left: 4px solid #e67e22;
    padding-left: 16px;
}
.sidebar-links {
    list-style: none;
}
.sidebar-links li {
    margin-bottom: 14px;
}
.sidebar-links a {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 500;
    transition: color 0.2s;
    display: block;
}
.sidebar-links a:hover {
    color: #e67e22;
}

/* ==================== ADS STYLES ==================== */
.ad-block {
    background: #f1f5f9;
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    margin: 24px 0;
    border: 1px dashed #cbd5e1;
    color: #64748b;
    font-size: 0.85rem;
}

/* ==================== FOOTER ==================== */
.main-footer {
    background: #0f2b3d;
    color: #cbd5e6;
    margin-top: 80px;
    padding: 48px 0 24px;
}
.footer-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}
.footer-logo {
    font-size: 1.6rem;
    font-weight: 700;
    color: white;
    margin-bottom: 16px;
}
.footer-nav a {
    color: #cbd5e6;
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    transition: color 0.2s;
}
.footer-nav a:hover {
    color: #e67e22;
}
.copyright {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid #2d4a5e;
    font-size: 0.85rem;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    .hero {
        padding: 40px 24px;
    }
    .hero h1 {
        font-size: 2rem;
    }
    h1 { font-size: 1.8rem; }
    .cards-grid {
        grid-template-columns: 1fr;
    }
    .header-inner {
        flex-direction: column;
        text-align: center;
    }
    .sidebar {
        order: 2;
    }
}