/* ==========================================================================
   KLUKVA EDITORIAL PAGE STYLES — UNIVERSAL INNER PAGES & 404
   ========================================================================== */

.editorial-page {
    background-color: #171918;
    color: #f4f0e8;
    font-family: 'Onest', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    min-height: 100vh;
}

.editorial-page-container {
    max-width: 1366px;
    margin: 0 auto;
    width: 100%;
    padding: 0 40px;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .editorial-page-container {
        padding: 0 20px;
    }
}

/* Page Header (Dark Editorial Cranberry, Unified with Site) */
.editorial-page-header {
    background: #171918;
    color: #fdf7ef;
    padding: clamp(140px, 15vw, 185px) 0 clamp(44px, 5vw, 68px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
}

.editorial-page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1400px;
    height: 100%;
    background: radial-gradient(circle at 30% 0%, rgba(181, 46, 73, 0.12) 0%, rgba(23, 25, 24, 0) 70%);
    pointer-events: none;
    z-index: 0;
}

.editorial-page-header .editorial-page-container {
    position: relative;
    z-index: 1;
}

.editorial-page-kicker {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #ec93a6;
    margin-bottom: 22px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(181, 46, 73, 0.12);
    border: 1px solid rgba(181, 46, 73, 0.28);
    padding: 5px 14px;
    border-radius: 100px;
}

.editorial-kicker-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #ec93a6;
    box-shadow: 0 0 8px #ec93a6;
}

.editorial-page-kicker .editorial-kicker-sep,
.editorial-page-kicker .kicker-sep {
    opacity: 0.5;
    color: #ec93a6;
}

.editorial-page-title {
    font-family: 'Onest', sans-serif;
    font-size: clamp(34px, 4.8vw, 64px);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.12;
    color: #ffffff;
    margin: 0 0 20px;
}

.editorial-page-title em {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-style: italic;
    font-weight: 400;
    color: #ec93a6;
}

.editorial-page-lead {
    font-size: 17px;
    line-height: 1.7;
    color: #b0b7b2;
    max-width: 960px;
    margin: 0;
}

/* Page Body Content (Dark Warm Graphite) */
.editorial-page-body {
    background-color: #171918;
    padding: clamp(52px, 6vw, 90px) 0 clamp(64px, 8vw, 110px);
}

.editorial-page-content {
    width: 100%;
    max-width: 100%;
    font-size: 16px;
    line-height: 1.8;
    color: #c9cecb;
}

.editorial-page-content h2 {
    font-family: 'Onest', sans-serif;
    font-size: clamp(24px, 2.8vw, 36px);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.25;
    color: #ffffff;
    margin: 54px 0 22px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.editorial-page-content h2 em {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-style: italic;
    color: #ec93a6;
}

.editorial-page-content h3 {
    font-family: 'Onest', sans-serif;
    font-size: clamp(19px, 2.2vw, 26px);
    font-weight: 600;
    letter-spacing: -0.015em;
    line-height: 1.35;
    color: #f4f0e8;
    margin: 38px 0 16px;
}

.editorial-page-content p {
    margin-bottom: 22px;
}

.editorial-page-content strong {
    color: #ffffff;
    font-weight: 600;
}

.editorial-page-content a {
    color: #ec93a6;
    text-decoration: none;
    border-bottom: 1px solid rgba(236, 147, 166, 0.4);
    transition: color 0.2s, border-color 0.2s;
}

.editorial-page-content a:hover {
    color: #ffffff;
    border-color: #fe0243;
}

.editorial-page-content ul,
.editorial-page-content ol {
    margin: 0 0 28px 24px;
    padding: 0;
}

.editorial-page-content li {
    margin-bottom: 12px;
    line-height: 1.75;
}

.editorial-page-content li::marker {
    color: #b52e49;
}

.editorial-page-content blockquote {
    margin: 36px 0;
    padding: 24px 32px;
    background: rgba(181, 46, 73, 0.06);
    border-left: 3px solid #b52e49;
    border-radius: 0 8px 8px 0;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-style: italic;
    font-size: 21px;
    line-height: 1.55;
    color: #f4f0e8;
}

/* Page Bottom CTA Section */
.editorial-page-cta {
    background-color: #422129;
    color: #f5ede6;
    padding: clamp(64px, 8vw, 110px) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.editorial-cta-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.editorial-cta-kicker {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #e0b9bf;
    margin-bottom: 20px;
    display: block;
}

.editorial-page-cta h2 {
    font-size: clamp(34px, 4vw, 56px);
    font-weight: 500;
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin: 0 0 18px;
}

.editorial-page-cta h2 em {
    font-family: 'Cormorant', Georgia, serif;
    font-style: italic;
    color: #ecb3be;
}

.editorial-page-cta p {
    color: #d7c0ba;
    font-size: 16px;
    line-height: 1.65;
    max-width: 500px;
    margin: 0;
}

.editorial-cta-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
}

.editorial-cta-btn {
    display: inline-flex;
    flex-direction: column;
    gap: 3px;
    padding: 16px 26px;
    background: #b52e49;
    color: #fff !important;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.2s, transform 0.2s;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.editorial-cta-btn:hover {
    background: #cd3a57;
    transform: translateY(-2px);
}

.editorial-cta-btn .cta-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.85;
}

