/*
Theme Name:   GeneratePress Child
Theme URI:    https://collincountywire.com
Description:  World-class local news child theme for Collin County Wire
Author:       Collin County Wire
Template:     generatepress
Version:      2.0.0
License:      GPL-2.0-or-later
Text Domain:  generatepress-child
*/

/* ============================================================
   CSS VARIABLES
   ============================================================ */
:root {
    --navy:       #1a2744;
    --navy-dark:  #111d33;
    --navy-mid:   #243660;
    --red:        #CC0000;
    --red-dark:   #aa0000;
    --white:      #ffffff;
    --off-white:  #f8f9fa;
    --gray-100:   #f3f4f6;
    --gray-200:   #e5e7eb;
    --gray-400:   #9ca3af;
    --gray-600:   #4b5563;
    --gray-800:   #1f2937;
    --text:       #111827;
    --serif:      'Playfair Display', Georgia, 'Times New Roman', serif;
    --sans:       'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --max-w:      1200px;
    --radius:     6px;
    --shadow-sm:  0 1px 3px rgba(0,0,0,0.07), 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md:  0 4px 16px rgba(0,0,0,0.09);
    --shadow-lg:  0 10px 32px rgba(0,0,0,0.13);
    --transition: 0.2s ease;
}

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

body {
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
    background: var(--white);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-dark); }

/* ============================================================
   CONTAINER
   ============================================================ */
.ccw-container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================================
   TOP DATE BAR
   ============================================================ */
.ccw-top-bar {
    background: var(--navy-dark);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.ccw-top-bar-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 20px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.ccw-top-bar-date {
    font-size: 11px;
    color: rgba(255,255,255,0.45);
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.ccw-top-bar-tagline {
    font-size: 11px;
    color: rgba(255,255,255,0.55);
    letter-spacing: 0.5px;
    font-style: italic;
    text-align: center;
    flex: 1;
}

.ccw-top-bar-search {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ccw-search-icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: rgba(255,255,255,0.45);
    line-height: 1;
    transition: color var(--transition);
}

.ccw-search-icon-btn:hover { color: var(--white); }

/* ============================================================
   STICKY MAIN HEADER — logo LEFT, nav RIGHT
   ============================================================ */
header.ccw-site-header,
.ccw-site-header {
    background-color: #1a2744 !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 9999 !important;
    border-bottom: 3px solid #CC0000 !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}

.ccw-header-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 20px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.ccw-logo-wrap a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.ccw-logo-img {
    max-height: 52px;
    width: auto;
    display: block;
}

/* Text fallback */
.ccw-logo-text {
    font-family: var(--serif);
    font-size: 24px;
    font-weight: 700;
    color: var(--white);
    white-space: nowrap;
    line-height: 1;
}

.ccw-logo-text span { color: var(--red); }

/* ============================================================
   PRIMARY NAV (inside header, right side)
   ============================================================ */
.ccw-header-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.ccw-nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 0;
}

.ccw-nav-links li { position: relative; }

.ccw-nav-links > li > a {
    display: block;
    color: rgba(255,255,255,0.88);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 10px 13px;
    text-decoration: none;
    transition: color var(--transition);
    border-bottom: 2px solid transparent;
    white-space: nowrap;
}

.ccw-nav-links > li > a:hover,
.ccw-nav-links > li.current-menu-item > a,
.ccw-nav-links > li.current_page_item > a {
    color: #ffffff;
    border-bottom-color: var(--red);
    text-decoration: none;
}

/* Dropdown */
.ccw-nav-links li ul {
    display: none;
    position: absolute;
    top: calc(100% + 3px);
    left: 0;
    background: var(--navy);
    min-width: 190px;
    list-style: none;
    margin: 0;
    padding: 8px 0;
    box-shadow: var(--shadow-lg);
    z-index: 9999;
    border-top: 2px solid var(--red);
    border-radius: 0 0 var(--radius) var(--radius);
}

.ccw-nav-links li:hover > ul { display: block; }

.ccw-nav-links li ul li a {
    display: block;
    color: rgba(255,255,255,0.8);
    font-size: 12px;
    font-weight: 500;
    padding: 9px 18px;
    text-decoration: none;
    transition: background var(--transition), color var(--transition);
    letter-spacing: 0.3px;
}

.ccw-nav-links li ul li a:hover {
    color: var(--white);
    background: rgba(255,255,255,0.06);
}

/* Mobile toggle */
.ccw-nav-toggle {
    display: none;
    background: none;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius);
    color: var(--white);
    cursor: pointer;
    padding: 6px 10px;
    margin-left: 8px;
    line-height: 1;
    transition: border-color var(--transition);
}

.ccw-nav-toggle:hover { border-color: rgba(255,255,255,0.5); }

/* ============================================================
   BREAKING NEWS TICKER
   ============================================================ */
.ccw-ticker-bar {
    background: var(--red);
    display: flex;
    align-items: center;
    height: 36px;
    overflow: hidden;
}

.ccw-ticker-label {
    background: var(--navy-dark);
    color: var(--white);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 0 14px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    flex-shrink: 0;
}

.ccw-ticker-track {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.ccw-ticker-inner {
    display: inline-flex;
    align-items: center;
    height: 36px;
    white-space: nowrap;
    animation: tickerScroll 50s linear infinite;
    padding-left: 40px;
}

.ccw-ticker-inner:hover { animation-play-state: paused; }

.ccw-ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-right: 60px;
    font-size: 13px;
    font-weight: 500;
    color: var(--white);
}

.ccw-ticker-item::before {
    content: '●';
    font-size: 7px;
    opacity: 0.7;
}

.ccw-ticker-item a { color: var(--white); text-decoration: none; }
.ccw-ticker-item a:hover { text-decoration: underline; }
.ccw-ticker-source { font-size: 11px; opacity: 0.7; }

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

/* ============================================================
   HERO SECTION
   ============================================================ */
.ccw-hero {
    position: relative;
    height: 520px;
    background: var(--gray-800);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.ccw-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.88) 0%,
        rgba(0,0,0,0.45) 45%,
        rgba(0,0,0,0.15) 100%
    );
    z-index: 1;
}

