/*
Theme Name: The Press
Theme URI: https://yoursite.com
Author: Arjun T K
Author URI: https://yoursite.com
Description: Ultra-modern newspaper theme with dynamic layouts, featured images, and mobile-first design.
Version: 1.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: thepress
Tags: news, newspaper, blog, two-columns, right-sidebar, custom-header, custom-menu, featured-images, responsive-layout
*/

/* =============================================
   CSS VARIABLES
   ============================================= */
:root {
    --ink: #0a0a0a;
    --paper: #faf8f4;
    --accent: #c8102e;
    --accent-dark: #9e0c24;
    --muted: #6b6560;
    --border: #e8e4df;
    --card: #ffffff;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.06), 0 2px 4px rgba(0,0,0,0.04);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.04);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.12);
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'DM Sans', -apple-system, sans-serif;
    --font-mono: 'DM Mono', 'Courier New', monospace;
    --radius: 4px;
    --radius-lg: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
}

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
    width: 100%;
}
a { color: inherit; text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* =============================================
   TOPBAR
   ============================================= */
.topbar {
    background: var(--ink);
    color: #fff;
    font-family: var(--font-mono);
    font-size: 11px;
    padding: 8px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    letter-spacing: 0.05em;
    position: relative;
    z-index: 101;
    overflow: hidden;
    max-width: 100%;
}
.topbar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}
.topbar-date { opacity: 0.5; }
.topbar-links { display: flex; gap: 24px; }
.topbar-links a {
    color: rgba(255,255,255,0.5);
    transition: var(--transition-fast);
    letter-spacing: 0.06em;
    position: relative;
}
.topbar-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.3s ease;
}
.topbar-links a:hover { color: #fff; }
.topbar-links a:hover::after { width: 100%; }

/* =============================================
   MASTHEAD
   ============================================= */
.site-header {
    border-bottom: 3px solid var(--ink);
    background: var(--paper);
    position: relative;
}
.masthead {
    padding: 20px 24px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    max-width: 1280px;
    margin: 0 auto;
}
.site-branding { display: flex; flex-direction: column; }
.site-title {
    font-family: var(--font-serif);
    font-size: clamp(28px, 4.5vw, 52px);
    font-weight: 900;
    letter-spacing: -1.5px;
    line-height: 1;
    color: var(--ink);
    transition: opacity 0.2s ease;
}
.site-title:hover { opacity: 0.85; }
.site-title span { color: var(--accent); }
.site-tagline {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: 6px;
}
.masthead-info { text-align: right; }
.masthead-date {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--muted);
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}
.masthead-edition {
    font-size: 11px;
    color: var(--muted);
    font-weight: 300;
    opacity: 0.7;
}

/* =============================================
   NAVIGATION
   ============================================= */
