
:root {
    --primary: #1769aa;
    --primary-dark: #104d80;
    --text: #172b3a;
    --muted: #647789;
    --background: #ffffff;
    --light: #f2f7fc;
    --border: #e1eaf2;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background: var(--background);
    line-height: 1.7;
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    color: var(--primary-dark);
}

.container {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
}

.site-header {
    background: #ffffff;
    border-bottom: 1px solid var(--border);
}

.header-inner {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.logo {
    color: var(--primary-dark);
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 1px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.main-nav a {
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
}

.hero {
    background: linear-gradient(120deg, #eaf4ff, #f8fbff);
    padding: 95px 0;
    border-bottom: 1px solid var(--border);
}

.hero-content {
    max-width: 850px;
}

.eyebrow {
    display: inline-block;
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 14px;
}

.hero h1 {
    max-width: 780px;
    margin: 0 0 20px;
    font-size: clamp(36px, 5vw, 58px);
    line-height: 1.15;
    letter-spacing: -1.5px;
}

.hero p {
    max-width: 650px;
    color: var(--muted);
    font-size: 18px;
    margin: 0 0 30px;
}

.primary-button {
    display: inline-block;
    background: var(--primary);
    color: #ffffff;
    padding: 12px 23px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 700;
}

.primary-button:hover {
    color: #ffffff;
    background: var(--primary-dark);
}

.latest-section {
    padding-top: 75px;
    padding-bottom: 85px;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
    margin-bottom: 30px;
}

.section-heading h2,
.about-content h2 {
    font-size: 32px;
    line-height: 1.25;
    margin: 0;
}

.section-note {
    color: var(--muted);
    font-size: 13px;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.article-card {
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #ffffff;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(25, 68, 105, 0.09);
}

.article-card-content {
    padding: 25px;
}

.category {
    display: inline-block;
    color: var(--primary);
    background: var(--light);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.7px;
}

.article-card h3 {
    font-size: 21px;
    line-height: 1.35;
    margin: 15px 0 10px;
}

.article-card h3 a {
    color: var(--text);
}

.article-card p {
    color: var(--muted);
    font-size: 14px;
    margin: 0 0 20px;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    border-top: 1px solid var(--border);
    padding-top: 15px;
    font-size: 12px;
    color: var(--muted);
}

.article-meta a {
    font-weight: 700;
}

.empty-message {
    color: var(--muted);
    background: var(--light);
    padding: 25px;
    border-radius: 6px;
}

.about-section {
    background: var(--light);
    padding: 70px 0;
}

.about-content {
    max-width: 760px;
}

.about-content h2 {
    margin-bottom: 15px;
}

.about-content p {
    color: var(--muted);
}

.article-page {
    max-width: 850px;
    padding-top: 55px;
    padding-bottom: 80px;
    min-height: 500px;
}

.back-link {
    display: inline-block;
    margin-bottom: 30px;
    font-size: 14px;
    font-weight: 700;
}

.article-page h1 {
    font-size: clamp(32px, 5vw, 46px);
    line-height: 1.2;
    margin: 18px 0 12px;
}

.article-date {
    color: var(--muted);
    font-size: 13px;
}

.article-intro {
    color: var(--muted);
    font-size: 19px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 25px;
    margin-bottom: 30px;
}

.article-body {
    font-size: 17px;
    line-height: 1.9;
}

.article-body h2 {
    font-size: 27px;
    margin-top: 35px;
}

.article-body h3 {
    font-size: 21px;
    margin-top: 28px;
}

.article-body p {
    margin-bottom: 22px;
}

.article-body ul,
.article-body ol {
    padding-left: 25px;
    margin-bottom: 22px;
}

.not-found {
    padding: 70px 0;
}

.site-footer {
    background: #102d46;
    color: #dce9f4;
    padding: 25px 0;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    font-size: 13px;
}

.footer-inner a {
    color: #ffffff;
}

/* Language switch */

.language-switch {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: #ffffff;
}

.language-switch a {
    color: var(--muted);
    padding: 5px 9px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 800;
}

.language-switch a.active {
    background: var(--primary);
    color: #ffffff;
}

/* Responsive design */

@media (max-width: 800px) {
    .article-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero {
        padding: 70px 0;
    }
}

@media (max-width: 560px) {
    .header-inner {
        align-items: flex-start;
        flex-direction: column;
        padding-top: 18px;
        padding-bottom: 18px;
    }

    .main-nav {
        gap: 18px;
        flex-wrap: wrap;
    }

    .article-grid {
        grid-template-columns: 1fr;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

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

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

    .footer-inner {
        flex-direction: column;
    }

    .language-switch {
        margin-top: 4px;
    }
}
