/* ── Reset inherited container flex ─────────────────────────────── */
.hd-cat-page .container {
    display: block;
    max-width: 1080px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}

/* ── Hero ────────────────────────────────────────────────────────── */
.hd-hero {
    background: #f6f4f0;
    padding: 64px 0 56px;
}

.hd-crumb {
    color: var(--Core-Violet);
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
    opacity: .85;
    display: block;
    margin-bottom: 4px;
}

.hd-crumb:hover { opacity: 1; }

.hd-hero h1 {
    font-size: 52px;
    line-height: 1.05;
    letter-spacing: -1.5px;
    margin: 18px 0 14px;
    font-weight: 600;
    color: #1a1523;
    text-align: left;
}

.hd-hero p {
    color: #5b5566;
    font-size: 18px;
    max-width: 620px;
    margin: 0;
    line-height: 1.5;
}

/* ── Search — floats out of hero ─────────────────────────────────── */
.hd-search-wrap {
    margin-top: -28px;
    position: relative;
    z-index: 1;
    padding-bottom: 16px;
}

.hd-search {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border: 1px solid #ece8f2;
    border-radius: 14px;
    padding: 16px 20px;
    box-shadow: 0 12px 32px rgba(26, 21, 35, .08);
}

.hd-search svg {
    flex-shrink: 0;
    color: #9b94a8;
}

.hd-search input {
    border: 0;
    outline: 0;
    width: 100%;
    font-size: 16px;
    font-family: inherit;
    color: #1a1523;
    background: transparent;
}

.hd-search input::placeholder { color: #a7a1b3; }

/* ── Content ─────────────────────────────────────────────────────── */
.hd-content {
    padding: 32px 0 72px;
}

/* ── Groups ──────────────────────────────────────────────────────── */
.hd-group {
    margin-bottom: 44px;
}

.hd-group-head {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 18px;
}

.hd-group-head h2 {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .9px;
    text-transform: uppercase;
    color: var(--Core-Violet);
    margin: 0;
    white-space: nowrap;
}

.hd-count {
    font-size: 13px;
    color: #a7a1b3;
    font-weight: 500;
}

.hd-rule {
    flex: 1;
    height: 1px;
    background: #ece8f2;
    align-self: center;
}

/* ── Card grid ───────────────────────────────────────────────────── */
.hd-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.hd-article-card {
    display: block;
    text-decoration: none;
    background: #fff;
    border: 1px solid #ece8f2;
    border-radius: 16px;
    padding: 22px 24px;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.hd-article-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 36px rgba(107, 33, 232, .12);
    border-color: #d9ccf7;
}

.hd-article-card h3 {
    color: var(--Core-Violet);
    font-size: 17px;
    font-weight: 500;
    margin: 0 0 8px;
    line-height: 1.3;
}

.hd-article-card p {
    color: #5b5566;
    font-size: 14px;
    line-height: 1.55;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
}

.hd-arrow {
    margin-top: 14px;
    font-size: 13px;
    font-weight: 500;
    color: var(--Core-Violet);
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity .18s ease, transform .18s ease;
}

.hd-article-card:hover .hd-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* ── No results ──────────────────────────────────────────────────── */
.hd-no-results {
    display: none;
    text-align: center;
    color: #5b5566;
    padding: 40px;
    font-size: 16px;
}

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 1000px) {
    .hd-hero { padding: 48px 0 40px; }
    .hd-hero h1 { font-size: 38px; letter-spacing: -0.5px; }
    .hd-hero p { font-size: 16px; }
    .hd-search-wrap { margin-top: -20px; }
    .hd-grid { grid-template-columns: 1fr; gap: 12px; }
    .hd-article-card h3 { font-size: 15px; }
    .hd-arrow { opacity: 1; transform: none; }
}
