/* ============================================================
   CATEGORY ARCHIVE — TEMPLATE v1
   Scope: .sc-cat only. Safe for all other pages.
   ============================================================ */

.sc-cat {
    background: #f7f8fb;
}

/* ============================================================
   HERO
   ============================================================ */
.sc-cat-hero {
    position: relative;
    padding: 72px 0 56px;
    background: #07121d;
    color: #fff;
    overflow: hidden;
    isolation: isolate;
}
.sc-cat-hero-glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background:
        radial-gradient(600px 340px at 15% 0%, rgba(211, 32, 39, .24), transparent 60%),
        radial-gradient(800px 420px at 90% 20%, rgba(64, 120, 255, .16), transparent 65%);
}
.sc-cat-hero .container { max-width: 1180px; text-align: center; }

.sc-cat-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(255,255,255,.55);
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.sc-cat-breadcrumb a {
    color: rgba(255,255,255,.65);
    text-decoration: none;
    transition: color .15s ease;
}
.sc-cat-breadcrumb a:hover { color: #fff; }
.sc-cat-breadcrumb > span[aria-hidden] { color: rgba(255,255,255,.3); }
.sc-cat-breadcrumb-current { color: #fff; font-weight: 500; }

.sc-cat-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .14);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 22px;
}
.sc-cat-eyebrow-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #d32027;
    box-shadow: 0 0 0 4px rgba(211, 32, 39, .22);
}

.sc-cat-title {
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -.02em;
    margin: 0 0 18px;
    color: #fff;
}

.sc-cat-desc {
    max-width: 760px;
    margin: 0 auto 28px;
    font-size: 17px;
    line-height: 1.7;
    color: rgba(255, 255, 255, .78);
}
.sc-cat-desc p { margin: 0; }
.sc-cat-desc strong { color: #fff; font-weight: 600; }

.sc-cat-meta {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
    color: rgba(255,255,255,.7);
    font-size: 14px;
}
.sc-cat-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.sc-cat-meta-item svg {
    width: 16px;
    height: 16px;
    color: rgba(255,255,255,.55);
}
.sc-cat-meta-sep {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255,255,255,.3);
}

/* ============================================================
   CHIP NAV
   ============================================================ */
.sc-cat-chips-sec {
    background: #fff;
    border-bottom: 1px solid #eceff3;
    padding: 22px 0;
    position: sticky;
    top: 0;
    z-index: 20;
    box-shadow: 0 1px 0 rgba(0,0,0,.02);
}
.sc-cat-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}
.sc-cat-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 999px;
    background: #f3f5f9;
    border: 1px solid #e4e7ed;
    color: #1a2130;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all .18s ease;
    white-space: nowrap;
}
.sc-cat-chip:hover {
    background: #fff;
    border-color: #c9cfd8;
    color: #07121d;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(7, 18, 29, .06);
}
.sc-cat-chip.is-active {
    background: #07121d;
    border-color: #07121d;
    color: #fff;
}
.sc-cat-chip.is-active .sc-cat-chip-count {
    background: rgba(255,255,255,.16);
    color: #fff;
}
.sc-cat-chip-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    padding: 0 7px;
    height: 20px;
    border-radius: 999px;
    background: #e4e7ed;
    color: #5a6473;
    font-size: 11px;
    font-weight: 600;
}

/* ============================================================
   BODY SECTION
   ============================================================ */
.sc-cat-body-sec { padding: 56px 0 72px; }

/* ============================================================
   POSTS GRID + CARDS
   ============================================================ */
.sc-cat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
@media (max-width: 767px) {
    .sc-cat-grid { grid-template-columns: 1fr; }
}

.sc-cat-card {
    background: #fff;
    border: 1px solid #eceff3;
    border-radius: 16px;
    overflow: hidden;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
    display: flex;
}
.sc-cat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(7, 18, 29, .09);
    border-color: #dde1e8;
}
.sc-cat-card-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    width: 100%;
}

