/*
Theme Name: ChiefsBlitz Pro
Theme URI: https://chiefsblitz.com
Author: ChiefsBlitz
Description: A fast, SEO-optimized general news theme built for high CTR, Google News, Newsbreak, and social feed distribution. Clean typography, attractive cards, and Schema markup built in.
Version: 2.0.0
License: GNU General Public License v2
Text Domain: chiefsblitz-pro
*/

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
    /* Brand */
    --cb-primary: #1a1a2e;
    --cb-accent: #e94560;
    --cb-accent-hover: #d63050;
    --cb-secondary: #0f3460;
    --cb-highlight: #f5c518;

    /* Neutrals */
    --cb-white: #ffffff;
    --cb-offwhite: #f8f9fa;
    --cb-light: #eef0f2;
    --cb-border: #dee2e6;
    --cb-gray: #6c757d;
    --cb-dark: #212529;
    --cb-text: #333333;
    --cb-text-light: #555555;

    /* Typography */
    --cb-font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --cb-font-body: 'Source Sans 3', 'Source Sans Pro', -apple-system, sans-serif;
    --cb-font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    /* Spacing */
    --cb-gap: 20px;
    --cb-radius: 8px;
    --cb-radius-sm: 4px;

    /* Shadows */
    --cb-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
    --cb-shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --cb-shadow-lg: 0 10px 30px rgba(0,0,0,0.12);

    /* Layout */
    --cb-max-width: 1240px;
    --cb-content-width: 820px;
    --cb-sidebar-width: 360px;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--cb-font-body);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--cb-text);
    background: var(--cb-offwhite);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--cb-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}
a:hover {
    color: var(--cb-accent);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--cb-font-heading);
    font-weight: 700;
    line-height: 1.25;
    color: var(--cb-dark);
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.375rem; }
h4 { font-size: 1.125rem; }

p { margin-bottom: 1.2em; }

/* ============================================
   LAYOUT
   ============================================ */
.cb-container {
    max-width: var(--cb-max-width);
    margin: 0 auto;
    padding: 0 var(--cb-gap);
}

.cb-layout {
    display: grid;
    grid-template-columns: 1fr var(--cb-sidebar-width);
    gap: 32px;
    align-items: start;
}

/* ============================================
   HEADER
   ============================================ */
.cb-topbar {
    background: var(--cb-primary);
    color: var(--cb-white);
    font-size: 0.8rem;
    padding: 6px 0;
    letter-spacing: 0.02em;
}

.cb-topbar .cb-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cb-topbar-date {
    opacity: 0.8;
    font-family: var(--cb-font-heading);
    text-transform: uppercase;
    font-size: 0.75rem;
}

.cb-topbar-links a {
    color: rgba(255,255,255,0.8);
    margin-left: 16px;
    font-size: 0.8rem;
}
.cb-topbar-links a:hover {
    color: var(--cb-highlight);
}

.cb-header {
    background: var(--cb-white);
    border-bottom: 3px solid var(--cb-accent);
    padding: 16px 0;
}

.cb-header .cb-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cb-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cb-logo img {
    max-height: 50px;
    width: auto;
}

.cb-logo-text {
    font-family: var(--cb-font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--cb-primary);
    letter-spacing: -0.02em;
    line-height: 1;
}

.cb-logo-text span {
    color: var(--cb-accent);
}

.cb-logo-tagline {
    font-size: 0.7rem;
    color: var(--cb-gray);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-family: var(--cb-font-heading);
}

.cb-header-search {
    position: relative;
}

.cb-header-search input {
    border: 2px solid var(--cb-border);
    border-radius: 50px;
    padding: 8px 40px 8px 16px;
    font-size: 0.875rem;
    font-family: var(--cb-font-body);
    width: 220px;
    transition: border-color 0.2s, width 0.3s;
    outline: none;
}

.cb-header-search input:focus {
    border-color: var(--cb-accent);
    width: 280px;
}

.cb-header-search button {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--cb-gray);
    cursor: pointer;
    font-size: 1rem;
}

