@font-face {
    font-family: "Peyda";
    src: url("/assets/fonts/peyda/Peyda-Regular.woff2") format("woff2");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Peyda";
    src: url("/assets/fonts/peyda/Peyda-SemiBold.woff2") format("woff2");
    font-style: normal;
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: "Peyda";
    src: url("/assets/fonts/peyda/Peyda-Bold.woff2") format("woff2");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: "Peyda";
    src: url("/assets/fonts/peyda/Peyda-ExtraBold.woff2") format("woff2");
    font-style: normal;
    font-weight: 800;
    font-display: swap;
}

:root {
    --fh-courses-bg: #fbf8f4;
    --fh-courses-card: rgba(255, 255, 255, 0.94);
    --fh-courses-ink: #294940;
    --fh-courses-muted: #71817b;
    --fh-courses-green: #2eb483;
    --fh-courses-green-dark: #238966;
    --fh-courses-green-soft: #e7f7f1;
    --fh-courses-pink: #ed7890;
    --fh-courses-pink-dark: #d95772;
    --fh-courses-pink-soft: #fff0f4;
    --fh-courses-gold: #f1b843;
    --fh-courses-border: rgba(41, 73, 64, 0.10);
    --fh-courses-shadow: 0 18px 46px rgba(57, 76, 68, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    overflow-x: hidden;

    background:
        radial-gradient(circle at 11% 9%, rgba(237, 120, 144, 0.10), transparent 24%),
        radial-gradient(circle at 91% 34%, rgba(46, 180, 131, 0.08), transparent 25%),
        var(--fh-courses-bg);

    color: var(--fh-courses-ink);
    font-family: "Peyda", sans-serif;
}

button,
input,
textarea,
select {
    font: inherit;
}

.fh-courses-page {
    min-height: 100vh;
    padding: 18px 0 72px;
}

.fh-courses-container {
    width: min(100% - 40px, 1180px);
    margin-inline: auto;
}

.fh-courses-hero {
    position: relative;

    margin-top: 10px;
    padding: 28px 32px;

    overflow: hidden;

    border: 1px solid rgba(41, 73, 64, 0.07);
    border-radius: 26px;

    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.92),
            rgba(255, 249, 247, 0.88)
        );

    box-shadow:
        0 12px 34px rgba(57, 76, 68, 0.055);

    text-align: center;
}

.fh-courses-hero::before {
    content: "";

    position: absolute;
    width: 150px;
    height: 150px;

    top: -85px;
    right: -55px;

    border-radius: 50%;

    background:
        rgba(237, 120, 144, 0.10);

    pointer-events: none;
}

.fh-courses-hero::after {
    content: "";

    position: absolute;
    width: 140px;
    height: 140px;

    left: -60px;
    bottom: -90px;

    border-radius: 50%;

    background:
        rgba(46, 180, 131, 0.08);

    pointer-events: none;
}

.fh-courses-hero__title {
    position: relative;
    z-index: 1;

    margin: 0;

    color: #25483e;

    font-size: clamp(25px, 2.4vw, 36px);
    font-weight: 800;
    line-height: 1.55;

    letter-spacing: -0.02em;
}

.fh-courses-hero__title span {
    color: var(--fh-courses-pink-dark);
}

.fh-courses-hero__text {
    position: relative;
    z-index: 1;

    max-width: 520px;
    margin: 8px auto 0;

    color: #71817b;

    font-size: 12.5px;
    font-weight: 500;
    line-height: 1.9;
}

.fh-courses-list {
    padding-top: 56px;
}

.fh-courses-list__head {
    margin-bottom: 24px;

    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
}

.fh-courses-list__eyebrow {
    display: block;
    margin-bottom: 6px;
    color: var(--fh-courses-pink-dark);
    font-size: 10px;
    font-weight: 800;
}

.fh-courses-list__head h2 {
    margin: 0;
    color: var(--fh-courses-ink);
    font-size: 27px;
    font-weight: 800;
}

.fh-courses-list__head p {
    max-width: 440px;
    margin: 0;
    color: #7a8883;
    font-size: 11.5px;
    font-weight: 500;
    line-height: 1.95;
}

.fh-courses-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 410px));
    justify-content: center;
    gap: 18px;
}