.sc-cat-card-media {
    position: relative;
    aspect-ratio: 16 / 10;
    background: #eceff3;
    overflow: hidden;
}
.sc-cat-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
    display: block;
}
.sc-cat-card:hover .sc-cat-card-media img { transform: scale(1.04); }
.sc-cat-card-media-fallback {
    width: 100%; height: 100%;
    background:
        radial-gradient(400px 200px at 20% 20%, rgba(211, 32, 39, .18), transparent 60%),
        radial-gradient(400px 200px at 80% 80%, rgba(64, 120, 255, .18), transparent 65%),
        #07121d;
}

.sc-cat-card-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 5px 11px;
    border-radius: 999px;
    background: rgba(7, 18, 29, .85);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    backdrop-filter: blur(6px);
}

.sc-cat-card-body {
    padding: 22px 22px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.sc-cat-card-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.35;
    color: #07121d;
    margin: 0 0 10px;
    letter-spacing: -.01em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.sc-cat-card:hover .sc-cat-card-title { color: #d32027; }

.sc-cat-card-excerpt {
    color: #5a6473;
    font-size: 14.5px;
    line-height: 1.65;
    margin: 0 0 18px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.sc-cat-card-foot {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-top: 14px;
    border-top: 1px solid #f0f2f6;
    font-size: 13px;
    color: #6c7684;
}
.sc-cat-card-meta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.sc-cat-card-meta svg { width: 14px; height: 14px; color: #9aa3b2; }
.sc-cat-card-more {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #d32027;
    font-weight: 600;
    font-size: 13px;
}
.sc-cat-card-more svg {
    width: 14px; height: 14px;
    transition: transform .2s ease;
}
.sc-cat-card:hover .sc-cat-card-more svg { transform: translateX(3px); }

/* ============================================================
   PAGINATION
   ============================================================ */
.sc-cat-pagination {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}
.sc-cat-pagination-item .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #e4e7ed;
    color: #1a2130;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all .15s ease;
}
.sc-cat-pagination-item .page-numbers:hover {
    border-color: #07121d;
    color: #07121d;
}
.sc-cat-pagination-item .page-numbers.current {
    background: #07121d;
    border-color: #07121d;
    color: #fff;
}
.sc-cat-pagination-item .page-numbers.dots {
    background: transparent;
    border-color: transparent;
    color: #9aa3b2;
}

/* ============================================================
   EMPTY STATE
   ============================================================ */
.sc-cat-empty {
    background: #fff;
    border: 1px dashed #dde1e8;
    border-radius: 18px;
    padding: 56px 28px;
    text-align: center;
}
.sc-cat-empty-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 18px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f3f5f9;
    color: #5a6473;
}
.sc-cat-empty-icon svg { width: 28px; height: 28px; }
.sc-cat-empty h3 {
    font-size: 22px;
    font-weight: 700;
    color: #07121d;
    margin: 0 0 8px;
}
.sc-cat-empty p {
    color: #5a6473;
    font-size: 15px;
    margin: 0 0 22px;
    line-height: 1.6;
}
.sc-cat-empty-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: 999px;
    background: #d32027;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all .18s ease;
}
.sc-cat-empty-cta:hover {
    background: #b81a20;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(211, 32, 39, .28);
}
.sc-cat-empty-cta svg { width: 16px; height: 16px; }

/* ============================================================
   RESPONSIVE TWEAKS
   ============================================================ */
@media (max-width: 991px) {
    .sc-cat-hero { padding: 56px 0 44px; }
    .sc-cat-body-sec { padding: 40px 0 56px; }
    .sc-cat-chips-sec { position: static; }
}
@media (max-width: 767px) {
    .sc-cat-hero { padding: 44px 0 36px; }
    .sc-cat-title { font-size: 32px; }
    .sc-cat-desc { font-size: 15.5px; }
    .sc-cat-chips-sec { padding: 16px 0; }
    .sc-cat-chips {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding: 0 4px 6px;
        scrollbar-width: none;
    }
    .sc-cat-chips::-webkit-scrollbar { display: none; }
    .sc-cat-card-body { padding: 18px 18px 16px; }
    .sc-cat-card-title { font-size: 18px; }
}
