.commission-header {
    position: relative;
    overflow: hidden;
    height: auto;
    background: linear-gradient(135deg, #0f1d2a, #102030);
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3);
    margin: 2rem auto;
    font-family: 'Roboto Condensed', sans-serif;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.commission-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgb(52, 152, 219), rgb(26, 188, 156));
    opacity: 0.05;
    z-index: -1;
}

.title-container {
    position: relative;
    z-index: 2;
    width: 90%;
}

.main-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin: 0;
    text-transform: uppercase;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(52, 152, 219, 0.6);
    letter-spacing: 1px;
    animation: textGlow 3s ease-in-out infinite alternate;
}

.sub-title {
    font-size: 3rem;
    font-weight: 500;
    color: #ffffff;
    margin-top: 0.5rem;
    margin-bottom: 0.1rem;
    position: relative;
    display: inline-block;
}

.sub-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: linear-gradient(to right, transparent, #3498db, transparent);
    animation: linePulse 3s ease-in-out infinite;
}

.science-icons {
    display: flex;
    justify-content: center;
    /*flex-wrap: wrap;*/
    gap: 1.5rem;
    margin-top: 1.8rem;
    z-index: 2;
}

.icon-wrapper {
    position: relative;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: float 6s ease-in-out infinite;
}

.icon-wrapper:nth-child(1) {
    animation-delay: 0s;
}

.icon-wrapper:nth-child(2) {
    animation-delay: 0.4s;
}

.icon-wrapper:nth-child(3) {
    animation-delay: 0.8s;
}

.icon-wrapper:nth-child(4) {
    animation-delay: 1.2s;
}

.icon-wrapper:nth-child(5) {
    animation-delay: 1.6s;
}

.icon-wrapper:nth-child(6) {
    animation-delay: 2s;
}

.icon-wrapper:nth-child(7) {
    animation-delay: 2.4s;
}

.science-icon {
    font-size: 2rem;
    color: #ecf0f1;
    transition: all 0.3s ease;
    z-index: 1;
}

.icon-wrapper::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: scale(0);
    transition: all 0.3s ease;
}

.icon-wrapper:hover::before {
    transform: scale(1);
}

.icon-wrapper:hover .science-icon {
    transform: scale(1.2);
    color: #3498db;
}

/* Зірки */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background-color: white;
    opacity: 0.3;
}

@keyframes twinklingStar {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.6);
    }
}

@keyframes fallingStar {
    0% {
        transform: translate(0, 0) rotate(45deg);
        opacity: 1;
    }
    100% {
        transform: translate(-600px, 600px) rotate(45deg);
        opacity: 0;
    }
}


@keyframes textGlow {
    0% {
        text-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
    }
    100% {
        text-shadow: 0 0 15px rgba(52, 152, 219, 0.7), 0 0 20px rgba(52, 152, 219, 0.4);
    }
}

@keyframes linePulse {
    0%, 100% {
        width: 60%;
        opacity: 0.7;
    }
    50% {
        width: 80%;
        opacity: 1;
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-12px);
    }
    100% {
        transform: translateY(0px);
    }
}

@media (max-width: 768px) {
    .commission-header {
        height: 180px;
        border-radius: 16px;
        margin: 1rem;
    }

    .main-title {
        font-size: 1.7rem;
    }

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

    .science-icons {
        gap: 0.2rem;
    }

    .icon-wrapper {
        width: 40px;
        height: 40px;
    }

    .science-icon {
        font-size: 1.2rem;
    }
}


/* Контейнер сторінки */
.Fund-section {
    max-width: 100%;
    margin: 0 auto;
    padding: 2rem;
    box-sizing: border-box;
}

.Fund-section-title {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 2.4rem;
    font-weight: 700;
    color: #1a252f;
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
}

.Fund-section-title::after {
    content: '';
    display: block;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, #3498db, #1abc9c);
    margin: 1rem auto 0;
    border-radius: 2px;
}


