:root {
    --primary: #0077B6;
    --secondary: #90E0EF;
    --text-main: #2b2d42;
    --text-muted: #6c757d;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --font-heading: 'Georgia', serif;
    --font-body: 'Helvetica Neue', Arial, sans-serif;
    --border-radius: 8px;
    --transition: 0.3s ease;
}

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

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; line-height: 1.2; }
h2 { font-size: 2rem; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
a:hover { color: var(--primary); }

header {
    background: var(--white);
    padding: 1rem 5%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--primary);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

nav ul li a {
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lang-switcher {
    display: flex;
    gap: 0.5rem;
}

.lang-switcher a {
    padding: 0.2rem 0.5rem;
    border: 1px solid var(--secondary);
    border-radius: var(--border-radius);
    font-size: 0.8rem;
}

.lang-switcher a.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

main {
    padding: 3rem 5%;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 70vh;
}

.hero {
    text-align: center;
    margin-bottom: 4rem;
}
.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}
.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

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

.card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.category-badge {
    display: inline-block;
    background: var(--secondary);
    color: var(--primary);
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 1rem;
    align-self: flex-start;
}

.card-title {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.card-excerpt {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #eee;
    padding-top: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.article-header {
    text-align: center;
    margin-bottom: 3rem;
}

.article-hero-img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin-bottom: 3rem;
}

.article-body {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    padding: 4rem;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.article-body p {
    margin-bottom: 1.5rem;
    font-size: 1.15rem;
    color: #333;
}

.article-body h2 {
    margin-top: 2.5rem;
    font-size: 1.8rem;
}

.article-meta {
    margin-bottom: 2rem;
    font-style: italic;
    color: var(--text-muted);
    font-size: 1.1rem;
}

footer {
    background: var(--text-main);
    color: var(--white);
    text-align: center;
    padding: 3rem 5%;
    margin-top: 5rem;
}

footer p {
    color: #aaa;
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--secondary);
    margin: 0 1rem;
}
.footer-links a:hover {
    color: var(--white);
}

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 1rem;
    }
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    .hero h1 {
        font-size: 2.2rem;
    }
    .article-body {
        padding: 1.5rem;
    }
}