.main-navigation {
    border-bottom: 1px solid var(--border);
    background: rgba(250, 248, 244, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: box-shadow 0.3s ease;
    overflow: hidden;
}
.main-navigation.scrolled { box-shadow: var(--shadow-md); }
.nav-inner {
    display: flex;
    align-items: center;
    padding: 0 24px;
    max-width: 1280px;
    margin: 0 auto;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.nav-inner::-webkit-scrollbar { display: none; }
.main-navigation ul { display: flex; gap: 0; }
.main-navigation ul li a {
    display: block;
    padding: 14px 18px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    transition: var(--transition);
    position: relative;
}
.main-navigation ul li a::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 6px;
    width: 0;
    height: 0;
    background: var(--accent);
    border-radius: 50%;
    transform: translateY(-50%) scale(0);
    transition: transform 0.3s ease;
}
.main-navigation ul li a:hover,
.main-navigation ul li.current-menu-item > a,
.main-navigation ul li.current-menu-ancestor > a {
    color: var(--ink);
    border-bottom-color: var(--accent);
}
.nav-search { margin-left: auto; padding: 10px 0; }
.nav-search input {
    border: 1px solid transparent;
    background: rgba(0,0,0,0.03);
    padding: 8px 16px;
    font-size: 12px;
    font-family: var(--font-sans);
    color: var(--ink);
    outline: none;
    width: 140px;
    border-radius: 20px;
    transition: var(--transition);
}
.nav-search input:focus { 
    border-color: var(--border);
    background: #fff;
    width: 200px;
    box-shadow: var(--shadow-sm);
}
.nav-search input::placeholder { color: var(--muted); }

/* =============================================
   BREAKING NEWS TICKER
   ============================================= */
.news-ticker {
    background: var(--accent);
    color: #fff;
    padding: 8px 0;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.ticker-label {
    background: rgba(0,0,0,0.25);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 3px 14px;
    white-space: nowrap;
    flex-shrink: 0;
    margin-right: 16px;
}
.ticker-wrapper { overflow: hidden; flex: 1; }
.ticker-track {
    display: flex;
    gap: 40px;
    animation: ticker-scroll 35s linear infinite;
    white-space: nowrap;
}
.ticker-track:hover { animation-play-state: paused; }
@keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.ticker-item { font-size: 12px; font-weight: 300; letter-spacing: 0.03em; }
.ticker-item strong { font-weight: 600; }

/* =============================================
   HERO SECTION
   ============================================= */
.hero-section {
    display: grid;
    grid-template-columns: 1fr 320px;
    border-bottom: 1px solid var(--border);
    background: var(--card);
    max-width: 100%;
    overflow: hidden;
}
.hero-main {
    position: relative;
    overflow: hidden;
    min-height: 520px;
    cursor: pointer;
}
.hero-main::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.02) 0%, transparent 100%);
    z-index: 1;
    pointer-events: none;
}
.hero-main a { display: block; height: 100%; }
.hero-featured-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.hero-main:hover .hero-featured-img { transform: scale(1.03); }
.hero-no-img {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 40%, #0f3460 70%, #533483 100%);
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.4) 45%, rgba(0,0,0,0.15) 100%);
    z-index: 1;
}
.hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 36px 32px;
    color: #fff;
    z-index: 2;
}
.hero-category {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--accent);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 6px 12px;
    margin-bottom: 14px;
    border-radius: 2px;
}
.hero-category::before {
    content: '';
    width: 4px;
    height: 4px;
    background: rgba(255,255,255,0.6);
    border-radius: 50%;
}
.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(20px, 2.5vw, 34px);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 14px;
    color: #fff;
    letter-spacing: -0.5px;
}
.hero-title a { color: #fff; }
.hero-title a:hover { color: rgba(255,255,255,0.9); }
.hero-excerpt {
    font-size: 14px;
    opacity: 0.85;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-width: 500px;
}
.hero-meta {
    font-size: 12px;
    opacity: 0.6;
    font-weight: 400;
    display: flex;
    gap: 16px;
    align-items: center;
    font-family: var(--font-mono);
}
.hero-meta strong { font-weight: 600; opacity: 1; }
.hero-meta span { display: flex; align-items: center; gap: 6px; }
.hero-meta span::before {
    content: '·';
    opacity: 0.5;
}

/* =============================================
   HERO SIDEBAR
   ============================================= */
.hero-sidebar {
    border-left: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    background: var(--paper);
}
.hero-sidebar-header {
    padding: 16px 18px 14px;
    border-bottom: 1px solid var(--border);
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 8px;
}
.hero-sidebar-header::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}
.sidebar-article {
    display: flex;
    gap: 14px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background 0.2s ease;
    align-items: flex-start;
    position: relative;
}
.sidebar-article:last-child { border-bottom: none; }
.sidebar-article::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--accent);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}
.sidebar-article:hover { background: rgba(0,0,0,0.02); }
.sidebar-article:hover::before { transform: scaleY(1); }
.sidebar-thumb {
    width: 80px;
    height: 60px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--border);
}
.sidebar-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.sidebar-article:hover .sidebar-thumb img { transform: scale(1.08); }
.sidebar-thumb-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a3a4a, #0d6e6e);
}
.sidebar-tag {
    font-size: 9px;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 6px;
}
.sidebar-title {
    font-family: var(--font-serif);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--ink);
    margin-bottom: 6px;
}
.sidebar-title a { color: var(--ink); }
.sidebar-title a:hover { color: var(--accent); }
.sidebar-byline {
    font-size: 11px;
    color: var(--muted);
    font-family: var(--font-mono);
}

