.teacher-profile-page .profile-card {
    align-items: flex-start;
}

.teacher-profile-page .profile-summary {
    flex: 1;
    min-width: 0;
    padding: 6px 0;
}

.teacher-profile-page .profile-summary-title {
    margin: 0 0 18px;
    color: #17375e;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
}

.teacher-profile-page .profile-summary-content {
    padding: 24px 28px;
    /* background: linear-gradient(135deg, #f8fbff 0%, #ffffff 100%); */
    border: 1px solid #e4edf6;
    box-shadow: 0 10px 24px rgba(12, 38, 69, 0.04);
    border-radius: 16px;
}

.teacher-profile-page .profile-summary-content p {
    margin: 0 0 12px;
    color: #46576a;
    line-height: 2;
}

.teacher-profile-page .profile-summary-content p:last-child {
    margin-bottom: 0;
}

@media screen and (max-width: 991px) {
    .teacher-profile-page .profile-summary-title {
        font-size: 26px;
    }

    .teacher-profile-page .profile-summary-content {
        padding: 22px 24px;
    }
}

@media screen and (max-width: 767px) {
    .teacher-profile-page .profile-card {
        align-items: center;
    }

    .teacher-profile-page .profile-summary {
        width: 100%;
    }

    .teacher-profile-page .profile-summary-title {
        margin-bottom: 14px;
        font-size: 24px;
        text-align: left;
    }

    .teacher-profile-page .profile-summary-content {
        padding: 18px 20px;
    }
}

@media screen and (max-width: 480px) {
    .teacher-profile-page .profile-summary-title {
        font-size: 22px;
    }

    .teacher-profile-page .profile-summary-content {
        padding: 16px 18px;
        border-radius: 14px;
    }
}
