/* ── Hero ────────────────────────────────────────────────────────────────────── */

.st-hero {
    background: var(--wp--preset--color--dark);
    padding: 0 0 56px;
}

/* ── Breadcrumb ─────────────────────────────────────────────────────────────── */

.st-breadcrumb {
    padding: 20px 0;
}

.st-breadcrumb .hl-bc-text a,
.st-breadcrumb .hl-bc-text span {
    color: rgba(245, 245, 252, 0.5);
}

.st-breadcrumb .hl-bc-text a:hover {
    color: var(--wp--preset--color--neutral-100);
}

.st-breadcrumb .hl-bc-home {
    color: rgba(245, 245, 252, 0.5);
}

.st-breadcrumb .hl-bc-home:hover {
    color: var(--wp--preset--color--neutral-100);
}

.st-breadcrumb .hl-bc-dyn .hl-bc-item--dyn:last-child,
.st-breadcrumb .hl-bc-text:not(:has(.hl-bc-dyn .hl-bc-item--dyn)) .hl-bc-item--page {
    color: var(--wp--preset--color--neutral-100);
}

.st-breadcrumb .hl-bc-ellipsis {
    display: none;
}

@media (min-width: 768px) {
    .st-breadcrumb .hl-bc-home-icon {
        display: none;
    }
}

@media (max-width: 767px) {
    .st-breadcrumb .hl-bc-home-label {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }
}

/* ── Hero layout ────────────────────────────────────────────────────────────── */

.st-hero-inner {
    display: flex;
    gap: 56px;
    align-items: flex-start;
}

/* ── Photo ──────────────────────────────────────────────────────────────────── */

.st-photo-wrap {
    flex-shrink: 0;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--wp--preset--color--black);
    display: flex;
    align-items: center;
    justify-content: center;
}

.st-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

.st-photo-placeholder {
    color: var(--wp--preset--color--neutral-300);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.st-photo-placeholder svg {
    width: 80px;
    height: 80px;
}

.st-photo-placeholder svg path {
    stroke: var(--wp--preset--color--white);
}

/* ── Hero text ──────────────────────────────────────────────────────────────── */

.st-hero-text {
    flex: 1;
    min-width: 0;
    padding-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.st-name {
    font-size: 40px;
    font-weight: 400;
    color: var(--wp--preset--color--white);
    margin: 0;
    line-height: 1.1;
}

.st-role {
    font-size: 16px;
    font-weight: 300;
    color: #e5046e;
    margin: 0;
    line-height: 1.4;
}

.st-hero-desc {
    font-size: 15px;
    font-weight: 300;
    color: rgba(245, 245, 252, 0.8);
    margin: 0;
    line-height: 1.6;
    max-width: 600px;
}

/* ── Body ───────────────────────────────────────────────────────────────────── */

.st-body {
    padding: 64px 0 80px;
}

.st-content {
    max-width: 760px;
}

/* ── Description ────────────────────────────────────────────────────────────── */

.st-description {
    font-size: 16px;
    font-weight: 300;
    color: var(--wp--preset--color--black);
    line-height: 1.7;
}

/* ── Divider ────────────────────────────────────────────────────────────────── */

.st-divider {
    border: none;
    border-top: 1px solid #e0e0ec;
    margin: 48px 0;
}

/* ── Related sections ───────────────────────────────────────────────────────── */

.st-related-title {
    font-size: 24px;
    font-weight: 400;
    color: var(--wp--preset--color--black);
    margin: 0 0 24px;
    line-height: 1.2;
}

.st-related-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ── Course card ────────────────────────────────────────────────────────────── */

.st-course-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 20px 24px;
    border: 1px solid #e0e0ec;
    border-radius: 4px;
    text-decoration: none;
    transition: border-color 0.15s, background 0.15s;
}

.st-course-card:hover {
    border-color: var(--wp--preset--color--black);
    background: var(--wp--preset--color--neutral-100);
}

.st-course-title {
    font-size: 16px;
    font-weight: 400;
    color: var(--wp--preset--color--black);
    line-height: 1.4;
    flex: 1;
    min-width: 0;
}

.st-course-date {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 300;
    color: var(--wp--preset--color--neutral-300);
    white-space: nowrap;
    flex-shrink: 0;
}

.st-course-date svg {
    flex-shrink: 0;
}

/* ── Dark mode ──────────────────────────────────────────────────────────────── */

html[data-theme="dark"] .st-hero {
    background-color: var(--wp--preset--color--black, #1A1A25);
}

html[data-theme="dark"] .st-page {
    background-color: var(--wp--preset--color--dark, #2E2E39);
}

html[data-theme="dark"] .st-description,
html[data-theme="dark"] .st-description h1,
html[data-theme="dark"] .st-description h2,
html[data-theme="dark"] .st-description h3,
html[data-theme="dark"] .st-description h4,
html[data-theme="dark"] .st-description p,
html[data-theme="dark"] .st-description li {
    color: rgba(255, 255, 255, 0.8);
}

html[data-theme="dark"] .st-divider {
    border-top-color: rgba(255, 255, 255, 0.1);
}

html[data-theme="dark"] .st-related-title {
    color: var(--wp--preset--color--white);
}

html[data-theme="dark"] .st-course-card {
    border-color: rgba(255, 255, 255, 0.1);
    background: transparent;
}

html[data-theme="dark"] .st-course-card:hover {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.04);
}

html[data-theme="dark"] .st-course-title {
    color: var(--wp--preset--color--white);
}

html[data-theme="dark"] .st-course-date {
    color: rgba(255, 255, 255, 0.5);
}

/* ── Responsive ─────────────────────────────────────────────────────────────── */

@media (max-width: 900px) {
    .st-hero-inner {
        gap: 32px;
    }

    .st-photo-wrap {
        width: 160px;
        height: 160px;
    }

    .st-name {
        font-size: 32px;
    }
}

@media (max-width: 640px) {
    .st-hero {
        padding-bottom: 40px;
    }

    .st-hero-inner {
        flex-direction: column;
        gap: 24px;
    }

    .st-photo-wrap {
        width: 120px;
        height: 120px;
    }

    .st-name {
        font-size: 26px;
    }

    .st-body {
        padding: 40px 0 60px;
    }

    .st-course-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}
