/* ── Headline - 3 block ───────────────────────────────────────────────────── */

.hl3-block {
    position: relative;
    overflow: hidden;
    padding-top: 24px;
    padding-bottom: 80px;
    background-color: var(--wp--preset--color--black);
}

.hl3-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 292px;
    background: linear-gradient(180deg, rgba(26, 26, 37, 0) 0%, rgba(26, 26, 37, 1) 100%);
    pointer-events: none;
}

/* ── Optional background photo ───────────────────────────────────────────── */

.hl3-photo {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    pointer-events: none;
}

.hl3-photo-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .3);
    pointer-events: none;
}

.hl3-block--has-image {
    min-height: 372px;
}

.hl3-block--has-image .hl3-bg {
    height: auto;
    bottom: 0;
}

@media (max-width: 600px) {
    .hl3-block--has-image {
        min-height: 400px;
    }
}

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

.hl3-block .hl-breadcrumb {
    position: relative;
    z-index: 1;
    padding-top: 16px;
    padding-bottom: 8px;
}

.hl3-block .hl-bc-text {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 300;
    line-height: 16px;
    color: rgba(255, 255, 255, 0.75);
}

.hl3-block .hl-bc-text a,
.hl3-block .hl-bc-text span {
    font-size: 12px;
    font-weight: 300;
    line-height: 16px;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
}

.hl3-block .hl-bc-text a:hover {
    color: var(--wp--preset--color--white);
    text-decoration: underline;
}

.hl3-block .hl-bc-home {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
}

.hl3-block .hl-bc-home:hover {
    color: var(--wp--preset--color--white);
}

.hl3-block .hl-bc-home-icon {
    flex-shrink: 0;
    vertical-align: middle;
}

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

.hl3-block .hl-bc-dyn .hl-bc-item--dyn:last-child {
    color: var(--wp--preset--color--white);
    font-weight: 400;
}

.hl3-block .hl-bc-text:not(:has(.hl-bc-dyn .hl-bc-item--dyn)) .hl-bc-item--page {
    color: var(--wp--preset--color--white);
    font-weight: 400;
}

.hl3-block .hl-breadcrumb .breadcrumb_last,
.hl3-block .hl-breadcrumb .rank-math-breadcrumb span:last-child {
    color: var(--wp--preset--color--white);
}

.hl3-block .hl-bc-ellipsis {
    display: none;
    background: none;
    border: none;
    padding: 0;
    font-size: 12px;
    font-weight: 300;
    line-height: 16px;
    color: rgba(255, 255, 255, 0.75);
    cursor: pointer;
    font-family: inherit;
}

.hl3-block .hl-bc-ellipsis:hover {
    color: var(--wp--preset--color--white);
}

@media (max-width: 767px) {
    .hl3-block .hl-breadcrumb .container {
        overflow-x: auto;
        scrollbar-width: none;
    }

    .hl3-block .hl-breadcrumb .container::-webkit-scrollbar {
        display: none;
    }

    .hl3-block .hl-bc-text {
        flex-wrap: nowrap;
        white-space: nowrap;
        width: 100%;
    }

    .hl3-block .hl-bc-home-label {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .hl3-block .hl-bc-text.is-collapsed .hl-bc-item--mid {
        display: none;
    }

    .hl3-block .hl-bc-text.is-collapsed .hl-bc-item--page {
        display: none;
    }

    .hl3-block .hl-bc-text.is-collapsed .hl-bc-dyn .hl-bc-item--dyn:not(:last-child) {
        display: none;
    }

    .hl3-block .hl-bc-text.is-collapsed .hl-bc-ellipsis {
        display: inline;
    }
}

/* ── Content ──────────────────────────────────────────────────────────────── */

.hl3-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 640px;
    padding-top: 8px;
    padding-bottom: 40px;
}

.hl3-label {
    margin: 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    color: var(--wp--preset--color--yellow, #FFE500);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hl3-title {
    margin: 0;
    font-size: 40px;
    font-weight: 700;
    line-height: 1;
    color: var(--wp--preset--color--white);
}

.hl3-desc {
    margin: 0;
    font-size: 16px;
    font-weight: 300;
    line-height: 24px;
    color: #e4e4ea;
}

.hl3-btn {
    align-self: flex-start;
    margin-top: 24px;
}

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

@media (max-width: 991px) {
    .hl3-block {
        padding-bottom: 56px;
    }

    .hl3-title {
        font-size: 32px;
    }

    .hl3-inner {
        max-width: 100%;
    }
}

@media (max-width: 600px) {
    .hl3-title {
        font-size: 32px;
    }
}
