.se-software-grid,
.se-languages-grid,
.se-modeling-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 1rem 0;
}

/* Base Styles */
.se-main-content {
    max-width: 1200px;
    margin: 0 auto;
}

/* Контейнер заголовку */
.cyber-card {
    position: relative;
    background: radial-gradient(circle at center, #0a192f 0%, #020c1b 100%);
    border-radius: 24px;
    padding: 1.1rem 2rem; /* Ще більше зменшений padding */
    isolation: isolate;
    overflow: hidden;
    transform-style: preserve-3d;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    min-height: 120px; /* Мінімальна висота ще зменшена */
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #4a90e2;
    text-align: center;
}

.cyber-card::before {
    content: "";
    position: absolute;
    inset: -2px;
    background: linear-gradient(
            45deg,
            #7f00ff 0%,
            #e100ff 25%,
            #00ff88 50%,
            #7f00ff 75%,
            #e100ff 100%
    );
    z-index: -1;
    animation: gradientShift 8s linear infinite, borderFlow 4s linear infinite;
    background-size: 400% 400%;
    border-radius: 24px;
}

@keyframes borderFlow {
    0% {
        box-shadow: 0 0 10px rgba(127, 0, 255, 0.7), 0 0 20px rgba(225, 0, 255, 0.6);
    }
    50% {
        box-shadow: 0 0 15px rgba(0, 255, 136, 0.7), 0 0 25px rgba(127, 0, 255, 0.6);
    }
    100% {
        box-shadow: 0 0 10px rgba(127, 0, 255, 0.7), 0 0 20px rgba(225, 0, 255, 0.6);
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%
    }
    50% {
        background-position: 100% 50%
    }
    100% {
        background-position: 0% 50%
    }
}

.hologram-overlay {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
            0deg,
            rgba(255, 255, 255, 0.02) 0px,
            rgba(255, 255, 255, 0.02) 1px,
            transparent 1px,
            transparent 4px
    );
    animation: scanlines 1s linear infinite;
}

@keyframes scanlines {
    from {
        transform: translateY(-10px)
    }
}

.quantum-grid {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at center, rgba(127, 0, 255, 0.1) 0%, transparent 70%),
    linear-gradient(0deg, rgba(0, 255, 136, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 136, 0.05) 1px, transparent 1px);
    background-size: 100% 100%,
    20px 20px,
    20px 20px;
    animation: gridPulse 4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes gridPulse {
    0%, 100% {
        opacity: 0.3
    }
    50% {
        opacity: 0.7
    }
}