.ccw-hero-content {
    position: relative;
    z-index: 2;
    padding: 40px 20px 44px;
    width: 100%;
    max-width: var(--max-w);
    margin: 0 auto;
}

.ccw-hero-category {
    display: inline-block;
    background: var(--red);
    color: var(--white);
    font-family: var(--sans);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 3px;
    margin-bottom: 14px;
    text-decoration: none;
}

.ccw-hero-title {
    font-family: var(--serif);
    font-size: 44px;
    font-weight: 900;
    color: var(--white);
    line-height: 1.12;
    margin: 0 0 14px;
    max-width: 760px;
    text-shadow: 0 2px 16px rgba(0,0,0,0.35);
    letter-spacing: -0.5px;
}

.ccw-hero-title a {
    color: var(--white);
    text-decoration: none;
}

.ccw-hero-title a:hover { text-decoration: underline; }

.ccw-hero-excerpt {
    font-size: 16px;
    color: rgba(255,255,255,0.82);
    margin: 0 0 16px;
    max-width: 620px;
    line-height: 1.55;
}

.ccw-hero-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: rgba(255,255,255,0.65);
}

.ccw-hero-meta-sep { opacity: 0.4; }

.ccw-hero-read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--white);
    border: 1.5px solid rgba(255,255,255,0.5);
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 8px 18px;
    text-decoration: none;
    transition: background var(--transition), border-color var(--transition);
    margin-top: 4px;
}

.ccw-hero-read-more:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.9);
    color: var(--white);
    text-decoration: none;
}

/* ============================================================
   HOMEPAGE CONTENT LAYOUT (main + sidebar)
   ============================================================ */
.ccw-page-body {
    background: var(--off-white);
    padding: 32px 0 60px;
}

.ccw-content-layout {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 32px;
    align-items: start;
}

.ccw-main-content { min-width: 0; }

/* ============================================================
   SECTION HEADER (label above grids)
   ============================================================ */
.ccw-section-hd {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
    padding-top: 8px;
}

.ccw-section-hd h2 {
    font-family: var(--sans);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--red);
    margin: 0;
    white-space: nowrap;
}

