* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Bebas Neue', Arial, sans-serif;
}

body {
    background-color: #000;
    color: #fff;
    padding-top: 80px;
    overflow-x: hidden;
}

/* === Headeris === */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: #fff;
    height: 80px;
    font-family: 'Bebas Neue', sans-serif;
}

.galerija {
    text-decoration: none;
    color: #000;
    text-transform: uppercase;
    font-size: 16px;
    letter-spacing: 1px;
    font-family: 'Bebas Neue', sans-serif;
    padding: 10px 15px;
}

.logo {
    text-decoration: none;
    color: #000;
    font-size: 24px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: 'Bebas Neue', sans-serif;
}

.renginiai {
    text-decoration: none;
    color: #fff;
    text-transform: uppercase;
    background: #000;
    padding: 10px 20px;
    letter-spacing: 1px;
    font-family: 'Bebas Neue', sans-serif;
    border-radius: 0;
}

/* === Pagrindinis turinys === */
main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

h1 {
    font-size: 64px;
    text-align: center;
    margin: 40px 0 20px;
    letter-spacing: 2px;
}

.subtitle {
    text-align: center;
    margin-bottom: 60px;
    color: #888;
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    line-height: 1.5;
    font-size: 16px;
}

.main-container {
    display: grid;
    grid-template-columns: 2fr 1fr; /* Desktop: 2 stulpeliai */
    gap: 40px;
}

/* === Kalendoriaus skiltis === */
.calendar-section {
    background-color: #111;
    padding: 20px;
    border: 2px solid #fff;
    overflow: hidden;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.calendar-header h2 {
    font-size: 1.8em;
    margin: 0 10px;
    text-align: center;
    flex-grow: 1;
}

.prev-month,
.next-month {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px 15px;
    border-radius: 0;
    transition: background-color 0.3s ease;
    font-size: 1.5em;
    color: #fff;
    flex-shrink: 0;
}

.prev-month:hover,
.next-month:hover {
    background-color: #333;
}

.weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    margin-bottom: 10px;
    color: #ccc;
    font-weight: bold;
    font-size: 0.8em;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

/* Pagrindinis kalendoriaus dienos stilius */
.calendar-day {
    aspect-ratio: 1 / 1; /* <<< Užtikrinam kvadratinę formą */
    border: 1px solid #333;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    position: relative;
    color: #fff;
    z-index: 2;
    overflow: hidden;
    border-radius: 0;
    padding: 2px; /* Minimalus padding */
}

.calendar-day.has-event {
    color: #fff;
    cursor: pointer;
    border: 2px solid #fff; /* Originalus 2px rėmelis desktopui */
}

.calendar-day.has-event-image {
    background-image: url(https://airwar.w5.lt/img/event1.jpg); /* Pakeiskite URL */
    background-size: cover;
    background-position: center;
    position: relative;
    z-index: 1;
    font-weight: bold;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
}
.calendar-day.has-event-image::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0,0,0,0.3);
    z-index: -1;
}

.calendar-day.empty {
    border: none;
    background-color: transparent;
    pointer-events: none;
    aspect-ratio: 1 / 1; /* Taip pat taikom tuštiems */
}

/* === Renginių skiltis === */
.events-section {
    padding: 20px;
}
.events-section h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.8em;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.event-card {
    margin-bottom: 20px;
    border: 1px solid #333;
    background: #111;
    border-radius: 0;
    overflow: hidden;
}

.event-header {
    padding: 15px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #222;
    color: #fff;
}

.event-header h3 {
    font-size: 16px;
    font-weight: normal;
    margin: 0;
}

.expand-icon {
    font-size: 20px;
    font-weight: bold;
    color: #fff;
}

.event-content {
    display: none;
    padding: 15px;
    border-top: 1px solid #333;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    line-height: 1.5;
    font-size: 1rem;
}

.event-content p {
    margin-bottom: 8px;
    color: #fff;
}

.event-content.active {
    display: block;
}