/* Секція з сіткою викладачів */
.Fund-teachers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(480px, 1fr));
    gap: 2rem;
    margin-bottom: 10px;
    padding: 2rem;
    background-color: #f9fafb; /* світло-сірий з м’яким контрастом */
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03); /* зовнішня тінь замість рамки */
    box-sizing: border-box;
}


/* Картка викладача */
.Fund-teacher-card {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 1.5rem 1.8rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e5eaf1;
}

.Fund-teacher-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}


/* Фото викладача */
.Fund-photo-wrapper {
    width: 130px;
    height: 185px;
    overflow: hidden;
    border: 2px solid #3498db;
    border-radius: 6px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
    display: flex;
    align-self: center;
}

.Fund-teacher-photo {
    width: 100%;
    height: 100%;
    object-position: top center;
    display: block;
}

/* Контейнер тексту */
.Fund-teacher-details {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* ПІБ */
.Fund-teacher-name {
    color: #2c3e50;
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
}

/* Інформаційний список */
.Fund-teacher-info {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.95rem;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

/* Кожен пункт списку */
.Fund-teacher-info li {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    color: #555;
    font-size: 1.1rem;
    line-height: 1.4;
    text-align: left;
}

/* Іконка */
.Fund-icon {
    color: #3498db;
    width: 18px;
    text-align: center;
    margin-top: 3px;
    flex-shrink: 0;
}


.Fund-about-section {
    background: #ffffff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
    margin-bottom: 3rem;
}

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

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

.Fund-about-section h2 {
    text-align: center;
    font-size: 1.6rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.Fund-about-section h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 3px;
    background-color: #3498db;
    border-radius: 2px;
}


.Fund-about-text {
    font-size: 1.2rem;
    line-height: 1.75;
    color: #2c3e50;
    text-align: justify;
}

.Fund-about-text p {
    text-indent: 1.5em;
    margin-bottom: 1.2rem;
}

.Fund-about-text ul {
    list-style: none;
    margin: 1.5rem 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.Fund-about-text ul li {
    position: relative;
    padding: 0.75rem 1rem 0.75rem 2.2rem;
    background-color: #f5f7fa;
    border-left: 4px solid #3498db;
    border-radius: 6px;
    color: #2c3e50;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}


/* Мобільна адаптація */

/* Мобільна адаптація */
@media (max-width: 1580px) {
    .Fund-teacher-info li {       
        font-size: 1rem;
    }
}


@media (max-width: 900px) {
    .Fund-teachers-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    }
}

@media (max-width: 768px) {
    .Fund-container {
        padding: 1rem;
    }

    .Fund-section {
        padding: 0;

    }

    .Fund-section-title {
        font-size: 1.1rem;
        margin-bottom:  1.2rem;
    }

    .Fund-teachers-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0;

        /* Скидання фонового оформлення */
        background: none;
        box-shadow: none;
        border-radius: 0;
    }

    .Fund-teacher-card {
        flex-direction: column;
        align-items: center;
        padding: 1.2rem;
        gap: 0.5rem;
    }

    .Fund-teacher-name {
        color: #2c3e50;
        font-size: 1.1rem;
        font-weight: 600;
        margin: 0 0 1rem 0;
    }

    .Fund-photo-wrapper {
        width: auto;
        height: auto;
        padding: 0.5rem;
        background-color: #f0f4f8;
        border: none;
        border-radius: 8px;
        box-shadow: inset 0 0 0 2px #3498db;
        justify-content: center;
        align-items: center;
        align-self: center;
    }


    .Fund-teacher-info li {
        justify-content: flex-start;
        padding: 0.3rem 0;
        width: 100%;
        font-size: 0.9rem;
    }

    .Fund-teacher-details {
        width: 100%;
        align-items: center;
    }

    .Fund-teacher-info {
        width: 100%;
        max-width: 300px;
        gap: 0;
    }

    .Fund-about-section {
        padding: 1.5rem;
    }

    .Fund-about-text {
        font-size: 1rem;
    }

    .Fund-about-text ul li {
        padding-left: 1.2rem;
    }

}