.ccw-section-rule {
    flex: 1;
    height: 1px;
    background: var(--gray-200);
}

/* ============================================================
   NEWS GRID (3 columns)
   ============================================================ */
.ccw-news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 12px;
}

/* ============================================================
   ARTICLE CARDS
   ============================================================ */
.ccw-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
    border: 1px solid var(--gray-200);
}

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

.ccw-card-thumb {
    overflow: hidden;
    background: var(--gray-200);
    aspect-ratio: 16 / 9;
    flex-shrink: 0;
}

.ccw-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s;
}

.ccw-card:hover .ccw-card-thumb img { transform: scale(1.04); }

.ccw-card-no-thumb {
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ccw-card-no-thumb svg { opacity: 0.18; }

.ccw-card-body {
    padding: 16px 18px 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.ccw-cat-tag {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 8px;
    text-decoration: none;
}

.ccw-cat-tag:hover { color: var(--red-dark); }

.ccw-card-title {
    font-family: var(--serif);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--navy);
    margin: 0 0 10px;
    letter-spacing: -0.2px;
}

.ccw-card-title a {
    color: inherit;
    text-decoration: none;
}

.ccw-card-title a:hover { color: var(--red); }

.ccw-card-excerpt {
    font-size: 13px;
    color: var(--gray-600);
    line-height: 1.55;
    margin: 0 0 14px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ccw-card-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 11px;
    color: var(--gray-400);
    padding-top: 12px;
    border-top: 1px solid var(--gray-200);
    margin-top: auto;
}

.ccw-source-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.3px;
    color: var(--gray-600);
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    border-radius: 3px;
    padding: 2px 7px;
    white-space: nowrap;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ccw-card-read-more {
    font-size: 11px;
    font-weight: 700;
    color: var(--red);
    text-decoration: none;
    margin-left: auto;
    white-space: nowrap;
}

.ccw-card-read-more:hover { color: var(--red-dark); }

/* ============================================================
   WP RSS AGGREGATOR OUTPUT OVERRIDES
   ============================================================ */
.ccw-rss-wrap .wprss-feed-items {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.ccw-rss-wrap .wprss-feed-item {
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 0;
    transition: transform var(--transition), box-shadow var(--transition);
}

.ccw-rss-wrap .wprss-feed-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.ccw-rss-wrap .wprss-item-title,
.ccw-rss-wrap a.wprss-feed-item-link {
    font-family: var(--serif);
    font-size: 16px;
    font-weight: 700;
    color: var(--navy) !important;
    line-height: 1.3;
    text-decoration: none !important;
    display: block;
    padding: 16px 16px 6px;
}

.ccw-rss-wrap .wprss-item-title:hover,
.ccw-rss-wrap a.wprss-feed-item-link:hover { color: var(--red) !important; }

.ccw-rss-wrap .wprss-item-date {
    font-size: 11px;
    color: var(--gray-400);
    padding: 0 16px 6px;
    display: block;
}

.ccw-rss-wrap .wprss-feed-item-description {
    font-size: 13px;
    color: var(--gray-600);
    padding: 0 16px 10px;
    line-height: 1.5;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    display: -webkit-box;
    overflow: hidden;
}

.ccw-rss-wrap .wprss-item-source-info {
    padding: 8px 16px 12px;
    border-top: 1px solid var(--gray-200);
    margin-top: auto;
}

.ccw-rss-wrap .wprss-item-source-link,
.ccw-rss-wrap .wprss-feed-source-name {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gray-400) !important;
    text-decoration: none !important;
}

/* ============================================================
   GEOGRAPHIC SECTIONS
   ============================================================ */
.ccw-geo-sections { margin-top: 32px; }

.ccw-geo-section { margin-bottom: 36px; }

.ccw-geo-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--navy);
    margin-bottom: 16px;
}

.ccw-geo-hd h2 {
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--navy);
    margin: 0;
}

.ccw-geo-more {
    font-size: 11px;
    font-weight: 700;
    color: var(--red);
    text-decoration: none;
    letter-spacing: 0.5px;
}

.ccw-geo-more:hover { color: var(--red-dark); }

.ccw-geo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