/* Navigation */
.cb-nav {
    background: var(--cb-primary);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.cb-nav .cb-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cb-nav-menu {
    list-style: none;
    display: flex;
    gap: 0;
}

.cb-nav-menu li {
    position: relative;
}

.cb-nav-menu > li > a {
    display: block;
    padding: 14px 18px;
    color: var(--cb-white);
    font-family: var(--cb-font-heading);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    transition: background 0.2s;
}

.cb-nav-menu > li > a:hover,
.cb-nav-menu > li.current-menu-item > a,
.cb-nav-menu > li.current-menu-parent > a {
    background: var(--cb-accent);
    color: var(--cb-white);
}

/* Dropdown */
.cb-nav-menu .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--cb-white);
    min-width: 220px;
    box-shadow: var(--cb-shadow-lg);
    border-top: 3px solid var(--cb-accent);
    list-style: none;
    z-index: 999;
}

.cb-nav-menu li:hover > .sub-menu {
    display: block;
}

.cb-nav-menu .sub-menu a {
    display: block;
    padding: 10px 18px;
    color: var(--cb-dark);
    font-size: 0.85rem;
    font-family: var(--cb-font-body);
    border-bottom: 1px solid var(--cb-light);
}

.cb-nav-menu .sub-menu a:hover {
    background: var(--cb-light);
    color: var(--cb-accent);
}

/* Mobile toggle */
.cb-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--cb-white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 10px;
}

/* Breaking news ticker */
.cb-ticker {
    background: var(--cb-accent);
    color: var(--cb-white);
    padding: 8px 0;
    font-size: 0.85rem;
    overflow: hidden;
}

.cb-ticker .cb-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cb-ticker-label {
    background: var(--cb-primary);
    padding: 4px 14px;
    font-family: var(--cb-font-heading);
    font-weight: 700;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    white-space: nowrap;
    border-radius: var(--cb-radius-sm);
    animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.cb-ticker-content {
    overflow: hidden;
    flex: 1;
}

.cb-ticker-scroll {
    display: flex;
    gap: 60px;
    animation: ticker-scroll 30s linear infinite;
    white-space: nowrap;
}

.cb-ticker-scroll a {
    color: var(--cb-white);
    font-weight: 500;
}

.cb-ticker-scroll a:hover {
    color: var(--cb-highlight);
}

@keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ============================================
   HERO / FEATURED SECTION
   ============================================ */
.cb-hero {
    padding: 24px 0;
}

.cb-hero-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    grid-template-rows: auto auto;
    gap: 16px;
}

.cb-hero-main {
    grid-row: 1 / 3;
    position: relative;
    border-radius: var(--cb-radius);
    overflow: hidden;
    min-height: 440px;
    background: var(--cb-dark);
}

.cb-hero-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.cb-hero-main .cb-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 28px 28px;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    color: var(--cb-white);
}

.cb-hero-main .cb-hero-overlay .cb-cat-badge {
    background: var(--cb-accent);
    color: var(--cb-white);
    padding: 4px 12px;
    font-size: 0.7rem;
    font-family: var(--cb-font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-radius: var(--cb-radius-sm);
    display: inline-block;
    margin-bottom: 10px;
}

.cb-hero-main .cb-hero-overlay h2 {
    color: var(--cb-white);
    font-size: 1.75rem;
    margin-bottom: 8px;
    line-height: 1.2;
}

.cb-hero-main .cb-hero-overlay h2 a {
    color: var(--cb-white);
}
.cb-hero-main .cb-hero-overlay h2 a:hover {
    color: var(--cb-highlight);
}

.cb-hero-side {
    position: relative;
    border-radius: var(--cb-radius);
    overflow: hidden;
    min-height: 210px;
    background: var(--cb-dark);
}

.cb-hero-side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.cb-hero-side .cb-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: var(--cb-white);
}

