/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f5f7fb;
    color: #1a1a2e;
    line-height: 1.7;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.5em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
}

ul, ol {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

p {
    margin-bottom: 1.25rem;
}

/* ===== HEADER ===== */
.site-header {
    background: #ffffff;
    box-shadow: 0 2px 20px rgba(0,0,0,0.04);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(8px);
    background: rgba(255,255,255,0.92);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #1a1a2e;
}

.logo-icon {
    font-size: 1.8rem;
}

.logo span {
    color: #4f8a9b;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 28px;
    margin: 0;
    padding: 0;
}

.main-nav a {
    font-weight: 500;
    font-size: 1rem;
    color: #1a1a2e;
    padding: 4px 0;
    border-bottom: 2px solid transparent;
    transition: 0.2s;
}

.main-nav a:hover {
    border-bottom-color: #4f8a9b;
    color: #4f8a9b;
}

.header-tagline {
    font-size: 0.9rem;
    color: #6b7280;
    background: #f3f4f6;
    padding: 4px 16px;
    border-radius: 30px;
}

/* ===== HERO ===== */
.hero {
    padding: 60px 0 40px;
    background: linear-gradient(145deg, #ffffff 0%, #f5f7fb 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.hero-content h1 {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.2;
    color: #0f172a;
    margin-bottom: 20px;
}

.hero-sub {
    font-size: 1.2rem;
    color: #475569;
    max-width: 90%;
    margin-bottom: 30px;
}

.btn-primary {
    display: inline-block;
    background: #4f8a9b;
    color: #fff;
    padding: 14px 36px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 1rem;
    transition: 0.3s ease;
    box-shadow: 0 8px 24px rgba(79, 138, 155, 0.25);
}

.btn-primary:hover {
    background: #3d6f7e;
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(79, 138, 155, 0.35);
}

.hero-image img {
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.08);
    width: 100%;
    height: 320px;
    object-fit: cover;
}

/* ===== AD BLOCKS ===== */
.ad-block {
    margin: 32px 0;
}

.ad-placeholder {
    background: #ffffff;
    border: 2px dashed #d1d5db;
    border-radius: 20px;
    padding: 28px 20px;
    text-align: center;
    color: #6b7280;
    font-weight: 500;
    transition: 0.2s;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.ad-placeholder span {
    font-weight: 700;
    color: #374151;
}

.ad-header .ad-placeholder {
    background: #f0f2f5;
    border-color: #d1d5db;
    border-radius: 24px;
    padding: 20px;
}

.ad-in-article-top .ad-placeholder,
.ad-in-article-after-image .ad-placeholder,
.ad-in-article-middle .ad-placeholder {
    background: #f8fafc;
    border-color: #e2e8f0;
    padding: 20px 16px;
    border-radius: 16px;
}

.ad-sidebar .ad-placeholder {
    background: #f8fafc;
    border-color: #e2e8f0;
    padding: 24px 16px;
    border-radius: 16px;
}

/* ===== ARTICLES SECTION ===== */
.articles-section {
    padding: 60px 0 80px;
}

.section-title {
    font-size: 2.2rem;
    margin-bottom: 12px;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
}

.section-title span {
    font-size: 1rem;
    font-weight: 400;
    color: #6b7280;
    font-family: 'Inter', sans-serif;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 32px;
    margin-top: 32px;
}

.article-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 6px 30px rgba(0,0,0,0.04);
    transition: transform 0.25s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0,0,0,0.02);
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 48px rgba(0,0,0,0.08);
}

.article-card a {
    display: block;
    height: 100%;
}

.card-image {
    height: 200px;
    overflow: hidden;
    background: #e5e7eb;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.article-card:hover .card-image img {
    transform: scale(1.03);
}

.card-content {
    padding: 24px 24px 28px;
}

.card-content h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    font-family: 'Montserrat', sans-serif;
}

.card-content p {
    color: #4b5563;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

.read-more {
    display: inline-block;
    font-weight: 600;
    color: #4f8a9b;
    font-size: 0.95rem;
    transition: 0.2s;
}

.article-card:hover .read-more {
    transform: translateX(6px);
}

/* ===== ARTICLE PAGE ===== */
.article-page {
    padding: 40px 0 60px;
}

.article-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 48px;
    align-items: start;
}

