/* Course page: fard-ayn.html (review draft 4, 3 Dec 2026), built from PAGE-DECISIONS.md.
   Top to bottom: a cream top with the two teachers, a green band of figures, the six subjects, why this course,
   how it is taught, and the fee with Enrol now.
   Colours and fonts come from styles.css; the section pattern (home-section, section-intro-eyebrow) from
   home-sections.css. The page has no script of its own. */

:root {
    /* Gold dark enough to read as small text on ivory and cream (--gold-muted is too light for that). */
    --course-gold-text: #806B32;
    --course-green-band: linear-gradient(110deg, #14705F 0%, var(--emerald) 45%, var(--emerald-deep) 100%);
}

/* ---------- The top: the course name, what it is, Enrol now, and the two teachers ---------- */

.course-top {
    padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(2.1rem, 5vw, 3.6rem);
    background: var(--cream);
}

.course-top:focus {
    outline: none;
}

.course-top-grid {
    display: grid;
    gap: 1.7rem;
}

.course-top h1 {
    margin: 0;
    font-size: clamp(2.9rem, 12vw, 4.4rem);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.014em;
    color: var(--emerald-deep);
}

.course-top h1::before {
    content: '';
    display: block;
    width: 46px;
    height: 3px;
    margin-bottom: 1.1rem;
    background: var(--gold);
}

.course-top h1 span {
    display: block;
}

.course-strap {
    max-width: none;
    margin: 0.9rem 0 0;
    font-size: clamp(1.3rem, 2.2vw, 1.56rem);
    font-weight: 600;
    line-height: 1.25;
    color: var(--emerald);
}

.course-line {
    max-width: 31em;
    margin: 0.65rem 0 0;
    font-size: clamp(1.09rem, 1.5vw, 1.19rem);
    line-height: 1.55;
    color: var(--slate);
}

.course-top .btn {
    margin-top: 1.5rem;
}

.course-portraits {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(12px, 1.6vw, 20px);
}

.course-portraits figure {
    margin: 0;
    background: var(--ivory);
    border-top: 4px solid var(--gold);
    box-shadow: 0 16px 34px -20px rgba(8, 61, 51, 0.55);
}

.course-portraits img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

.course-portraits figcaption {
    padding: 0.6rem 0.65rem 0.75rem;
    font-family: var(--font-display);
    font-size: clamp(1rem, 4.1vw, 1.31rem);
    line-height: 1.15;
    color: var(--emerald-deep);
}

.course-portraits small {
    display: block;
    margin-top: 0.4rem;
    font-family: var(--font-body);
    font-size: clamp(0.84rem, 1.2vw, 0.91rem);
    line-height: 1.38;
    color: var(--slate);
}

/* ---------- The green band: three figures ---------- */

.course-band {
    background: var(--course-green-band);
    border-top: 3px solid var(--gold);
    border-bottom: 3px solid var(--gold);
    color: var(--ivory);
}

.course-band-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding-top: clamp(1.35rem, 2.4vw, 1.9rem);
    padding-bottom: clamp(1.5rem, 2.6vw, 2rem);
}

/* The figure reads first; the label stays the term for screen readers. */
.course-band-grid div {
    display: flex;
    flex-direction: column-reverse;
    justify-content: flex-end;
    padding-left: clamp(0.8rem, 2.6vw, 2.1rem);
    border-left: 1.5px solid var(--gold);
}

.course-band-grid div:first-child {
    padding-left: 0;
    border-left: 0;
}

/* Figures use the small optical size of Bodoni Moda, fixed. At these sizes the browser would pick the display cut,
   whose hairlines are so fine that a 4 reads like a 1 (compared in options/money-figure-test.png). */
.course-band-grid dd {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 500;
    font-variation-settings: 'opsz' 10;
    font-size: clamp(2.25rem, 4.4vw, 3.5rem);
    line-height: 1;
    color: var(--gold-bright);
}

.course-band-grid dt {
    margin-top: 0.35rem;
    font-size: clamp(0.875rem, 1.4vw, 1.125rem);
    font-weight: 400;
    line-height: 1.25;
    color: var(--ivory);
}

/* ---------- What you will study: six subjects ---------- */

.course-subjects {
    display: grid;
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 2px solid var(--gold);
}