.cb-hero-side .cb-hero-overlay .cb-cat-badge {
    background: var(--cb-accent);
    color: var(--cb-white);
    padding: 3px 10px;
    font-size: 0.65rem;
    font-family: var(--cb-font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-radius: var(--cb-radius-sm);
    display: inline-block;
    margin-bottom: 6px;
}

.cb-hero-side .cb-hero-overlay h3 {
    color: var(--cb-white);
    font-size: 1.05rem;
    line-height: 1.3;
}

.cb-hero-side .cb-hero-overlay h3 a {
    color: var(--cb-white);
}
.cb-hero-side .cb-hero-overlay h3 a:hover {
    color: var(--cb-highlight);
}

/* ============================================
   ARTICLE CARDS
   ============================================ */
.cb-section-title {
    font-family: var(--cb-font-heading);
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--cb-primary);
    padding-bottom: 10px;
    margin-bottom: 20px;
    border-bottom: 3px solid var(--cb-accent);
    display: flex;
    align-items: center;
    gap: 8px;
}

.cb-section-title::before {
    content: '';
    width: 4px;
    height: 20px;
    background: var(--cb-accent);
    border-radius: 2px;
    display: inline-block;
}

/* Horizontal card (list style) */
.cb-card {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 20px;
    background: var(--cb-white);
    border-radius: var(--cb-radius);
    overflow: hidden;
    box-shadow: var(--cb-shadow);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
    margin-bottom: 20px;
}

.cb-card:hover {
    box-shadow: var(--cb-shadow-md);
    transform: translateY(-2px);
}

.cb-card-thumb {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
}

.cb-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.cb-card-body {
    padding: 18px 18px 18px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cb-cat-badge {
    display: inline-block;
    background: var(--cb-accent);
    color: var(--cb-white);
    padding: 3px 10px;
    font-size: 0.65rem;
    font-family: var(--cb-font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-radius: var(--cb-radius-sm);
    margin-bottom: 8px;
    align-self: flex-start;
}

.cb-cat-badge:hover {
    background: var(--cb-accent-hover);
    color: var(--cb-white);
}

.cb-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 8px;
}

.cb-card-title a {
    color: var(--cb-dark);
}
.cb-card-title a:hover {
    color: var(--cb-accent);
}

.cb-card-excerpt {
    font-size: 0.9rem;
    color: var(--cb-text-light);
    line-height: 1.6;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cb-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.78rem;
    color: var(--cb-gray);
    font-family: var(--cb-font-heading);
}

.cb-card-meta .cb-meta-author {
    font-weight: 600;
    color: var(--cb-secondary);
}

.cb-card-meta .cb-meta-sep {
    width: 3px;
    height: 3px;
    background: var(--cb-gray);
    border-radius: 50%;
}

.cb-card-meta .cb-meta-read {
    color: var(--cb-accent);
    font-weight: 600;
}

/* Grid cards (smaller) */
.cb-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.cb-grid-card {
    background: var(--cb-white);
    border-radius: var(--cb-radius);
    overflow: hidden;
    box-shadow: var(--cb-shadow);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.cb-grid-card:hover {
    box-shadow: var(--cb-shadow-md);
    transform: translateY(-2px);
}

.cb-grid-card .cb-card-thumb {
    aspect-ratio: 16/9;
}

.cb-grid-card .cb-card-body {
    padding: 14px;
}

.cb-grid-card .cb-card-title {
    font-size: 0.95rem;
}

/* ============================================
   SIDEBAR
   ============================================ */
.cb-sidebar {
    position: sticky;
    top: 68px;
}

.cb-widget {
    background: var(--cb-white);
    border-radius: var(--cb-radius);
    box-shadow: var(--cb-shadow);
    margin-bottom: 24px;
    overflow: hidden;
}

.cb-widget-title {
    font-family: var(--cb-font-heading);
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--cb-white);
    background: var(--cb-primary);
    padding: 12px 16px;
    position: relative;
}

.cb-widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 16px;
    width: 40px;
    height: 3px;
    background: var(--cb-accent);
}

.cb-widget-body {
    padding: 16px;
}

/* Trending widget */
.cb-trending-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--cb-light);
    align-items: flex-start;
}

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

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

.cb-trending-num {
    font-family: var(--cb-font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--cb-light);
    line-height: 1;
    min-width: 36px;
}

