/*
 * ============================================================
 * M.H College
 * File: 42-courses.css
 * Purpose:
 * Courses page programmes, workshops and guidance sections
 * ============================================================
 */

/*
 * ============================================================
 * Main course programmes
 * ============================================================
 */

.course-programs {
    position: relative;
    overflow: hidden;

    padding-top: 76px;
    padding-bottom: 68px;

    background:
        radial-gradient(
            circle at 82% 8%,
            rgba(217, 173, 87, .07),
            transparent 30%
        ),
        #0a0908;
}

.course-programs::before {
    content: "";

    position: absolute;

    width: 460px;
    height: 460px;

    inset-block-start: -310px;
    inset-inline-start: -170px;

    background: rgba(166, 109, 38, .06);

    border-radius: 50%;

    filter: blur(90px);

    pointer-events: none;
}

.course-programs > .container {
    position: relative;
    z-index: 1;
}

.course-programs .section-heading {
    max-width: 860px;

    margin-inline: auto;
}

.course-programs .section-heading p:last-child {
    max-width: 720px;

    margin-inline: auto;
}

.course-programs-list {
    margin-top: 10px;
}

/*
 * ============================================================
 * Course feature row
 * ============================================================
 */

.course-feature {
    display: grid;

    grid-template-columns:
        minmax(0, 1.04fr)
        minmax(0, .96fr);

    align-items: center;

    gap: 64px;

    margin-bottom: 88px;

    direction: ltr;
}

.course-feature:last-child {
    margin-bottom: 0;
}

.course-feature.reverse .course-feature-media {
    order: 2;
}

/*
 * Course feature image
 */

.course-feature-media {
    position: relative;
    overflow: hidden;

    min-height: 0;

    aspect-ratio: 3 / 2;

    background: #111;

    border: 1px solid var(--line);
    border-radius: 28px;

    box-shadow: var(--shadow);
}

.course-feature-media::after {
    content: "";

    position: absolute;
    inset: 0;

    pointer-events: none;

    background:
        linear-gradient(
            180deg,
            transparent 58%,
            rgba(8, 8, 8, .2)
        );

    opacity: .6;

    transition:
        opacity .4s ease;
}

.course-feature-media img {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    transition:
        transform .85s var(--ease-luxury),
        filter .55s ease;
}

.course-feature-media:hover img {
    transform: scale(1.03);

    filter:
        brightness(1.045)
        saturate(1.035);
}

.course-feature-media:hover::after {
    opacity: .32;
}

/*
 * Course number badge
 */

.course-feature-media > span {
    position: absolute;

    top: 20px;
    inset-inline-end: 20px;

    z-index: 2;

    display: grid;
    place-items: center;

    width: 58px;
    height: 58px;

    color: #17110b;

    background:
        linear-gradient(
            135deg,
            var(--gold-light),
            var(--gold)
        );

    border: 1px solid rgba(255, 240, 199, .68);
    border-radius: 50%;

    font-weight: 900;

    box-shadow:
        0 10px 28px rgba(0, 0, 0, .24),
        inset 0 1px 0 rgba(255, 255, 255, .45);

    transition:
        transform .4s var(--ease-luxury),
        box-shadow .4s ease;
}

.course-feature-media:hover > span {
    transform:
        translateY(-2px)
        rotate(-4deg)
        scale(1.055);

    box-shadow:
        0 14px 32px rgba(0, 0, 0, .3),
        0 0 20px rgba(217, 173, 87, .2);
}

/*
 * ============================================================
 * Course feature content
 * ============================================================
 */

.course-feature-copy {
    direction: rtl;
    text-align: right;
}

.course-feature-copy h3 {
    max-width: 650px;

    margin: 0;

    color: var(--cream);

    font-size: clamp(
        2rem,
        3.2vw,
        3.05rem
    );

    line-height: 1.24;

    text-wrap: balance;
}

.course-feature-copy .lead {
    max-width: 650px;

    margin-top: 18px;

    color: var(--cream-2);

    font-size: 1.14rem;
    line-height: 1.85;
}

.course-feature-description {
    max-width: 650px;

    margin-top: 12px;

    color: #c9beaf;

    font-size: .98rem;
    line-height: 1.9;
}

/*
 * Course level and training format
 */

.course-facts {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 12px;

    max-width: 650px;

    margin: 24px 0 0;
}