.fh-public-course-card {
    width: 100%;
    min-width: 0;
    overflow: hidden;

    border: 1px solid var(--fh-courses-border);
    border-radius: 24px;

    background: var(--fh-courses-card);

    box-shadow:
        0 12px 30px rgba(57, 76, 68, 0.07);
}

.fh-public-course-card--featured {
    border-color: rgba(241, 184, 67, 0.55);
    box-shadow:
        0 22px 52px rgba(69, 74, 61, 0.10),
        0 0 0 4px rgba(241, 184, 67, 0.06);
}

.fh-public-course-card__media {
    position: relative;
    padding: 8px 8px 0;
}

.fh-public-course-card__image-link {
    display: block;
    overflow: hidden;
    border-radius: 18px;
}

.fh-public-course-card__media img {
    width: 100%;
    aspect-ratio: 16 / 8.6;

    display: block;

    object-fit: cover;
    border-radius: 18px;

    transition:
        transform 220ms ease,
        filter 220ms ease;
}
.fh-public-course-card__image-link:hover img {
    transform: scale(1.018);
    filter: saturate(1.03);
}

.fh-public-course-card__ribbon {
    position: absolute;
    left: 22px;
    right: auto;
    top: 22px;
    z-index: 3;

    padding: 7px 11px;
    border-radius: 999px;
    background: linear-gradient(135deg, #f5bd3f, #e6a928);
    color: #ffffff;

    font-size: 9.5px;
    font-weight: 800;

    box-shadow: 0 8px 18px rgba(206, 143, 18, 0.24);
}

/* Cardio Pro uses the homepage ribbon language without changing existing badges. */
.fh-public-course-card__ribbon--new {
    top: 10px;
    left: -30px;

    min-width: 76px;
    min-height: 26px;
    padding: 0 16px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    transform: rotate(-38deg);
    border-radius: 6px;

    font-size: 10px;
    line-height: 1;
}

.fh-public-course-card__status {
    position: absolute;
    right: 22px;
    left: auto;
    bottom: 10px;
    z-index: 3;

    max-width: calc(100% - 44px);
    padding: 7px 10px;

    border: 1px solid rgba(255,255,255,0.62);
    border-radius: 999px;

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    font-size: 9.5px;
    font-weight: 800;
    white-space: nowrap;
}

.fh-public-course-card__status--open {
    background: rgba(231, 247, 241, 0.92);
    color: #1e8a64;
}

.fh-public-course-card__status--waiting {
    background: rgba(255, 245, 225, 0.93);
    color: #a87515;
}

.fh-public-course-card__status--neutral {
    background: rgba(255, 255, 255, 0.90);
    color: #50655e;
}

.fh-public-course-card__status--soon {
    background: rgba(255, 240, 244, 0.92);
    color: #c85f77;
}

.fh-public-course-card__body {
    padding: 14px 16px 16px;
}

.fh-public-course-card__heading {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;

    direction: rtl;
}

.fh-public-course-card__audience {
    width: fit-content;
    max-width: 46%;
    flex: 0 0 auto;
    padding: 6px 10px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 999px;
    background: var(--fh-courses-pink-soft);
    color: var(--fh-courses-pink-dark);

    font-size: 9.5px;
    font-weight: 800;
    line-height: 1.35;
    text-align: center;
    white-space: nowrap;
}

.fh-public-course-card__title {
    min-width: 0;
    flex: 1 1 auto;
    margin: 0;

    font-size: 16px;
    font-weight: 800;
    line-height: 1.65;
    text-align: right;
}

.fh-public-course-card__title a {
    color: inherit;
    text-decoration: none;
}

.fh-public-course-card__title a:hover {
    color: var(--fh-courses-green-dark);
}

.fh-public-course-card__description {
    min-height: 0;
    margin: 6px 0 0;

    overflow: hidden;

    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;

    color: #71817b;

    font-size: 10.5px;
    font-weight: 500;
    line-height: 1.9;
}
.fh-public-course-card__chips {
    margin-top: 10px;

    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.fh-public-course-card__chips span {
    padding: 4px 7px;

    border-radius: 999px;

    background: rgba(41, 73, 64, 0.05);
    color: #5f716a;

    font-size: 8.5px;
    font-weight: 700;
}

.fh-public-course-card__price {
    min-height: 40px;
    margin-top: 12px;
    padding: 8px 11px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    border: 1px solid rgba(41, 73, 64, 0.08);
    border-radius: 13px;

    background: rgba(251, 249, 246, 0.72);
}

.fh-public-course-card__price > span {
    color: #7d8a85;
    font-size: 10px;
    font-weight: 700;
}

.fh-public-course-card__price > div {
    display: flex;
    align-items: baseline;
    gap: 9px;
}

.fh-public-course-card__price del {
    color: #a5ada9;
    font-size: 9.5px;
    font-weight: 600;
}

.fh-public-course-card__price strong {
    color: #294940;
    font-size: 14px;
    font-weight: 800;
}

.fh-public-course-card__button {
    min-height: 42px;
    margin-top: 10px;
    padding: 0 14px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    border-radius: 13px;

    background:
        linear-gradient(135deg, #35bd8c, #269d73);

    color: #ffffff;
    text-decoration: none;

    font-size: 10.5px;
    font-weight: 800;

    box-shadow:
        0 8px 18px rgba(46, 180, 131, 0.17),
        inset 0 1px 0 rgba(255, 255, 255, 0.20);

    transition:
        transform 180ms ease,
        box-shadow 180ms ease;
}
.fh-public-course-card__button:hover {
    transform: translateY(-1px);
    box-shadow:
        0 16px 28px rgba(46, 180, 131, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.20);
}

.fh-public-course-card__button span {
    font-size: 17px;
    line-height: 1;
}

.fh-public-course-card__button--disabled {
    background: #f2f0ee;
    color: #969f9b;
    box-shadow: none;
    cursor: default;
}

.fh-public-course-card--coming-soon .fh-public-course-card__media img {
    filter: saturate(0.78) opacity(0.86);
}

.fh-courses-help {
    margin-top: 30px;
    padding: 24px 26px;

    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;

    border: 1px solid rgba(41, 73, 64, 0.08);
    border-radius: 26px;

    background:
        linear-gradient(135deg, rgba(241, 251, 247, 0.95), rgba(255, 250, 246, 0.96));

    box-shadow: 0 16px 38px rgba(49, 74, 65, 0.06);
}

.fh-courses-help__icon {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    border-radius: 17px;
    background: rgba(46, 180, 131, 0.12);
    color: var(--fh-courses-green-dark);
}

.fh-courses-help__icon svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.fh-courses-help__content > span {
    color: var(--fh-courses-pink-dark);
    font-size: 9.5px;
    font-weight: 800;
}

.fh-courses-help__content h2 {
    margin: 3px 0 0;
    font-size: 17px;
    font-weight: 800;
}

.fh-courses-help__content p {
    margin: 5px 0 0;
    color: #73817c;
    font-size: 10.5px;
    line-height: 1.9;
}

.fh-courses-help__button {
    min-height: 44px;
    padding: 0 16px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    border: 1px solid rgba(46, 180, 131, 0.14);
    border-radius: 15px;
    background: #ffffff;
    color: var(--fh-courses-green-dark);
    text-decoration: none;

    font-size: 10.5px;
    font-weight: 800;
}

.fh-courses-page--not-found {
    display: grid;
    align-items: center;
}

.fh-courses-not-found {
    max-width: 620px;
    margin: 90px auto;
    padding: 52px 28px;
    text-align: center;
    border: 1px solid rgba(41, 73, 64, 0.09);
    border-radius: 34px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--fh-courses-shadow);
}

.fh-courses-not-found__code {
    color: rgba(217, 87, 114, 0.22);
    font-size: 72px;
    font-weight: 800;
    line-height: 1;
}

.fh-courses-not-found h1 {
    margin: 10px 0 0;
    font-size: 25px;
    font-weight: 800;
}

.fh-courses-not-found p {
    margin: 8px auto 0;
    color: var(--fh-courses-muted);
    font-size: 12px;
    line-height: 2;
}

.fh-courses-not-found a {
    min-height: 44px;
    margin-top: 18px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: var(--fh-courses-green);
    color: #fff;
    text-decoration: none;
    font-size: 11px;
    font-weight: 800;
}

@media (max-width: 900px) {
    .fh-courses-page {
        padding: 10px 0 48px;
    }

    .fh-courses-container {
        width: min(100% - 24px, 620px);
    }

    .fh-courses-hero {
        min-height: 0;
        padding: 28px 22px 24px;
        grid-template-columns: 1fr;
        gap: 20px;
        border-radius: 28px;
        text-align: center;
    }

    .fh-courses-hero__eyebrow {
        margin-inline: auto;
    }

    .fh-courses-hero__title {
        margin-inline: auto;
        font-size: 28px;
        line-height: 1.65;
    }

    .fh-courses-hero__text {
        max-width: 390px;
        margin-inline: auto;
        font-size: 11.8px;
    }

    .fh-courses-hero__visual {
        min-height: 150px;
    }

    .fh-courses-hero__orb--one {
        width: 130px;
        height: 130px;
        right: 18px;
    }

    .fh-courses-hero__orb--two {
        width: 115px;
        height: 115px;
        left: 20px;
    }

    .fh-courses-hero__mini-card {
        min-width: 150px;
        padding: 13px 14px;
        border-radius: 19px;
        text-align: right;
    }

    .fh-courses-hero__mini-card strong {
        font-size: 12px;
    }

    .fh-courses-hero__mini-card span {
        font-size: 9px;
    }

    .fh-courses-hero__mini-card--pink {
        top: 8px;
        left: 5px;
    }

    .fh-courses-hero__mini-card--green {
        right: 5px;
        bottom: 4px;
    }

    .fh-courses-list {
        padding-top: 36px;
    }

    .fh-courses-list__head {
        display: block;
        text-align: center;
    }

    .fh-courses-list__head h2 {
        font-size: 22px;
    }

    .fh-courses-list__head p {
        max-width: 350px;
        margin: 7px auto 0;
        font-size: 10.5px;
    }

   .fh-courses-grid {
    grid-template-columns: minmax(0, 340px);
    justify-content: center;
    gap: 14px;
}

.fh-public-course-card {
    width: calc(100% - 12px);
    max-width: 340px;
    margin-inline: auto;

    border-radius: 21px;
}
    .fh-public-course-card__media {
        padding: 9px 9px 0;
    }

    .fh-public-course-card__media img,
    .fh-public-course-card__image-link {
        border-radius: 18px;
    }

    .fh-public-course-card__ribbon {
        left: 17px;
        right: auto;
        top: 17px;
        font-size: 8.8px;
    }

    .fh-public-course-card__ribbon--new {
        top: 9px;
        left: -28px;
        min-width: 70px;
        min-height: 24px;
        padding-inline: 14px;
        font-size: 9px;
    }

.fh-public-course-card__status {
    right: 17px;
    left: auto;
    bottom: 7px;
    font-size: 8.7px;
}

 .fh-public-course-card__body {
    padding: 12px 13px 14px;
}

.fh-public-course-card__heading {
    gap: 8px;
}

.fh-public-course-card__audience {
    max-width: 48%;
    padding: 5px 8px;
    font-size: 8.6px;
}

.fh-public-course-card__title {
    font-size: 14px;
    line-height: 1.7;
}

    .fh-public-course-card__description {
        min-height: 0;
        font-size: 10.7px;
    }

    .fh-public-course-card__price {
        margin-top: 14px;
    }

    .fh-public-course-card__price strong {
        font-size: 12.5px;
    }

    .fh-public-course-card__button {
        min-height: 46px;
        margin-top: 14px;
        font-size: 10.8px;
    }

    .fh-courses-help {
        margin-top: 22px;
        padding: 20px 18px;
        grid-template-columns: auto minmax(0, 1fr);
        gap: 12px;
        border-radius: 23px;
    }

    .fh-courses-help__icon {
        width: 44px;
        height: 44px;
        border-radius: 15px;
    }

    .fh-courses-help__content h2 {
        font-size: 14px;
    }

    .fh-courses-help__button {
        grid-column: 1 / -1;
        width: 100%;
        margin-top: 3px;
    }
}

@media (max-width: 420px) {
    .fh-courses-hero {
        padding-inline: 17px;
    }

    .fh-courses-hero__title {
        font-size: 25px;
    }

    .fh-courses-hero__visual {
        min-height: 140px;
    }

    .fh-courses-hero__mini-card {
        min-width: 142px;
    }

    .fh-public-course-card__chips {
        gap: 5px;
    }

    .fh-public-course-card__chips span {
        font-size: 8.5px;
    }
}
