﻿@import url('https://fonts.googleapis.com/css2?family=Google+Sans:ital,opsz,wght@0,17..18,400..700;1,17..18,400..700&display=swap');

/* ===========================
   Стили для внутренних страниц
   =========================== */

/* ===========================
   Заголовна секція сторінок
   =========================== */

.page-hero {
    background: linear-gradient(135deg, #0066cc 0%, #003d82 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
    position: relative;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 61, 130, 0.7) 0%, rgba(0, 102, 204, 0.5) 100%);
    z-index: 1;
}

.page-hero-content {
    position: relative;
    z-index: 2;
}

.page-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.page-hero p {
    font-size: 1.3rem;
    opacity: 0.95;
}

/* ===========================
   Основні секції контенту
   =========================== */

.content-section {
    padding: 3rem 0;
    background-color: #f5f7fa;
}

.content-section h2 {
    color: #003d82;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.content-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 1.5rem;
    text-align: justify;
}

/* ===========================
   Місія та Бачення
   =========================== */

.mission-vision {
    padding: 3rem 0;
    background-color: white;
}

.mission-vision-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.mission-card,
.vision-card {
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mission-card {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-left: 5px solid #0066cc;
}

.vision-card {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    border-left: 5px solid #ff8c00;
}

.mission-card:hover,
.vision-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.mission-card h3,
.vision-card h3 {
    color: #003d82;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.mission-card p,
.vision-card p {
    color: #333;
    line-height: 1.6;
}

/* ===========================
   Команда
   =========================== */

.team-section {
    padding: 3rem 0;
    background-color: #f5f7fa;
}

.team-section h2 {
    color: #003d82;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.team-member {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
}

.member-image {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.team-member h4 {
    color: #003d82;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.team-member p {
    color: #666;
    font-size: 0.95rem;
}

/* ===========================
   Послуги
   =========================== */

.services-section {
    padding: 3rem 0;
    background-color: white;
}

.services-section h2 {
    color: #003d82;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-item {
    padding: 2rem;
    background: linear-gradient(135deg, #f0f4ff 0%, #e3f2fd 100%);
    border-radius: 8px;
    text-align: center;
    border-top: 4px solid #ff8c00;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 102, 204, 0.15);
}

.service-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.service-item h3 {
    color: #003d82;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-item p {
    color: #333;
    line-height: 1.6;
}

/* ===========================
   Переваги членства
   =========================== */

.benefits-section {
    padding: 3rem 0;
    background-color: #f5f7fa;
}

.benefits-section h2 {
    color: #003d82;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.benefits-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.benefit {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.check {
    color: #ff8c00;
    font-size: 1.8rem;
    font-weight: bold;
    flex-shrink: 0;
}

.benefit p {
    color: #333;
    margin: 0;
}

/* ===========================
   Контакти
   =========================== */

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-item {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    border-left: 5px solid #ff8c00;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.contact-item h3 {
    color: #003d82;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.contact-item p {
    color: #333;
    line-height: 1.8;
}

.contact-item a {
    color: #0066cc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #ff8c00;
}

/* ===========================
   Форма контакту
   =========================== */

.contact-form-section {
    padding: 3rem 0;
    background-color: #f5f7fa;
}

.contact-form-section h2 {
    color: #003d82;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #003d82;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.contact-form .btn {
    width: 100%;
    margin-top: 1rem;
}

/* ===========================
   Соціальні мережі
   =========================== */

.social-section {
    padding: 3rem 0;
    background-color: white;
    text-align: center;
}

.social-section h2 {
    color: #003d82;
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.social-link {
    display: inline-block;
    padding: 12px 25px;
    background-color: #003d82;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-weight: 600;
}

.social-link:hover {
    background-color: #ff8c00;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 140, 0, 0.3);
}

/* ===========================
   Адаптивна версія
   =========================== */

@media (max-width: 768px) {
    .page-hero h1 {
        font-size: 2.5rem;
    }

    .page-hero p {
        font-size: 1.1rem;
    }

    .mission-vision-grid {
        grid-template-columns: 1fr;
    }

    .services-grid,
    .benefits-list,
    .contact-grid,
    .team-grid {
        grid-template-columns: 1fr;
    }

    .content-section p {
        text-align: left;
    }

    .social-links {
        flex-direction: column;
    }

    .social-link {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .page-hero {
        min-height: 200px;
        padding: 2rem 0;
    }

    .page-hero h1 {
        font-size: 1.8rem;
    }

    .page-hero p {
        font-size: 1rem;
    }

    .content-section h2,
    .mission-vision h2,
    .team-section h2,
    .services-section h2,
    .benefits-section h2,
    .contact-form-section h2,
    .social-section h2 {
        font-size: 2rem;
    }

    .mission-card h3,
    .vision-card h3,
    .team-member h4 {
        font-size: 1.2rem;
    }
}

/* ===========================
   Новини
   =========================== */

.news-section {
    padding: 3rem 0;
    background-color: white;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.news-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.news-item {
    border-bottom: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 61, 130, 0.12);
    transition: all 0.3s ease;
    cursor: pointer;
    background: white;
    display: flex;
    flex-direction: column;
    height: 400px;
    position: relative;
}

.news-item:hover {
    box-shadow: 0 8px 25px rgba(0, 61, 130, 0.2);
    transform: translateY(-5px);
}

.news-item:last-child {
    border-bottom: none;
}

/* Контейнер для закрытого состояния (карточка) */
.news-header-container {
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow: hidden;
    flex-grow: 1;
}

.news-headline {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    padding: 1rem;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    flex-grow: 1;
}

.news-headline:hover {
    background: transparent;
    box-shadow: none;
}

.news-item-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.news-date {
    display: inline-block;
    background-color: var(--accent-orange);
    color: white;
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    align-self: flex-start;
    width: fit-content;
}

.news-headline h3 {
    color: var(--primary-blue);
    font-size: 1.1rem;
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-preview {
    color: var(--dark-gray);
    font-size: 0.9rem;
    line-height: 1.4;
    margin-top: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    opacity: 0.8;
}

.expand-icon {
    display: none;
    color: var(--primary-blue);
    font-size: 0.8rem;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.news-item.active .expand-icon {
    transform: rotate(180deg);
    display: none;
}

.news-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: white;
    padding: 0;
}

.news-item.active .news-content {
    max-height: none;
    padding: 2rem;
    overflow-y: auto;
}

.news-content p {
    color: var(--dark-gray);
    line-height: 1.7;
    margin-bottom: 1rem;
    margin-top: 0;
    display: none;
}

.news-item.active .news-content p {
    display: block;
    font-size: 1rem;
}

.read-more {
    color: var(--light-blue);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    display: inline-block;
}

.read-more:hover {
    color: var(--accent-orange);
}

/* ===========================
   Модальное окно для раскрытой новости на ПК
   =========================== */

.news-item.active {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 900px;
    max-height: 80vh;
    grid-column: unset;
    border-radius: 16px;
    z-index: 1000;
    flex-direction: column;
    gap: 0;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 0;
    overflow: hidden;
    background: white;
    height: auto;
}

/* Затемняющий фон */
.news-item.active::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    z-index: 999;
}

/* Крестик для закрытия */
.news-item.active::after {
    content: '✕';
    position: fixed;
    top: 2rem;
    right: 2rem;
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001;
    color: var(--primary-blue);
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Контейнер для фото, даты и названия в открытом состоянии */
.news-item.active .news-header-container {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    padding: 2rem;
    align-items: flex-start;
    border-bottom: 3px solid var(--accent-orange);
    flex-shrink: 0;
    overflow: visible;
}

.news-item.active .news-item-image {
    width: 280px;
    height: 280px;
    object-fit: cover;
    border-radius: 12px;
    flex-shrink: 0;
}

.news-item.active .news-headline {
    padding: 0;
    flex-direction: column;
    justify-content: flex-start;
    flex-grow: 1;
    gap: 0.5rem;
    background: none;
}

.news-item.active .news-date {
    align-self: flex-start;
    margin: 0;
}

.news-item.active .news-headline h3 {
    -webkit-line-clamp: unset;
    overflow: visible;
    display: block;
    font-size: 1.8rem;
    margin: 0.5rem 0 0 0;
    line-height: 1.3;
}

/* Текст новости в открытом состоянии */
.news-item.active .news-content {
    max-height: none !important;
    padding: 2rem !important;
    overflow-y: auto !important;
    display: block !important;
}

.news-item.active .news-headline {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.5rem !important;
}

.news-item.active .news-headline h3 {
    display: block !important;
    -webkit-line-clamp: unset !important;
    overflow: visible !important;
    font-size: 1.8rem;
    margin: 0.5rem 0 0 0;
    line-height: 1.3;
}

.news-item.active .news-preview {
    display: none;
}

.newsletter-section {
    padding: 3rem 0;
    background-color: #f5f7fa;
    text-align: center;
}

.newsletter-section h2 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.newsletter-section p {
    color: var(--dark-gray);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.newsletter-form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    gap: 1rem;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 1rem;
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--light-blue);
}

.newsletter-form .btn {
    padding: 12px 30px;
}

/* ===========================
   Галерея
   =========================== */

.gallery-section {
    padding: 3rem 0;
    background-color: white;
}

.gallery-section h2 {
    color: var(--primary-blue);
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    background-color: var(--light-gray);
    border: 2px solid var(--light-blue);
    color: var(--primary-blue);
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--light-blue);
    color: white;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-image {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-image {
    font-size: 4rem;
}

.gallery-caption {
    padding: 1.5rem;
    background: white;
}

.gallery-caption h4 {
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.gallery-caption p {
    color: var(--dark-gray);
    font-size: 0.9rem;
}

/* ===== НОВАЯ ГАЛЕРЕЯ - ПАПКИ ===== */

.gallery-folders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.gallery-folder-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 61, 130, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.gallery-folder-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 61, 130, 0.2);
    border-color: var(--primary-blue);
}

.folder-cover {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.folder-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.folder-placeholder {
    font-size: 4rem;
    color: var(--primary-blue);
}

.folder-info {
    padding: 1.5rem;
}

.folder-info h3 {
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.folder-date {
    color: #999;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.folder-description {
    color: var(--dark-gray);
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

.folder-count {
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 0.9rem;
}

/* ===== МОДАЛЬНОЕ ОКНО ДЛЯ ФОТО ===== */

.photo-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.photo-modal-content {
    background: white;
    border-radius: 12px;
    width: 95vw;
    max-width: 1200px;
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-gutter: stable;
    position: relative;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.photo-modal-content img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    display: block;
    margin: 1rem auto 0;
    padding: 0;
    box-sizing: border-box;
}

.modal-close {
    position: absolute;
    top: -15px;
    right: -15px;
    background: white;
    border: none;
    font-size: 1.5rem;
    color: #0066cc;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 1001;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.modal-close:hover {
    background: white;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

#photoCaption {
    background: #f5f5f5;
    padding: 1rem;
    text-align: center;
    color: #333;
    border-bottom: 1px solid #ddd;
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    align-self: stretch;
}

.modal-nav {
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    background: white;
    width: 100%;
    box-sizing: border-box;
    gap: 1rem;
    align-self: stretch;
}

.modal-prev,
.modal-next {
    background: var(--primary-blue);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
}

.modal-prev:hover,
.modal-next:hover {
    background: var(--dark-blue);
    transform: scale(1.05);
}

.modal-prev:disabled,
.modal-next:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: scale(1);
}

.loading-message,
.empty-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 1rem;
    color: var(--dark-gray);
    font-size: 1.1rem;
}

/* Сетка миниатюр в модальном окне */
.modal-folder-header {
    padding: 1.5rem;
    border-bottom: 2px solid #f0f0f0;
    background: linear-gradient(135deg, #f5f7fa 0%, #ffffff 100%);
}

.modal-folder-header h2 {
    margin: 0 0 0.5rem 0;
    color: var(--primary-blue);
}

.modal-folder-header p {
    margin: 0;
    color: #999;
    font-size: 0.9rem;
}

.thumbnails-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.75rem;
    padding: 1.5rem;
    max-height: 70vh;
    overflow-y: auto;
    width: 100%;
    box-sizing: border-box;
}

.thumbnail-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    background: #f0f0f0;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.thumbnail-item:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 61, 130, 0.2);
    border-color: var(--primary-blue);
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.thumbnail-item:hover img {
    transform: scale(1.08);
}

.thumbnail-number {
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgba(0, 61, 130, 0.85);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
}

/* Кнопка возврата к миниатюрам */
.modal-back-to-thumbnails {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 102, 204, 0.9);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
    z-index: 1002;
    font-size: 0.9rem;
}

.modal-back-to-thumbnails:hover {
    background: #0066cc;
    transform: translateX(-2px);
}

/* ===========================
   Статут
   =========================== */

.statute-section {
    padding: 3rem 0;
    background-color: white;
}

.statute-content {
    background-color: #f5f7fa;
    padding: 2rem;
    border-radius: 8px;
}

.statute-content h2 {
    color: var(--primary-blue);
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.statute-article {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 5px;
    border-left: 5px solid var(--accent-orange);
}

.statute-article h3 {
    color: var(--primary-blue);
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.statute-article h4 {
    color: var(--primary-blue);
    font-size: 1.15rem;
    margin: 1.5rem 0 0.75rem;
    font-weight: 600;
}

.statute-divider {
    border: none;
    border-top: 1px solid #ddd;
    margin: 2rem 0;
}

.statute-article p {
    color: var(--dark-gray);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.statute-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.statute-list li {
    padding: 0.5rem 0 0.5rem 2rem;
    color: var(--dark-gray);
    position: relative;
}

.statute-list li::before {
    content: '•';
    color: var(--accent-orange);
    font-weight: bold;
    position: absolute;
    left: 0.5rem;
}

.statute-download {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-radius: 8px;
    margin-top: 2rem;
}

.statute-download h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

/* ===========================
   Професійні подорожі, Конференції, Курси
   =========================== */

.trips-section,
.conferences-section,
.courses-section {
    padding: 3rem 0;
    background-color: white;
}

.courses-section h2 {
    text-align: center !important;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    margin-left: auto;
    margin-right: auto;
}

.section-intro {
    text-align: center;
    font-size: 1.1rem;
    color: var(--dark-gray);
    margin-bottom: 2rem;
}

.trips-grid,
.conferences-grid,
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.trip-card,
.conference-card,
.course-card {
    padding: 2rem;
    background: linear-gradient(135deg, #f0f4ff 0%, #f9f5ff 100%);
    border-radius: 8px;
    transition: all 0.3s ease;
    border-top: 4px solid var(--accent-orange);
    display: flex;
    flex-direction: column;
}

.trip-card:hover,
.conference-card:hover,
.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 61, 130, 0.2);
}

.trip-header,
.conference-header {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100px;
}

.trip-header h3,
.conference-header h3 {
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.trip-date,
.conference-date {
    display: inline-block;
    background-color: var(--accent-orange);
    color: white;
    padding: 0.3rem 0.8rem;
    white-space: nowrap;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-right: 0.5rem;
}

.conference-location {
    display: inline-block;
    background-color: var(--light-blue);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 600;
}

.trip-description,
.conference-description,
.course-description {
    color: var(--dark-gray);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.trip-highlights {
    list-style: none;
    margin: 1rem 0;
    padding: 0;
    flex-grow: 1;
}

.trip-card .btn,
.conference-card .btn,
.course-card .btn {
    align-self: center;
    margin-top: 1rem;
}

.trip-highlights li {
    color: var(--dark-gray);
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.trip-highlights li::before {
    content: '✓';
    color: var(--accent-orange);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.conference-details {
    background: white;
    padding: 1rem;
    border-radius: 5px;
    margin: 1rem 0;
}

.conference-details p {
    color: var(--primary-blue);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.conference-details ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.conference-details li {
    color: var(--dark-gray);
    padding: 0.5rem 0 0.5rem 1.5rem;
    position: relative;
}

.conference-details li::before {
    content: '→';
    color: var(--accent-orange);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.course-badge {
    display: inline-block;
    background-color: var(--light-blue);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.course-duration {
    color: var(--accent-orange);
    font-weight: 600;
    font-size: 0.9rem;
}

.course-content {
    background: white;
    padding: 1rem;
    border-radius: 5px;
    list-style: none;
    margin: 1rem 0;
}

.course-content li {
    color: var(--dark-gray);
    padding: 0.5rem 0 0.5rem 1.5rem;
    position: relative;
}

.course-content li::before {
    content: '✓';
    color: var(--accent-orange);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.course-price {
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 1.2rem;
    margin: 1rem 0;
}

.course-bpr {
    color: var(--accent-orange);
    font-weight: 700;
    font-size: 1.1rem;
    margin: 0.5rem 0 1rem 0;
    padding: 0.5rem;
    background-color: rgba(255, 140, 0, 0.1);
    border-radius: 4px;
    text-align: center;
}

.trips-benefits,
.conference-program {
    padding: 3rem 0;
    background-color: #f5f7fa;
}

.trips-benefits h2,
.conference-program h2 {
    color: var(--primary-blue);
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.benefit-item {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.benefit-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.benefit-item h4 {
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.benefit-item p {
    color: var(--dark-gray);
}

.program-schedule {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.program-day {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 5px solid var(--accent-orange);
}

.program-day h4 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.program-day h5 {
    color: var(--primary-blue);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.program-day ul {
    list-style: none;
    padding: 0;
}

.program-day li {
    color: var(--dark-gray);
    padding: 1rem;
    border-bottom: 1px solid #e8e8e8;
    line-height: 1.6;
    font-size: 0.95rem;
}

.program-day li:last-child {
    border-bottom: none;
}

.program-day li:hover {
    background-color: #f9f9f9;
}

.speaker-name {
    display: inline-block;
    color: var(--primary-blue);
    font-weight: 600;
    margin-top: 0.5rem;
    padding: 0.3rem 0.6rem;
    background-color: #e3f2fd;
    border-radius: 4px;
    font-style: italic;
}

.archive-badge {
    display: inline-block;
    background-color: var(--accent-orange);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-right: 0.8rem;
    text-transform: uppercase;
}

.archive-expand-btn {
    background: linear-gradient(135deg, var(--accent-orange) 0%, #ff9500 100%);
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(255, 140, 0, 0.3);
}

.archive-expand-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 140, 0, 0.4);
}

.archive-expand-btn:active {
    transform: translateY(0);
}

.archive-expandable-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.archive-expandable-content.expanded {
    max-height: 5000px;
    transition: max-height 0.4s ease;
}

.highlight-text {
    font-weight: 500;
    color: var(--primary-blue);
    padding: 0.2rem 0.4rem;
    background-color: #f0f4ff;
    border-radius: 3px;
}

/* ===========================
   Модальне вікно
   =========================== */

.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
    position: relative;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    right: -15px;
    top: -15px;
    font-size: 1.5rem;
    font-weight: bold;
    color: #0066cc;
    cursor: pointer;
    line-height: 1;
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 1001;
}

.modal-close:hover,
.modal-close:focus {
    color: #003d99;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.modal-content h2 {
    color: var(--primary-blue);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.modal-content > p {
    text-align: center;
    color: var(--dark-gray);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

/* ===========================
   Форми реєстрації
   =========================== */

.conference-upcoming,
.conference-previous {
    padding: 3rem 0;
    background-color: white;
}

.conference-upcoming {
    background-color: #f9f9f9;
}

.conference-upcoming h2,
.conference-previous h2 {
    color: var(--primary-blue);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.conference-upcoming > .container > .section-intro,
.conference-previous > .container > .section-intro {
    text-align: center;
    color: var(--dark-gray);
    margin-bottom: 2rem;
}

.conference-main,
.previous-conference-content {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.previous-conference-content {
    background: linear-gradient(135deg, #f0f8ff 0%, #e6f2ff 100%);
    border: 2px solid #b3d9ff;
    border-left: 5px solid #0066cc;
    padding: 1.2rem;
}

.previous-conference-content .conference-info-block {
    margin-bottom: 0;
}

.previous-conference-content .conference-info-block h3 {
    font-size: 1.3rem;
    margin-bottom: 0;
    line-height: 1.4;
}

.archive-expandable-content .conference-details-box {
    margin-top: 1.5rem;
}

.conference-info,
.conference-info-block {
    margin-bottom: 2rem;
}

.conference-info h3,
.conference-info-block h3 {
    color: var(--primary-blue);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.conference-details-box {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    padding: 1.5rem;
    border-radius: 8px;
}

.detail-item {
    display: flex;
    flex-direction: column;
}

.detail-label {
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
}

.detail-value {
    color: #333;
    font-size: 1.1rem;
}

.conference-status {
    display: inline-block;
    background-color: var(--accent-orange);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-weight: 600;
    margin-bottom: 1rem;
}

.conference-description-block,
.conference-features {
    margin-bottom: 2rem;
}

.conference-description-block h4,
.conference-features h4,
.conference-program-block h4,
.conference-gallery-link h4 {
    color: var(--primary-blue);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.conference-description-block p,
.conference-features p,
.conference-gallery-link p {
    color: #333;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.conference-features ul {
    list-style: none;
    padding: 0;
}

.conference-features li {
    color: #333;
    padding: 0.5rem 0 0.5rem 1.8rem;
    position: relative;
    line-height: 1.6;
}

.conference-features li::before {
    content: '✓';
    color: var(--accent-orange);
    font-weight: bold;
    font-size: 1.2rem;
    position: absolute;
    left: 0;
}

.conference-cta {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    margin-top: 2rem;
}

.cta-text {
    color: #333;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.previous-conference-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.conference-program-block,
.conference-gallery-link {
    background: linear-gradient(135deg, #f0f4ff 0%, #e3f2fd 100%);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
}

.conference-interest {
    padding: 3rem 0;
    background-color: white;
}

.conference-interest h2 {
    color: var(--primary-blue);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.conference-interest > .container > .section-intro {
    text-align: center;
    color: var(--dark-gray);
    margin-bottom: 2rem;
}

.interest-form {
    max-width: 600px;
    margin: 0 auto;
}

.interest-form button[type="submit"] {
    display: block;
    margin: 1.5rem auto 0;
}

.trips-application,
.conference-registration,
.courses-registration {
    padding: 3rem 0;
    background-color: white;
}

.trips-application h2,
.conference-registration h2,
.courses-registration h2 {
    color: var(--primary-blue);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.trips-application > .container > p,
.conference-registration > .container > p,
.courses-registration > .container > p {
    text-align: center;
    color: var(--dark-gray);
    margin-bottom: 2rem;
}

.application-form,
.registration-form,
.course-registration-form {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary-blue);
    font-weight: 600;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--light-blue);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.form-group select {
    cursor: pointer;
}

.application-form .btn,
.registration-form .btn,
.course-registration-form .btn {
    width: 100%;
    margin-top: 1rem;
}

/* ===========================
   Адаптивна версія
   =========================== */

@media (max-width: 768px) {
    .trips-grid,
    .conferences-grid,
    .courses-grid {
        grid-template-columns: 1fr;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .gallery-filters {
        flex-direction: column;
    }

    .filter-btn {
        width: 100%;
    }

    .program-schedule {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .course-badge {
        display: block;
        margin-bottom: 1rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }
}

/* ===========================
   Сторінка Вступ до УЕА
   =========================== */

.join-intro {
    padding: 3rem 0;
    background: linear-gradient(135deg, #0066cc 0%, #003d82 100%);
}

.join-intro h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.join-intro p {
    font-size: 1.1rem;
    color: white;
    text-align: center;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.join-intro .btn {
    display: block;
    width: fit-content;
    margin: 0 auto;
}

.membership-benefits {
    padding: 3rem 0;
    background-color: white;
}

.membership-benefits h2 {
    color: var(--primary-blue);
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.benefit-card {
    padding: 2rem;
    background: linear-gradient(135deg, #f0f4ff 0%, #f9f5ff 100%);
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.benefit-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-orange);
    box-shadow: 0 10px 30px rgba(255, 140, 0, 0.2);
}

.benefit-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.benefit-card h3 {
    color: var(--primary-blue);
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.benefit-card p {
    color: var(--dark-gray);
    line-height: 1.6;
}

.membership-tiers {
    padding: 3rem 0;
    background-color: #f5f7fa;
}

.membership-tiers h2 {
    color: var(--primary-blue);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.tiers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.tier-card {
    padding: 2rem;
    background: white;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid #e0e0e0;
    position: relative;
}

.tier-card.featured {
    border-color: var(--accent-orange);
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(255, 140, 0, 0.2);
}

.tier-card.featured::before {
    content: '⭐ Рекомендується';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--accent-orange);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.tier-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.tier-card.featured:hover {
    transform: scale(1.05) translateY(-5px);
}

.tier-card h3 {
    color: var(--primary-blue);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.tier-fee {
    color: var(--accent-orange);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.tier-description {
    color: var(--dark-gray);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.tier-features {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    text-align: left;
}

.tier-features li {
    color: var(--dark-gray);
    padding: 0.6rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.tier-features li:last-child {
    border-bottom: none;
}

.tier-features li::before {
    content: '✓';
    color: var(--accent-orange);
    font-weight: bold;
    margin-right: 0.5rem;
}

.join-requirements {
    padding: 3rem 0;
    background-color: white;
}

.join-requirements h2 {
    color: var(--primary-blue);
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.requirements-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.requirement-item {
    padding: 1.5rem;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-radius: 8px;
    border-left: 5px solid var(--accent-orange);
}

.requirement-item h4 {
    color: var(--primary-blue);
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
}

.requirement-item p {
    color: var(--dark-gray);
    line-height: 1.6;
}

.membership-registration {
    padding: 3rem 0;
    background-color: #f5f7fa;
}

.membership-registration h2 {
    color: var(--primary-blue);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.membership-form {
    max-width: 700px;
    margin: 2rem auto;
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.membership-form .form-group {
    margin-bottom: 1.5rem;
}

.membership-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary-blue);
    font-weight: 600;
}

.required {
    color: var(--accent-orange);
    font-weight: bold;
}

.membership-form input,
.membership-form textarea,
.membership-form select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.membership-form input:focus,
.membership-form textarea:focus,
.membership-form select:focus {
    outline: none;
    border-color: var(--light-blue);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.form-row .form-group {
    margin-bottom: 0;
}

.membership-form .form-group.checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
}

.membership-form .form-group.checkbox input {
    width: auto;
    margin-top: 0.3rem;
    cursor: pointer;
}

.membership-form .form-group.checkbox label {
    margin-bottom: 0;
    font-weight: 500;
}

.membership-form .form-group.checkbox a {
    color: var(--light-blue);
    text-decoration: none;
}

.membership-form .form-group.checkbox a:hover {
    text-decoration: underline;
}

.payment-info {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border-left: 5px solid var(--accent-orange);
}

.payment-info h4 {
    color: var(--primary-blue);
    margin-bottom: 0.8rem;
}

.payment-info p {
    color: var(--dark-gray);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.payment-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.payment-info li {
    color: var(--dark-gray);
    padding: 0.5rem 0 0.5rem 1.5rem;
    position: relative;
}

.payment-info li::before {
    content: none;
    color: var(--accent-orange);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.btn-large {
    width: 100%;
    padding: 15px 30px !important;
    font-size: 1.1rem;
}

.join-info {
    padding: 3rem 0;
    background-color: white;
}

.join-info h2 {
    color: var(--primary-blue);
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.faq-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.faq-item {
    padding: 1.5rem;
    background: linear-gradient(135deg, #f0f4ff 0%, #f9f5ff 100%);
    border-radius: 8px;
    border-left: 5px solid var(--light-blue);
}

.faq-item h4 {
    color: var(--primary-blue);
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
}

.faq-item p {
    color: var(--dark-gray);
    line-height: 1.6;
}

/* ===========================
   Історія асоціації
   =========================== */

.history-timeline {
    margin: 3rem 0;
}

.timeline-item {
    padding: 2rem;
    margin-bottom: 2rem;
    background: white;
    border-left: 5px solid var(--accent-orange);
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.timeline-year {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-orange);
    margin-bottom: 0.5rem;
}

.timeline-item h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.timeline-item p {
    color: var(--dark-gray);
    line-height: 1.7;
}

.history-section {
    margin: 2rem 0;
    padding: 2rem;
    background: #f5f7fa;
    border-radius: 8px;
}

.history-section h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.achievements-list {
    list-style: none;
    padding: 0;
}

.achievements-list li {
    padding: 0.8rem 0 0.8rem 2rem;
    position: relative;
    color: var(--dark-gray);
}

.achievements-list li::before {
    content: '✓';
    color: var(--accent-orange);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Trip Card Images */
.trip-card .trip-image {
    height: 200px;
    overflow: hidden;
    border-radius: 6px;
    margin: -2rem -2rem 1rem -2rem;
    background-color: #e0e0e0;
}

.trip-card .trip-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.trip-card:hover .trip-image img {
    transform: scale(1.05);
}

/* Conference preview cards */
.conference-card-preview {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    padding: 0;
    overflow: hidden;
    background: white;
    border-radius: 12px;
    border-top: 4px solid var(--accent-orange);
    box-shadow: 0 8px 24px rgba(0, 61, 130, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.conference-card-preview:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(0, 61, 130, 0.18);
}

.conference-card-image {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: linear-gradient(135deg, #e8f0ff 0%, #f0f4ff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.conference-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.35s ease;
}

.conference-card-preview:hover .conference-card-image img {
    transform: scale(1.02);
}

.conference-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0, 61, 130, 0.85);
    color: white;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
}

.conference-card-body {
    padding: 1.5rem 1.75rem 1.75rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.conference-card-body h3 {
    color: var(--primary-blue);
    font-size: 1.15rem;
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

.conference-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.conference-card-body .conference-description {
    color: var(--dark-gray);
    line-height: 1.6;
    margin-bottom: 1rem;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.conference-card-price {
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.conference-card-btn {
    align-self: flex-start;
    margin-top: auto;
}

.conference-card-archived {
    opacity: 0.92;
    border-top-color: #90b8e0;
}

/* Список конференцій — мобільна версія */
@media (max-width: 768px) {
    body.conferences-list-mobile .page-hero {
        padding: 2rem 1rem 1.75rem;
        min-height: auto;
    }

    body.conferences-list-mobile .page-hero h1 {
        font-size: 1.5rem;
        margin-bottom: 0.35rem;
    }

    body.conferences-list-mobile .page-hero p {
        font-size: 0.9rem;
    }

    body.conferences-list-mobile .conference-upcoming,
    body.conferences-list-mobile .conference-previous {
        padding: 1.25rem 0 1.5rem;
    }

    body.conferences-list-mobile .conference-upcoming h2,
    body.conferences-list-mobile .conference-previous h2 {
        font-size: 1.3rem;
        margin-bottom: 0.85rem;
        text-align: left;
        line-height: 1.3;
    }

    body.conferences-list-mobile .conference-upcoming > .container,
    body.conferences-list-mobile .conference-previous > .container {
        padding-left: 1rem;
        padding-right: 1rem;
        max-width: 100%;
        box-sizing: border-box;
    }

    body.conferences-list-mobile .conferences-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-bottom: 1.25rem;
        width: 100%;
    }

    body.conferences-list-mobile .conference-card-preview {
        width: 100%;
        max-width: 100%;
        border-radius: 14px;
        box-shadow: 0 4px 18px rgba(0, 61, 130, 0.1);
    }

    body.conferences-list-mobile .conference-card-preview:hover {
        transform: none;
        box-shadow: 0 6px 22px rgba(0, 61, 130, 0.14);
    }

    body.conferences-list-mobile .conference-card-image {
        aspect-ratio: 16 / 10;
    }

    body.conferences-list-mobile .conference-card-body {
        padding: 1rem 1rem 1.15rem;
    }

    body.conferences-list-mobile .conference-card-body h3 {
        font-size: 1rem;
        line-height: 1.35;
        margin-bottom: 0.65rem;
    }

    body.conferences-list-mobile .conference-card-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.4rem;
        margin-bottom: 0.7rem;
    }

    body.conferences-list-mobile .conference-date,
    body.conferences-list-mobile .conference-location {
        font-size: 0.78rem;
        padding: 0.3rem 0.6rem;
        margin-right: 0;
    }

    body.conferences-list-mobile .conference-card-body .conference-description {
        font-size: 0.86rem;
        line-height: 1.5;
        margin-bottom: 0.65rem;
        -webkit-line-clamp: 3;
    }

    body.conferences-list-mobile .conference-card-price {
        font-size: 1.05rem;
        margin-bottom: 0.6rem;
    }

    body.conferences-list-mobile .conference-card-btn {
        display: block;
        width: 100%;
        align-self: stretch;
        text-align: center;
        padding: 0.72rem 1rem;
        font-size: 0.9rem;
        border-radius: 10px;
        box-sizing: border-box;
    }

    body.conferences-list-mobile main {
        overflow-x: hidden;
    }
}

a.conference-card-preview {
    padding: 0;
    background: #fff;
    text-decoration: none;
    color: inherit;
}

/* Conference benefit cards */
.conference-benefits {
    margin-bottom: 1.5rem;
}

.conference-benefits h2 {
    color: var(--primary-blue);
    font-size: 1.4rem;
    margin-bottom: 0.35rem;
    text-align: center;
}

.conference-benefits-intro {
    text-align: center;
    color: #667;
    margin-bottom: 1.5rem;
    font-size: 0.98rem;
}

.conference-benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 1.1rem;
}

.conference-benefit-card {
    background: linear-gradient(160deg, #ffffff 0%, #f7faff 100%);
    border: 1px solid #e3ebf8;
    border-radius: 14px;
    padding: 1.35rem 1.1rem 1.25rem;
    text-align: center;
    box-shadow: 0 8px 22px rgba(0, 61, 130, 0.07);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
    position: relative;
    overflow: hidden;
}

.conference-benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-orange), #ffb347);
    opacity: 0;
    transition: opacity 0.28s ease;
}

.conference-benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 32px rgba(0, 61, 130, 0.14);
    border-color: #c9d9f2;
}

.conference-benefit-card:hover::before {
    opacity: 1;
}

.conference-benefit-icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 0.9rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
    background: linear-gradient(135deg, #eef4ff 0%, #f7faff 100%);
    border: 2px solid rgba(0, 102, 204, 0.12);
    box-shadow: 0 6px 16px rgba(0, 61, 130, 0.1);
}

.conference-benefit-icon svg {
    width: 28px;
    height: 28px;
    max-width: 28px;
    max-height: 28px;
    flex-shrink: 0;
    display: block;
    stroke: var(--accent-orange);
}

.conference-benefit-text {
    color: var(--dark-gray);
    font-size: 0.95rem;
    line-height: 1.55;
    margin: 0;
    font-weight: 500;
}

@media (max-width: 768px) {
    .conference-benefits-grid {
        grid-template-columns: 1fr;
        gap: 0.65rem;
    }

    .conference-benefit-card {
        display: flex;
        align-items: center;
        gap: 0.85rem;
        text-align: left;
        padding: 0.85rem 1rem;
    }

    .conference-benefit-icon {
        width: 42px;
        height: 42px;
        min-width: 42px;
        margin: 0;
    }

    .conference-benefit-icon svg {
        width: 20px;
        height: 20px;
        max-width: 20px;
        max-height: 20px;
    }

    .conference-benefit-text {
        font-size: 0.88rem;
        line-height: 1.45;
    }

    .conference-benefits h2 {
        font-size: 1.2rem;
    }

    .conference-benefits-intro {
        font-size: 0.88rem;
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .conference-benefits-grid {
        grid-template-columns: 1fr;
    }
}

/* Conference payment card */
.conference-detail-price {
    position: relative;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e3ebf8;
    border-radius: 18px;
    padding: 0;
    margin-bottom: 1.75rem;
    box-shadow:
        0 4px 6px rgba(0, 61, 130, 0.04),
        0 18px 40px rgba(0, 61, 130, 0.1);
}

.conference-detail-price::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-orange) 0%, #ffb347 50%, var(--primary-blue) 100%);
}

.conference-price-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.35rem 1.5rem 1rem;
    border-bottom: 1px solid #eef3fb;
    background: linear-gradient(180deg, #f8faff 0%, #ffffff 100%);
}

.conference-price-card-header-compact {
    border-bottom: none;
    padding-bottom: 1.25rem;
}

.conference-price-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(255, 140, 0, 0.15) 0%, rgba(0, 61, 130, 0.1) 100%);
    color: var(--primary-blue);
}

.conference-price-card-icon svg {
    width: 26px;
    height: 26px;
}

.conference-price-card-title {
    margin: 0 0 0.2rem;
    color: var(--primary-blue);
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.3;
}

.conference-price-card-subtitle {
    margin: 0;
    color: #6b7a94;
    font-size: 0.88rem;
    line-height: 1.4;
}

.conference-price-card-body {
    padding: 1.25rem 1.5rem 0.5rem;
}

.conference-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem 1rem;
    border-radius: 12px;
    margin-bottom: 0.85rem;
}

.conference-price-row-base {
    background: linear-gradient(135deg, #f4f8ff 0%, #eef4fd 100%);
    border: 1px solid #dce8f8;
}

.conference-price-label {
    color: #4a5a73;
    font-size: 0.95rem;
    font-weight: 500;
}

.conference-price-value {
    color: var(--primary-blue);
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.conference-addon-option {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1rem 1.1rem;
    background: #fafbfd;
    border: 2px solid #e6edf8;
    border-radius: 14px;
    cursor: pointer;
    margin-bottom: 1rem;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.conference-addon-option:hover {
    border-color: #c5d8f5;
    background: #fff;
    box-shadow: 0 4px 14px rgba(0, 61, 130, 0.06);
}

.conference-addon-option:has(input:checked) {
    border-color: var(--accent-orange);
    background: linear-gradient(135deg, #fffaf3 0%, #fff8ee 100%);
    box-shadow: 0 4px 16px rgba(255, 140, 0, 0.12);
}

.conference-addon-option:has(input:checked) .conference-addon-icon {
    background: rgba(255, 140, 0, 0.18);
    color: #c96a00;
}

.conference-addon-option input {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    accent-color: var(--accent-orange);
    cursor: pointer;
}

.conference-addon-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 10px;
    background: rgba(0, 61, 130, 0.08);
    color: var(--primary-blue);
    transition: background 0.2s ease, color 0.2s ease;
}

.conference-addon-icon svg {
    width: 20px;
    height: 20px;
}

.conference-addon-text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    flex: 1;
    min-width: 0;
}

.conference-addon-name {
    color: var(--dark-gray);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.35;
}

.conference-addon-price {
    color: var(--accent-orange);
    font-size: 0.88rem;
    font-weight: 700;
}

.conference-price-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin: 0.25rem 0 0.5rem;
    padding: 1.1rem 1.15rem;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, #0056b3 100%);
    box-shadow: 0 8px 20px rgba(0, 61, 130, 0.22);
}

.conference-price-total-label {
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.95rem;
    font-weight: 500;
}

.conference-price-total-value {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.conference-price-card-actions {
    padding: 0.75rem 1.5rem 1.35rem;
}

.conference-detail-price .conference-detail-cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin: 0;
}

.conference-detail-price .conference-detail-cta-buttons .btn,
.conference-detail-price > .btn {
    width: 100%;
    text-align: center;
    padding: 0.95rem 1.25rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.conference-detail-price .btn-payment {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    color: #fff;
    border: none;
}

.conference-detail-price .btn-payment:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(39, 174, 96, 0.35);
    color: #fff;
    opacity: 1;
}

.conference-detail-price .btn-registration {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #0052a3 100%);
    color: #fff;
    border: none;
}

.conference-detail-price .btn-registration:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 61, 130, 0.3);
    color: #fff;
    opacity: 1;
}

@media (max-width: 768px) {
    .conference-price-card-header,
    .conference-price-card-body,
    .conference-price-card-actions {
        padding-left: 1.1rem;
        padding-right: 1.1rem;
    }

    .conference-price-value {
        font-size: 1.25rem;
    }

    .conference-price-total-value {
        font-size: 1.3rem;
    }
}

/* Conference sticky bar */
.conference-sticky-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10050;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-top: 3px solid var(--accent-orange);
    box-shadow: 0 -8px 32px rgba(0, 61, 130, 0.16);
    transform: translateY(110%);
    transition: transform 0.35s ease;
}

.conference-sticky-bar.is-visible {
    transform: translateY(0);
}

body.conference-sticky-active {
    padding-bottom: 92px;
}

.conference-sticky-bar--mobile {
    padding: 0.55rem 0.75rem calc(0.55rem + env(safe-area-inset-bottom, 0px));
}

.sticky-bar-mobile-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
}

.sticky-bar-mobile-info {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
    flex: 1;
}

.conference-sticky-bar--mobile .sticky-bar-title {
    display: block;
    color: var(--primary-blue);
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sticky-bar-mobile-total {
    color: var(--primary-blue);
    font-size: 0.95rem;
    font-weight: 700;
    white-space: nowrap;
}

.sticky-bar-mobile-buttons {
    display: flex;
    gap: 0.4rem;
    flex-shrink: 0;
}

.conference-sticky-bar--mobile .btn-sticky-pay {
    padding: 0.55rem 0.75rem !important;
    font-size: 0.8rem !important;
    font-weight: 600;
    border-radius: 8px;
    white-space: nowrap;
    margin: 0;
    min-width: auto;
    line-height: 1.2;
}

.sticky-bar-addon--compact {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 0.45rem;
    padding: 0.4rem 0.55rem;
    background: #f7f9ff;
    border-radius: 8px;
    font-size: 0.78rem;
    line-height: 1.3;
    color: var(--dark-gray);
}

.sticky-bar-addon--compact input {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    accent-color: var(--accent-orange);
}

.sticky-bar-addon--compact span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.conference-sticky-active:has(.conference-sticky-bar--mobile.is-visible) {
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
}

body.conference-sticky-active:has(.conference-sticky-bar--mobile.is-visible .sticky-bar-addon--compact) {
    padding-bottom: calc(108px + env(safe-area-inset-bottom, 0px));
}

/* Rest Gallery */
.rest-gallery {
    margin-top: 4rem;
    padding: 0;
}

.rest-gallery .gallery-grid {
    display: flex;
    height: 280px;
    gap: 2px;
    width: 100%;
}

.rest-gallery .gallery-block {
    flex: 1;
    height: 280px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 61, 130, 0.15);
    transition: all 0.3s ease;
}

.rest-gallery .gallery-block img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.rest-gallery .gallery-block:hover img {
    transform: translateY(-5px);
    filter: brightness(1.1);
}
/* ===========================
   Стилі для сторінки новин
   =========================== */

.news-section {
    padding: 3rem 0;
    background-color: #f9f9f9;
    min-height: 600px;
}

.news-search {
    margin-bottom: 3rem;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 1.2rem;
    font-size: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.search-input:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.2);
}

.search-results {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 6px;
    background: #f0f8ff;
    border-left: 4px solid #0066cc;
}

.search-found {
    color: #28a745;
    font-weight: 600;
}

.search-no-results {
    color: #dc3545;
    font-weight: 600;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.news-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 61, 130, 0.15);
}

.news-card-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, #f0f4ff 0%, #f9f5ff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
    background-color: #f5f5f5;
}

.news-card:hover .news-card-image img {
    transform: scale(1.05);
}

.no-image {
    font-size: 3rem;
    opacity: 0.3;
}

.news-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-card-date {
    display: inline-block;
    background: linear-gradient(135deg, #ff8c00 0%, #ff6b35 100%);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    width: fit-content;
}

.news-card-title {
    font-size: 1.3rem;
    color: #003d82;
    margin-bottom: 1rem;
    line-height: 1.4;
    flex-grow: 1;
}

.news-card-text {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.2rem;
    flex-grow: 1;
}

.news-card-link {
    display: inline-block;
    color: #0066cc;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: auto;
}

.news-card-link:hover {
    color: #003d82;
    transform: translateX(5px);
}

/* Пагінація */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.pagination-btn {
    background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.pagination-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 102, 204, 0.3);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-info {
    color: #666;
    font-weight: 600;
}

.loading-spinner {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: #666;
}

.spinner {
    border: 4px solid #f0f0f0;
    border-top: 4px solid #0066cc;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Сторінка деталей новини */
.news-detail-section {
    padding: 3rem 0;
    background-color: #f9f9f9;
    min-height: 600px;
}

.news-detail-container {
    max-width: 800px;
    margin: 0 auto;
}

.news-detail-header {
    background: white;
    padding: 3rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.news-detail-date {
    display: inline-block;
    background: linear-gradient(135deg, #ff8c00 0%, #ff6b35 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.news-detail-title {
    font-size: 2.5rem;
    color: #003d82;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.news-detail-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 2rem;
    display: block;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.news-detail-no-image {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, #f0f4ff 0%, #f9f5ff 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    opacity: 0.2;
    margin-bottom: 2rem;
}

.news-detail-content {
    background: white;
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.news-detail-content p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 1.5rem;
}

.news-detail-link {
    display: inline-block;
    background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 2rem;
}

.news-detail-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 102, 204, 0.3);
}

.back-to-news {
    display: inline-block;
    margin-bottom: 2rem;
    color: #0066cc;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.back-to-news:hover {
    transform: translateX(-5px);
}

@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
    }

    .pagination {
        gap: 1rem;
        flex-direction: column;
    }

    .pagination-btn {
        width: 100%;
    }

    .news-detail-title {
        font-size: 1.8rem;
    }

    .news-detail-header {
        padding: 1.5rem;
    }

    .news-detail-content {
        padding: 1.5rem;
    }
}

/* ===========================
   Стили для галереї
   =========================== */

.gallery-folders-container {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    margin-top: 2rem;
}

.gallery-folder-section {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.gallery-folder-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 102, 204, 0.15);
}

.gallery-folder-cover {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    border-radius: 4px 4px 0 0;
}

.gallery-folder-title-section {
    background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
    background-size: auto;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    color: white;
    padding: 3rem 2rem;
    position: relative;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.gallery-folder-title-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 1;
}

.gallery-folder-title-overlay {
    position: relative;
    z-index: 2;
    width: 100%;
    text-align: center;
    padding: 1rem;
}

.gallery-folder-title {
    font-size: 2rem;
    margin: 0 0 1rem 0;
    color: white;
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.5);
    font-weight: 600;
}

.gallery-folder-info {
    font-size: 1.1rem;
    margin: 0.5rem 0;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.gallery-folder-desc {
    font-size: 1.05rem;
    margin: 1rem 0 0 0;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.6;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.gallery-media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.2rem;
    padding: 2rem;
}

.gallery-media-card {
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 1;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.gallery-media-card:hover {
    box-shadow: 0 8px 20px rgba(0, 102, 204, 0.2);
    transform: translateY(-4px);
}

.gallery-media-preview {
    width: 100%;
    height: 100%;
    position: relative;
    background: #f5f5f5;
    overflow: hidden;
}

.gallery-media-preview img,
.gallery-media-preview video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-media-card:hover .gallery-media-preview img,
.gallery-media-card:hover .gallery-media-preview video {
    transform: scale(1.05);
}

.gallery-media-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-media-card:hover .gallery-media-overlay {
    opacity: 1;
}

.play-icon {
    font-size: 3rem;
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* Модальне вікно для медіа */
.media-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
}

.media-modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    padding: 2rem;
}

#modalMediaContainer {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 90vw;
    max-height: 85vh;
}

#modalMediaContainer img,
#modalMediaContainer video {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: opacity 0.3s;
    z-index: 10001;
}

.close:hover {
    opacity: 0.7;
}

.modal-nav {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.modal-nav-btn {
    background: white;
    color: #333;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: transform 0.2s, background 0.2s;
}

.modal-nav-btn:hover:not(:disabled) {
    background: #0066cc;
    color: white;
    transform: scale(1.05);
}

.modal-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Responsive для галереї */
@media (max-width: 768px) {
    .gallery-media-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 0.8rem;
        padding: 1rem;
    }

    .gallery-folder-title {
        font-size: 1.4rem;
    }

    .gallery-folder-title-section {
        padding: 1.5rem;
    }

    .media-modal-content {
        padding: 1rem;
    }

    .modal-nav {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .modal-nav-btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }

    .close {
        top: 10px;
        right: 15px;
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .gallery-media-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }

    .gallery-folder-title {
        font-size: 1.2rem;
    }

    .gallery-folder-info {
        font-size: 0.85rem;
    }
}
