/* css/style.css */

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background: #f4f4f4;
    color: #333;
}

.container {
    width: 80%;
    margin: auto;
    overflow: hidden;
    padding: 20px 0;
}

header {
    background: #333;
    color: #fff;
    padding-top: 20px;
    min-height: 70px;
    border-bottom: #77aaff 3px solid;
}

header a {
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 16px;
}

header ul {
    padding: 0;
    list-style: none;
}

header li {
    display: inline;
    padding: 0 20px 0 20px;
}

header #branding {
    float: left;
}

header #branding h1 {
    margin: 0;
}

header nav {
    float: right;
    margin-top: 10px;
}

header .highlight, header .current a {
    color: #77aaff;
    font-weight: bold;
}

header a:hover {
    color: #77aaff;
    font-weight: bold;
}

.hero {
    min-height: 400px;
    background: #555 url('../images/hero-bg.jpg') no-repeat center center/cover; /* Приклад фонового зображення */
    text-align: center;
    color: #00008B;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.hero h1 {
    font-size: 3em;
    margin-bottom: 10px;
}

.hero p {
    font-size: 1.2em;
}

.main-content {
    padding: 20px;
    background: #fff;
    margin-top: 20px;
}

.section-title {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

.course-item, .teacher-item, .gallery-item {
    background: #eee;
    padding: 15px;
    margin-bottom: 10px;
    border-left: #77aaff 5px solid;
}

/* Додаткові стилі для галереї */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); /* Збільшуємо мінімальну ширину елемента */
    gap: 30px; /* Збільшуємо відступи між елементами */
}
.gallery-item {
    border: 1px solid #ddd;
    padding: 15px; /* Збільшуємо внутрішні відступи */
    text-align: center;
    display: flex; /* Використовуємо Flexbox для центрування контенту */
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.gallery-item img {
    max-width: 100%;
    height: auto; /* Використовуємо автоматичну висоту, щоб зберегти пропорції */
    max-height: 350px; /* Встановлюємо максимальну висоту для більшого розміру */
    object-fit: cover;
    border-radius: 5px;
    transition: transform 0.3s ease; /* Додаємо плавний перехід для ефекту наведення */
    cursor: pointer; /* Змінюємо курсор, щоб показати, що на зображення можна натискати */
}
.gallery-item img:hover {
    transform: scale(1.03); /* Збільшуємо зображення при наведенні для візуального ефекту */
}
.gallery-item p {
    margin-top: 15px; /* Збільшуємо відступ зверху */
    font-size: 1.1em; /* Збільшуємо розмір тексту для кращої читабельності */
    color: #444;
}


.contact-info p {
    margin-bottom: 10px;
}

form .form-group {
    margin-bottom: 15px;
}

form .form-group label {
    display: block;
    margin-bottom: 5px;
}

form .form-group input[type="text"],
form .form-group input[type="email"],
form .form-group textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

form .form-group textarea {
    resize: vertical;
    min-height: 100px;
}

form button[type="submit"] {
    display: block;
    background: #77aaff;
    color: #fff;
    padding: 10px 20px;
    border: 0;
    border-radius: 5px;
    cursor: pointer;
}

footer {
    padding: 20px;
    margin-top: 20px;
    color: #fff;
    background-color: #333;
    text-align: center;
}

.about-me-content {
    display: flex;
    flex-direction: column; /* По замовчуванню, для мобільних */
    align-items: center;
    gap: 20px; /* Відступ між фото та текстом */
}

.teacher-photo {
    width: 200px; /* Встановіть оптимальну ширину */
    height: auto; /* Зберігає пропорції */
    border-radius: 10px; /* Зробить кути фото трохи округлими */
    box-shadow: 0 4px 8px rgba(0,0,0,0.1); /* Додасть легку тінь */
}

/* Стилі для десктопної версії */
@media (min-width: 600px) {
    .about-me-content {
        flex-direction: row; /* На десктопах фото та текст будуть в один ряд */
        align-items: flex-start;
    }

    .teacher-photo {
        min-width: 250px; /* Забезпечить, щоб фото не стискалось */
        max-width: 300px;
    }
}

/* Стилі для лайтбокса (модального вікна) */
.lightbox {
    display: none; /* Тепер тільки прихований спочатку */
    position: fixed; /* Розташовується над усім вмістом */
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9); /* Темний, напівпрозорий фон */
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px); /* Ефект розмиття */
    justify-content: center;
    align-items: center;
    flex-direction: column;
}



.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    animation-name: zoom;
    animation-duration: 0.6s;
}

/* Анімація для відкриття */
@keyframes zoom {
    from {
        transform: scale(0.1);
    }
    to {
        transform: scale(1);
    }
}

/* Кнопка закриття */
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: #bbb;
    text-decoration: none;
}







/* Пагінація (перемикання сторінок) */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    margin-bottom: 30px;
    gap: 10px;
}

.pagination button {
    padding: 10px 20px;
    cursor: pointer;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.pagination button:hover {
    background-color: #e2e6ea;
}

.pagination button.active {
    background-color: #007bff; /* Колір активної кнопки (можна змінити під ваш дизайн) */
    color: white;
    border-color: #007bff;
}