.course-subjects li {
    padding: 0.8rem 0 0.9rem;
    border-bottom: 1px solid rgba(196, 169, 98, 0.5);
}

.course-subjects h3,
.course-outcomes h3 {
    margin: 0;
    font-weight: 400;
    letter-spacing: 0;
    color: var(--emerald-deep);
}

.course-subjects h3 {
    font-size: clamp(1.4rem, 2.1vw, 1.7rem);
    line-height: 1.15;
}

.course-subjects p,
.course-outcomes p {
    max-width: none;
    margin: 0.3rem 0 0;
    font-size: clamp(1rem, 1.35vw, 1.09rem);
    line-height: 1.45;
    color: var(--slate);
}

/* Who teaches a subject, or which subject covers an outcome. */
.course-subjects .course-by,
.course-outcomes .course-by {
    margin-top: 0.45rem;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--course-gold-text);
}

/* The salawat sign, in the site's Arabic face so it is drawn the same on every device. */
.course-saw {
    font-family: var(--font-arabic);
    font-size: 1.1em;
    line-height: 1;
}

/* ---------- Why this course, and How it is taught: a heading beside its detail ---------- */

.course-split {
    display: grid;
    gap: 1.75rem;
}

.course-heading {
    margin: 0;
    font-size: clamp(2.4rem, 4.2vw, 3.4rem);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -0.012em;
    color: var(--emerald-deep);
}

.course-para,
.course-aim {
    max-width: none;
    font-size: clamp(1.09rem, 1.5vw, 1.22rem);
}

.course-para {
    margin: 1rem 0 0;
    line-height: 1.55;
    color: var(--slate);
}

.course-aim {
    margin: 0.9rem 0 0;
    font-weight: 600;
    line-height: 1.4;
    color: var(--emerald);
}

.course-lead {
    max-width: none;
    margin: 0 0 0.8rem;
    font-size: 0.97rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--course-gold-text);
}

.course-outcomes {
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.course-outcomes li {
    padding: 1.25rem 1.3rem 1.3rem;
    background: var(--ivory);
    border-top: 3px solid var(--gold);
    box-shadow: 0 14px 30px -22px rgba(8, 61, 51, 0.5);
}

.course-outcomes h3 {
    font-size: clamp(1.56rem, 2.2vw, 1.75rem);
    line-height: 1.12;
}

.course-outcomes .course-by {
    margin-top: 0.7rem;
}

/* A label and what it means, one row each. */
.course-rows {
    margin: 0;
    border-top: 2px solid var(--gold);
}

.course-rows div {
    padding: 0.85rem 0 0.95rem;
    border-bottom: 1px solid rgba(196, 169, 98, 0.55);
}

.course-rows dt {
    font-size: 1.06rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--emerald-deep);
}

.course-rows dd {
    margin: 0.2rem 0 0;
    font-size: 1.06rem;
    line-height: 1.5;
    color: var(--slate);
}

/* ---------- The fee, and Enrol now ---------- */

.course-fee {
    padding: clamp(2.6rem, 6vw, 4.75rem) 0 clamp(3rem, 6vw, 5rem);
    background: var(--course-green-band);
    border-top: 3px solid var(--gold);
    color: var(--ivory);
}

.course-fee-grid {
    display: grid;
    gap: 1.6rem;
}

.course-fee .section-intro-eyebrow {
    margin-bottom: 0.6rem;
    color: var(--gold-bright);
}

.course-price {
    margin: 0;
    font-size: clamp(1.6rem, 2.5vw, 1.9rem);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: 0;
    color: var(--ivory);
}

.course-price span {
    display: block;
    font-weight: 500;
    font-variation-settings: 'opsz' 10;
    margin-bottom: 0.3rem;
    font-size: clamp(6.5rem, 10vw, 8rem);
    line-height: 0.95;
    letter-spacing: -0.02em;
    color: var(--gold-bright);
}

.course-value {
    max-width: none;
    margin: 1.1rem 0 0;
    font-size: clamp(1.16rem, 1.6vw, 1.25rem);
    font-weight: 600;
    line-height: 1.45;
    color: var(--ivory);
}

/* The price per hour takes its own line. */
.course-value span {
    display: block;
}

.course-fee .course-rows div {
    border-bottom-color: rgba(212, 190, 122, 0.4);
}

