* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #333;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Top Bar */
.top-bar {
    background-color: #1a1a2e;
    color: #fff;
    padding: 16px 40px;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.top-bar a {
    color: #fff;
}

.top-bar-left {
    display: flex;
    align-items: center;
}

.back-arrow {
    cursor: pointer;
    display: flex;
    align-items: center;
    margin-right: 12px;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.back-arrow:hover {
    opacity: 1;
}

/* Top bar right group */
.top-bar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.social-links {
    display: flex;
    align-items: center;
    gap: 12px;
}

.social-links a {
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    transition: color 0.2s;
}

.social-links a:hover {
    color: #fff;
}

/* Burger button - hidden on desktop */
.burger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    flex-direction: column;
    gap: 5px;
}

.burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
}

/* Navigation Bar */
.nav-bar {
    background-color: #16213e;
    padding: 0 40px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-bar ul {
    list-style: none;
    display: flex;
    gap: 0;
}

.nav-bar li a {
    display: block;
    color: #e0e0e0;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 500;
    transition: background-color 0.2s, color 0.2s;
}

.nav-bar li a:hover {
    background-color: #0f3460;
    color: #fff;
}

/* Hero Section on Index */
.hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #fff;
    padding: 80px 40px;
    text-align: center;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 16px;
}

.hero p {
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.85;
}

/* Sections on Main Page */
.section-block {
    padding: 80px 40px;
    max-width: 1100px;
    margin: 0 auto;
}

.section-block:nth-child(even) {
    background-color: #f8f9fa;
}

.section-block h2 {
    font-size: 32px;
    margin-bottom: 12px;
    color: #1a1a2e;
}

.section-block p {
    font-size: 16px;
    color: #555;
    margin-bottom: 24px;
    max-width: 800px;
}

.section-block .section-link {
    display: inline-block;
    background-color: #0f3460;
    color: #fff;
    padding: 10px 28px;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.2s;
}

.section-block .section-link:hover {
    background-color: #1a1a2e;
}

/* Section Page */
.section-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #0f3460 100%);
    color: #fff;
    padding: 60px 40px;
}

.section-header h1 {
    font-size: 40px;
    margin-bottom: 12px;
}

.section-header p {
    font-size: 17px;
    opacity: 0.85;
    max-width: 700px;
}

/* Articles Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    padding: 60px 40px;
    max-width: 1100px;
    margin: 0 auto;
}

.article-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
}

.article-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.article-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.article-card-body {
    padding: 20px;
}

.article-card-body h3 {
    font-size: 20px;
    margin-bottom: 8px;
    color: #1a1a2e;
}

.article-card-body p {
    font-size: 14px;
    color: #666;
}

/* Article Page */
.article-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #0f3460 100%);
    color: #fff;
    padding: 60px 40px;
}

.article-header .breadcrumb,
.section-header .breadcrumb {
    font-size: 14px;
    margin-bottom: 16px;
    opacity: 0.7;
}

.article-header .breadcrumb a,
.section-header .breadcrumb a {
    color: #fff;
    text-decoration: underline;
}

.article-header h1 {
    font-size: 40px;
}

.article-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 40px;
}

.article-content .article-hero-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 32px;
}

.article-content p {
    font-size: 17px;
    color: #444;
    margin-bottom: 20px;
    line-height: 1.8;
}

.article-content .article-inline-image {
    width: 100%;
    border-radius: 8px;
    margin: 24px 0;
}

/* Embedded content */
.article-embed {
    margin: 32px 0;
}

.article-embed iframe {
    max-width: 100%;
    border-radius: 8px;
}

/* Footer */
.footer {
    background-color: #1a1a2e;
    color: #aaa;
    text-align: center;
    padding: 24px 40px;
    font-size: 14px;
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* ===== Mobile ===== */
@media (max-width: 768px) {
    /* Show burger */
    .burger {
        display: flex;
    }

    /* Top bar */
    .top-bar {
        padding: 14px 20px;
        font-size: 20px;
        position: sticky;
        top: 0;
        z-index: 101;
    }

    .social-links {
        gap: 10px;
    }

    .social-links a svg {
        width: 18px;
        height: 18px;
    }

    /* Nav collapses into vertical menu */
    .nav-bar {
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        top: 60px;
    }

    .nav-bar.open {
        max-height: 300px;
    }

    .nav-bar ul {
        flex-direction: column;
    }

    .nav-bar li a {
        padding: 14px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    /* Hero */
    .hero {
        padding: 48px 20px;
    }

    .hero h1 {
        font-size: 28px;
    }

    .hero p {
        font-size: 15px;
    }

    /* Sections */
    .section-block {
        padding: 48px 20px;
    }

    .section-block h2 {
        font-size: 24px;
    }

    .section-block p {
        font-size: 15px;
    }

    /* Section header */
    .section-header {
        padding: 40px 20px;
    }

    .section-header h1 {
        font-size: 28px;
    }

    .section-header p {
        font-size: 15px;
    }

    /* Articles grid - single column */
    .articles-grid {
        grid-template-columns: 1fr;
        padding: 30px 20px;
        gap: 20px;
    }

    /* Article page */
    .article-header {
        padding: 32px 20px;
    }

    .article-header h1 {
        font-size: 24px;
    }

    .article-content {
        padding: 30px 20px;
    }

    .article-content .article-hero-image {
        height: 200px;
        margin-bottom: 24px;
    }

    .article-content p {
        font-size: 15px;
    }

    /* Footer */
    .footer {
        padding: 20px;
        font-size: 13px;
    }
}