.se-department-title {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.se-department-top,
.se-department-bottom {
    display: block;
}

.cyber-divider {
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, #7f00ff 30%, #00ff88 50%, #e100ff 70%, transparent 100%);
    margin: 0.6rem 0;
    filter: drop-shadow(0 0 5px rgba(127, 0, 255, 0.5));
    background-size: 200% 100%;
    animation: dividerFlow 9s linear infinite;
}

/* Анімація переливання */
@keyframes dividerFlow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Основний заголовок (h1) */
.se-cyber-department-title {
    font-size: 3rem;
    background: linear-gradient(90deg, #00ff88, #ffffff, #20b649);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
    animation: textFlow 4s linear infinite;
}

/* Анімація градієнта */
@keyframes textFlow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}


/* Заголовок циклової комісії (h2) */
.se-cyber-committee-title {
    font-size: 2.5rem;
    color: #ffffff;

    font-weight: bold;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 0 0 15px rgba(127, 0, 255, 0.6);
}

/* Заголовок спеціальності (h3) */
.se-cyber-specialization-title {
    font-size: 1.6rem;
    color: #ffffff;

    text-shadow: 0 0 8px rgba(0, 255, 136, 0.6), 0 0 12px rgba(127, 0, 255, 0.5);
}

/* Виправлення для "F2 (121)" */
.se-highlight {
    background: linear-gradient(90deg, #ffcc00, #ff0077);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: bold;
    text-shadow: 0 0 12px rgba(255, 204, 0, 0.8), 0 0 18px rgba(255, 0, 119, 0.6);
}


/* Image Section */
.se-cover-section {
    margin: 2rem 0;
}

.se-cover-figure {
    margin: 0;
    position: relative;
}

.se-cover-image {
    width: 100%;
    border-radius: 10px;
    border: 3px solid #ecf0f1;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.se-image-caption {
    text-align: center;
    margin-bottom: 1rem;
    font-style: italic;
    color: #7f8c8d;
}

/* Загальна стилізація секції */
/* Загальна стилізація секції */
.se-album {
    position: relative;
    background: url('old-paper-texture.jpg') repeat;
    background-size: cover;
}

/* Заголовок фотоальбому */
.se-album-title {
    text-align: center;
    font-family: 'Cormorant Garamond', serif;
    font-size: 3.2rem;
    font-weight: 700;
    color: #4e3b2c;
    text-shadow: 1px 1px 3px rgba(78, 59, 44, 0.3);
    margin-bottom: 1rem;
}

/* Акцентований заголовок */
.heritage-text {
    display: block;
    font-size: 3.8rem;
    font-weight: 900;
    color: #3d2a1e;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-shadow: 2px 2px 4px rgba(61, 42, 30, 0.3);
    margin-bottom: 0.5rem;
    position: relative;
}

/* Декоративна лінія під головним заголовком */
.heritage-text::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(to right, #8b6f4d, #5a3f2a);
    border-radius: 2px;
}

/* Назва відділення */
.department-name {
    display: block;
    font-size: 2.2rem;
    color: #6b4f3c;
    font-weight: 600;
    font-style: italic;
    text-decoration: none;
}

/* Підзаголовок */
.se-album-subtitle {
    display: block;
    font-size: 1.6rem;
    color: #745c47;
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    margin-top: 0.8rem;
    text-shadow: 1px 1px 2px rgba(116, 92, 71, 0.3);
}

/* Підкреслення важливого тексту */
.se-album-subtitle em {
    color: #8f6849;
    font-style: normal;
    font-weight: 700;
}

/* Блок з альбомом */
.vintage-frame {
    position: relative;
    border: 20px solid #c8b7a6;
    border-image-source: url('wood-frame-texture.jpg');
    border-image-slice: 20;
    border-image-repeat: round;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.15),
    inset 0 0 40px rgba(0, 0, 0, 0.1);
    
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
}

/* Декоративна текстура */
.frame-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: linear-gradient(90deg,
    rgba(224, 214, 200, 0.4) 0%,
    rgba(255, 255, 255, 0) 50%,
    rgba(224, 214, 200, 0.4) 100%),
    repeating-linear-gradient(
            0deg,
            rgba(0, 0, 0, 0.06) 0px,
            rgba(0, 0, 0, 0.06) 1px,
            transparent 1px,
            transparent 4px);
}

/* Вбудований альбом */
.se-album-embed iframe {
    width: 100%;
    height: 600px;
    border: none;
    filter: sepia(0.3) brightness(0.95);
}


