:root {
    --primary: #2c3e50;
    --accent: #3498db;
    --text: #333;
    --light: #f4f7f6;
}

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text);
    scroll-behavior: smooth;
}

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

.nav-right {
    display: flex; /* Kompiuteryje meniu turi būti MATOMAS */
    align-items: center;
    gap: 20px;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-right: 20px;
}

.nav-links a {
    text-decoration: none;
    color: var(--primary);
    font-weight: 600;
}

.lang-switcher button {
    background: none;
    border: 1px solid var(--primary);
    padding: 4px 8px;
    cursor: pointer;
    font-size: 0.8rem;
    border-radius: 4px;
    margin-left: 5px;
}

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

.home-link {
    text-decoration: none;
    color: var(--primary);
    font-weight: 600;
}

.hero {
    height: 60vh;
    background: url('../img/sesetukas-2.jpg') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #666;
}

.hero-logo {
    max-width: 240px;
    transition: 0.3s;
}

.btn {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 30px;
    background: var(--accent);
    color: white;
    text-decoration: none;
    border-radius: 5px;
}

.section {
    padding: 60px 10%;
}

.bg-light {
    background: var(--light);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.card {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border-top: 4px solid var(--accent);
}

.date {
    font-size: 0.85rem;
    color: #888;
    display: block;
    margin-bottom: 10px;
}

footer {
    text-align: center;
    padding: 30px;
    background: var(--primary);
    color: white;
}

.main-provider {
    margin-bottom: 30px;
    border-left: 6px solid var(--accent);
}

.provider-content {
    display: flex;
    align-items: center;
    gap: 30px;
    padding-top: 15px;
}

.provider-logo {
    max-width: 120px;
    filter: grayscale(1);
    transition: 0.3s;
}

.main-provider:hover .provider-logo {
    filter: grayscale(0);
}

.provider-small h5 {
    color: var(--accent);
    margin-bottom: 10px;
    text-transform: uppercase;
    font-size: 0.75rem;
}

.small-link {
    font-size: 0.8rem;
    color: var(--accent);
    text-decoration: none;
}

.file-link {
    color: var(--accent);
    text-decoration: none;
}

@media (max-width: 600px) {
    .provider-content {
        flex-direction: column;
        text-align: center;
    }
}

.news-text {
    white-space: pre-line;
    line-height: 1.6;
    margin-bottom: 15px;
    /* Jei norite riboti pradinį aukštį: */
    max-height: 200px;
    overflow-y: auto;
    padding-right: 5px;
}

/* Hamburgerio stilius */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 100;
}

    .hamburger span {
        width: 100%;
        height: 3px;
        background-color: #333;
        border-radius: 2px;
        transition: all 0.3s ease;
    }



.hamburger {
    display: none; /* Kompiuteryje hamburgeris turi būti PASLĖPTAS */
}

/* Mobilus vaizdas (iki 768px) */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    /* Modifikuojame nav-right, kad jis taptų išskleidžiamu meniu */
    .nav-right {
        display: none; /* Pagal nutylėjimą paslepiame turinį */
        position: absolute;
        top: 100%; /* Atsidarys iškart po navbar */
        left: 0;
        width: 100%;
        background: #fff;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }

        /* Kai pridėsime 'active' klasę per JS */
        .nav-right.active {
            display: flex;
        }

    .nav-links {
        flex-direction: column;
        align-items: center;
        margin-bottom: 15px;
    }

        .nav-links li {
            margin: 10px 0;
        }

    .lang-switcher {
        display: flex;
        justify-content: center; /* Centruoja mygtukus ekrano viduryje */
        margin-top: 20px; /* Sukuria tarpą tarp nuorodų ir kalbų */
        gap: 15px; /* Sukuria tarpą tarp LT ir EN mygtukų */
    }

    /* Hamburgerio animacija į X */
    .hamburger.open span:nth-child(1) {
        transform: translateY(7.5px) rotate(45deg);
    }

    .hamburger.open span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.open span:nth-child(3) {
        transform: translateY(-7.5px) rotate(-45deg);
    }
}