/**
 * Chief Magazine - Category Page Editorial Styles
 * Scope: .chief-category-page
 */

/* Container & Global Scope */
.chief-category-page {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #111111;
    background-color: #FFFFFF;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding-top: 24px;
    padding-bottom: 60px;
}

.chief-cat-container {
    width: 100%;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
    box-sizing: border-box;
}

/* SECTION A: HERO / INTRO */
.chief-cat-hero {
    background-color: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 36px 40px;
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
}

.chief-cat-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background-color: #BA0000;
}

.chief-cat-hero-eyebrow {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #BA0000;
    margin-bottom: 8px;
}

.chief-cat-hero-title {
    font-size: 38px;
    font-weight: 800;
    color: #0F172A;
    line-height: 1.15;
    margin: 0 0 14px 0;
    letter-spacing: -0.5px;
}

.chief-cat-hero-description {
    font-size: 16px;
    color: #475569;
    line-height: 1.6;
    max-width: 780px;
    margin: 0 0 24px 0;
}

.chief-cat-hero-stats {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.chief-cat-stat-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #FFFFFF;
    border: 1px solid #CBD5E1;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: #1E293B;
}

.chief-cat-stat-item strong {
    color: #BA0000;
}

/* SECTION C: SUB-NAVIGATION BAR */
.chief-cat-subnav-wrapper {
    margin-bottom: 32px;
    border-bottom: 2px solid #E2E8F0;
    padding-bottom: 0;
}

.chief-cat-subnav {
    display: flex;
    align-items: center;
    gap: 24px;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none; /* Firefox */
}

.chief-cat-subnav::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.chief-cat-subnav-item {
    font-size: 13px;
    font-weight: 600;
    color: #64748B;
    text-decoration: none;
    padding-bottom: 12px;
    position: relative;
    transition: color 0.2s ease;
}

.chief-cat-subnav-item:hover,
.chief-cat-subnav-item.active {
    color: #0F172A;
}

.chief-cat-subnav-item.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #BA0000;
}

/* SECTION B: FEATURED CATEGORY STORY */
.chief-cat-featured {
    display: flex;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.chief-cat-featured:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07);
}

.chief-cat-featured-media {
    flex: 0 0 55%;
    position: relative;
    overflow: hidden;
    min-height: 320px;
    background: #0F172A;
}

.chief-cat-featured-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.chief-cat-featured:hover .chief-cat-featured-media img {
    transform: scale(1.03);
}

.chief-cat-featured-content {
    flex: 0 0 45%;
    padding: 36px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
}

.chief-cat-featured-title {
    font-size: 26px;
    font-weight: 800;
    line-height: 1.25;
    margin: 12px 0;
    color: #0F172A;
}

.chief-cat-featured-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.chief-cat-featured-title a:hover {
    color: #BA0000;
}

.chief-cat-featured-excerpt {
    font-size: 14px;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 20px;
}

.chief-cat-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: #64748B;
    flex-wrap: wrap;
}

.chief-cat-meta-author {
    font-weight: 600;
    color: #1E293B;
}

.chief-cat-meta-dot {
    color: #CBD5E1;
}

.chief-cat-featured-cta {
    margin-top: 20px;
}

.chief-btn-editorial {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #0F172A;
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 6px;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.chief-btn-editorial:hover {
    background: #BA0000;
    color: #FFFFFF;
}

/* MAIN BODY LAYOUT (75% Main / 25% Sidebar) */
.chief-cat-body {
    display: flex;
    gap: 36px;
    align-items: flex-start;
}

.chief-cat-main {
    flex: 1 1 75%;
    min-width: 0;
}

.chief-cat-sidebar {
    flex: 0 0 280px;
    min-width: 0;
}

/* SECTION D: ARTICLE GRID */
.chief-article-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.chief-article-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.chief-article-card:hover {
    border-color: #CBD5E1;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
}

.chief-card-media {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #F1F5F9;
    position: relative;
}

.chief-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.chief-article-card:hover .chief-card-media img {
    transform: scale(1.04);
}

.chief-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.chief-card-title {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
    margin: 10px 0;
    color: #0F172A;
}

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

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

.chief-card-excerpt {
    font-size: 13px;
    color: #475569;
    line-height: 1.5;
    margin-bottom: 16px;
    flex-grow: 1;
}

/* SECTION 4: CATEGORY BADGES (INDIVIDUAL SEPARATE PILLS) */
.chief-card-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 6px;
}

.chief-cat-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 8px;
    background: #F1F5F9;
    color: #0F172A;
    border-radius: 3px;
    border-left: 2px solid #BA0000;
    line-height: 1.2;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.chief-cat-badge:hover {
    background: #BA0000;
    color: #FFFFFF;
}