/* Cards */
.se-card {
    background: white;
    border-radius: 12px;
    margin: 2rem 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.se-card-content {
    padding: 2rem;
}

.se-section-title {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.se-committee-title {
    font-size: 2rem;
    font-weight: 500;
    color: #f1c40f;
}

/* Profile Styles */
.se-profile-wrapper {
    display: flex;
    gap: 2rem;
    align-items: center;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.se-profile-image {
    width: 250px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.se-profile-info {
    flex: 1;
    min-width: 300px;
}

.se-profile-name {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.se-profile-position {
    font-size: 1.1rem;
    color: #7f8c8d;
}

/* Блок з інформацією про викладача */
.se-teacher-info {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #333;
    border-left: 5px solid #007bff;
}

/* Блок з темою викладача */
.se-teacher-topic {
    background: rgba(0, 123, 255, 0.1);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    font-size: 1rem;
    color: #333;
    font-weight: 500;
    border-left: 5px solid #ff7700;
}

/* Заголовок теми */
.se-teacher-topic h4 {
    color: #ff7700;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: bold;
}


/* Вступний та заключний блок */
.se-intro, .se-future {
    max-width: 1200px;
    margin: 15px auto;
    padding: 2rem;
    background: white;
    border: 1px solid #4a90e2;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Контейнер для тексту */
.se-intro-content, .se-future-content {
    text-align: justify;
}

/* Заголовки */
.se-intro h1, .se-future h2 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    font-weight: 700;
    text-align: center;
}

/* Абзаци */
.se-intro p, .se-future p {
    font-size: 1.2rem;
    color: #333;
    line-height: 1.8;
    margin-bottom: 1rem;
    text-indent: 1.5rem; /* Абзацний відступ */
}

/* Контейнер контактів */
.se-contacts {
    margin-top: 2rem;
    text-align: center;
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Заголовок */
.se-contacts h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    font-weight: 700;
}

/* Список контактів */
.se-contact-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Окремий контакт */
.se-contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #007bff;
    background: white;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
    box-shadow: 0 2px 5px rgba(0, 123, 255, 0.2);
}

/* Іконки */
.se-contact-item i {
    margin-right: 10px;
    font-size: 1.5rem;
}

/* Наведення */
.se-contact-item:hover {
    background: #007bff;
    color: white;
}

/* Окремий стиль для пошти */
.se-mail {
    background: #ffcc00;
    color: #2c3e50;
    font-weight: 700;
}

.se-mail:hover {
    background: #e6b800;
    color: white;
}


/* ====== Освітньо-професійна програма ====== */
/* Вирівнювання іконок та тексту в одному ряду */
.se-specialization-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-bottom: 1px solid #ecf0f1;
    padding: 0.8rem 0;
}

.se-list-icon {
    color: #3498db;
    flex-shrink: 0;
    font-size: 18px;
}

.se-list-text {
    flex-grow: 1;
    font-size: 1rem;
    font-weight: 500;
}


/* Кнопка-посилання ОПП */
.se-op-link {
    background: #007bff;
    color: white;
    border: none;
    padding: 3px 25px;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.se-op-link i {
    font-size: 14px;
}

/* Наведення */
.se-op-link:hover {
    background: #0056b3;
}


/* List Styles */
.se-specialization-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.se-specialization-list li {
    padding: 0.8rem 0;
    border-bottom: 1px solid #ecf0f1;
    display: flex;
    text-align: start;
    align-items: center;
    gap: 10px;
}

.se-list-icon {
    color: #3498db;
    width: 20px;
}

.toggle-container {
    margin: 25px 5px;
}


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

    .se-profile-wrapper {
        flex-direction: column;
        text-align: center;
    }

    .se-cyber-department-title {
        font-size: 2rem;
        margin: 4px;
    }

    .se-cyber-committee-title {
        font-size: 1.5rem;
    }

    .se-cyber-specialization-title {
        font-size: 1rem;
        margin: 4px;
    }

    .se-profile-image {
        width: 100%;
        max-width: 300px;
    }

    .se-album-title {
        font-size: 2.5rem;
    }

    .heritage-text {
        font-size: 2.5rem;
    }

    .department-name {
        font-size: 1.7rem;
    }

    .se-album-subtitle {
        font-size: 1.4rem;
    }


    .se-universities-list ul {
        columns: 1;
    }

    .se-committee-title {
        font-size: 1.5rem;
    }

    .se-specialization-title {
        font-size: 1.3rem;
    }

    .se-institution {
        font-size: 1.1rem;
    }

    .se-specialization-list li {
        flex-direction: column;
        text-align: center;
        gap: 5px;
        padding: 1rem 0;
    }

    .se-list-icon {
        margin-bottom: 0.5rem;
    }

    .se-list-text {
        width: 100%;
    }

    .se-intro, .se-future {
        padding: 1.5rem;
    }

    .se-intro h1, .se-future h2 {
        font-size: 1.8rem;
    }

    .se-intro p, .se-future p {
        font-size: 1rem;
        text-indent: 1rem; /* Зменшений відступ для мобільних */
    }

    .se-specialization-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .se-op-link {
        width: 100%;
        margin-top: 8px;
    }

    .se-contacts {
        padding: 1rem;
    }

    .se-contact-item {
        font-size: 1rem;
        padding: 10px;
    }

    .se-contact-item i {
        font-size: 1.3rem;
    }


}