/* Compact geo card */
.ccw-geo-card {
    display: flex;
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-200);
}

.ccw-geo-card:last-child { border-bottom: none; }

.ccw-geo-thumb {
    width: 72px;
    height: 54px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--gray-200);
}

.ccw-geo-thumb img { width: 100%; height: 100%; object-fit: cover; }

.ccw-geo-card-title {
    font-family: var(--serif);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--navy);
    margin: 0 0 4px;
}

.ccw-geo-card-title a { color: inherit; text-decoration: none; }
.ccw-geo-card-title a:hover { color: var(--red); }
.ccw-geo-card-time { font-size: 11px; color: var(--gray-400); }

/* ============================================================
   SIDEBAR
   ============================================================ */
.ccw-sidebar { min-width: 0; }

.ccw-widget {
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    margin-bottom: 24px;
}

.ccw-widget-hd {
    background: var(--navy);
    color: var(--white);
    font-family: var(--sans);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 10px 16px;
}

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

/* Popular posts */
.ccw-popular-list {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: pop-counter;
}

.ccw-popular-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-200);
    counter-increment: pop-counter;
}

.ccw-popular-item:last-child { border-bottom: none; }

.ccw-popular-num {
    font-family: var(--serif);
    font-size: 24px;
    font-weight: 900;
    color: var(--gray-200);
    line-height: 1;
    min-width: 28px;
    flex-shrink: 0;
    margin-top: 2px;
}

.ccw-popular-title {
    font-family: var(--serif);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--navy);
    margin: 0 0 3px;
}

.ccw-popular-title a { color: inherit; text-decoration: none; }
.ccw-popular-title a:hover { color: var(--red); }
.ccw-popular-meta { font-size: 11px; color: var(--gray-400); }

/* Sidebar newsletter */
.ccw-newsletter-widget .ccw-widget-body { padding: 20px; }

.ccw-nl-eyebrow {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 6px;
}

.ccw-nl-title {
    font-family: var(--serif);
    font-size: 20px;
    font-weight: 700;
    color: var(--navy);
    margin: 0 0 6px;
    line-height: 1.2;
}

.ccw-nl-desc {
    font-size: 13px;
    color: var(--gray-600);
    line-height: 1.5;
    margin-bottom: 16px;
}

.ccw-nl-form { display: flex; flex-direction: column; gap: 8px; }

.ccw-nl-input {
    width: 100%;
    height: 42px;
    padding: 0 14px;
    font-size: 13px;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius);
    background: var(--white);
    color: var(--text);
    outline: none;
    transition: border-color var(--transition);
    font-family: var(--sans);
}

.ccw-nl-input:focus { border-color: var(--red); }
.ccw-nl-input::placeholder { color: var(--gray-400); }

.ccw-nl-btn {
    width: 100%;
    height: 42px;
    background: var(--red);
    color: var(--white);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-family: var(--sans);
    transition: background var(--transition);
}

.ccw-nl-btn:hover { background: var(--red-dark); }

.ccw-nl-disclaimer {
    font-size: 10px;
    color: var(--gray-400);
    text-align: center;
    line-height: 1.4;
    margin-top: 4px;
}

/* ============================================================
   FULL-WIDTH NEWSLETTER SECTION (footer top)
   ============================================================ */
.ccw-newsletter-band {
    background: var(--navy);
    padding: 52px 0;
}

.ccw-newsletter-band-inner {
    max-width: 560px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.ccw-newsletter-band .ccw-nl-eyebrow { color: var(--red); }

.ccw-newsletter-band .ccw-nl-title {
    font-size: 32px;
    color: var(--white);
}

.ccw-newsletter-band .ccw-nl-desc { color: rgba(255,255,255,0.6); }

.ccw-newsletter-band .ccw-nl-form {
    flex-direction: row;
    max-width: 440px;
    margin: 0 auto;
}

.ccw-newsletter-band .ccw-nl-input {
    flex: 1;
    border-radius: var(--radius) 0 0 var(--radius);
    border-color: rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.08);
    color: var(--white);
    border-right: none;
}

.ccw-newsletter-band .ccw-nl-input::placeholder { color: rgba(255,255,255,0.35); }
.ccw-newsletter-band .ccw-nl-input:focus { border-color: var(--red); }