/* =============================================
   MARKETS BAR
   ============================================= */
.markets-bar {
    background: var(--ink);
    color: #fff;
    padding: 10px 24px;
    display: flex;
    gap: 28px;
    overflow-x: auto;
    scrollbar-width: none;
    align-items: center;
}
.markets-bar::-webkit-scrollbar { display: none; }
.market-item { display: flex; flex-direction: column; min-width: 72px; }
.market-name {
    font-size: 9px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
    margin-bottom: 1px;
    font-family: var(--font-mono);
}
.market-value {
    font-family: var(--font-mono);
    font-size: 13px;
    color: #fff;
}
.market-change { font-size: 10px; font-family: var(--font-mono); }
.market-change.up { color: #4ade80; }
.market-change.down { color: #f87171; }

/* =============================================
   SECTION LAYOUT
   ============================================= */
.site-main { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.content-area { padding: 40px 0; }

.section-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--ink);
}
.section-title {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.3px;
    white-space: nowrap;
    position: relative;
}
.section-line { flex: 1; height: 1px; background: linear-gradient(90deg, var(--border), transparent); }
.section-more {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    white-space: nowrap;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 6px;
}
.section-more:hover { color: var(--accent); }
.section-more:hover { gap: 10px; }

/* =============================================
   POST CARD GRID
   ============================================= */
.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 0;
    background: var(--border);
    border: 1px solid var(--border);
    margin-bottom: 40px;
    border-radius: var(--radius);
    overflow: hidden;
}
.post-card {
    background: var(--card);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
}
.post-card:hover {
    z-index: 2;
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}
.post-card-img {
    height: 200px;
    overflow: hidden;
    position: relative;
    background: var(--border);
}
.post-card-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.post-card:hover .post-card-img::after { opacity: 1; }
.post-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.post-card:hover .post-card-img img { transform: scale(1.05); }
.post-card-img-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a2e, #0f3460);
}
.post-card-body { 
    padding: 20px 22px; 
    flex: 1;
    display: flex;
    flex-direction: column;
}
.post-card-tag {
    font-size: 10px;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.post-card-tag::before {
    content: '';
    width: 4px;
    height: 4px;
    background: var(--accent);
    border-radius: 50%;
}
.post-card-title {
    font-family: var(--font-serif);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 10px;
    color: var(--ink);
    transition: color 0.2s ease;
}
.post-card-title a { color: var(--ink); }
.post-card-title a:hover { color: var(--accent); }
.post-card-excerpt {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 14px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.post-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: var(--muted);
    border-top: 1px solid var(--border);
    padding-top: 14px;
    margin-top: auto;
}
.post-card-author { 
    font-weight: 500; 
    color: var(--ink);
    font-family: var(--font-mono);
}
.post-card-read-time {
    background: var(--paper);
    padding: 4px 10px;
    font-size: 10px;
    letter-spacing: 0.03em;
    border: 1px solid var(--border);
    border-radius: 12px;
}

/* =============================================
   OPINION SECTION
   ============================================= */
.opinion-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0;
    background: var(--border);
    border: 1px solid var(--border);
    margin-bottom: 40px;
    overflow: hidden;
}
.opinion-card {
    background: var(--ink);
    color: #fff;
    padding: 24px 22px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.opinion-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}