.course-fact {
    min-width: 0;

    padding: 15px 17px;

    background:
        linear-gradient(
            180deg,
            rgba(217, 173, 87, .07),
            rgba(255, 255, 255, .012)
        );

    border: 1px solid rgba(217, 173, 87, .22);
    border-radius: 15px;

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .025);
}

.course-fact dt {
    margin: 0 0 5px;

    color: var(--gold-light);

    font-size: .79rem;
    font-weight: 800;
    line-height: 1.5;
}

.course-fact dd {
    margin: 0;

    color: var(--cream);

    font-size: .94rem;
    font-weight: 700;
    line-height: 1.65;
}

/*
 * Course suitable audience
 */

.course-suitable {
    max-width: 650px;

    margin-top: 20px;
    padding: 5px 18px 5px 0;

    border-inline-start: 3px solid var(--gold);
}

.course-suitable h4,
.course-topics h4 {
    margin: 0;

    color: var(--gold-light);

    font-size: .9rem;
    line-height: 1.6;
}

.course-suitable p {
    margin: 6px 0 0;

    color: #c9beaf;

    font-size: .94rem;
    line-height: 1.82;
}

/*
 * Course topics
 */

.course-topics {
    max-width: 650px;

    margin-top: 20px;
}

.course-topics ul {
    display: grid;

    gap: 9px;

    margin: 10px 0 0;
    padding: 0;

    list-style: none;
}

.course-topics li {
    display: flex;
    align-items: flex-start;

    gap: 10px;

    color: #ddd3c4;

    font-size: .94rem;
    line-height: 1.72;
}

.course-topics li .icon {
    width: 19px;
    height: 19px;

    flex: 0 0 19px;

    margin-top: 3px;

    color: var(--gold);
}

.course-feature-cta {
    margin-top: 27px;
}

/*
 * ============================================================
 * Professional workshops
 * ============================================================
 */

.workshops-section {
    position: relative;
    isolation: isolate;
    overflow: hidden;

    padding-top: 76px;
    padding-bottom: 70px;

    background:
        radial-gradient(
            circle at 15% 22%,
            rgba(217, 173, 87, .1),
            transparent 28%
        ),
        radial-gradient(
            circle at 88% 76%,
            rgba(125, 77, 28, .07),
            transparent 27%
        ),
        linear-gradient(
            180deg,
            #0d0c0a,
            #070707
        );

    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.workshops-section::before {
    content: "";

    position: absolute;
    z-index: -1;

    width: 500px;
    height: 500px;

    inset-block-start: -330px;
    inset-inline-end: -170px;

    background: rgba(217, 173, 87, .075);

    border-radius: 50%;

    filter: blur(96px);

    pointer-events: none;
}

.workshops-section .section-heading {
    max-width: 850px;

    margin-inline: auto;
}

.workshops-section .section-heading p:last-child {
    max-width: 720px;

    margin-inline: auto;
}

/*
 * Workshop grid
 *
 * Six grid columns allow the final two cards to be centered
 * cleanly beneath the first row of three.
 */

.workshop-grid {
    display: grid;

    grid-template-columns:
        repeat(6, minmax(0, 1fr));

    gap: 18px;

    margin-top: 8px;
}

.workshop-card {
    position: relative;
    overflow: hidden;

    display: flex;
    flex-direction: column;

    min-width: 0;
    min-height: 340px;

    grid-column: span 2;

    padding: 25px;

    background:
        radial-gradient(
            circle at 92% 0,
            rgba(217, 173, 87, .09),
            transparent 31%
        ),
        linear-gradient(
            155deg,
            rgba(27, 24, 19, .98),
            rgba(12, 12, 11, .99)
        );

    border: 1px solid rgba(217, 173, 87, .25);
    border-radius: 22px;

    box-shadow:
        0 18px 46px rgba(0, 0, 0, .28),
        inset 0 1px 0 rgba(255, 255, 255, .025);

    transition:
        transform .38s var(--ease-luxury),
        border-color .35s ease,
        box-shadow .38s var(--ease-luxury);
}

.workshop-card:nth-child(4) {
    grid-column:
        2 / span 2;
}

.workshop-card:nth-child(5) {
    grid-column:
        4 / span 2;
}

.workshop-card::before {
    content: "";

    position: absolute;

    width: 160px;
    height: 160px;

    inset-block-start: -105px;
    inset-inline-end: -75px;

    background: rgba(217, 173, 87, .085);

    border-radius: 50%;

    filter: blur(42px);

    pointer-events: none;
}

.workshop-card:hover {
    transform: translateY(-6px);

    border-color: rgba(245, 220, 152, .5);

    box-shadow:
        0 26px 56px rgba(0, 0, 0, .38),
        0 0 24px rgba(217, 173, 87, .07),
        inset 0 1px 0 rgba(255, 255, 255, .035);
}

/*
 * Workshop card header
 */

.workshop-card-top {
    position: relative;
    z-index: 1;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 18px;

    margin-bottom: 21px;
}

.workshop-number {
    color: rgba(245, 220, 152, .62);

    font-size: .87rem;
    font-weight: 900;
    letter-spacing: .08em;
}

.workshop-icon {
    display: grid;
    place-items: center;

    width: 52px;
    height: 52px;

    flex: 0 0 52px;

    color: var(--gold-light);

    background:
        linear-gradient(
            145deg,
            rgba(217, 173, 87, .15),
            rgba(217, 173, 87, .045)
        );

    border: 1px solid rgba(245, 220, 152, .31);
    border-radius: 16px;

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .035);
}