.cb-trending-text h4 {
    font-size: 0.88rem;
    line-height: 1.35;
    margin-bottom: 4px;
}

.cb-trending-text h4 a {
    color: var(--cb-dark);
}
.cb-trending-text h4 a:hover {
    color: var(--cb-accent);
}

.cb-trending-text .cb-card-meta {
    font-size: 0.72rem;
}

/* Social widget */
.cb-social-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.cb-social-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: var(--cb-radius-sm);
    color: var(--cb-white);
    font-size: 0.8rem;
    font-weight: 600;
    font-family: var(--cb-font-heading);
    transition: opacity 0.2s;
}

.cb-social-btn:hover {
    opacity: 0.85;
    color: var(--cb-white);
}

.cb-social-btn.facebook { background: #1877f2; }
.cb-social-btn.twitter { background: #1da1f2; }
.cb-social-btn.youtube { background: #ff0000; }
.cb-social-btn.instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }

/* Newsletter widget */
.cb-newsletter {
    background: linear-gradient(135deg, var(--cb-primary), var(--cb-secondary));
    color: var(--cb-white);
    padding: 24px;
    border-radius: var(--cb-radius);
    text-align: center;
    margin-bottom: 24px;
}

.cb-newsletter h3 {
    color: var(--cb-white);
    font-size: 1.1rem;
    margin-bottom: 6px;
}

.cb-newsletter p {
    font-size: 0.85rem;
    opacity: 0.85;
    margin-bottom: 14px;
}

.cb-newsletter input[type="email"] {
    width: 100%;
    padding: 10px 14px;
    border: none;
    border-radius: var(--cb-radius-sm);
    font-size: 0.88rem;
    margin-bottom: 8px;
    font-family: var(--cb-font-body);
}

.cb-newsletter button {
    width: 100%;
    padding: 10px;
    background: var(--cb-accent);
    color: var(--cb-white);
    border: none;
    border-radius: var(--cb-radius-sm);
    font-family: var(--cb-font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: background 0.2s;
}

.cb-newsletter button:hover {
    background: var(--cb-accent-hover);
}

/* ============================================
   SINGLE POST
   ============================================ */
.cb-single-header {
    margin-bottom: 24px;
}

.cb-single-header .cb-cat-badge {
    margin-bottom: 12px;
}

.cb-single-header h1 {
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 14px;
}

.cb-single-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: var(--cb-gray);
    padding-bottom: 16px;
    border-bottom: 1px solid var(--cb-border);
    margin-bottom: 20px;
}

.cb-single-meta .cb-author-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
}

.cb-single-meta .cb-author-name {
    font-weight: 700;
    color: var(--cb-dark);
    font-family: var(--cb-font-heading);
}

.cb-single-featured {
    margin-bottom: 24px;
    border-radius: var(--cb-radius);
    overflow: hidden;
}

.cb-single-featured img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.cb-single-featured figcaption {
    font-size: 0.78rem;
    color: var(--cb-gray);
    padding: 8px 0;
    font-style: italic;
}

/* Article content */
.cb-entry-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--cb-text);
}

.cb-entry-content p {
    margin-bottom: 1.4em;
}

.cb-entry-content h2 {
    font-size: 1.5rem;
    margin: 2em 0 0.8em;
    padding-top: 0.6em;
    border-top: 1px solid var(--cb-border);
}

.cb-entry-content h3 {
    font-size: 1.25rem;
    margin: 1.6em 0 0.6em;
}

.cb-entry-content blockquote {
    border-left: 4px solid var(--cb-accent);
    background: var(--cb-offwhite);
    padding: 20px 24px;
    margin: 1.5em 0;
    font-style: italic;
    border-radius: 0 var(--cb-radius-sm) var(--cb-radius-sm) 0;
}

.cb-entry-content ul, .cb-entry-content ol {
    margin: 1em 0;
    padding-left: 1.6em;
}

.cb-entry-content li {
    margin-bottom: 0.5em;
}

.cb-entry-content figure {
    margin: 2em 0;
}