.opinion-card:hover { background: #151515; }
.opinion-card:hover::before { transform: scaleX(1); }
.opinion-quote-mark {
    font-size: 56px;
    font-family: var(--font-serif);
    position: absolute;
    top: 12px; right: 16px;
    color: rgba(200,16,46,0.2);
    line-height: 1;
    pointer-events: none;
    transition: color 0.3s ease;
}
.opinion-card:hover .opinion-quote-mark { color: rgba(200,16,46,0.35); }
.opinion-avatar {
    width: 44px; height: 44px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255,255,255,0.15);
    margin-bottom: 14px;
    background: rgba(255,255,255,0.1);
    transition: border-color 0.3s ease;
}
.opinion-card:hover .opinion-avatar { border-color: rgba(255,255,255,0.3); }
.opinion-avatar img { width: 100%; height: 100%; object-fit: cover; }
.opinion-author-name {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
}
.opinion-author-role {
    font-size: 11px;
    color: rgba(255,255,255,0.45);
    margin-bottom: 14px;
    font-family: var(--font-mono);
}
.opinion-title {
    font-family: var(--font-serif);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    color: #fff;
    font-style: italic;
    position: relative;
    z-index: 1;
}
.opinion-title a { color: #fff; }
.opinion-title a:hover { color: rgba(255,255,255,0.85); }

/* =============================================
   SINGLE POST
   ============================================= */
.single-header { 
    padding: 36px 0 28px; 
    border-bottom: 1px solid var(--border); 
    margin-bottom: 36px; 
}
.single-categories { 
    display: flex; 
    gap: 8px; 
    flex-wrap: wrap; 
    margin-bottom: 16px; 
}
.single-cat-tag {
    background: var(--accent);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 2px;
}
.single-title {
    font-family: var(--font-serif);
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: -0.5px;
    margin-bottom: 20px;
    color: var(--ink);
}
.single-meta {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: var(--muted);
    align-items: center;
    flex-wrap: wrap;
    font-family: var(--font-mono);
}
.single-author { 
    font-weight: 600; 
    color: var(--ink);
    display: flex;
    align-items: center;
    gap: 6px;
}
.single-author::before {
    content: '';
    width: 20px;
    height: 1px;
    background: var(--accent);
}
.single-featured-img {
    width: 100%;
    max-height: 540px;
    object-fit: cover;
    margin-bottom: 36px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}
.single-content {
    font-size: 18px;
    line-height: 1.85;
    color: var(--ink);
    max-width: 760px;
}
.single-content p { margin-bottom: 1.6em; }
.single-content h2 {
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: 700;
    margin: 2.5em 0 1em;
    color: var(--ink);
}
.single-content h3 {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 700;
    margin: 2em 0 0.8em;
}
.single-content blockquote {
    border-left: 4px solid var(--accent);
    padding: 16px 28px;
    margin: 2.5em 0;
    font-family: var(--font-serif);
    font-size: 22px;
    font-style: italic;
    color: var(--ink);
    background: rgba(200,16,46,0.03);
    border-radius: 0 var(--radius) var(--radius) 0;
}
.single-content a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; }
.single-content img { margin: 2.5em 0; border-radius: var(--radius); box-shadow: var(--shadow-md); }

/* =============================================
   SIDEBAR WIDGET
   ============================================= */
.sidebar-widget { margin-bottom: 32px; }
.widget-title {
    font-family: var(--font-serif);
    font-size: 16px;
    font-weight: 700;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--ink);
    margin-bottom: 16px;
}

/* =============================================
   PAGINATION
   ============================================= */
