/* =========================================
   TIMELESS FACTORS
   Courses Page
========================================= */

:root {
    --tf-forest: #263718;
    --tf-olive: #53633b;
    --tf-sage: #879171;

    --tf-cream: #f4efe4;
    --tf-paper: #fbf8f1;
    --tf-sand: #ded2bd;

    --tf-earth: #84694b;

    --tf-charcoal: #262820;
    --tf-muted: #686b60;

    --tf-container: 1240px;

    --tf-radius-sm: 8px;
    --tf-radius-md: 16px;
    --tf-radius-lg: 28px;
}


/* =========================================
   GENERAL
========================================= */

.tf-courses {
    background: var(--tf-paper);
    color: var(--tf-charcoal);
    overflow: hidden;
}

.tf-container {
    width: min(calc(100% - 48px), var(--tf-container));
    margin-inline: auto;
}

.tf-courses h1,
.tf-courses h2,
.tf-courses h3 {
    color: var(--tf-forest);
}

.tf-courses h1,
.tf-courses h2,
.tf-courses h3 {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 400;
}

.tf-courses p {
    line-height: 1.75;
}


/* =========================================
   EYEBROW
========================================= */

.tf-courses .tf-eyebrow {
    display: block;
    margin-bottom: 18px;

    text-transform: uppercase;
    letter-spacing: .16em;

    font-size: .75rem;
    font-weight: 600;

    color: var(--tf-olive);
}


/* =========================================
   HERO
========================================= */

.tf-courses-hero {
    padding: 100px 50 110px;
    background: var(--tf-cream);
}

.tf-courses-hero h1 {
    margin: 0 0 28px;

    font-size: clamp(3.5rem, 6vw, 6rem);
    line-height: .96;
    letter-spacing: -.045em;
}

.tf-courses-hero__lead {
    max-width: 680px;

    margin: 50;

    color: var(--tf-muted);
    font-size: 1.12rem;
}


/* =========================================
   COURSE CATALOGUE
========================================= */

.tf-course-catalogue {
    padding: 140px 0;
}

.tf-section-heading {
    max-width: 760px;
    margin-bottom: 70px;
}

.tf-section-heading h2 {
    margin: 0;

    font-size: clamp(2.7rem, 4vw, 4.4rem);
    line-height: 1.05;
}

.tf-course-grid {
    display: block;
}

.tf-course-card {
    width: 100%;
    min-height: auto;
    padding: 44px;
    display: grid;
    grid-template-columns: 220px 1fr;
    column-gap: 60px;
    background: var(--tf-cream);
    border: 1px solid var(--tf-sand);
    border-radius: var(--tf-radius-lg);
    transition: transform .25s ease,
                box-shadow .25s ease,
                border-color .25s ease;
}

.tf-course-card:hover {
    transform: translateY(-4px);
    border-color: var(--tf-olive);
    box-shadow: 0 18px 45px rgba(38, 55, 24, .08);
}


/* LEFT SIDE */

.tf-course-card__top {
    grid-column: 1;
    grid-row: 1 / span 2;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;

    gap: 12px;
    padding: 0;
    border: 0;
}

.tf-course-card__code,
.tf-course-card__category {
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.tf-course-card__code {
    color: var(--tf-olive);
}

.tf-course-card__category {
    color: var(--tf-muted);
    text-align: left;
}


/* COURSE INFORMATION */

.tf-course-card__content {
    grid-column: 2;
    padding: 0;
}

.tf-course-card h3 {
    margin: 0;
    max-width: 700px;
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1.05;
}

.tf-course-card__description {
    max-width: 760px;
    margin: 22px 0 0;
    color: var(--tf-muted);
    font-size: .98rem;
    line-height: 1.75;
}


/* DURATION + FEES */

.tf-course-card__meta {
    display: flex;
    gap: 70px;
    margin-top: 35px;
}

.tf-course-card__meta div {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.tf-course-card__meta span {
    color: var(--tf-muted);
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .12em;
}

.tf-course-card__meta strong {
    color: var(--tf-forest);
    font-size: 1rem;
    font-weight: 600;
}


/* SPECIALISATIONS */

.tf-course-card__specialisations {
    margin-top: 35px;
    padding-top: 28px;
    border-top: 1px solid var(--tf-sand);
}

.tf-course-card__specialisations > span {
    display: block;
    margin-bottom: 18px;
    color: var(--tf-forest);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.tf-course-card__specialisations ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px 35px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tf-course-card__specialisations li {
    position: relative;
    padding-left: 16px;
    color: var(--tf-muted);
    font-size: .88rem;
    line-height: 1.5;
}

.tf-course-card__specialisations li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--tf-olive);
}


/* APPLY BUTTON */

.tf-course-card__link {
    grid-column: 2;

    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-top: 35px;
    padding-top: 24px;

    color: var(--tf-forest);
    border-top: 1px solid var(--tf-sand);

    font-size: .9rem;
    font-weight: 600;
    text-decoration: none;
}

.tf-course-card__link span:last-child {
    font-size: 1.25rem;
    transition: transform .2s ease;
}

.tf-course-card:hover .tf-course-card__link span:last-child {
    transform: translateX(5px);
}

@media (max-width: 800px) {

    .tf-course-card {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 30px;
    }

    .tf-course-card__top {
        grid-column: 1;
        grid-row: auto;

        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    .tf-course-card__content {
        grid-column: 1;
    }

    .tf-course-card__meta {
        gap: 45px;
    }

    .tf-course-card__link {
        grid-column: 1;
    }

}


@media (max-width: 600px) {

    .tf-course-card {
        padding: 24px;
    }

    .tf-course-card__top {
        flex-direction: column;
        align-items: flex-start;
    }

    .tf-course-card__meta {
        flex-direction: column;
        gap: 20px;
    }

    .tf-course-card__specialisations ul {
        grid-template-columns: 1fr;
    }

}