/* SECTION E: SIDEBAR WIDGETS */
.chief-sidebar-widget {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 28px;
}

.chief-widget-title {
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #0F172A;
    margin: 0 0 16px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #BA0000;
    display: inline-block;
}

.chief-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chief-tag-item {
    font-size: 12px;
    font-weight: 500;
    color: #475569;
    background: #FFFFFF;
    border: 1px solid #CBD5E1;
    padding: 4px 10px;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.chief-tag-item:hover {
    background: #0F172A;
    color: #FFFFFF;
    border-color: #0F172A;
}

.chief-sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.chief-sidebar-list li {
    padding: 8px 0;
    border-bottom: 1px solid #E2E8F0;
    font-size: 13px;
}

.chief-sidebar-list li:last-child {
    border-bottom: none;
}

.chief-sidebar-list a {
    color: #334155;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.chief-sidebar-list a:hover {
    color: #BA0000;
}

/* SECTION F: EDITORIAL QUOTE / PROMO CARD */
.chief-editorial-quote {
    background: #0F172A;
    color: #FFFFFF;
    border-radius: 8px;
    padding: 28px 24px;
    margin-bottom: 28px;
    position: relative;
    overflow: hidden;
}

.chief-editorial-quote::before {
    content: '“';
    font-family: Georgia, serif;
    font-size: 90px;
    position: absolute;
    top: -15px;
    right: 15px;
    color: rgba(255, 255, 255, 0.07);
    line-height: 1;
}

.chief-quote-text {
    font-size: 15px;
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 16px;
    color: #F1F5F9;
    position: relative;
    z-index: 1;
}

.chief-quote-author {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #BA0000;
}

/* SECTION G: NEWSLETTER */
.chief-cat-newsletter {
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
    color: #FFFFFF;
    border-radius: 12px;
    padding: 44px 36px;
    margin: 48px 0;
    text-align: center;
    position: relative;
}

.chief-cat-newsletter-title {
    font-size: 24px;
    font-weight: 800;
    color: #FFFFFF;
    margin: 0 0 10px 0;
    letter-spacing: -0.3px;
}

.chief-cat-newsletter-subtitle {
    font-size: 14px;
    color: #94A3B8;
    max-width: 540px;
    margin: 0 auto 24px auto;
    line-height: 1.5;
}

.chief-newsletter-form {
    display: flex;
    justify-content: center;
    gap: 10px;
    max-width: 460px;
    margin: 0 auto;
}

.chief-newsletter-input {
    flex: 1;
    padding: 12px 16px;
    border-radius: 6px;
    border: 1px solid #334155;
    background: #1E293B;
    color: #FFFFFF;
    font-size: 14px;
    outline: none;
}

.chief-newsletter-input::placeholder {
    color: #64748B;
}

.chief-newsletter-input:focus {
    border-color: #BA0000;
}

.chief-newsletter-btn {
    background: #BA0000;
    color: #FFFFFF;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.chief-newsletter-btn:hover {
    background: #990000;
}

/* SECTION H: PAGINATION */
.chief-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 40px 0 20px 0;
}

.chief-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border-radius: 6px;
    border: 1px solid #E2E8F0;
    background: #FFFFFF;
    color: #1E293B;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.chief-pagination .page-numbers:hover,
.chief-pagination .page-numbers.current {
    background: #BA0000;
    border-color: #BA0000;
    color: #FFFFFF;
}

.chief-pagination .dots {
    border: none;
    background: transparent;
}

/* RESPONSIVE DESIGN */
@media (max-width: 1024px) {
    .chief-article-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 868px) {
    .chief-cat-body {
        flex-direction: column;
    }

    .chief-cat-main {
        width: 100%;
        flex: 1 1 100%;
    }

    .chief-cat-sidebar {
        width: 100%;
        flex: 1 1 100%;
    }

    .chief-cat-featured {
        flex-direction: column;
    }

    .chief-cat-featured-media {
        min-height: 240px;
    }
}

@media (max-width: 640px) {
    .chief-cat-container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .chief-cat-hero {
        padding: 24px 20px;
    }

    .chief-cat-hero-title {
        font-size: 28px;
    }

    .chief-cat-featured-content {
        padding: 24px 20px;
    }

    .chief-cat-featured-title {
        font-size: 20px;
    }

    .chief-article-grid {
        grid-template-columns: 1fr;
    }

    .chief-newsletter-form {
        flex-direction: column;
    }

    .chief-newsletter-btn {
        width: 100%;
    }
}