.ccw-newsletter-band .ccw-nl-btn {
    width: auto;
    padding: 0 22px;
    border-radius: 0 var(--radius) var(--radius) 0;
    white-space: nowrap;
    flex-shrink: 0;
}

.ccw-newsletter-band .ccw-nl-disclaimer { color: rgba(255,255,255,0.3); margin-top: 10px; }

/* ============================================================
   FOOTER
   ============================================================ */
.ccw-footer {
    background: var(--navy-dark);
    color: rgba(255,255,255,0.6);
    padding: 48px 0 0;
}

.ccw-footer-grid {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 20px 40px;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

.ccw-footer-logo-img {
    max-height: 44px;
    width: auto;
    margin-bottom: 14px;
    opacity: 0.9;
}

.ccw-footer-about {
    font-size: 13px;
    color: rgba(255,255,255,0.45);
    line-height: 1.65;
    max-width: 260px;
}

.ccw-footer-col-title {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
    margin: 0 0 16px;
}

.ccw-footer-links-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.ccw-footer-links-list a {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: color var(--transition);
}

.ccw-footer-links-list a:hover { color: var(--white); }

.ccw-footer-bottom {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.ccw-footer-copy {
    font-size: 12px;
    color: rgba(255,255,255,0.28);
}

.ccw-footer-bottom-links {
    display: flex;
    gap: 20px;
}

.ccw-footer-bottom-links a {
    font-size: 12px;
    color: rgba(255,255,255,0.3);
    text-decoration: none;
    transition: color var(--transition);
}

.ccw-footer-bottom-links a:hover { color: rgba(255,255,255,0.7); }

.ccw-social-row {
    display: flex;
    gap: 8px;
    margin-top: 14px;
}

.ccw-social-btn {
    width: 34px;
    height: 34px;
    background: rgba(255,255,255,0.07);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.55);
    text-decoration: none;
    transition: background var(--transition), color var(--transition);
}

.ccw-social-btn:hover {
    background: var(--red);
    color: var(--white);
}

/* ============================================================
   SINGLE POST
   ============================================================ */
.ccw-article-hero {
    height: 420px;
    background: var(--gray-800);
    background-size: cover;
    background-position: center;
    position: relative;
}

.ccw-article-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 60%);
}

.ccw-article-wrap {
    max-width: 760px;
    margin: 0 auto;
    padding: 40px 20px 80px;
}

.ccw-article-cat {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 14px;
    display: inline-block;
    text-decoration: none;
}

.ccw-article-title {
    font-family: var(--serif);
    font-size: 38px;
    font-weight: 900;
    line-height: 1.15;
    color: var(--navy);
    margin: 0 0 18px;
    letter-spacing: -0.5px;
}

.ccw-article-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--gray-600);
    padding-bottom: 24px;
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: 28px;
}

.ccw-article-meta-sep { color: var(--gray-200); }

.entry-content {
    font-size: 17px;
    line-height: 1.75;
    color: var(--gray-800);
}

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

.entry-content h2 {
    font-family: var(--serif);
    font-size: 26px;
    font-weight: 700;
    color: var(--navy);
    margin: 1.8em 0 0.6em;
}

.entry-content h3 {
    font-family: var(--serif);
    font-size: 21px;
    margin: 1.5em 0 0.5em;
    color: var(--navy);
}

.entry-content a { color: var(--red); text-decoration: underline; }

.entry-content blockquote {
    border-left: 4px solid var(--red);
    margin: 1.5em 0;
    padding: 0.4em 0 0.4em 1.4em;
    font-size: 19px;
    font-style: italic;
    color: var(--gray-600);
    font-family: var(--serif);
}

.entry-content figure { margin: 1.5em 0; }
.entry-content figcaption {
    font-size: 13px;
    color: var(--gray-400);
    text-align: center;
    margin-top: 8px;
}

/* ============================================================
   PAGE TEMPLATE
   ============================================================ */
.ccw-page-wrap {
    max-width: 860px;
    margin: 0 auto;
    padding: 48px 20px 80px;
}

