/* Загальні стилі */
body {
    font-family: 'Segoe UI', sans-serif;
    background-color: #f5f5f5;
    color: #333;
    margin: 0;
    padding: 0;
    flex: 1;
    height: 100%;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to bottom, #005fa3 0%, #5daeff 100%);
    padding: 15px 30px;
    color: #fff;
    flex-wrap: wrap;
}

.site-title {
    font-size: 28px;
    font-weight: bold;
    color: white;
    text-align: center;
    flex: 1;
    padding: 0 20px;
    padding-right: 90px;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: bold;
}

.logo img {
    width: 70px;
    margin-right: 10px;
}

nav ul {
    display: flex;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu_bar {
    font-size: x-large;
    font-weight: 900;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 5px;
}

nav ul li a:hover {
    background-color: #005fa3;
}

.menu-icon {
    font-size: 28px;
    color: white;
    cursor: pointer;
    display: block;
    position: absolute;
    top: 20px;
    right: 30px;
}

nav {
    position: fixed;
    top: 0;
    left: -110%;
    height: 100%;
    width: 250px;
    background-color: #0077cc;
    z-index: 999;
    padding: 60px 20px 20px;
    transition: left 0.3s ease-in-out;
    box-shadow: 2px 0 5px rgba(0,0,0,0.3);
}

nav.active {
    left: 0;
}

nav ul {
    flex-direction: column;
    display: flex;
    gap: 15px;
}

nav ul li {
    margin: 10px 0;
}


.menu-icon img {
    width: 60px;
    cursor: pointer;
}

.close-menu {
    display: none;
    background-color: #ffcc00;
    color: #222;
    border: none;
    padding: 6px 12px;
    font-size: 14px;
    cursor: pointer;
    border-radius: 5px;
}

.section {
    margin: 30px;
}

.section h2 {
    color: #0077cc;
    text-align: center;
    margin-bottom: 20px;
}

.container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.column {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    flex: 1;
}

ol, ul {
    padding-left: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

td {
    padding: 8px;
    border: 1px solid #ccc;
}

footer {
    
    background: linear-gradient(to bottom, #444 0%, #222 100%);
    color: #fff;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 30px;
    gap: 30px;
}

.footer-section {
    flex: 1;
    min-width: 200px;
}

.footer-section h3 {
    color: #3391ff;
    margin-bottom: 10px;
}

.footer-section a {
    color: #ffcc00;
    text-decoration: none;
}

.footer-section a:hover {
    text-decoration: underline;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 0 30px;
}

.gallery a {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    text-decoration: none;
}

.gallery a:hover {
    transform: scale(1.03);
}

.gallery img {
    width: 100%;
    height: auto;
    display: block;
}

.gallery span {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px;
    background: rgba(0, 119, 204, 0.8);
    color: #fff;
    text-align: center;
    font-weight: bold;
    font-size: 16px;
}

/* Обгортка всіх секцій переваг */
.wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    padding: 0 30px;
}

/* Кожна секція */
.wrapper .section {
    flex: 1 1 calc(50% - 30px);
    box-sizing: border-box;
    margin: 0;
}

/* Модальне вікно */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
}

.slider {
    position: relative;
    max-width: 80%;
    margin: auto;
}

.modal-slide {
    width: 100%;
    max-height: 80vh;
    border-radius: 10px;
    box-shadow: 0 0 20px #fff;
}

.close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 32px;
    transition: 0.3s;
    user-select: none;
    border-radius: 0 3px 3px 0;
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover, .close:hover {
    color: #ffcc00;
}

#calendar-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 10px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.fc {
    font-size: 16px;
}

#news-slider {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    margin: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.slider-news {
    position: relative;
    overflow: hidden;
    height: 80px;
}

.slide {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    font-size: 20px;
    font-weight: bold;
    color: #005fa3;
}

.slide.active {
    opacity: 1;
}

.slider-controls {
    margin-top: 10px;
}

.slider-controls button {
    background-color: #0077cc;
    color: #fff;
    border: none;
    padding: 10px 15px;
    margin: 0 5px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 18px;
}

.slider-controls button:hover {
    background-color: #005fa3;
}

/* --- Карта --- */
#map iframe {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}



@media (max-width: 768px) {

    .site-title {
        font-size: 22px;
        text-align: center;
        margin-top: 10px;
        padding-right: 0px;
    }

    .menu-icon {
        display: block;
    }

    nav {
        width: 100%;
    }
    
    h3{
        margin-left: 20px;
    }

    nav ul {
        display: none;
        flex-direction: column;
        background-color: #0077cc;
        position: absolute;
        top: 0px;
        left: 20px;
        width: 100%;
        padding: 20px 0;
        margin: 0;
    }

    nav.active ul {
        display: flex;
    }

    .close-menu {
        display: block;
        background-color: #ffcc00;
        color: #222;
        border: none;
        padding: 6px 12px;
        font-size: 14px;
        cursor: pointer;
        border-radius: 5px;
        margin: 5px;
        margin-left: 20px;
        align-self: flex-end;
    }

    .menu-bar {
        font-size: x-large;
        font-weight: 900;
    }

    .menu-bar a {
        padding: 8px 12px;
        border-radius: 5px;
        font-weight: 500;
    }

    header {
        flex-direction: column;
        align-items: flex-start;
    }

    .wrapper .section {
        flex: 1 1 100%;
    }

    .fc {
        font-size: 14px;
    }

    .fc-toolbar {
        flex-direction: column;
        gap: 10px;
    }

    .fc-center {
        margin-bottom: 10px;
    }

    /* Адаптивність для галереї */
    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        padding: 0 15px;
    }

    #map iframe {
        height: 300px;
    }
}
