:root {
    --primary: #2f6f57;
    --primary-dark: #244f3f;
    --accent: #d99b2b;
    --bg: #ffffff;
    --bg-alt: #f6f8f7;
    --text: #222;
    --max-width: 1200px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: system-ui, sans-serif;
    line-height: 1.6;
    color: var(--text);
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: min(90%, var(--max-width));
    margin: auto;
}

.skip-link {
    position: absolute;
    left: -9999px;
}

.skip-link:focus {
    left: 1rem;
    top: 1rem;
    background: white;
    padding: 1rem;
    z-index: 999;
}

header {
    background: var(--primary);
    color: white;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
}

.nav-links {
    display: flex;
    gap: 1rem;
    list-style: none;
    padding: 0;
}

.nav-links a {
    color: white;
    text-decoration: none;
}

.hero {
    padding: 5rem 1rem;
    text-align: center;
    background: var(--bg-alt);
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 4rem);
}

.btn {
    display: inline-block;
    padding: .75rem 1.25rem;
    text-decoration: none;
    border-radius: .25rem;
    background: var(--primary);
    color: white;
}

.section {
    padding: 4rem 0;
}

.grid {
    display: grid;
    gap: 2rem;
}

.platform-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.card {
    background: white;
    border: 1px solid #ddd;
    padding: 1.5rem;
    border-radius: .5rem;
}

.gallery {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

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

.news-card {
    background: white;
    border: 1px solid #d8d8e5;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s ease;
}

.news-card:hover {
    transform: translateY(-4px);
}

.news-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.news-card-content {
    padding: 1.5rem;
}

.news-card h3 {
    margin-top: 0;
    font-size: 1.5rem;
}

.news-card time {
    display: block;
    margin-top: 1rem;
    color: #666;
    font-size: 0.9rem;
}

footer {
    background: var(--primary-dark);
    color: white;
    padding: 2rem 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.social-container {
    width: fit-content;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: white;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.social-links a:hover,
.social-links a:focus {
    opacity: 0.8;
}

form {
    display: grid;
    gap: 1rem;
}

input,
textarea,
select {
    padding: .75rem;
    width: 100%;
}

label {
    font-weight: 600;
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}
