/* The "Teacher" home page. Written with start and end, so that it reads both ways.
   Run "npm run rtl" after changing this file. */

.teacher-home {
    --t-primary: var(--brand-primary, #0062b7);
    --t-secondary: var(--brand-secondary, #26aeff);
    --t-heading: var(--brand-heading, #0a1f6b);
    --t-button: var(--brand-button, #ffd21e);
    --t-button-text: var(--brand-button-text, #0a1f6b);
    --t-tint: var(--brand-primary-tint, #f2f8ff);
    --t-text: #4b5563;
    color: var(--t-text);
}

.teacher-home h1,
.teacher-home h2,
.teacher-home h3 {
    color: var(--t-heading);
}

.teacher-hero {
    padding-block: 56px 96px;
    background: linear-gradient(-180deg, var(--t-tint) 0%, #fff 100%);
    overflow: hidden;
}

.teacher-badge {
    display: inline-block;
    margin-bottom: 18px;
    padding: 7px 16px;
    border-radius: 50px;
    background: #fff;
    color: var(--t-primary);
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 6px 20px color-mix(in srgb, var(--t-primary) 14%, transparent);
}

.teacher-title {
    margin-bottom: 18px;
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 800;
    line-height: 1.35;
}

.teacher-title span {
    display: block;
    color: var(--t-primary);
}

.teacher-subtitle {
    max-width: 520px;
    margin-bottom: 30px;
    font-size: 17px;
    line-height: 1.9;
}

.teacher-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.teacher-btn {
    display: inline-block;
    padding: 13px 30px;
    border: 2px solid transparent;
    border-radius: 12px;
    font-weight: 700;
    transition: filter .2s, background-color .2s, color .2s;
}

.teacher-btn-main {
    background: var(--t-button);
    color: var(--t-button-text);
}

.teacher-btn-main:hover {
    color: var(--t-button-text);
    filter: brightness(.93);
}

.teacher-btn-outline {
    border-color: var(--t-primary);
    color: var(--t-primary);
}

.teacher-btn-outline:hover {
    background: var(--t-primary);
    color: #fff;
}

.teacher-btn-light {
    border-color: #fff;
    color: #fff;
}

.teacher-btn-light:hover {
    background: #fff;
    color: var(--t-heading);
}

.teacher-portrait {
    position: relative;
    max-width: 440px;
    aspect-ratio: 1;
    margin-inline: auto;
    border-radius: 36px;
    background: linear-gradient(-150deg, var(--t-secondary), var(--t-primary));
    box-shadow: 0 24px 60px color-mix(in srgb, var(--t-primary) 30%, transparent);
}

.teacher-portrait img {
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover;
    object-position: top;
}

.teacher-board {
    position: absolute;
    inset: 50% 8% auto;
    transform: translateY(-50%);
    color: #fff;
    font-size: clamp(26px, 4vw, 40px);
    font-weight: 700;
    text-align: center;
}

.teacher-board i {
    display: block;
    font-size: clamp(88px, 12vw, 140px);
    line-height: 1;
}

.teacher-sign {
    position: absolute;
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 16px;
    background: #fff;
    color: var(--t-primary);
    font-size: 30px;
    font-weight: 700;
    box-shadow: 0 10px 26px rgba(15, 23, 42, .14);
}

.teacher-sign-1 { top: -18px; inset-inline-start: 12%; transform: rotate(12deg); }
.teacher-sign-2 { top: 18%; inset-inline-end: -16px; transform: rotate(-10deg); }
.teacher-sign-3 { bottom: 20%; inset-inline-start: -20px; transform: rotate(-8deg); }
.teacher-sign-4 { bottom: -18px; inset-inline-end: 18%; transform: rotate(8deg); }
.teacher-sign-5 { bottom: -14px; inset-inline-start: 22%; transform: rotate(-14deg); }

.teacher-stats {
    position: relative;
    margin-top: -48px;
}

.teacher-stats ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 8px;
    margin: 0;
    padding: 28px 20px;
    border-radius: 20px;
    background: var(--t-heading);
    box-shadow: 0 18px 40px rgba(15, 23, 42, .18);
}

.teacher-stats li {
    text-align: center;
}

.teacher-stats strong {
    display: block;
    color: var(--t-button);
    font-size: 32px;
    font-weight: 800;
    line-height: 1.5;
}

.teacher-stats span {
    color: #fff;
    font-size: 15px;
}

.teacher-section {
    padding-block: 64px 0;
}

.teacher-tinted {
    margin-top: 64px;
    padding-block: 56px;
    background: var(--t-tint);
}

.teacher-tinted + .teacher-section {
    padding-top: 56px;
}

.teacher-heading {
    margin-bottom: 36px;
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 800;
    text-align: center;
}

.teacher-group {
    margin-block: 24px 14px;
    font-size: 20px;
    font-weight: 700;
    text-align: center;
}

.teacher-group a {
    color: inherit;
}

.teacher-grades {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

.teacher-grade {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: min(180px, calc(50% - 8px));
    padding: 22px 12px;
    border: 1px solid color-mix(in srgb, var(--t-primary) 18%, transparent);
    border-radius: 18px;
    background: #fff;
    color: var(--t-text);
    text-align: center;
    transition: transform .2s, box-shadow .2s, border-color .2s;
}

.teacher-grade:hover {
    border-color: var(--t-primary);
    color: var(--t-text);
    transform: translateY(-4px);
    box-shadow: 0 14px 30px color-mix(in srgb, var(--t-primary) 18%, transparent);
}

.teacher-grade i {
    color: var(--t-primary);
    font-size: 28px;
}

.teacher-grade strong {
    color: var(--t-heading);
}

.teacher-grade span {
    font-size: 13px;
}

.teacher-course {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--t-primary) 18%, transparent);
    border-radius: 18px;
    background: #fff;
    color: var(--t-text);
    box-shadow: 0 8px 24px rgba(15, 23, 42, .08);
}

.teacher-course:hover {
    border-color: var(--t-primary);
    color: var(--t-text);
}

.teacher-course > img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.teacher-course > div {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
}

.teacher-course h3 {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.7;
}

.teacher-course strong {
    margin-top: auto;
    color: var(--t-primary);
    font-size: 18px;
}

.teacher-course del {
    color: #9ca3af;
    font-size: 14px;
}

.teacher-feature {
    height: 100%;
    padding: 30px 20px;
    border-radius: 18px;
    background: #fff;
    text-align: center;
    box-shadow: 0 8px 28px rgba(15, 23, 42, .07);
}

.teacher-feature i {
    display: inline-grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
    border-radius: 18px;
    background: var(--t-tint);
    color: var(--t-primary);
    font-size: 28px;
}

.teacher-feature h3 {
    margin-bottom: 8px;
    font-size: 18px;
    font-weight: 700;
}

.teacher-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.teacher-steps li {
    padding: 26px 20px;
    border-radius: 18px;
    background: #fff;
    text-align: center;
}

.teacher-steps li > span {
    display: inline-grid;
    place-items: center;
    width: 46px;
    height: 46px;
    margin-bottom: 14px;
    border-radius: 50%;
    background: var(--t-primary);
    color: #fff;
    font-weight: 800;
}

.teacher-steps h3 {
    margin-bottom: 8px;
    font-size: 18px;
    font-weight: 700;
}

.teacher-review {
    display: flex;
    flex-direction: column;
    gap: 14px;
    height: 100%;
    margin: 0;
    padding: 24px;
    border: 1px solid color-mix(in srgb, var(--t-primary) 15%, transparent);
    border-radius: 18px;
    background: #fff;
}

.teacher-stars {
    color: #f5b301;
    font-size: 18px;
    letter-spacing: 2px;
}

.teacher-stars span {
    color: #e5e7eb;
}

.teacher-review blockquote {
    flex: 1;
    margin: 0;
    line-height: 1.9;
}

.teacher-review figcaption {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--t-heading);
    font-weight: 700;
}

.teacher-review figcaption img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
}

.teacher-narrow {
    max-width: 860px;
}

.teacher-narrow .accordion-button {
    justify-content: space-between;
    gap: 12px;
    color: var(--t-heading);
    font-weight: 700;
    text-align: start;
}

.teacher-narrow .accordion-button:not(.collapsed) {
    background: var(--t-tint);
}

.teacher-narrow .accordion-button::after {
    flex-shrink: 0;
    margin: 0;
}

.teacher-narrow .accordion-body {
    padding: 14px 0 22px;
    line-height: 1.9;
}

.teacher-cta {
    padding: 48px 20px;
    border-radius: 28px;
    background: linear-gradient(-135deg, var(--t-primary), var(--t-heading));
    text-align: center;
}

.teacher-home .teacher-cta h2 {
    margin-bottom: 12px;
    color: #fff;
    font-size: clamp(22px, 3vw, 32px);
    font-weight: 800;
}

.teacher-cta p {
    margin-bottom: 24px;
    color: #fff;
}

.teacher-whatsapp {
    position: fixed;
    bottom: 22px;
    inset-inline-end: 22px;
    z-index: 999;
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    font-size: 34px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .25);
}

.teacher-whatsapp:hover {
    color: #fff;
}
