/* The designed About page; it builds on teacher.css. Written with start and end, so that it reads
   both ways. Run "npm run rtl" after changing this file. */

/* The figures overlap the top of the page only while they follow it. */
.about-page .teacher-stats {
    margin-top: 56px;
}

.about-page .about-hero + .teacher-stats {
    margin-top: -48px;
}

.about-hero .teacher-title {
    font-size: clamp(30px, 4.4vw, 50px);
}

.about-hero .text-center .teacher-badge {
    margin-inline: auto;
}

/* The photo stands in front of a second frame, a little to one side. */
.about-portrait {
    position: relative;
    max-width: 420px;
    margin-inline: auto;
}

.about-portrait::before {
    content: "";
    position: absolute;
    inset: 22px 22px -18px -18px;
    border: 3px solid var(--t-button);
    border-radius: 40px;
}

.about-portrait .teacher-portrait {
    z-index: 1;
}

.about-story-picture {
    width: 100%;
    border-radius: 24px;
    box-shadow: 0 18px 44px color-mix(in srgb, var(--t-primary) 20%, transparent);
}

.teacher-home .about-story-title {
    margin-bottom: 18px;
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 800;
}

.about-story-text {
    font-size: 17px;
    line-height: 2;
}

.about-story-text p {
    margin-bottom: 14px;
}

.about-story-text img,
.about-story-text iframe,
.about-story-text video {
    max-width: 100%;
    border-radius: 16px;
}

.about-story-text img {
    height: auto;
}

/* Lists typed in the editor keep their markers. */
.about-story-text ul,
.about-story-text ol {
    display: inline-block;
    padding-inline-start: 22px;
    text-align: start;
}

.about-story-text ul {
    list-style: disc;
}

.about-story-text ol {
    list-style: decimal;
}

.about-credentials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.about-credential {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px 20px;
    border-inline-start: 4px solid var(--t-primary);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 28px rgba(15, 23, 42, .07);
}

.about-credential > i {
    display: grid;
    flex-shrink: 0;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--t-tint);
    color: var(--t-primary);
    font-size: 24px;
}

.about-credential h3 {
    margin-bottom: 6px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.6;
}

.about-credential p {
    margin: 0;
    line-height: 1.8;
}

.about-certificates {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.about-certificate {
    display: flex;
    width: min(100%, 300px);
    border: 1px solid color-mix(in srgb, var(--t-primary) 18%, transparent);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 28px rgba(15, 23, 42, .07);
}

.about-certificate .certificate {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 26px 18px;
    color: inherit;
    text-align: center;
}

.about-certificate .certificate-mark {
    display: grid;
    place-items: center;
    height: 80px;
    color: var(--t-primary);
    font-size: 46px;
}

.about-certificate .certificate-mark img {
    max-width: 150px;
    max-height: 80px;
}

.about-certificate .certificate-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.about-certificate strong {
    color: var(--t-heading);
    font-size: 17px;
    line-height: 1.6;
}

.about-certificate bdi {
    font-size: 15px;
    letter-spacing: .5px;
}