/* === Mobilus meniu (Originalūs stiliai) === */
.mobile-menu {
    display: none;
    position: relative;
    width: 30px;
    height: 24px;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu::before,
.mobile-menu::after,
.mobile-menu span {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: #000;
    transition: all 0.3s ease;
    left: 0;
    border-radius: 0;
}

.mobile-menu::before { top: 0; }
.mobile-menu span { top: 50%; transform: translateY(-50%); }
.mobile-menu::after { bottom: 0; }


/* === Media Queries (Mobiliesiems įrenginiams) === */

@media (max-width: 992px) { /* Planšetėms (horizontaliai) ir mažesniems */
    .main-container {
        grid-template-columns: 1fr; /* Vienas stulpelis */
        gap: 30px;
    }
    .events-section { padding-top: 0; }
}

@media (max-width: 768px) { /* Mažos planšetės ir telefonai */
    body { padding-top: 60px; }
    .header { height: 60px; padding: 10px 20px; }

    /* Mobilios navigacijos ATSTATYMAS */
    .header .galerija,
    .header .renginiai { display: none; }
    .mobile-menu { display: block; }
    /* Navigacijos pabaiga */

    .main-container {
        gap: 20px;
        padding: 0 10px;
    }
    h1 { font-size: 36px; margin: 25px 0 15px; }
    .subtitle { font-size: 14px; margin-bottom: 30px; }

    /* === Minimalūs KALENDORIAUS pataisymai mobiliesiems === */
    .calendar-section {
        padding: 10px;
        border-width: 1px;
    }
    .calendar-header h2 { font-size: 1.4em; }
    .calendar-header .prev-month,
    .calendar-header .next-month { padding: 5px 8px; font-size: 1.3em; }
    .weekdays div { font-size: 0.7em; font-weight: normal; }
    .calendar-grid { gap: 1px; }

    /* Kalendoriaus dienos mobiliesiems */
    .calendar-day {
        font-size: 11px; /* <<< Sumažintas šriftas */
        padding: 1px; /* <<< Sumažintas padding iki minimumo */
        /* aspect-ratio: 1 / 1; <<< Paveldima */
    }
    .calendar-day.has-event {
        border-width: 1px; /* <<< Plonesnis rėmelis */
    }
     .calendar-day.has-event-image {
        font-size: 10px; /* Dar mažesnis šriftas ant paveikslėlio */
     }
     /* === Kalendoriaus pataisymų pabaiga === */

     /* Renginių sąrašo pataisymai */
     .events-section { padding: 15px 5px; }
     .events-section h2 { font-size: 1.6em; }
     .event-header h3 { font-size: 0.9rem; }
     .event-content { font-size: 0.9rem; }

    /* Aktyvaus mobilaus meniu ATSTATYMAS (originalūs stiliai) */
     .header.active {
         position: fixed; top: 0; left: 0; width: 100%; height: auto;
         background: #fff; flex-direction: column; align-items: center;
         padding: 60px 20px 20px 20px; z-index: 1000;
     }
     .header.active .logo { margin-bottom: 20px; order: -1; }
     .header.active .mobile-menu { position: absolute; top: 19px; right: 20px; }
     .header.active .mobile-menu::before { transform: translateY(11px) rotate(45deg); }
     .header.active .mobile-menu span { opacity: 0; }
     .header.active .mobile-menu::after { transform: translateY(-11px) rotate(-45deg); }
     .header.active .nav-links { display: flex; flex-direction: column; width: 100%; align-items: center; }
     .header.active .galerija,
     .header.active .renginiai {
         display: block; width: 100%; text-align: center;
         padding: 15px 0; margin: 10px 0;
         color: #000;
         border-radius: 0;
     }
     .header.active .renginiai { background: #000; color: #fff; }
     /* Aktyvaus meniu pabaiga */
}


/* Papildomi pataisymai labai mažiems ekranams */
@media (max-width: 380px) {
    main { padding: 15px 5px; }
    h1 { font-size: 28px; }
    .subtitle { font-size: 13px; }
    .calendar-header h2 { font-size: 1.2em; }
    .weekdays div { font-size: 0.65em; }
    .calendar-day { font-size: 10px; } /* <<< Dar mažesnis šriftas */
    .calendar-day.has-event-image { font-size: 9px; }
    .event-header h3 { font-size: 0.85rem; }
    .event-content { font-size: 0.85rem; }
}