@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@700&family=Exo+2:wght@600;800&display=swap');

:root {
    --blue-dark: #002366;
    --blue-light: #0066cc;
    --gold: #FFD700;
    --steel: #A9A9A9;
}

.commission-header {
    position: relative;
    overflow: hidden;
    height: 230px;
    perspective: 1000px;
    background: linear-gradient(160deg, #000428 0%, #004e92 100%);
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3);
    margin: 2rem;
}

.title-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    text-align: center;
    width: 90%;
}

.main-title {
    font-family: 'Exo 2', sans-serif;
    font-weight: 800;
    font-size: 3.5rem;
    color: white;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.7);
    animation: glow 3s ease-in-out infinite alternate;
}

.sub-title {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 2.2rem;
    background: linear-gradient(90deg, var(--gold), white);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 1rem 0;
    display: inline-block;
    position: relative;
}

.sub-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* Хмарний фон */
.clouds {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.cloud {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 1000px;
    filter: blur(5px);
    animation: cloudMove linear infinite;
}

@keyframes cloudMove {
    0% {
        transform: translateX(-150px);
    }
    100% {
        transform: translateX(calc(100vw + 150px));
    }
}


/* Паралакс шари */
.parallax-layer {
    position: absolute;
    width: 100%;
    height: 100%;
}

.layer-1 {
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,50 L30,30 L70,70 L100,50" fill="none" stroke="rgba(255,215,0,0.1)" stroke-width="1"/></svg>');
    background-size: 200px 200px;
    z-index: 3;
    animation: layerMove 100s linear infinite;
}

.layer-2 {
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(0,102,204,0.1)" stroke-width="1"/></svg>');
    background-size: 300px 300px;
    z-index: 2;
    animation: layerMove 150s linear infinite reverse;
}

@keyframes layerMove {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 1000px 500px;
    }
}

@keyframes glow {
    from {
        text-shadow: 0 0 10px rgba(255, 215, 0, 0.7);
    }
    to {
        text-shadow: 0 0 20px rgba(255, 215, 0, 0.9), 0 0 30px rgba(255, 215, 0, 0.5);
    }
}

/* Адаптивність */
@media (max-width: 768px) {
    .main-title {
        font-size: 2.5rem;
        line-height: 1;
    }

    .sub-title {
        font-size: 1.5rem;
    }

    .commission-header {
        margin: 0;

    }
}


/* Основний контейнер */
.aat-main-content {
    max-width: 100%;
    margin: 0 auto;
    font-family: 'Segoe UI', system-ui, sans-serif;
    line-height: 1.6;
    color: #1f2937;
}

/* Секція */
.aat-commission-info, .aat-teachers-section, .aat-equipment-section, .aat-career-section, .aat-photo-gallery {
    background-color: white;
    padding: 1.1rem;
    margin: 10px 0;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Заголовок h2 - Основний */
.aat-section-title {
    font-size: 1.9rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #3b82f6;
}


/* Підзаголовок h3 - Підлеглий */
.aat-subtitle {
    font-size: 1.7rem;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    padding: 0.5rem 0;
    position: relative;
    letter-spacing: -0.3px;
    background: linear-gradient(90deg, rgba(37, 99, 235, 0.1), transparent);
    padding-left: 1rem;
    border-left: 4px solid #2563eb;
}


/* Універсальне оформлення абзаців */
section p {
    text-align: justify;
    text-indent: 1.5em;
    font-size: 1.3rem;
    color: #374151;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

/* Виправлення переносів */
p, li {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* Специфічні випадки з тире */
li:has(> strong) {
    hyphens: none;
}


/* Стилі для списків */
.aat-list {
    list-style: none;
    padding-left: 1.5rem;
    margin: 1.5rem 0;
}

.aat-list li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
    text-align: justify;
    font-size: 1.2rem;
}

.aat-list li::before {
    content: "▹";
    position: absolute;
    left: 0;
    color: #4299e1;
    font-weight: bold;
}

/* Виділення важливих елементів */
.aat-list li strong {
    font-weight: 600;
    position: relative;
    display: inline-block;
    padding-right: 0.3rem;
}


/* ===== Секція карток викладачів ===== */
.aat-teachers-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Центрування карток */
    gap: 3rem;
    margin-top: 3rem;
}

/* Картка */
.aat-teacher-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    border: 1px solid #4a90e2;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    animation: cardAppear 0.6s ease forwards;
    opacity: 0;
    width: 380px;
    max-width: 100%;
    display: flex;
    flex-direction: column;
}

@keyframes cardAppear {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Фото */
.aat-teacher-photo {
    width: 100%;
    height: 520px;
    object-fit: cover;
    object-position: top;
    border-bottom: 1px solid #e5e7eb;
}

/* Ім'я */
.aat-teacher-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1f2937;
    background: rgba(113, 147, 182, 0.54);
    padding: 0.6rem 1rem;
    text-transform: uppercase;
    border-bottom: 1px solid #e5e7eb;
    text-align: center;
}