.course-fee .course-rows dt {
    color: var(--gold-bright);
}

.course-fee .course-rows dd {
    color: rgba(255, 254, 249, 0.94);
}

.course-fee-action .btn {
    width: 100%;
    padding-top: 1.2rem;
    padding-bottom: 1.2rem;
}

.course-after {
    max-width: none;
    margin: 0.75rem 0 0;
    font-size: 0.97rem;
    line-height: 1.4;
    text-align: center;
    color: rgba(255, 254, 249, 0.85);
}

/* The one line of "How it is taught" that asks for something (a tick for live streaming): lifted out of the rows
   so it is not missed (Qasim, 3 Dec 2026). */
.course-callout {
    max-width: none;
    margin: 1.5rem 0 0;
    padding: 1rem 1.25rem 1.1rem;
    background: var(--cream);
    border-left: 4px solid var(--gold);
    font-size: 1.06rem;
    line-height: 1.5;
    color: var(--charcoal);
}

.course-callout strong {
    display: block;
    margin-bottom: 0.15rem;
    font-weight: 700;
    color: var(--emerald-deep);
}

@media (min-width: 600px) {
    .course-callout {
        font-size: 1.125rem;
    }
}

/* ---------- Wider screens ---------- */

@media (min-width: 600px) {
    .course-rows div {
        display: grid;
        grid-template-columns: 170px minmax(0, 1fr);
        gap: 20px;
        padding: 1.05rem 0 1.1rem;
    }

    .course-fee .course-rows div {
        grid-template-columns: 210px minmax(0, 1fr);
    }

    .course-rows dt,
    .course-rows dd {
        font-size: 1.125rem;
    }

    .course-rows dd {
        margin: 0;
    }

    .course-outcomes {
        grid-template-columns: 1fr 1fr;
        gap: 18px;
    }

    .course-fee-action .btn {
        width: auto;
        padding-left: 2.75rem;
        padding-right: 2.75rem;
    }

    .course-after {
        text-align: left;
    }
}

@media (min-width: 600px) and (max-width: 899px) {
    .course-subjects {
        grid-template-columns: 1fr 1fr;
    }

    .course-subjects li {
        padding: 1.2rem 1.4rem 1.3rem 0;
    }

    .course-subjects li:nth-child(even) {
        padding-left: 1.4rem;
        border-left: 1px solid rgba(196, 169, 98, 0.5);
    }
}

@media (min-width: 900px) {
    /* Both teachers' cards fit on a laptop's first screen. */
    .course-top {
        padding-top: clamp(2rem, 3.4vw, 2.75rem);
    }

    .course-top-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 45%);
        gap: clamp(2rem, 5vw, 4rem);
        align-items: center;
    }

    .course-top h1 {
        font-size: clamp(3.2rem, 5.4vw, 4.4rem);
    }

    .course-top h1::before {
        margin-bottom: 1.25rem;
    }

    .course-strap {
        margin-top: 1.25rem;
    }

    .course-top .btn {
        margin-top: 1.75rem;
    }

    .course-portraits figcaption {
        padding: 0.85rem 1rem 1rem;
        font-size: clamp(1.1rem, 1.65vw, 1.31rem);
    }

    .course-subjects {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .course-subjects li {
        padding: 1.5rem 1.6rem 1.6rem 0;
    }

    .course-subjects li:not(:nth-child(3n + 1)) {
        padding-left: 1.6rem;
        border-left: 1px solid rgba(196, 169, 98, 0.5);
    }

    .course-split {
        grid-template-columns: minmax(0, 440px) minmax(0, 1fr);
        gap: clamp(2.5rem, 5.5vw, 4.5rem);
        align-items: start;
    }

    /* The price and Enrol now sit in the left column; the rows run down the right. */
    .course-fee-grid {
        grid-template-columns: minmax(0, 440px) minmax(0, 1fr);
        grid-template-rows: auto 1fr;
        grid-template-areas:
            'head rows'
            'action rows';
        column-gap: clamp(2.5rem, 5.5vw, 4.5rem);
        row-gap: 1.9rem;
    }

    .course-fee-head {
        grid-area: head;
    }

    .course-fee-rows {
        grid-area: rows;
    }

    .course-fee-action {
        grid-area: action;
    }
}
