.profile {
    margin: 20px;
    text-align: center;
    background-color: #E8E7E3;
    background-image: linear-gradient(to bottom right, #C6DAF7, #CEAFEC);
    padding: 30px 25px;
    border-radius: 25px;
    width: 250px;
    max-width: 300px;
}

.profile .name {
    padding-top: 10px;
    font-size: 18px;
    font-weight: 800;
}

.profile .position {
    padding: 5px 0;
}

.profile .feature-text {
    margin: 0 0 auto;
    padding-bottom: 10px;
    color: rgb(122, 122, 122);
    line-height: 20px;
}

.profile img {
    border-radius: 50%;
    width: 205px;
    min-width: 205px;
    height: 205px;
    min-height: 205px;
    flex-shrink: 0;
    margin-bottom: 2%;
    background: #FFF;
    object-fit: cover;
    object-position: center top;
}

.team-section {
    background: var(--color-bg-2);
    padding: 20px;
    width: 90%;
}

.team-section section {
    flex-wrap: wrap;
}

.team-section h2 {
    color: white;
    font-size: 2em;
}

.team-section p {
    color: white;
    font-size: 1.2em;
}

.class-header {
    max-width: 800px;
    margin: 0 auto;
    padding: 28px;
    text-align: center;
    background-image: linear-gradient(to bottom right, #FAE5FB, #CEAFEC);
    border-radius: 20px;
    box-shadow: rgba(0, 0, 0, 0.12) 0px 6px 20px;
    font-size: 2rem;
    font-weight: 800;
    color: #333;
    width: 90%;
}

/* ===== Mobile Responsive ===== */
@media (max-width: 768px) {
    .profile {
        width: calc(100% - 40px);
        max-width: 280px;
        margin: 10px auto;
        padding: 20px 15px;
    }

    .profile img {
        width: 150px;
        min-width: 150px;
        height: 150px;
        min-height: 150px;
    }

    .team-section {
        width: 95%;
        padding: 15px;
    }

    .team-section section {
        flex-direction: row;
        justify-content: center;
    }

    .class-header {
        font-size: 1.4rem;
        padding: 18px;
        width: 85%;
    }
}

@media (max-width: 480px) {
    .profile {
        max-width: 100%;
    }

    .profile img {
        width: 120px;
        min-width: 120px;
        height: 120px;
        min-height: 120px;
    }

    .class-header {
        font-size: 1.2rem;
        padding: 14px;
    }
}