/* Контейнер з інфо */
.aat-profile-details {
    padding: 0.2rem 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    align-items: center;
}

/* Один блок інфо */
.aat-info-block {
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 0.3rem;
    margin-bottom: 0.3rem;
    width: 100%;
}

.aat-info-block p {
    text-align: center;
    font-size: 1.1em;
}

.aat-info-block:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

/* Заголовок поля */
.aat-profile-text {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    font-weight: bold;
    font-size: 1.2em;
    color: #1f2937;
    margin-bottom: 0.2rem;
}

/* Іконка */
.aat-profile-text i {
    font-size: 0.95rem;
    color: #1f2937;
}

/* Значення поля */
.aat-profile-description {
    font-size: 0.87rem;
    color: #4b5563;
    line-height: 1.4;
    margin: 0;
    padding: 0 0.2rem;
}

/* Hover */
.aat-teacher-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(66, 153, 225, 0.15);
}

.aat-teacher-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #4299E1, #48BB78);
    z-index: -1;
    border-radius: 18px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.aat-teacher-card:hover::before {
    opacity: 1;
}


/* Фото галерея */
.aat-photo-gallery {
    max-width: 1400px;
}

.aat-photo-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* центр вирівнювання в останньому ряду */
    gap: 1.5rem;
    padding: 1.5rem 0;
}

/* Картка фото */
.aat-photo-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    aspect-ratio: 4/3;
    width: 320px;
    max-width: 100%;
    cursor: pointer;
}

.aat-photo-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.aat-photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.aat-photo-item:hover img {
    transform: scale(1.03);
}

/* Блок-підпис між групами фото */
.aat-photo-label {
    width: 100%;
    background: linear-gradient(135deg, #e0f2fe 0%, #f8fafc 100%);
    padding: 1rem;
    margin: 1.1rem 0;
    border-radius: 16px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.aat-photo-label p {
    font-size: 1.15rem;
    line-height: 1.75;
    margin: 0;
    color: #1e3a8a;
    text-align: center;
}


/* Лайтбокс */
.aat-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    transition: opacity 0.3s ease;
    padding: 2rem;
}

/* Зображення з fade ефектом */
.aat-lightbox-img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.aat-lightbox-img.show {
    opacity: 1;
}

/* Кнопка закриття */
.aat-lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    color: white;
    font-size: 3rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
    z-index: 1002;
}

.aat-lightbox-close:hover {
    color: #3b82f6;
}

/* Кнопки навігації */
.aat-lightbox-prev,
.aat-lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    font-size: 2.5rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: 10px;
    transition: background 0.3s ease;
    z-index: 1001;
    user-select: none;
}

.aat-lightbox-prev:hover,
.aat-lightbox-next:hover {
    background: rgba(255, 255, 255, 0.3);
}

.aat-lightbox-prev {
    left: 20px;
}

.aat-lightbox-next {
    right: 20px;
}

/* Лічильник фото */
.aat-lightbox-counter {
    position: absolute;
    bottom: 2rem;
    background: rgba(0, 0, 0, 0.4);
    color: #f3f4f6;
    font-size: 1rem;
    font-weight: 500;
    padding: 0.4rem 1rem;
    border-radius: 8px;
    z-index: 1001;
    pointer-events: none;
}


@media (max-width: 768px) {

    /* Заголовок h2 */
    .aat-section-title {
        font-size: 1.6rem;
        padding-bottom: 0.4rem;
        border-bottom-width: 2px;
    }

    /* Підзаголовок h3 */
    .aat-subtitle {
        font-size: 1.25rem;
        padding-left: 0.75rem;
        border-left-width: 3px;
    }

    /* Абзаци */
    section p {
        font-size: 1.1rem;
        text-indent: 1em;
        line-height: 1.7;
    }

    /* Списки */
    .aat-list li {
        font-size: 1rem;
    }


    /* Виправлення strong */
    .aat-list li strong {
        display: block;
        margin-bottom: 0.4rem;
        font-size: 1.05rem;
    }

    /* Відступи секцій */
    .aat-commission-info,
    .aat-equipment-section,
    .aat-career-section {
        padding: 1rem 1rem;
        border-radius: 10px;
    }

    .aat-photo-item figcaption {
        font-size: 1rem;
        padding: 0.8rem;
    }

    .aat-photo-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 0.4rem;
    }

    .aat-lightbox-prev,
    .aat-lightbox-next {
        display: none;
    }

    .aat-teacher-photo {
        height: 380px;
    }

    .aat-teacher-name {
        font-size: 1rem;
    }

    .aat-profile-text,
    .aat-profile-description {
        font-size: 0.85rem;
    }

}