.ccw-page-title {
    font-family: var(--serif);
    font-size: 36px;
    font-weight: 900;
    color: var(--navy);
    margin: 0 0 32px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--gray-200);
}

/* ============================================================
   UTILITIES
   ============================================================ */
.ccw-visually-hidden {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

.ccw-load-more-wrap { text-align: center; padding: 28px 0 0; }

.ccw-load-more {
    display: inline-block;
    padding: 12px 32px;
    border: 2px solid var(--navy);
    color: var(--navy);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    border-radius: var(--radius);
    text-decoration: none;
    transition: all var(--transition);
}

.ccw-load-more:hover {
    background: var(--navy);
    color: var(--white);
    text-decoration: none;
}

/* ============================================================
   RESPONSIVE — TABLET  (768px – 1023px)
   ============================================================ */
@media (max-width: 1023px) {
    .ccw-content-layout {
        grid-template-columns: 1fr;
    }

    .ccw-sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

    .ccw-hero-title { font-size: 34px; }

    .ccw-news-grid, .ccw-rss-wrap .wprss-feed-items { grid-template-columns: repeat(2, 1fr); }

    .ccw-footer-grid { grid-template-columns: 1fr 1fr; }
    .ccw-footer-grid > *:last-child { grid-column: span 2; }

    .ccw-geo-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   RESPONSIVE — MOBILE  (< 768px)
   ============================================================ */
@media (max-width: 767px) {
    .ccw-top-bar-date { display: none; }
    .ccw-top-bar-tagline { font-size: 10px; }

    /* Header */
    .ccw-header-inner { height: 60px; gap: 12px; }
    .ccw-logo-img { max-height: 40px; }

    /* Mobile nav */
    .ccw-nav-toggle { display: block; }

    .ccw-nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--navy);
        flex-direction: column;
        padding: 8px 0;
        box-shadow: var(--shadow-lg);
        z-index: 9998;
        border-top: 2px solid var(--red);
    }

    .ccw-nav-links.is-open { display: flex; }

    .ccw-nav-links > li > a {
        padding: 13px 20px;
        border-bottom: 1px solid rgba(255,255,255,0.06);
        border-bottom-color: rgba(255,255,255,0.06) !important;
    }

    /* Hero */
    .ccw-hero { height: 380px; }
    .ccw-hero-title { font-size: 26px; }
    .ccw-hero-excerpt { display: none; }

    /* Grids */
    .ccw-news-grid,
    .ccw-rss-wrap .wprss-feed-items,
    .ccw-geo-grid { grid-template-columns: 1fr; }

    /* Sidebar */
    .ccw-sidebar { display: block; }

    /* Footer */
    .ccw-footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .ccw-footer-grid > *:last-child { grid-column: auto; }
    .ccw-footer-bottom { flex-direction: column; align-items: flex-start; gap: 10px; }

    /* Newsletter band */
    .ccw-newsletter-band .ccw-nl-form { flex-direction: column; }
    .ccw-newsletter-band .ccw-nl-input {
        border-right: 1.5px solid rgba(255,255,255,0.15);
        border-radius: var(--radius);
    }
    .ccw-newsletter-band .ccw-nl-btn {
        width: 100%;
        border-radius: var(--radius);
    }

    /* Single */
    .ccw-article-hero { height: 260px; }
    .ccw-article-title { font-size: 28px; }
    .entry-content { font-size: 16px; }

    /* Top bar mobile — hide search label, shrink search */
    .ccw-top-bar-tagline { display: none; }
    .ccw-top-social { display: none; }
    .ccw-top-bar-divider { display: none; }
    .ccw-top-search-input { width: 90px; }

    /* Share bar mobile */
    .ccw-share-bar { gap: 6px; }
    .ccw-share-btn { font-size: 11px; padding: 5px 10px; }
}

/* ============================================================
   TOP BAR — search · social · live dot
   ============================================================ */
.ccw-top-bar-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.ccw-top-social {
    display: flex;
    align-items: center;
    gap: 5px;
}

.ccw-top-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.38);
    width: 22px;
    height: 22px;
    border-radius: 3px;
    text-decoration: none;
    transition: color var(--transition);
}