.editorial-cta-btn strong {
    font-size: 19px;
    font-weight: 600;
}

.editorial-cta-chat {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 22px;
    background: transparent;
    color: #f5ede6;
    border: 1px solid rgba(245, 237, 230, 0.35);
    border-radius: 4px;
    font-family: 'Onest', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.editorial-cta-chat:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

/* 404 Specifics */
.not-found-page .editorial-page-header {
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.not-found-actions {
    display: flex;
    gap: 18px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.editorial-cta-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 26px;
    background: #b52e49;
    color: #fff !important;
    border-radius: 4px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: background 0.2s, transform 0.2s;
}

.editorial-cta-btn-primary:hover {
    background: #cd3a57;
    transform: translateY(-2px);
}

.editorial-cta-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    color: #252a26;
    border: 1px solid rgba(37, 42, 38, 0.25);
    border-radius: 4px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: border-color 0.2s, background 0.2s;
}

.editorial-cta-btn-secondary:hover {
    border-color: #99334b;
    background: rgba(153, 51, 75, 0.06);
}

@media (max-width: 900px) {
    .editorial-cta-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }
}

/* ==========================================================================
   KLUKVA SINGLE POST EDITORIAL STYLES
   ========================================================================== */

.editorial-single .single-article-header {
    background: #171918;
    color: #fdf7ef;
    padding: clamp(130px, 14vw, 175px) 0 clamp(44px, 5vw, 68px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.single-breadcrumbs {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    letter-spacing: 0.08em;
    color: #8c938e;
    margin-bottom: 22px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.single-breadcrumbs a {
    color: #b0b7b2;
    text-decoration: none;
    border-bottom: 1px dotted rgba(176, 183, 178, 0.4);
    transition: color 0.2s, border-color 0.2s;
}

.single-breadcrumbs a:hover {
    color: #ec93a6;
    border-bottom-color: #ec93a6;
}

.single-breadcrumbs .breadcrumb-sep {
    opacity: 0.45;
    color: #8c938e;
}

.single-breadcrumbs .breadcrumb-current {
    color: #ec93a6;
    font-weight: 500;
}

.single-meta-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.single-cat-badge {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 4px 12px;
    background: rgba(181, 46, 73, 0.15);
    color: #ec93a6;
    border: 1px solid rgba(181, 46, 73, 0.35);
    border-radius: 4px;
}

.single-date,
.single-read-time {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: #8c938e;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.single-title {
    font-family: 'Onest', sans-serif;
    font-size: clamp(32px, 4.4vw, 56px);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.15;
    color: #ffffff;
    margin: 0 0 20px;
    max-width: 100%;
}

.single-title em {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-style: italic;
    font-weight: 400;
    color: #ec93a6;
}

.single-lead {
    font-size: clamp(17px, 1.8vw, 21px);
    line-height: 1.6;
    color: #b0b7b2;
    max-width: 100%;
    margin-top: 16px;
    border-left: 3px solid #b52e49;
    padding-left: 20px;
}

.single-lead p {
    margin: 0;
}

/* Body Section — Full Site Container Width */
.single-body-section {
    background-color: #171918;
    padding: clamp(48px, 6vw, 84px) 0 clamp(64px, 8vw, 100px);
}

.single-layout-container {
    max-width: 1366px;
    width: 100%;
}

.editorial-single .editorial-page-content,
.editorial-single .single-content-body {
    max-width: 100%;
    width: 100%;
}

.single-article-entry {
    color: #d1d6d3;
    font-size: 18px;
    line-height: 1.82;
    width: 100%;
    max-width: 100%;
}

/* Featured Media — Full Site Width */
.single-featured-figure {
    width: 100%;
    max-width: 100%;
    margin: 0 0 54px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: #111312;
}

.single-featured-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 680px;
}

.single-featured-caption {
    padding: 12px 20px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: #8c938e;
    background: rgba(0, 0, 0, 0.35);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* Content Headings & Text */
.single-content-body h2 {
    font-size: clamp(24px, 2.8vw, 36px);
    font-weight: 500;
    letter-spacing: -0.035em;
    line-height: 1.25;
    color: #f4f0e8;
    margin: 54px 0 22px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.single-content-body h2:first-child {
    margin-top: 0;
}

.single-content-body h3 {
    font-size: clamp(19px, 2.2vw, 26px);
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.35;
    color: #f4f0e8;
    margin: 40px 0 16px;
}

.single-content-body h4 {
    font-size: 18px;
    font-weight: 600;
    color: #e7abb5;
    margin: 32px 0 14px;
}

.single-content-body p {
    margin: 0 0 22px;
}

.single-content-body strong {
    color: #fff;
    font-weight: 600;
}

.single-content-body a {
    color: #e7abb5;
    text-decoration: none;
    border-bottom: 1px solid rgba(231, 171, 181, 0.4);
    transition: color 0.2s, border-color 0.2s;
}

.single-content-body a:hover {
    color: #fff;
    border-bottom-color: #fe0243;
}

/* Lists */
.single-content-body ul,
.single-content-body ol {
    margin: 0 0 28px 24px;
    padding: 0;
}

.single-content-body li {
    margin-bottom: 12px;
    line-height: 1.7;
}

.single-content-body li::marker {
    color: #b52e49;
}

/* Blockquotes */
.single-content-body blockquote {
    margin: 36px 0;
    padding: 24px 30px;
    background: rgba(181, 46, 73, 0.05);
    border-left: 3px solid #b52e49;
    border-radius: 0 8px 8px 0;
    font-family: 'Cormorant', Georgia, serif;
    font-style: italic;
    font-size: 21px;
    line-height: 1.55;
    color: #f4f0e8;
}

/* Tables inside articles */
.single-content-body table {
    width: 100%;
    margin: 36px 0;
    border-collapse: collapse;
    font-size: 15px;
    line-height: 1.55;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    overflow: hidden;
}

.single-content-body th,
.single-content-body td {
    padding: 14px 18px;
    text-align: left;
    vertical-align: top;
}

.single-content-body th {
    background: rgba(181, 46, 73, 0.18);
    color: #fff;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    letter-spacing: 0.04em;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.single-content-body td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    color: #c9cecb;
}

.single-content-body tr:last-child td {
    border-bottom: none;
}

.single-content-body tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

/* In-body images — Full Site Width */
.single-content-body img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin: 36px auto;
    display: block;
}

.single-content-body figure {
    margin: 40px auto;
    max-width: 100%;
    width: 100%;
}

.single-content-body figure.wp-caption,
.single-content-body .wp-caption {
    max-width: 100% !important;
    width: 100% !important;
}

.single-content-body figure.wp-caption img,
.single-content-body .wp-caption img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.single-content-body figcaption {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    color: #8c938e;
    text-align: center;
    margin-top: 12px;
}

/* Author Bio Card — Full Site Width */
.single-author-card {
    margin-top: 64px;
    padding: 40px 48px;
    background: #1e2220;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    gap: 36px;
    align-items: flex-start;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.author-card-avatar {
    flex-shrink: 0;
}

.author-card-avatar img {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #b52e49;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.author-card-info {
    flex-grow: 1;
}

.author-card-kicker {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #e7abb5;
    margin-bottom: 8px;
    display: block;
}

.author-card-name {
    font-size: 22px;
    font-weight: 600;
    color: #f4f0e8;
    margin: 0 0 10px;
    letter-spacing: -0.02em;
}

.author-card-bio {
    font-size: 15px;
    line-height: 1.65;
    color: #b0b7b2;
    margin: 0 0 20px;
}

.author-card-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.author-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 18px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none !important;
    transition: transform 0.2s, background 0.2s, border-color 0.2s;
}

.author-cta-btn--max {
    background: #b52e49;
    color: #fff !important;
    border: 1px solid #b52e49;
}

.author-cta-btn--max:hover {
    background: #cd3a57;
    border-color: #cd3a57;
    transform: translateY(-2px);
}

.author-cta-btn--phone {
    background: rgba(255, 255, 255, 0.05);
    color: #f4f0e8 !important;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.author-cta-btn--phone:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Post Navigation (Prev / Next) */
.single-post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 48px;
    padding-top: 36px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.post-nav-col {
    display: flex;
    flex-direction: column;
}

.post-nav-next {
    text-align: right;
    align-items: flex-end;
}

.post-nav-link {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-decoration: none !important;
    padding: 18px 22px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    width: 100%;
    box-sizing: border-box;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.post-nav-link:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(181, 46, 73, 0.4);
    transform: translateY(-2px);
}

.post-nav-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #8c938e;
}

.post-nav-title {
    font-size: 16px;
    font-weight: 500;
    color: #f4f0e8;
    line-height: 1.4;
}

.post-nav-link:hover .post-nav-title {
    color: #e7abb5;
}

/* Bottom Consultation Banner */
.single-consult-banner {
    background-color: #3b1d24;
    color: #f5ede6;
    padding: clamp(56px, 7vw, 90px) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.single-consult-inner {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 48px;
    align-items: center;
}

.single-consult-kicker {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #e0b9bf;
    margin-bottom: 12px;
    display: block;
}

.single-consult-title {
    font-size: clamp(28px, 3.4vw, 46px);
    font-weight: 500;
    letter-spacing: -0.035em;
    line-height: 1.15;
    margin: 0 0 16px;
    color: #f5ede6;
}

.single-consult-title em {
    font-family: 'Cormorant', Georgia, serif;
    font-style: italic;
    color: #f0c3cc;
}

.single-consult-desc {
    font-size: 16px;
    line-height: 1.65;
    color: #d7c0ba;
    margin: 0;
    max-width: 580px;
}

.single-consult-actions {
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
}

.single-consult-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 15px 24px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none !important;
    transition: transform 0.2s, background 0.2s, border-color 0.2s;
    width: 100%;
    max-width: 320px;
    justify-content: center;
}

.single-consult-btn--max {
    background: #b52e49;
    color: #fff !important;
    border: 1px solid #b52e49;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.single-consult-btn--max:hover {
    background: #cd3a57;
    border-color: #cd3a57;
    transform: translateY(-2px);
}

.single-consult-btn--phone {
    background: rgba(255, 255, 255, 0.08);
    color: #f5ede6 !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.single-consult-btn--phone:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.35);
    transform: translateY(-2px);
}

@media (max-width: 820px) {
    .single-author-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 28px 20px;
        gap: 20px;
    }

    .author-card-actions {
        justify-content: center;
    }

    .single-post-nav {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .post-nav-next {
        text-align: left;
        align-items: flex-start;
    }

    .single-consult-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .single-consult-btn {
        max-width: 100%;
    }
}

/* ==========================================================================
   BLOG & CATEGORY ARCHIVES (Warm Editorial System)
   ========================================================================== */

/* Category Filter Navigation Pills */
.archive-cats-nav {
    margin-top: clamp(28px, 4vw, 42px);
    width: 100%;
}

.archive-cats-scroll {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.cat-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 9999px;
    color: #3e4540;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    transition: all 0.22s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.cat-pill:hover {
    background: #f7f5f0;
    border-color: rgba(181, 46, 73, 0.4);
    color: #99334b;
    transform: translateY(-1px);
}

.cat-pill-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 10px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 600;
    color: #636d67;
    transition: background 0.22s ease, color 0.22s ease;
}

.cat-pill--active {
    background: #99334b;
    border-color: #99334b;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(153, 51, 75, 0.25);
}

.cat-pill--active .cat-pill-count {
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff;
}

.cat-pill--active:hover {
    background: #84293f;
    border-color: #84293f;
    color: #ffffff !important;
}

/* Archive Body Section */
.archive-body-section {
    background-color: #171918;
    padding: clamp(56px, 7vw, 96px) 0;
}

/* Featured Masterpiece Card (Page 1) */
.archive-featured-card {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: clamp(28px, 4vw, 56px);
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: clamp(48px, 6vw, 72px);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.archive-featured-card:hover {
    border-color: rgba(181, 46, 73, 0.35);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.featured-card-media {
    position: relative;
    min-height: 380px;
    overflow: hidden;
    background: #202422;
}

.featured-media-link {
    display: block;
    width: 100%;
    height: 100%;
}

.featured-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.archive-featured-card:hover .featured-img {
    transform: scale(1.04);
}

.featured-card-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(28px, 4vw, 44px) clamp(24px, 3.5vw, 44px) clamp(28px, 4vw, 44px) 0;
}

.featured-meta-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.badge-featured {
    background: #b52e49;
    color: #ffffff;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 4px 10px;
    border-radius: 4px;
}

.featured-cat-tag {
    background: rgba(255, 255, 255, 0.07);
    color: #e8d0d5;
    font-size: 12px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.featured-date, .featured-read {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: #8c948e;
}

.featured-title {
    font-size: clamp(24px, 2.8vw, 36px);
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: -0.03em;
    margin: 0 0 18px;
}

.featured-title a {
    color: #f4f0e8;
    text-decoration: none;
    transition: color 0.2s ease;
}

.featured-title a:hover {
    color: #e7abb5;
}

.featured-excerpt {
    font-size: 16px;
    line-height: 1.65;
    color: #a4aca6;
    margin-bottom: 28px;
}

.featured-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    flex-wrap: wrap;
}

.featured-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.featured-author-img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(181, 46, 73, 0.5);
}

.featured-author-info {
    display: flex;
    flex-direction: column;
}

.featured-author-info strong {
    font-size: 14px;
    color: #f4f0e8;
    font-weight: 600;
}

.featured-author-info span {
    font-size: 12px;
    color: #8c948e;
}

.featured-read-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #b52e49;
    color: #ffffff !important;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none !important;
    transition: all 0.22s ease;
}

.featured-read-btn:hover {
    background: #cd3a57;
    transform: translateX(3px);
}

/* Grid Header */
.archive-grid-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding-bottom: 16px;
    margin-bottom: 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.archive-grid-title {
    font-size: clamp(20px, 2.2vw, 28px);
    font-weight: 500;
    color: #f4f0e8;
    letter-spacing: -0.02em;
    margin: 0;
}

.archive-grid-count {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    color: #7f8782;
}

/* 3-Column Articles Grid */
.archive-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

/* Card */
.archive-card {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.archive-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(181, 46, 73, 0.35);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.archive-card-thumb {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #202422;
}

.card-thumb-link {
    display: block;
    width: 100%;
    height: 100%;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.archive-card:hover .card-img {
    transform: scale(1.05);
}

.card-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #232725 0%, #171918 100%);
}

.placeholder-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.1em;
    color: #6d7570;
    text-transform: uppercase;
}

.card-badges-float {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    pointer-events: none;
}

.card-cat-badge {
    background: rgba(23, 25, 24, 0.88);
    backdrop-filter: blur(8px);
    color: #e8d0d5;
    font-size: 11px;
    font-weight: 500;
    padding: 4px 9px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 170px;
}

.card-time-badge {
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(8px);
    color: #a4aca6;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
}

.archive-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-date-row {
    margin-bottom: 10px;
}

.card-date {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: #7f8782;
}

.card-title {
    font-size: 19px;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: -0.02em;
    margin: 0 0 12px;
}

.card-title a {
    color: #f4f0e8;
    text-decoration: none;
    transition: color 0.2s ease;
}

.card-title a:hover {
    color: #e7abb5;
}

.card-excerpt {
    font-size: 14px;
    line-height: 1.6;
    color: #9da6a0;
    margin: 0 0 22px;
    flex-grow: 1;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: auto;
}

.card-author-name {
    font-size: 13px;
    color: #7f8782;
    font-weight: 500;
}

.card-action-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #e7abb5;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.card-action-link:hover {
    color: #ffffff;
    transform: translateX(2px);
}

