/* ═══════════════════════════════════════════════════════════
   Knowledge base — archive (light, brand-aligned, self-contained)
   ═══════════════════════════════════════════════════════════ */
.kb-main { background: #faf6f1; min-height: 100vh; }
.kb-container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
@media (min-width: 768px) { .kb-container { padding: 0 40px; } }

/* ─── Hero ─── */
.kb-hero {
    position: relative;
    padding: 130px 0 80px;
    overflow: hidden;
    text-align: center;
    isolation: isolate; /* contain blend modes / stacking */
}
/* Clean, banding-free backdrop — soft conic-ish wash via two overlaid
   layers + a subtle dot grid. No filter:blur, no concentric ring artifacts. */
.kb-hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background:
        radial-gradient(ellipse 70% 55% at 50% 0%, rgba(232, 52, 122, 0.10), transparent 60%),
        radial-gradient(ellipse 70% 50% at 90% 100%, rgba(255, 217, 184, 0.45), transparent 65%),
        radial-gradient(ellipse 70% 50% at 10% 100%, rgba(253, 200, 224, 0.45), transparent 65%),
        linear-gradient(180deg, #fffaf3 0%, #faf6f1 60%, #fdf2f8 100%);
}
.kb-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(205, 160, 127, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(205, 160, 127, 0.06) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(ellipse 80% 70% at center, #000 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at center, #000 30%, transparent 80%);
    pointer-events: none;
}
.kb-hero-inner { position: relative; z-index: 1; }
.kb-hero-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(232, 52, 122, 0.25);
    font-size: 11px; font-weight: 700;
    letter-spacing: 0.2em; text-transform: uppercase;
    color: #b91c5c;
    margin-bottom: 26px;
    box-shadow: 0 6px 18px -10px rgba(232, 52, 122, 0.3);
}
.kb-hero-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #e8347a;
    box-shadow: 0 0 0 0 rgba(232, 52, 122, 0.7);
    animation: kbPing 1.8s ease-out infinite;
}
@keyframes kbPing {
    0%   { box-shadow: 0 0 0 0 rgba(232, 52, 122, 0.55); }
    70%  { box-shadow: 0 0 0 10px rgba(232, 52, 122, 0); }
    100% { box-shadow: 0 0 0 0 rgba(232, 52, 122, 0); }
}
.kb-hero-title {
    font-size: clamp(38px, 6vw, 68px);
    font-weight: 500;
    line-height: 1.02;
    letter-spacing: -0.03em;
    color: #1a1a1a;
    margin: 0 auto 18px;
    max-width: 880px;
}
.kb-hero-title em {
    font-style: italic;
    font-weight: 400;
    font-family: "PlayfairDisplay", "Times New Roman", serif;
    background: linear-gradient(135deg, #e8347a 0%, #cda07f 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.kb-hero-sub {
    font-size: 17px;
    line-height: 1.55;
    color: rgba(42, 42, 42, 0.7);
    max-width: 620px;
    margin: 0 auto 26px;
    font-weight: 300;
}
.kb-hero-meta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(205, 160, 127, 0.3);
    font-size: 13px;
    color: rgba(42, 42, 42, 0.7);
    box-shadow: 0 6px 18px -10px rgba(42, 42, 42, 0.12);
}
.kb-hero-stat strong { color: #1a1a1a; font-weight: 700; }
.kb-hero-stat-sep { color: rgba(42, 42, 42, 0.25); }

/* ─── Category grid ─── */
.kb-overview { padding: 50px 0 110px; }
.kb-categories-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
}
@media (min-width: 720px) { .kb-categories-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .kb-categories-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; } }

.kb-category-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid rgba(205, 160, 127, 0.25);
    border-radius: 22px;
    padding: 28px 28px 24px;
    text-decoration: none;
    color: inherit;
    transition: all 0.25s cubic-bezier(.2,.7,.2,1);
    overflow: hidden;
}
.kb-category-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(232, 52, 122, 0.04) 0%, rgba(205, 160, 127, 0.04) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
.kb-category-card:hover {
    border-color: rgba(232, 52, 122, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 28px 60px -28px rgba(232, 52, 122, 0.28);
}
.kb-category-card:hover::before { opacity: 1; }

.kb-category-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    position: relative;
}
.kb-category-icon {
    width: 56px; height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(232, 52, 122, 0.12), rgba(205, 160, 127, 0.18));
    border: 1px solid rgba(232, 52, 122, 0.25);
    color: #e8347a;
    transition: transform 0.25s ease;
}
.kb-category-icon svg { width: 26px; height: 26px; }
.kb-category-card:hover .kb-category-icon {
    transform: scale(1.05) rotate(-3deg);
}
.kb-category-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}
.kb-category-count {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(42, 42, 42, 0.5);
    background: #faf6f1;
    border: 1px solid rgba(205, 160, 127, 0.3);
    padding: 4px 10px;
    border-radius: 999px;
}

.kb-category-title {
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #1a1a1a;
    margin: 0 0 10px;
    position: relative;
}
.kb-category-description {
    font-size: 14.5px;
    line-height: 1.55;
    color: rgba(42, 42, 42, 0.65);
    margin: 0 0 22px;
    position: relative;
}

.kb-category-articles {
    list-style: none;
    margin: 0 0 22px;
    padding: 18px 0 0;
    border-top: 1px solid rgba(205, 160, 127, 0.2);
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
}
.kb-article-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13.5px;
    color: rgba(42, 42, 42, 0.78);
    line-height: 1.4;
}
.kb-article-bullet {
    width: 14px; height: 14px;
    color: #e8347a;
    flex-shrink: 0;
}

.kb-category-more {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #e8347a;
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: -0.005em;
    transition: gap 0.18s ease;
    position: relative;
}
.kb-category-more svg { width: 15px; height: 15px; }
.kb-category-card:hover .kb-category-more { gap: 10px; }

/* ─── No content / seeder hint ─── */
.kb-no-content {
    text-align: center;
    padding: 60px 24px;
    background: #fff;
    border: 1px dashed rgba(205, 160, 127, 0.4);
    border-radius: 18px;
    color: rgba(42, 42, 42, 0.7);
}

/* ─── Breadcrumb wrapper ─── */
.kb-breadcrumb-wrapper {
    background: transparent;
    padding: 90px 0 0;
}
.kb-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: rgba(42, 42, 42, 0.55);
}
.kb-breadcrumb-link {
    color: rgba(42, 42, 42, 0.55);
    text-decoration: none;
    transition: color 0.18s;
}
.kb-breadcrumb-link:hover { color: #e8347a; }
.kb-breadcrumb-current { color: #1a1a1a; font-weight: 500; }
.kb-breadcrumb-separator { color: rgba(42, 42, 42, 0.25); }

@media (max-width: 540px) {
    .kb-hero { padding: 100px 0 50px; }
    .kb-hero-title { font-size: 36px; }
    .kb-hero-meta { flex-wrap: wrap; justify-content: center; gap: 8px; padding: 10px 16px; }
}