.workshop-icon .icon {
    width: 28px;
    height: 28px;
}

/*
 * Workshop card content
 */

.workshop-card h3 {
    position: relative;
    z-index: 1;

    margin: 0;

    color: var(--cream);

    font-size: 1.28rem;
    line-height: 1.55;

    text-wrap: balance;
}

.workshop-card > p {
    position: relative;
    z-index: 1;

    margin: 12px 0 24px;

    color: #bfb4a5;

    font-size: .92rem;
    line-height: 1.82;
}

.workshop-card-cta {
    position: relative;
    z-index: 1;

    width: 100%;
    min-height: 48px;

    margin-top: auto;
    padding-inline: 15px;

    font-size: .88rem;
    line-height: 1.5;
    text-align: center;

    white-space: normal;
}

.workshops-note {
    max-width: 700px;

    margin: 24px auto 0;

    color: #a99e90;

    font-size: .88rem;
    line-height: 1.7;
    text-align: center;
}

/*
 * ============================================================
 * Course guidance CTA
 * ============================================================
 */

.course-guidance-section {
    position: relative;
    overflow: hidden;

    padding: 64px 0;

    background:
        radial-gradient(
            circle at 78% 45%,
            rgba(217, 173, 87, .075),
            transparent 32%
        ),
        #080808;
}

.course-guidance-card {
    position: relative;
    isolation: isolate;
    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 42px;

    width: min(100%, 1040px);

    margin-inline: auto;
    padding: 38px 42px;

    background:
        radial-gradient(
            circle at 92% 4%,
            rgba(217, 173, 87, .13),
            transparent 31%
        ),
        linear-gradient(
            135deg,
            rgba(30, 25, 18, .985),
            rgba(13, 13, 12, .99)
        );

    border: 1px solid rgba(217, 173, 87, .36);
    border-radius: 28px;

    box-shadow:
        0 28px 70px rgba(0, 0, 0, .4),
        0 0 32px rgba(166, 109, 38, .065),
        inset 0 1px 0 rgba(255, 255, 255, .035);
}

.course-guidance-card::before {
    content: "";

    position: absolute;
    z-index: -1;

    width: 290px;
    height: 290px;

    inset-block-start: -190px;
    inset-inline-end: -95px;

    background: rgba(217, 173, 87, .12);

    border-radius: 50%;

    filter: blur(60px);

    pointer-events: none;
}

.course-guidance-content {
    flex: 1 1 auto;

    max-width: 680px;
}

.course-guidance-content h2 {
    max-width: 650px;

    margin: 0;

    color: var(--cream);

    font-size: clamp(
        1.95rem,
        3.2vw,
        2.85rem
    );

    line-height: 1.27;

    text-wrap: balance;
}

.course-guidance-content > p:last-child {
    max-width: 640px;

    margin: 12px 0 0;

    color: #c7bdad;

    font-size: .98rem;
    line-height: 1.82;
}

.course-guidance-cta {
    flex: 0 0 auto;

    min-height: 52px;

    padding-inline: 22px;

    white-space: nowrap;
}