.pagination {
    display: flex;
    gap: 4px;
    justify-content: center;
    margin: 32px 0;
}
.pagination a, .pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    border: 1px solid var(--border);
    font-size: 13px;
    font-weight: 500;
    color: var(--muted);
    transition: var(--transition);
}
.pagination a:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.pagination .current { background: var(--accent); color: #fff; border-color: var(--accent); }

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
    background: var(--ink);
    color: rgba(255,255,255,0.5);
    margin-top: 64px;
    position: relative;
    overflow: hidden;
}
.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.footer-top {
    padding: 48px 24px;
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 48px;
    max-width: 1280px;
    margin: 0 auto;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.footer-brand-name {
    font-family: var(--font-serif);
    font-size: 30px;
    font-weight: 900;
    color: #fff;
    letter-spacing: -1px;
    margin-bottom: 12px;
}
.footer-brand-name span { color: var(--accent); }
.footer-brand-desc { 
    font-size: 14px; 
    line-height: 1.7; 
    margin-bottom: 20px;
    opacity: 0.7;
}
.footer-social { display: flex; gap: 12px; }
.footer-social a {
    display: flex; align-items: center; justify-content: center;
    width: 38px; height: 38px;
    border: 1px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.6);
    font-size: 11px;
    font-weight: 600;
    transition: var(--transition);
    border-radius: 50%;
}
.footer-social a:hover { 
    background: var(--accent); 
    border-color: var(--accent); 
    color: #fff;
    transform: translateY(-2px);
}
.footer-col-title {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.9);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.footer-col-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255,255,255,0.1);
}
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col ul li a {
    font-size: 14px;
    color: rgba(255,255,255,0.5);
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.footer-col ul li a::before {
    content: '';
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.3s ease;
}
.footer-col ul li a:hover { color: #fff; }
.footer-col ul li a:hover::before { width: 12px; }
.footer-subscribe-form { display: flex; flex-direction: column; gap: 10px; }
.footer-subscribe-input {
    padding: 12px 16px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    font-size: 14px;
    outline: none;
    font-family: inherit;
    border-radius: var(--radius);
    transition: var(--transition-fast);
}
.footer-subscribe-input::placeholder { color: rgba(255,255,255,0.35); }
.footer-subscribe-input:focus { 
    border-color: var(--accent);
    background: rgba(255,255,255,0.06);
}
.footer-subscribe-btn {
    padding: 12px 20px;
    background: var(--accent);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-family: inherit;
    transition: var(--transition-fast);
    border-radius: var(--radius);
}
.footer-subscribe-btn:hover { 
    background: var(--accent-dark);
    transform: translateY(-1px);
}
.footer-bottom {
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    max-width: 1280px;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 12px;
}
.footer-bottom a { 
    color: rgba(255,255,255,0.4); 
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.footer-bottom a:hover { color: #fff; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
    .hero-section { grid-template-columns: 1fr; }
    .hero-sidebar { display: none; }
    .hero-main { min-height: 380px; }
    .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 640px) {
    .topbar { padding: 8px 16px; }
    .topbar-links { display: none; }
    .masthead { 
        padding: 16px; 
        flex-direction: column; 
        align-items: flex-start; 
        gap: 8px; 
    }
    .masthead-info { display: none; }
    .site-main { padding: 0 16px; }
    .content-area { padding: 28px 0; }
    .markets-bar { padding: 10px 16px; }
    .hero-content { padding: 24px; }
    .footer-top { 
        grid-template-columns: 1fr; 
        gap: 28px; 
        padding: 32px 16px; 
    }
    .footer-bottom { 
        padding: 16px; 
        flex-direction: column; 
        text-align: center; 
    }
    .post-grid { grid-template-columns: 1fr; }
    .opinion-grid { grid-template-columns: 1fr 1fr; }
    .section-header { flex-wrap: wrap; }
    .section-title { font-size: 18px; }
}
@media (max-width: 420px) {
    .opinion-grid { grid-template-columns: 1fr; }
}

/* =============================================
   UTILITY
   ============================================= */
.screen-reader-text {
    border: 0; clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%); height: 1px; margin: -1px;
    overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important;
}
.alignwide { margin-left: -40px; margin-right: -40px; }
.alignfull { margin-left: calc(-50vw + 50%); margin-right: calc(-50vw + 50%); width: 100vw; max-width: 100vw; overflow-x: hidden; }

/* =============================================
   SMOOTH SCROLL & ANIMATIONS
   ============================================= */
html { scroll-behavior: smooth; }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.content-section {
    animation: fadeInUp 0.6s ease forwards;
}

.post-card {
    animation: fadeInUp 0.5s ease forwards;
}

/* Stagger animation for grid items */
.post-grid .post-card:nth-child(1) { animation-delay: 0.05s; }
.post-grid .post-card:nth-child(2) { animation-delay: 0.1s; }
.post-grid .post-card:nth-child(3) { animation-delay: 0.15s; }
.post-grid .post-card:nth-child(4) { animation-delay: 0.2s; }
.post-grid .post-card:nth-child(5) { animation-delay: 0.25s; }
.post-grid .post-card:nth-child(6) { animation-delay: 0.3s; }
.post-grid .post-card:nth-child(7) { animation-delay: 0.35s; }
.post-grid .post-card:nth-child(8) { animation-delay: 0.4s; }

/* =============================================
   AI CHAT INVITE BANNER
   ============================================= */
.ai-chat-invite {
    margin: 48px 0;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    padding: 36px 32px;
    overflow: hidden;
    position: relative;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}
.ai-chat-invite::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(200,16,46,0.1) 0%, transparent 70%);
    pointer-events: none;
}
.ai-chat-invite-inner {
    display: flex;
    gap: 48px;
    align-items: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}