.cb-entry-content figcaption {
    font-size: 0.82rem;
    color: var(--cb-gray);
    margin-top: 8px;
    font-style: italic;
}

.cb-entry-content img {
    border-radius: var(--cb-radius-sm);
}

.cb-entry-content a {
    color: var(--cb-accent);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

/* Tags */
.cb-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 24px 0;
    padding-top: 16px;
    border-top: 1px solid var(--cb-border);
}

.cb-tags a {
    background: var(--cb-light);
    color: var(--cb-text-light);
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-family: var(--cb-font-heading);
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
}

.cb-tags a:hover {
    background: var(--cb-accent);
    color: var(--cb-white);
}

/* Share bar */
.cb-share {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px 0;
    padding: 16px 0;
    border-top: 1px solid var(--cb-border);
    border-bottom: 1px solid var(--cb-border);
}

.cb-share-label {
    font-family: var(--cb-font-heading);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--cb-gray);
    letter-spacing: 0.04em;
}

.cb-share a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--cb-white);
    font-size: 0.9rem;
    transition: transform 0.2s;
}

.cb-share a:hover {
    transform: scale(1.1);
    color: var(--cb-white);
}

.cb-share .share-fb { background: #1877f2; }
.cb-share .share-tw { background: #1da1f2; }
.cb-share .share-wa { background: #25d366; }
.cb-share .share-pin { background: #e60023; }
.cb-share .share-ln { background: #0a66c2; }

/* Author box */
.cb-author-box {
    display: flex;
    gap: 20px;
    background: var(--cb-offwhite);
    border-radius: var(--cb-radius);
    padding: 24px;
    margin: 24px 0;
    border-left: 4px solid var(--cb-accent);
}

.cb-author-box img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.cb-author-box h4 {
    margin-bottom: 6px;
}

.cb-author-box p {
    font-size: 0.88rem;
    color: var(--cb-text-light);
    margin-bottom: 0;
}

/* Related posts */
.cb-related {
    margin-top: 32px;
}

.cb-related .cb-grid {
    grid-template-columns: repeat(3, 1fr);
}

/* Post navigation */
.cb-post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 24px 0;
}

.cb-post-nav a {
    display: block;
    padding: 16px;
    background: var(--cb-white);
    border-radius: var(--cb-radius);
    box-shadow: var(--cb-shadow);
    font-family: var(--cb-font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--cb-dark);
    transition: box-shadow 0.2s;
}

.cb-post-nav a:hover {
    box-shadow: var(--cb-shadow-md);
    color: var(--cb-accent);
}

.cb-post-nav a span {
    display: block;
    font-size: 0.72rem;
    color: var(--cb-gray);
    text-transform: uppercase;
    margin-bottom: 4px;
    font-weight: 400;
}

.cb-post-nav a.next {
    text-align: right;
}

/* ============================================
   PAGE TEMPLATE
   ============================================ */
.cb-page-content {
    background: var(--cb-white);
    border-radius: var(--cb-radius);
    box-shadow: var(--cb-shadow);
    padding: 40px;
    margin-bottom: 24px;
}

.cb-page-content h1 {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 3px solid var(--cb-accent);
}

/* ============================================
   COMMENTS
   ============================================ */
.cb-comments {
    background: var(--cb-white);
    border-radius: var(--cb-radius);
    box-shadow: var(--cb-shadow);
    padding: 28px;
    margin-top: 24px;
}

.cb-comments h2 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--cb-light);
}

.comment-list {
    list-style: none;
}

.comment-list .comment {
    padding: 16px 0;
    border-bottom: 1px solid var(--cb-light);
}

.comment-respond label {
    display: block;
    font-family: var(--cb-font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--cb-dark);
}

.comment-respond input,
.comment-respond textarea {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid var(--cb-border);
    border-radius: var(--cb-radius-sm);
    font-family: var(--cb-font-body);
    font-size: 0.9rem;
    margin-bottom: 12px;
    transition: border-color 0.2s;
}

.comment-respond input:focus,
.comment-respond textarea:focus {
    border-color: var(--cb-accent);
    outline: none;
}

.comment-respond .submit {
    background: var(--cb-accent);
    color: var(--cb-white);
    border: none;
    padding: 12px 30px;
    font-family: var(--cb-font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-radius: var(--cb-radius-sm);
    cursor: pointer;
    transition: background 0.2s;
}

.comment-respond .submit:hover {
    background: var(--cb-accent-hover);
}

/* ============================================
   PAGINATION
   ============================================ */
.cb-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: 24px 0;
}

.cb-pagination a,
.cb-pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--cb-radius-sm);
    font-family: var(--cb-font-heading);
    font-weight: 600;
    font-size: 0.88rem;
    transition: all 0.2s;
}

