/* Standalone component. No global resets, external fonts or JavaScript. */
.courses-hero {
    --courses-hero-text: #07224a;
    --courses-hero-muted: #53739c;
    --courses-hero-green: #007d67;
    --courses-hero-green-hover: #007b63;
    --courses-hero-white: #fff;
    --courses-hero-soft: #e8f5f0;
    --courses-hero-focus: #075dab;
    container: courses-hero / inline-size;
    width: 100%;
    min-width: 0;
    color: var(--courses-hero-text);
    font: 400 14px/1.45 Arial, Helvetica, sans-serif;
    text-align: left;
    isolation: isolate;
}

.courses-hero,
.courses-hero :where(div, span, h1, p, a, ul, li, strong, img, svg) {
    box-sizing: border-box;
}

.courses-hero :where(h1, p, ul) { margin: 0; }
.courses-hero :where(ul) { padding: 0; list-style: none; }
.courses-hero :where(a) { text-decoration: none; }
.courses-hero :where(img) { border: 0; }

.courses-hero__inner {
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin-inline: auto;
    overflow: hidden;
}

.courses-hero__visual { position: absolute; inset: 0; pointer-events: none; }
.courses-hero__image {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center top;
}
.courses-hero__image--desktop { display: none; }

.courses-hero__copy {
    position: relative;
    z-index: 1;
    min-width: 0;
    min-height: clamp(575px, 155cqi, 640px);
    padding: 20px;
}

.courses-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    max-width: 100%;
    min-height: 34px;
    padding: 6px 15px;
    border-radius: 12px;
    background: #edf8f3;
    color: var(--courses-hero-green);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
}
.courses-hero__badge-icon { display: block; width: 17px; height: 17px; flex: 0 0 auto; }

.courses-hero__title {
    max-width: 340px;
    margin-top: 21px;
    color: var(--courses-hero-text);
    font-size: 36px;
    font-weight: 700;
    line-height: 1.19;
    letter-spacing: -.015em;
    overflow-wrap: break-word;
}
.courses-hero__title-line { display: block; }
.courses-hero__description {
    max-width: 238px;
    margin-top: 23px;
    color: #385475;
    font-size: 14px;
    line-height: 1.25;
    overflow-wrap: break-word;
}

.courses-hero__students { width: max-content; max-width: 100%; margin-top: 20px; text-align: center; }
.courses-hero__avatars { display: flex; align-items: center; padding-left: 0; }
.courses-hero__avatar,
.courses-hero__avatar-count {
    display: block;
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border: 2px solid var(--courses-hero-white);
    border-radius: 50%;
    object-fit: cover;
    background: #eaf7f2;
}
.courses-hero__avatar + .courses-hero__avatar,
.courses-hero__avatar-count { margin-left: -9px; }
.courses-hero__avatar-count {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--courses-hero-green);
    font-size: 12px;
    font-weight: 700;
}
.courses-hero__student-count { margin-top: 6px; color: var(--courses-hero-text); font-size: 14px; font-weight: 700; line-height: 1.35; }