.ai-chat-left { flex: 1; min-width: 260px; }
.ai-chat-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.16em;
    color: var(--accent);
    margin-bottom: 14px;
    text-transform: uppercase;
}
.ai-chat-label::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}
.ai-chat-headline {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
    line-height: 1.25;
}
.ai-chat-sub {
    font-size: 14px;
    color: rgba(255,255,255,0.5);
    line-height: 1.75;
    margin-bottom: 24px;
}
.ai-chat-sub strong { color: rgba(255,255,255,0.85); font-weight: 500; }
.ai-chat-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--accent);
    color: #fff;
    padding: 14px 26px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: var(--transition-fast);
    border-radius: var(--radius);
}
.ai-chat-cta:hover { 
    background: var(--accent-dark); 
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(200, 16, 46, 0.4);
}
.ai-chat-cta svg { transition: transform 0.2s ease; }
.ai-chat-cta:hover svg { transform: translateX(3px); }
.ai-chat-right {
    flex: 1;
    min-width: 260px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.ai-chat-bubble {
    padding: 14px 18px;
    font-size: 14px;
    line-height: 1.65;
    border-radius: var(--radius);
}
.ai-chat-bubble-user {
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.85);
    margin-left: 28px;
    font-style: italic;
    border: 1px solid rgba(255,255,255,0.08);
}
.ai-chat-bubble-ai {
    background: rgba(200,16,46,0.1);
    border-left: 3px solid var(--accent);
    color: rgba(255,255,255,0.75);
}
.bubble-badge {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 3px 8px;
    margin-bottom: 8px;
    width: fit-content;
    border-radius: 10px;
}
.single-content p:empty { display: none; }
@media (max-width: 640px) {
    .ai-chat-right { display: none; }
    .ai-chat-invite { padding: 28px 20px; border-radius: 0; margin: 32px -14px; }
    .ai-chat-cta { width: 100%; text-align: center; justify-content: center; }
}

/* =============================================
   TRENDING SECTION
   ============================================= */
.trending-section {
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 0;
}
.trending-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}
.trending-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0 14px;
    border-bottom: 2px solid var(--ink);
    flex-wrap: wrap;
    gap: 12px;
}
.trending-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--ink);
    text-transform: uppercase;
}
.trending-fire {
    color: var(--accent);
    font-size: 13px;
}
.trending-cats {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}
.trending-cat {
    padding: 4px 12px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    border: 1px solid var(--border);
    color: var(--muted);
    transition: var(--transition);
    font-family: var(--font-sans);
}
.trending-cat:hover { border-color: var(--ink); color: var(--ink); }
.trending-cat.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.trending-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 0;
}
.trending-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    border-right: 1px solid var(--border);
    padding-right: 20px;
    transition: background 0.15s;
    cursor: pointer;
}
.trending-item:hover { background: rgba(0,0,0,0.015); }
.trending-num {
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: 900;
    color: var(--border);
    line-height: 1;
    flex-shrink: 0;
    min-width: 36px;
    padding-top: 2px;
}
.trending-item:hover .trending-num { color: var(--accent); }
.trending-item-body { flex: 1; }
.trending-item-cat {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    display: block;
    margin-bottom: 5px;
}
.trending-item-title {
    font-family: var(--font-serif);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 6px;
    color: var(--ink);
}
.trending-item-title a { color: var(--ink); }
.trending-item-title a:hover { color: var(--accent); }
.trending-item-meta {
    font-size: 11px;
    color: var(--muted);
    font-family: var(--font-mono);
}
.trending-item-thumb {
    width: 72px;
    height: 54px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: var(--radius);
}
.trending-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.trending-item:hover .trending-item-thumb img { transform: scale(1.06); }
@media (max-width: 640px) {
    .trending-list { grid-template-columns: 1fr; }
    .trending-inner { padding: 0 14px; }
    .trending-item { border-right: none; }
}