.cb-pagination a {
    background: var(--cb-white);
    color: var(--cb-dark);
    box-shadow: var(--cb-shadow);
}

.cb-pagination a:hover {
    background: var(--cb-accent);
    color: var(--cb-white);
}

.cb-pagination span.current {
    background: var(--cb-accent);
    color: var(--cb-white);
}

.nav-links {
    display: flex;
    justify-content: center;
    gap: 6px;
}

.page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    border-radius: var(--cb-radius-sm);
    font-family: var(--cb-font-heading);
    font-weight: 600;
    font-size: 0.88rem;
    background: var(--cb-white);
    color: var(--cb-dark);
    box-shadow: var(--cb-shadow);
    transition: all 0.2s;
}

.page-numbers:hover {
    background: var(--cb-accent);
    color: var(--cb-white);
}

.page-numbers.current {
    background: var(--cb-accent);
    color: var(--cb-white);
}

/* ============================================
   FOOTER
   ============================================ */
.cb-footer-main {
    background: var(--cb-primary);
    color: rgba(255,255,255,0.8);
    padding: 48px 0 32px;
}

.cb-footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 32px;
}

.cb-footer-col h3 {
    color: var(--cb-white);
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--cb-accent);
    display: inline-block;
}

.cb-footer-col p {
    font-size: 0.88rem;
    line-height: 1.7;
}

.cb-footer-col ul {
    list-style: none;
}

.cb-footer-col ul li {
    padding: 5px 0;
}

.cb-footer-col ul a {
    color: rgba(255,255,255,0.7);
    font-size: 0.88rem;
    transition: color 0.2s;
}

.cb-footer-col ul a:hover {
    color: var(--cb-accent);
}

.cb-footer-col ul a::before {
    content: '\203A';
    margin-right: 8px;
    color: var(--cb-accent);
}

.cb-footer-bottom {
    background: rgba(0,0,0,0.3);
    padding: 16px 0;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
}

.cb-footer-bottom .cb-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cb-footer-bottom a {
    color: rgba(255,255,255,0.6);
    margin-left: 20px;
}

.cb-footer-bottom a:hover {
    color: var(--cb-accent);
}

/* ============================================
   BREADCRUMBS
   ============================================ */
.cb-breadcrumbs {
    font-size: 0.8rem;
    padding: 12px 0;
    color: var(--cb-gray);
    font-family: var(--cb-font-heading);
}

.cb-breadcrumbs a {
    color: var(--cb-gray);
}

.cb-breadcrumbs a:hover {
    color: var(--cb-accent);
}

.cb-breadcrumbs .separator {
    margin: 0 6px;
    opacity: 0.5;
}

/* ============================================
   ARCHIVE / CATEGORY HEADER
   ============================================ */
.cb-archive-header {
    background: var(--cb-white);
    border-radius: var(--cb-radius);
    box-shadow: var(--cb-shadow);
    padding: 24px;
    margin-bottom: 24px;
    border-left: 4px solid var(--cb-accent);
}