.courses-hero__actions {
    position: relative;
    z-index: 2;
    min-width: 0;
    padding: 15px 15px 0;
    border-radius: 20px 20px 0 0;
    background: var(--courses-hero-white);
}
.courses-hero__start {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    min-height: 52px;
    padding: 12px 44px;
    border: 1px solid transparent;
    border-radius: 20px;
    background: linear-gradient(110deg, #008563, #007d67);
    color: var(--courses-hero-white);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
    transition: filter .18s ease, transform .18s ease;
}
.courses-hero__start-icon { position: absolute; right: 16px; width: 20px; height: 20px; flex: 0 0 auto; }
.courses-hero__start-label { min-width: 0; text-align: center; overflow-wrap: break-word; }
.courses-hero__start:hover { filter: brightness(.94); }
.courses-hero__start:active { transform: translateY(1px); }
.courses-hero__start:focus-visible { outline: 3px solid var(--courses-hero-focus); outline-offset: 3px; }

.courses-hero__benefits {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
    gap: 8px;
    min-width: 0;
    margin-top: 11px;
    padding: 10px;
    border-radius: 15px;
    background: #fff;
}
.courses-hero__benefit { display: flex; align-items: center; gap: 7px; min-width: 0; }
.courses-hero__benefit + .courses-hero__benefit { border-left: 1px solid #dce5ef; padding-left: 8px; }
.courses-hero__benefit-icon { display: flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; color: var(--courses-hero-green); background: var(--courses-hero-soft); }
.courses-hero__icon { display: block; width: 25px; height: 25px; }
.courses-hero__benefit-copy { display: block; min-width: 0; }
.courses-hero__benefit-title { display: block; color: var(--courses-hero-text); font-size: 11px; font-weight: 700; line-height: 1.35; }
.courses-hero__benefit-description { display: block; margin-top: 2px; color: var(--courses-hero-muted); font-size: 10px; line-height: 1.35; }

@container courses-hero (max-width: 359px) {
    .courses-hero__copy { padding-inline: 16px; }
    .courses-hero__title { font-size: 32px; }
    .courses-hero__description { max-width: 218px; }
    .courses-hero__actions { padding-inline: 12px; }
    .courses-hero__benefits { gap: 6px; padding: 10px 3px; }
    .courses-hero__benefit { gap: 5px; }
    .courses-hero__benefit + .courses-hero__benefit { padding-left: 6px; }
    .courses-hero__benefit-icon { width: 31px; height: 31px; }
    .courses-hero__icon { width: 21px; height: 21px; }
    .courses-hero__benefit-title { font-size: 10px; }
    .courses-hero__benefit-description { font-size: 9px; }
}

@container courses-hero (min-width: 560px) and (max-width: 899px) {
    .courses-hero__copy { min-height: 620px; padding: 30px; }
    .courses-hero__title { max-width: 430px; font-size: 42px; }
    .courses-hero__description { max-width: 320px; font-size: 15px; line-height: 1.45; }
    .courses-hero__actions { padding: 20px 30px 15px; }
    .courses-hero__benefits { gap: 18px; padding-inline: 15px; }
    .courses-hero__benefit-title { font-size: 13px; }
    .courses-hero__benefit-description { font-size: 12px; }
}

/* Desktop stays compact while text remains free to grow at larger font sizes. */
@container courses-hero (min-width: 900px) {
    .courses-hero__inner { min-height: 470px; border-radius: 20px; }
    .courses-hero__inner { background: #f0f8fb; }
    .courses-hero__visual { left: 45%; }
    .courses-hero__image--mobile { display: none; }
    .courses-hero__image--desktop { display: block; object-position: center; }
    .courses-hero__visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #f0f8fb 0%, #f0f8fbbd 20%, #f0f8fb1a 44%, transparent 58%); }
    .courses-hero__copy { width: 52%; min-height: 0; padding: 28px 36px 0; }
    .courses-hero__badge { min-height: 32px; font-size: 13px; }
    .courses-hero__title { max-width: 560px; margin-top: 16px; font-size: 42px; line-height: 1.12; }
    .courses-hero__description { max-width: 475px; margin-top: 16px; font-size: 15px; line-height: 1.45; }
    .courses-hero__students { display: flex; align-items: center; gap: 12px; margin-top: 16px; text-align: left; }
    .courses-hero__student-count { margin-top: 0; font-size: 13px; }
    .courses-hero__actions { width: 52%; margin-top: 18px; padding: 0 36px 26px; border-radius: 0; background: transparent; }
    .courses-hero__start { min-height: 48px; border-radius: 14px; }
    .courses-hero__benefits { margin-top: 10px; padding: 10px; border: 1px solid #e2edf3; background: #ffffffd9; }
    .courses-hero__benefit-title { font-size: 12px; }
    .courses-hero__benefit-description { font-size: 11px; }
}

@container courses-hero (min-width: 1200px) {
    .courses-hero__copy { width: 48%; padding-left: 44px; }
    .courses-hero__title { font-size: 44px; }
    .courses-hero__actions { width: 48%; padding-left: 44px; }
}

@media (prefers-reduced-motion: reduce) {
    .courses-hero__start { transition: none; }
}