.ccw-top-social-link:hover { color: rgba(255,255,255,0.85); }

.ccw-top-bar-divider {
    width: 1px;
    height: 14px;
    background: rgba(255,255,255,0.12);
    flex-shrink: 0;
}

.ccw-top-search {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 4px;
    overflow: hidden;
    transition: border-color var(--transition), background var(--transition);
}

.ccw-top-search:focus-within {
    border-color: rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.11);
}

.ccw-top-search-input {
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.85);
    font-size: 11px;
    font-family: var(--sans);
    height: 26px;
    padding: 0 8px;
    width: 130px;
    outline: none;
}

.ccw-top-search-input::placeholder { color: rgba(255,255,255,0.3); }
.ccw-top-search-input::-webkit-search-cancel-button { display: none; }

.ccw-top-search-btn {
    background: transparent;
    border: none;
    border-left: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.4);
    cursor: pointer;
    height: 26px;
    padding: 0 8px;
    display: flex;
    align-items: center;
    transition: color var(--transition);
}

.ccw-top-search-btn:hover { color: rgba(255,255,255,0.85); }

/* ── LIVE pulsing dot ─────────────────────────────────────── */
.ccw-live-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    flex-shrink: 0;
    animation: livePulse 1.5s ease-in-out infinite;
}

@keyframes livePulse {
    0%, 100% { opacity: 1;   transform: scale(1);    }
    50%       { opacity: 0.3; transform: scale(0.6); }
}

/* ============================================================
   SHARE BUTTONS  (single.php)
   ============================================================ */
.ccw-share-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 0;
}

.ccw-share-bar--top  { border-bottom: 1px solid var(--gray-200); margin-bottom: 24px; }
.ccw-share-bar--bottom { border-top: 1px solid var(--gray-200); margin-top: 28px; }

.ccw-share-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--gray-400);
    margin-right: 4px;
}

.ccw-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    font-family: var(--sans);
    padding: 6px 14px;
    border-radius: 4px;
    border: 1.5px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition);
    line-height: 1;
}

.ccw-share-fb  { background: #1877f2; color: #fff; border-color: #1877f2; }
.ccw-share-fb:hover { background: #1465d8; border-color: #1465d8; color: #fff; text-decoration: none; }

.ccw-share-tw  { background: #000; color: #fff; border-color: #000; }
.ccw-share-tw:hover { background: #111; color: #fff; text-decoration: none; }

.ccw-share-copy {
    background: var(--white);
    color: var(--gray-600);
    border-color: var(--gray-200);
}

.ccw-share-copy:hover {
    border-color: var(--navy);
    color: var(--navy);
    background: var(--gray-100);
}

/* ── Print button ────────────────────────────────────────── */
.ccw-print-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    font-family: var(--sans);
    color: var(--gray-400);
    background: none;
    border: 1.5px solid var(--gray-200);
    border-radius: 4px;
    padding: 5px 12px;
    cursor: pointer;
    transition: color var(--transition), border-color var(--transition);
}

.ccw-print-btn:hover { color: var(--navy); border-color: var(--navy); }

/* ── AdSense placeholder ─────────────────────────────────── */
.ccw-adsense-slot {
    background: var(--gray-100);
    border: 1.5px dashed var(--gray-200);
    border-radius: var(--radius);
    min-height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 32px 0;
    padding: 24px;
}

.ccw-adsense-placeholder-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--gray-400);
    margin: 0;
}

/* ============================================================
   FOOTER — red top border
   ============================================================ */
.ccw-footer { border-top: 3px solid var(--red); }

/* ============================================================
   PRINT STYLES
   ============================================================ */
@media print {
    .ccw-top-bar,
    .ccw-site-header,
    .ccw-ticker-bar,
    .ccw-share-bar,
    .ccw-print-btn,
    .ccw-sidebar,
    .ccw-adsense-slot,
    .ccw-newsletter-band,
    .ccw-footer { display: none !important; }

    .ccw-article-wrap { max-width: 100%; padding: 0; }
    .ccw-article-title { font-size: 26px; }
    .entry-content { font-size: 13px; }
    a[href]::after { content: ' (' attr(href) ')'; font-size: 10px; color: #999; }
}