/* =============================================
   CONTENT SECTION & UTILITIES
   ============================================= */
.content-section { margin-top: 48px; }
.archive-header { margin-top: 28px; }
.archive-count { font-size: 11px; color: var(--muted); font-family: var(--font-mono); }
.single-tags { 
    margin-top: 36px; 
    padding-top: 24px; 
    border-top: 1px solid var(--border); 
    display: flex; 
    gap: 10px; 
    flex-wrap: wrap;
}
.single-tag { 
    border: 1px solid var(--border); 
    padding: 6px 14px; 
    font-size: 12px; 
    color: var(--muted); 
    transition: var(--transition-fast);
    border-radius: 16px;
}
.single-tag:hover { 
    border-color: var(--ink); 
    color: var(--ink);
    background: var(--ink);
    color: #fff;
}
.author-bio { 
    margin-top: 48px; 
    padding: 28px; 
    border: 1px solid var(--border); 
    display: flex; 
    gap: 24px; 
    align-items: flex-start;
    border-radius: var(--radius-lg);
    background: var(--paper);
}
.author-bio-avatar { flex-shrink: 0; }
.author-bio-avatar img { 
    border-radius: 50%; 
    border: 3px solid var(--border);
}
.author-bio-name { 
    font-family: var(--font-serif); 
    font-size: 18px; 
    font-weight: 700; 
    margin-bottom: 8px;
}
.author-bio-desc { 
    font-size: 14px; 
    color: var(--muted); 
    line-height: 1.7;
}
.related-section { 
    margin-top: 64px; 
    padding-top: 32px; 
    border-top: 2px solid var(--ink);
}
.related-section .section-header { margin-bottom: 28px; }
.ai-pulse-live-dot {
    display: inline-block; 
    width: 8px; 
    height: 8px; 
    border-radius: 50%;
    background: #16a34a; 
    margin-left: 10px; 
    vertical-align: middle;
    animation: thepress-pulse 2s infinite;
}
@keyframes thepress-pulse {
    0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.4;transform:scale(1.3)}
}
.ai-pulse-intro {
    font-size: 14px; 
    color: var(--muted); 
    font-style: italic;
    border-left: 3px solid var(--accent); 
    padding-left: 16px;
    margin: 0 0 24px; 
    max-width: 640px; 
    line-height: 1.7;
}
.comments-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 24px;
    border-bottom: 2px solid var(--ink);
    margin-bottom: 36px;
    flex-wrap: wrap;
}
.comments-title {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 6px;
}
.comments-subtitle {
    font-size: 13px;
    color: var(--muted);
    font-style: italic;
}
.comments-ai-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #0a0a0a;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 8px 14px;
    white-space: nowrap;
    flex-shrink: 0;
    border-radius: 20px;
}
.comments-ai-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ade80;
    animation: pulse-dot 2s infinite;
    flex-shrink: 0;
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.9); }
}