.main-content {
    background: #ffffff;
    padding: 40px 44px;
    border-radius: 24px;
    box-shadow: 0 6px 30px rgba(0,0,0,0.02);
}

.main-content h1 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: #0f172a;
}

.main-content h2 {
    font-size: 1.6rem;
    margin-top: 32px;
    margin-bottom: 16px;
    color: #1e293b;
}

.main-content h3 {
    font-size: 1.3rem;
    margin-top: 24px;
    margin-bottom: 12px;
}

.main-content img {
    margin: 28px 0;
    border-radius: 20px;
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    box-shadow: 0 8px 28px rgba(0,0,0,0.04);
}

.main-content ul,
.main-content ol {
    margin-bottom: 1.75rem;
}

.main-content li {
    margin-bottom: 8px;
}

/* ===== SIDEBAR ===== */
.sidebar {
    background: #ffffff;
    padding: 32px 28px;
    border-radius: 24px;
    box-shadow: 0 6px 30px rgba(0,0,0,0.02);
    position: sticky;
    top: 100px;
}

.sidebar h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    font-family: 'Montserrat', sans-serif;
    padding-bottom: 12px;
    border-bottom: 2px solid #f1f5f9;
}

.sidebar-articles {
    list-style: none;
    padding: 0;
    margin: 0 0 28px 0;
}

.sidebar-articles li {
    margin-bottom: 12px;
}

.sidebar-articles a {
    display: block;
    padding: 10px 14px;
    background: #f8fafc;
    border-radius: 12px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: 0.2s ease;
    border-left: 3px solid transparent;
}

.sidebar-articles a:hover {
    background: #f1f5f9;
    border-left-color: #4f8a9b;
    padding-left: 18px;
}

/* ===== FOOTER ===== */
.site-footer {
    background: #0f172a;
    color: #cbd5e1;
    padding: 48px 0 0;
    margin-top: 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.footer-brand .logo {
    color: #ffffff;
    margin-bottom: 12px;
}
.footer-brand .logo span {
    color: #4f8a9b;
}
.footer-brand p {
    font-size: 0.95rem;
    opacity: 0.8;
    max-width: 90%;
}

.footer-nav h4,
.footer-about h4 {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 16px;
    font-family: 'Montserrat', sans-serif;
}

.footer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav ul li {
    margin-bottom: 10px;
}

.footer-nav ul a {
    color: #cbd5e1;
    transition: 0.2s;
    font-size: 0.95rem;
}

.footer-nav ul a:hover {
    color: #ffffff;
}

.footer-about p {
    font-size: 0.95rem;
    opacity: 0.8;
}

.footer-bottom {
    padding: 20px 0;
    background: rgba(0,0,0,0.2);
    margin-top: 8px;
}

.footer-bottom p {
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.6;
    margin: 0;
}

/* ===== ADAPTIVE ===== */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-content h1 {
        font-size: 2.2rem;
    }
    .hero-sub {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
    .hero-image img {
        height: 240px;
    }

    .article-layout {
        grid-template-columns: 1fr;
    }
    .sidebar {
        position: static;
        margin-top: 20px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .header-inner {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }
    .main-nav ul {
        gap: 18px;
        flex-wrap: wrap;
        justify-content: center;
    }
    .logo {
        font-size: 1.4rem;
    }

    .hero {
        padding: 40px 0 24px;
    }
    .hero-content h1 {
        font-size: 1.8rem;
    }

    .articles-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .section-title {
        font-size: 1.6rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    .section-title span {
        font-size: 0.9rem;
    }

    .main-content {
        padding: 24px 20px;
    }
    .main-content h1 {
        font-size: 1.7rem;
    }
    .main-content h2 {
        font-size: 1.3rem;
    }
    .main-content img {
        max-height: 280px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .footer-brand p {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .container {
        padding: 0 16px;
    }
    .main-content {
        padding: 20px 16px;
    }
    .hero-content h1 {
        font-size: 1.6rem;
    }
    .btn-primary {
        padding: 12px 28px;
        font-size: 0.95rem;
    }
    .header-tagline {
        display: none;
    }
}