/* Catalog landing — top-level segments */

.gh-catalog {
    --gh-teal: #257785;
    --gh-teal-hover: #1d6270;
    --gh-muted: #8a94a3;
    --gh-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    box-sizing: border-box;
    max-width: 1200px;
    margin: 0 auto;
    padding: 8px 15px 64px;
    font-family: var(--gh-font);
    color: #111;
}

.gh-catalog * {
    box-sizing: border-box;
}

.gh-catalog__crumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0 18px;
    font-size: 14px;
    color: var(--gh-muted);
}

.gh-catalog__crumbs a {
    color: var(--gh-teal);
    text-decoration: none;
}

.gh-catalog__crumbs a:hover {
    color: var(--gh-teal-hover);
}

.gh-catalog__title {
    margin: 0 0 28px;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
}

.gh-catalog__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.gh-catalog__card,
.gh-catalog__card:link,
.gh-catalog__card:visited,
.gh-catalog__card:hover,
.gh-catalog__card:focus,
.gh-catalog__card:active {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 220px;
    overflow: hidden;
    border-radius: 18px;
    text-decoration: none;
    color: #fff !important;
    background: #1c6b79;
}

.gh-catalog__media {
    position: absolute;
    inset: 0;
    background-color: #1c6b79;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    transform: scale(1);
    transition: transform 0.25s ease;
}

.gh-catalog__card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 20%, rgba(0, 0, 0, 0.62) 100%);
}

.gh-catalog__card:hover .gh-catalog__media,
.gh-catalog__card:focus-visible .gh-catalog__media {
    transform: scale(1.04);
}

.gh-catalog__name {
    position: relative;
    z-index: 1;
    display: block;
    padding: 22px 20px;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.25;
    color: #fff !important;
    transition: color 0.2s ease;
}

.gh-catalog__card:hover .gh-catalog__name,
.gh-catalog__card:focus-visible .gh-catalog__name {
    color: #fff !important;
}

.gh-catalog__empty {
    color: var(--gh-muted);
}

.gh-catalog__cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: 100%;
    margin-top: 40px;
    padding: 28px 32px;
    border-radius: 18px;
    background: #1c6b79;
    color: #fff;
    font-family: var(--gh-font, "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
    box-sizing: border-box;
}

.gh-catalog__cta *,
.gh-catalog__cta *::before,
.gh-catalog__cta *::after {
    box-sizing: border-box;
}

.gh-catalog__cta--archive {
    margin-top: 8px;
    margin-bottom: 8px;
}

.gh-catalog__cta-label {
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 700;
}

.gh-catalog__cta-text {
    margin: 0;
    color: #d3e7eb;
    font-size: 15px;
    line-height: 1.45;
}

.gh-catalog__cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 10px 22px;
    border-radius: 10px;
    background: #32a7ba;
    color: #fff !important;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none !important;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.gh-catalog__cta-btn:hover,
.gh-catalog__cta-btn:focus {
    background: #257785;
    color: #fff !important;
}

@media (max-width: 991px) {
    .gh-catalog__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gh-catalog__title {
        font-size: 30px;
    }

    .gh-catalog__cta {
        flex-direction: column;
        align-items: flex-start;
        padding: 24px;
    }
}

@media (max-width: 575px) {
    .gh-catalog {
        padding: 4px 12px 48px;
    }

    .gh-catalog__grid {
        grid-template-columns: 1fr;
    }

    .gh-catalog__card {
        min-height: 200px;
    }

    .gh-catalog__cta-btn {
        width: 100%;
    }
}