/* Pagination */
.archive-pagination-wrap {
    margin-top: clamp(48px, 6vw, 72px);
    display: flex;
    justify-content: center;
}

.archive-pagination-wrap .page-numbers {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
    justify-content: center;
}

.archive-pagination-wrap .page-numbers li {
    margin: 0;
}

.archive-pagination-wrap .page-numbers a,
.archive-pagination-wrap .page-numbers span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 14px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #c9cecb;
    font-size: 14px;
    font-weight: 500;
    font-family: 'JetBrains Mono', monospace;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.archive-pagination-wrap .page-numbers a:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.25);
    color: #ffffff;
    transform: translateY(-1px);
}

.archive-pagination-wrap .page-numbers .current {
    background: #b52e49;
    border-color: #b52e49;
    color: #ffffff !important;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(181, 46, 73, 0.3);
}

.archive-pagination-wrap .page-numbers .prev,
.archive-pagination-wrap .page-numbers .next {
    font-family: 'Onest', sans-serif;
    padding: 0 18px;
    font-size: 13px;
}

/* Empty Archive */
.archive-empty {
    text-align: center;
    padding: 72px 20px;
    max-width: 580px;
    margin: 0 auto;
}

.empty-title {
    font-size: 24px;
    font-weight: 500;
    color: #f4f0e8;
    margin-bottom: 12px;
}