.cb-archive-header h1 {
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.cb-archive-header p {
    color: var(--cb-gray);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* ============================================
   SEARCH FORM
   ============================================ */
.search-form {
    display: flex;
    gap: 0;
}

.search-form .search-field {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--cb-border);
    border-right: none;
    border-radius: var(--cb-radius-sm) 0 0 var(--cb-radius-sm);
    font-size: 0.9rem;
    font-family: var(--cb-font-body);
    outline: none;
}

.search-form .search-field:focus {
    border-color: var(--cb-accent);
}

.search-form .search-submit {
    padding: 12px 20px;
    background: var(--cb-accent);
    color: var(--cb-white);
    border: none;
    border-radius: 0 var(--cb-radius-sm) var(--cb-radius-sm) 0;
    font-family: var(--cb-font-heading);
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

.search-form .search-submit:hover {
    background: var(--cb-accent-hover);
}

/* ============================================
   404
   ============================================ */
.cb-404 {
    text-align: center;
    padding: 60px 20px;
}

.cb-404 h1 {
    font-size: 6rem;
    color: var(--cb-accent);
    margin-bottom: 10px;
    line-height: 1;
}

.cb-404 h2 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.cb-404 p {
    color: var(--cb-gray);
    margin-bottom: 24px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .cb-layout {
        grid-template-columns: 1fr;
    }

    .cb-sidebar {
        position: static;
    }

    .cb-hero-grid {
        grid-template-columns: 1fr 1fr;
    }

    .cb-hero-main {
        grid-row: auto;
        grid-column: 1 / -1;
        min-height: 360px;
    }

    .cb-footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --cb-gap: 16px;
    }

    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.375rem; }

    .cb-topbar { display: none; }

    .cb-header .cb-container {
        flex-wrap: wrap;
        gap: 10px;
    }

    .cb-header-search {
        order: 3;
        width: 100%;
    }

    .cb-header-search input {
        width: 100%;
    }

    .cb-menu-toggle {
        display: block;
    }

    .cb-nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        background: var(--cb-primary);
    }

    .cb-nav-menu.active {
        display: flex;
    }

    .cb-nav-menu > li > a {
        padding: 12px 18px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .cb-nav-menu .sub-menu {
        position: static;
        box-shadow: none;
        border-top: none;
        background: rgba(0,0,0,0.2);
    }

    .cb-hero-grid {
        grid-template-columns: 1fr;
    }

    .cb-hero-main { min-height: 280px; }
    .cb-hero-side { min-height: 180px; }

    .cb-card {
        grid-template-columns: 120px 1fr;
        gap: 12px;
    }

    .cb-card-body {
        padding: 10px 10px 10px 0;
    }

    .cb-card-title { font-size: 0.95rem; }
    .cb-card-excerpt { display: none; }

    .cb-grid {
        grid-template-columns: 1fr;
    }

    .cb-footer-grid {
        grid-template-columns: 1fr;
    }

    .cb-post-nav {
        grid-template-columns: 1fr;
    }

    .cb-page-content {
        padding: 20px;
    }

    .cb-single-header h1 {
        font-size: 1.5rem;
    }

    .cb-entry-content {
        font-size: 1rem;
    }

    .cb-author-box {
        flex-direction: column;
        text-align: center;
    }

    .cb-footer-bottom .cb-container {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .cb-share {
        flex-wrap: wrap;
    }

    .cb-related .cb-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .cb-card {
        grid-template-columns: 100px 1fr;
    }

    .cb-card-meta { display: none; }

    .cb-hero-main {
        min-height: 220px;
    }

    .cb-hero-main .cb-hero-overlay h2 {
        font-size: 1.25rem;
    }

    .cb-social-links {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   PRINT
   ============================================ */
@media print {
    .cb-topbar, .cb-nav, .cb-ticker, .cb-sidebar,
    .cb-footer-main, .cb-footer-bottom, .cb-share,
    .cb-related, .cb-post-nav, .cb-comments,
    .cb-header-search, .cb-menu-toggle { display: none; }

    .cb-layout { grid-template-columns: 1fr; }

    .cb-entry-content { font-size: 11pt; }

    a { color: #000; text-decoration: underline; }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

:focus-visible {
    outline: 2px solid var(--cb-accent);
    outline-offset: 2px;
}

/* Skip link */
.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    background: var(--cb-accent);
    color: var(--cb-white);
    padding: 8px 16px;
    z-index: 9999;
    font-family: var(--cb-font-heading);
}

.skip-link:focus {
    top: 0;
}