.comments-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.comment-item {
    padding: 28px 0;
    border-bottom: 1px solid var(--border);
    animation: comment-in 0.4s ease;
}
@keyframes comment-in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}
.comment-body { display: flex; flex-direction: column; gap: 12px; }
.comment-head {
    display: flex;
    align-items: center;
    gap: 12px;
}
.comment-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    color: rgba(255,255,255,0.9);
    flex-shrink: 0;
    font-family: var(--font-serif);
}
.comment-meta-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
}
.comment-author-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
}
.comment-date {
    font-size: 11px;
    color: var(--muted);
    font-family: var(--font-mono);
}
.comment-actions a {
    font-size: 11px;
    color: var(--muted);
    font-weight: 500;
    letter-spacing: 0.03em;
    transition: var(--transition-fast);
    border: 1px solid var(--border);
    padding: 5px 12px;
    border-radius: 16px;
}
.comment-actions a:hover { 
    color: var(--ink); 
    border-color: var(--ink);
    background: var(--ink);
    color: #fff;
}
.comment-pending {
    font-size: 12px;
    color: var(--muted);
    font-style: italic;
    padding: 8px 14px;
    background: var(--paper);
    border-left: 2px solid var(--accent);
}
.comment-text {
    font-size: 15px;
    line-height: 1.75;
    color: #333;
    padding-left: 56px;
}
.comment-text p { margin-bottom: 1em; }
.comment-text p:last-child { margin-bottom: 0; }

.ai-guide-response {
    margin-left: 56px;
    padding: 16px 20px;
    background: var(--paper);
    border-left: 3px solid var(--accent);
    animation: fadein 0.5s ease;
    border-radius: 0 var(--radius) var(--radius) 0;
}
.ai-guide-response-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}
.ai-guide-response-badge {
    background: var(--accent);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 12px;
}
.ai-guide-response-time {
    font-size: 10px;
    color: var(--muted);
    font-family: var(--font-mono);
}
.ai-guide-response-text {
    font-size: 14px;
    line-height: 1.7;
    color: #444;
    font-style: italic;
    font-family: Georgia, serif;
}

.comment-form-section {
    margin-top: 56px;
    padding-top: 36px;
    border-top: 2px solid var(--ink);
}
.comment-form-header { margin-bottom: 28px; }
.comment-form-title {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 8px;
}
.comment-form-sub {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.6;
}
.comment-form-sub strong { color: var(--accent); font-weight: 600; }
.comment-field-wrap { margin-bottom: 18px; }
.comment-field-wrap textarea {
    width: 100%;
    min-height: 120px;
    padding: 16px 18px;
    border: 1.5px solid var(--border);
    background: var(--paper);
    font-family: var(--font-sans);
    font-size: 15px;
    color: var(--ink);
    resize: vertical;
    outline: none;
    transition: var(--transition-fast);
    line-height: 1.6;
    border-radius: var(--radius);
}
.comment-field-wrap textarea:focus {
    border-color: var(--ink);
    background: #fff;
    box-shadow: var(--shadow-sm);
}
.comment-field-wrap textarea::placeholder { color: var(--muted); font-style: italic; }
.comment-field-hint {
    font-size: 12px;
    color: var(--muted);
    margin-top: 8px;
    font-style: italic;
    display: flex;
    align-items: center;
    gap: 6px;
}
.comment-field-hint::before {
    content: '';
    width: 4px;
    height: 4px;
    background: var(--accent);
    border-radius: 50%;
}
.comment-fields-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 18px;
}
.comment-field-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border);
    background: var(--paper);
    font-family: var(--font-sans);
    font-size: 14px;
    color: var(--ink);
    outline: none;
    transition: var(--transition-fast);
    border-radius: var(--radius);
}
.comment-field-group input:focus {
    border-color: var(--ink);
    background: #fff;
    box-shadow: var(--shadow-sm);
}
.comment-field-group input::placeholder { color: var(--muted); }
.comment-cookies {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.comment-submit-btn {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 14px 36px;
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition-fast);
    border-radius: var(--radius);
}
.comment-submit-btn:hover { 
    background: var(--accent-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(200, 16, 46, 0.3);
}
.comments-closed {
    font-size: 14px;
    color: var(--muted);
    font-style: italic;
    padding: 24px 0;
}
@media (max-width: 640px) {
    .comment-fields-row { grid-template-columns: 1fr; }
    .comment-text { padding-left: 0; }
    .ai-guide-response { margin-left: 0; }
    .comments-ai-badge { display: none; }
}


/* =============================================
   AI PULSE INDEX — The Press Integration v3
   Full desktop + mobile fix
   ============================================= */

/* ── SECTION WRAPPER ── */
.ai-pulse-section { margin-top: 48px; overflow: hidden; max-width: 100%; }