.empty-desc {
    font-size: 16px;
    color: #9da6a0;
    line-height: 1.6;
    margin-bottom: 28px;
}

/* Responsive Archive Styles */
@media (max-width: 1080px) {
    .archive-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .archive-featured-card {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .featured-card-media {
        min-height: 300px;
        aspect-ratio: 16 / 10;
    }

    .featured-card-content {
        padding: 32px 28px;
    }
}

@media (max-width: 768px) {
    .archive-cats-scroll {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .archive-cats-scroll::-webkit-scrollbar {
        display: none;
    }

    .cat-pill {
        white-space: nowrap;
        flex-shrink: 0;
    }

    .archive-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .archive-card-thumb {
        aspect-ratio: 16 / 10;
    }

    .archive-featured-card {
        margin-bottom: 36px;
    }

    .featured-card-media {
        min-height: 220px;
    }

    .featured-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

    .featured-read-btn {
        justify-content: center;
    }
}

/* ==========================================================================
   LEGAL PAGES & REQUISITES STYLING (Privacy Policy & Public Offer)
   ========================================================================== */

.editorial-page-content .editorial-lead {
    font-size: clamp(18px, 1.8vw, 21px);
    line-height: 1.65;
    color: #e5eae3;
    font-weight: 400;
    margin-bottom: 36px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.editorial-page-content code {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ec93a6;
    padding: 2px 7px;
    border-radius: 4px;
}

.editorial-requisites-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px 3px 3px 3px;
    padding: clamp(24px, 4vw, 36px);
    margin: 36px 0 20px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.requisites-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 20px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.requisites-item:first-child {
    padding-top: 0;
}

.requisites-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.requisites-label {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #8a8f83;
    flex-shrink: 0;
}

.requisites-value {
    font-size: 15px;
    color: #f4f0e8;
    text-align: right;
    word-break: break-word;
}

.requisites-value a {
    color: #e7abb5;
    text-decoration: none;
    border-bottom: 1px solid rgba(231, 171, 181, 0.35);
    transition: color 0.2s, border-color 0.2s;
}

.requisites-value a:hover {
    color: #fff;
    border-color: #fe0243;
}

@media (max-width: 640px) {
    .requisites-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        padding: 12px 0;
    }

    .requisites-value {
        text-align: left;
    }
}



