/*about.css*/

.about-page {
    margin: 20px auto;
    max-width: 900px;
}

.about-card {
    background-color: #f9f9f9;
    border-radius: 10px;
    transition: transform 0.4s, box-shadow 0.4s;
        box-shadow:
            inset 0 -3em 3em rgba(0, 0, 0, 0.1),
            0 0 0 0.5px rgb(255, 255, 255),
            0.3em 0.3em 1em rgba(0, 0, 0, 0.3);
}

.about-card:hover {
    transform: translateY(-1px) scale(1.01);
        box-shadow:
            inset 0 -3em 3em rgba(0, 0, 0, 0.1),
            0 0 0 0.5px rgb(255, 255, 255),
            0.5em 0.5em 2em rgba(0, 0, 0, 0.4);
}

.bg-container {
    padding: 30px 60px 40px 60px;
    position: relative;
    overflow: hidden;
    height: auto; /*400px; /* или auto, если хочешь растягивать по содержимому */
}


.bg-image {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    opacity: 0.2; /* степень прозрачности фона */
    z-index: 1;
}

.content {
    position: relative;
    display: inline;
    z-index: 2;
    /*    padding: 40px;*/
    color: #000; /* или white, в зависимости от изображения */
    text-align: left;
}
.content h2 {
    text-align: center;
}

.teacher-photo {
    float: left;
    width: 200px;  /* ← это для десктопа */
    height: 300px; /* ← это тоже */
    max-width: 100%; /* добавь эту строку! */
    height: auto;    /* и эту! (перекроет жёсткие 300px) */
    border-radius: 50%;
    margin-right: 50px;
    margin-bottom: 20px; /* добавь отступ снизу */
    z-index: 3;
    transition: transform 0.4s, box-shadow 0.4s;
    box-shadow:
        inset 0 -3em 3em rgba(0, 0, 0, 0.1),
        0 0 0 0.5px rgb(255, 255, 255),
        0.3em 0.3em 1em rgba(0, 0, 0, 0.3);
}

.teacher-photo:hover {
    transform: translateY(-1px) scale(1.01);
    box-shadow:
        inset 0 -3em 3em rgba(0, 0, 0, 0.1),
        0 0 0 0.5px rgb(255, 255, 255),
        0.5em 0.5em 2em rgba(0, 0, 0, 0.4);
}

.contact-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #f0f0f0;
    transition: all 0.3s ease;
    text-decoration: none;
}

.contact-link:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.icon {
    width: 30px;
    height: 30px;
    fill: #333; /* Базовый цвет иконки */
    transition: fill 0.3s ease;
}

/* Цвета для каждой иконки при hover */
.contact-link:hover .envelope {
    fill: #ea4335;
}

.contact-link:hover .telegram {
    fill: #0088cc;
}

.contact-link:hover .whatsapp {
    fill: #25d366;
}