/* Cacheable homepage, widget, and image styles extracted from Blade templates. */

.optimized-image-wrapper {
    display: block;
    max-width: 100%;
    position: relative;
    width: 100%;
}

.optimized-image-wrapper::before {
    content: '';
    display: block;
    padding-top: var(--aspect-ratio, 66.67%);
}

.optimized-image {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #f5f5f5;
}

.optimized-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.async-widget-placeholder {
    margin-bottom: 30px;
}

.async-widget-frame {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 2px solid #121212;
    border-radius: 0;
    overflow: hidden;
}

.async-widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 18px;
    background: #121212;
    border-bottom: 2px solid #121212;
}

.async-widget-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #fff;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.async-widget-icon {
    font-size: 1rem;
}

.async-widget-badge {
    background: #6b7280;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 3px;
}

.async-widget-body {
    padding: 18px;
}

.async-widget-line {
    display: block;
    height: 12px;
    margin-bottom: 12px;
    border-radius: 999px;
    background: linear-gradient(90deg, #ececec 25%, #f7f7f7 50%, #ececec 75%);
    background-size: 220% 100%;
    animation: async-widget-shimmer 1.4s ease-in-out infinite;
}

.async-widget-line:last-child {
    margin-bottom: 0;
}

.async-widget-line-wide {
    width: 100%;
}

.async-widget-line-medium {
    width: 78%;
}

.async-widget-line-short {
    width: 52%;
}

.async-widget-message {
    margin: 14px 0 0;
    color: #555;
    font-size: 0.85rem;
    line-height: 1.5;
}

.async-widget-error .async-widget-badge {
    background: #b91c1c;
}

.async-widget-error .async-widget-line {
    animation: none;
    background: #ececec;
}

@keyframes async-widget-shimmer {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

@media (max-width: 768px) {
    .async-widget-placeholder {
        display: none;
    }
}

.crypto-widget {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 2px solid #121212;
    border-radius: 0;
    padding: 0;
    margin-bottom: 30px;
    font-family: 'Space Grotesk', sans-serif;
}

.crypto-widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 18px;
    background: #121212;
    border-bottom: 2px solid #121212;
}

.crypto-widget-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #fff;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.crypto-icon {
    font-size: 1.1rem;
    color: #FFBE0B;
}

.crypto-live-badge {
    background: #10b981;
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 3px;
    animation: pulse 2s infinite;
}

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

/* Global Metrics */
.crypto-global-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 15px 18px;
    background: #fafafa;
    border-bottom: 1px solid #e2e2e2;
}

.crypto-metric-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.crypto-metric-label {
    font-size: 0.65rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.crypto-metric-value {
    font-size: 0.85rem;
    font-weight: 700;
    color: #121212;
}

/* Crypto List */
.crypto-list {
    padding: 0;
}

.crypto-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    border-bottom: 1px solid #e2e2e2;
    transition: background 0.2s;
}

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

.crypto-item:hover {
    background: #f5f5f5;
}

.crypto-rank-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.crypto-rank {
    font-size: 0.75rem;
    font-weight: 700;
    color: #666;
    min-width: 18px;
}

.crypto-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.crypto-symbol {
    font-size: 0.9rem;
    font-weight: 700;
    color: #121212;
}

.crypto-name {
    font-size: 0.7rem;
    color: #666;
}

.crypto-price-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
}

.crypto-price {
    font-size: 0.95rem;
    font-weight: 700;
    color: #121212;
    font-family: 'Inter', monospace;
}

.crypto-change {
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 3px;
}

.crypto-up {
    color: #10b981;
}

.crypto-down {
    color: #ef4444;
}

/* Footer */
.crypto-widget-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 18px;
    background: #f5f5f5;
    border-top: 1px solid #e2e2e2;
    font-size: 0.7rem;
}

.crypto-data-source {
    color: #888;
}

.crypto-view-all {
    color: #326891;
    text-decoration: none;
    font-weight: 600;
}

.crypto-view-all:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .crypto-widget {
        margin-bottom: 20px;
    }
    
    .crypto-global-metrics {
        padding: 12px 15px;
    }
    
    .crypto-item {
        padding: 12px 15px;
    }
}

.stock-widget {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 2px solid #121212;
    border-radius: 0;
    padding: 0;
    margin-bottom: 30px;
    font-family: 'Space Grotesk', sans-serif;
}

.stock-widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 18px;
    background: #121212;
    border-bottom: 2px solid #121212;
}

.stock-widget-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #fff;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.stock-icon {
    font-size: 1.1rem;
}

.stock-status-badge {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 3px;
}

.stock-status-open {
    background: #10b981;
    color: white;
    animation: pulse 2s infinite;
}

.stock-status-closed {
    background: #6b7280;
    color: white;
}

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

/* Major Indices */
.stock-indices {
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid #e2e2e2;
}

.stock-index-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 18px;
    border-bottom: 1px solid #e2e2e2;
    background: #fafafa;
}

.stock-index-item:last-child {
    border-bottom: none;
}

.stock-index-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: #121212;
}

.stock-index-values {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stock-index-price {
    font-size: 0.9rem;
    font-weight: 700;
    color: #121212;
    font-family: 'Inter', monospace;
}

.stock-index-change {
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 3px;
}

/* Stock List */
.stock-list {
    padding: 0;
}

.stock-empty-state {
    padding: 22px 18px;
    color: #555;
    font-size: 0.9rem;
    line-height: 1.6;
    border-bottom: 1px solid #e2e2e2;
}

.stock-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    border-bottom: 1px solid #e2e2e2;
    transition: background 0.2s;
}

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

.stock-item:hover {
    background: #f5f5f5;
}

.stock-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stock-symbol {
    font-size: 0.9rem;
    font-weight: 700;
    color: #121212;
}

.stock-name {
    font-size: 0.7rem;
    color: #666;
}

.stock-price-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
}

.stock-price {
    font-size: 0.95rem;
    font-weight: 700;
    color: #121212;
    font-family: 'Inter', monospace;
}

.stock-change {
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 3px;
}

.stock-up {
    color: #10b981;
}

.stock-down {
    color: #ef4444;
}

/* Footer */
.stock-widget-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 18px;
    background: #f5f5f5;
    border-top: 1px solid #e2e2e2;
    font-size: 0.7rem;
}

.stock-data-source {
    color: #888;
}

.stock-view-all {
    color: #326891;
    text-decoration: none;
    font-weight: 600;
}

.stock-view-all:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .stock-widget {
        margin-bottom: 20px;
    }
    
    .stock-index-item {
        padding: 10px 15px;
    }
    
    .stock-item {
        padding: 12px 15px;
    }
}

.ai-generated-badge { background: linear-gradient(135deg, #FF006E, #FB5607); color: white; padding: 2px 8px; border-radius: 12px; font-size: 0.65rem; font-weight: 700; text-transform: uppercase; margin-left: 8px; }
/* AI Spotlight - NO BACKGROUND BOX, 2x3 GRID */
.ai-spotlight-simple {
    max-width: 1200px;
    margin: 0 auto 50px;
    padding: 0 20px;
}

.ai-spotlight-header-simple {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid #121212;
}

/* Centered header styles */
.centered-header {
    text-align: center;
}

.ai-title-simple {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    background: linear-gradient(135deg, #FF006E 0%, #FB5607 50%, #FFBE0B 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.centered-title {
    display: inline-block;
}

/* 2x3 Grid */
.ai-grid-2x3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 20px;
}

@media (max-width: 900px) {
    .ai-grid-2x3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .ai-grid-2x3 {
        grid-template-columns: 1fr;
    }
}

.ai-card-simple {
    cursor: pointer;
    padding: 20px;
    border-left: 4px solid;
    background: #fafafa;
    border-radius: 0 12px 12px 0;
    transition: all 0.3s ease;
}

.ai-card-simple:hover {
    transform: translateX(6px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

/* 6 different colors */
.ai-card-simple-1 { border-left-color: #FF006E; background: linear-gradient(135deg, #fff5f7 0%, #fafafa 100%); }
.ai-card-simple-2 { border-left-color: #FB5607; background: linear-gradient(135deg, #fff7f2 0%, #fafafa 100%); }
.ai-card-simple-3 { border-left-color: #FFBE0B; background: linear-gradient(135deg, #fffdf5 0%, #fafafa 100%); }
.ai-card-simple-4 { border-left-color: #8338EC; background: linear-gradient(135deg, #f9f5ff 0%, #fafafa 100%); }
.ai-card-simple-5 { border-left-color: #3A86FF; background: linear-gradient(135deg, #f5f9ff 0%, #fafafa 100%); }
.ai-card-simple-6 { border-left-color: #06FFA5; background: linear-gradient(135deg, #f5fffa 0%, #fafafa 100%); }

.ai-card-category-simple {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #FF006E;
    margin-bottom: 8px;
}

.ai-card-title-simple {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 10px 0;
    color: #121212;
}

.ai-card-excerpt-simple {
    font-size: 0.7rem;
    color: #555;
    line-height: 1.4;
    margin: 0 0 12px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ai-card-meta {
    display: flex;
    gap: 10px;
    font-size: 0.75rem;
    color: #888;
}

.ai-card-author {
    font-weight: 600;
    color: #666;
}

.ai-card-views {
    color: #326891;
    font-weight: 500;
}

/* AI Reporter Banner - Newspaper Theme */
.ai-reporter-banner {
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    border: 2px solid #121212;
    border-radius: 0;
    margin: 40px 0;
    padding: 0;
}

.ai-reporter-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    padding: 40px;
}

@media (max-width: 768px) {
    .ai-reporter-content {
        grid-template-columns: 1fr;
        padding: 30px 20px;
    }
}

.ai-reporter-badge {
    display: inline-block;
    background: #121212;
    color: #fff;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    padding: 6px 14px;
    margin-bottom: 15px;
}

.ai-reporter-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.9rem;
    font-weight: 700;
    color: #121212;
    margin: 0 0 12px 0;
    line-height: 1.2;
}

.ai-reporter-desc {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.6;
    margin: 0 0 25px 0;
}

.ai-reporter-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.ai-reporter-btn-primary {
    display: inline-block;
    background: #121212;
    color: #fff;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.0rem;
    font-weight: 600;
    padding: 14px 28px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.ai-reporter-btn-primary:hover {
    background: #326891;
    transform: translateY(-2px);
}

.ai-reporter-btn-secondary {
    display: inline-block;
    background: transparent;
    color: #121212;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.0rem;
    font-weight: 600;
    padding: 14px 28px;
    text-decoration: none;
    border: 2px solid #121212;
    transition: all 0.3s ease;
}

.ai-reporter-btn-secondary:hover {
    background: #121212;
    color: #fff;
}

.ai-reporter-stats {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
    padding-left: 40px;
    border-left: 2px solid #e2e2e2;
}

/* Gen Z Canada FAQ */
.genz-faq-section {
    margin: 36px 0 24px;
    border: 1px solid #1f2937;
    background: linear-gradient(160deg, #0f172a 0%, #111827 70%, #0b1220 100%);
    padding: 22px;
    color: #e2e8f0;
}

.genz-faq-intro {
    margin: 0 0 14px;
    color: #cbd5e1;
    font-size: 1rem;
}

.genz-faq-section .section-title {
    color: #f8fafc;
}

.genz-faq-list {
    display: grid;
    gap: 10px;
}

.genz-faq-item {
    border: 1px solid #334155;
    background: rgba(15, 23, 42, 0.55);
    padding: 12px 14px;
    border-radius: 8px;
}

.genz-faq-item summary {
    cursor: pointer;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #f8fafc;
    line-height: 1.35;
}

.genz-faq-item p {
    margin: 10px 0 0;
    color: #cbd5e1;
    line-height: 1.6;
    font-size: 0.97rem;
}

.genz-faq-item summary::marker {
    color: #f97316;
}

@media (max-width: 768px) {
    .ai-reporter-stats {
        padding-left: 0;
        padding-top: 30px;
        border-left: none;
        border-top: 2px solid #e2e2e2;
        flex-direction: row;
        justify-content: space-around;
    }
}

.ai-stat-item {
    text-align: center;
}

.ai-stat-number {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.7rem;
    font-weight: 800;
    background: linear-gradient(135deg, #FF006E 0%, #FB5607 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.ai-stat-label {
    font-size: 0.9rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* NYT-Style Featured Stories */
.featured-stories-section {
    margin-bottom: 50px;
}

.featured-stories-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
    gap: 30px;
}

.featured-main-story {
    grid-column: 1 / -1;
    cursor: pointer;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e2e2e2;
}

@media (max-width: 768px) {
    .featured-main-story {
        grid-template-columns: 1fr;
    }
    .featured-stories-grid {
        grid-template-columns: 1fr;
    }
}

.featured-main-image {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 12px;
}

.featured-main-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-category {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #326891;
    margin-bottom: 12px;
}

.featured-main-title {
    font-family: Georgia, serif;
    font-size: 2.2rem;
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 15px;
    color: #121212;
}

.featured-main-excerpt {
    font-size: 0.83rem;
    color: #555;
    line-height: 1.4;
    margin-bottom: 15px;
}

.featured-secondary-story {
    cursor: pointer;
    display: flex;
    gap: 15px;
}

.featured-secondary-image {
    width: 150px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.featured-secondary-content {
    display: flex;
    flex-direction: column;
}

.featured-category-small {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #326891;
    margin-bottom: 6px;
}

.featured-secondary-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.25;
    margin-bottom: 8px;
    color: #121212;
}

.featured-secondary-meta {
    font-size: 0.8rem;
    color: #888;
}

.featured-meta {
    font-size: 0.83rem;
    color: #666;
}

.author-link, .author-link-small {
    color: #326891;
    text-decoration: none;
    font-weight: 600;
}

.author-link:hover, .author-link-small:hover {
    text-decoration: underline;
}

/* NYT-Style Layout - 3 Column Grid */
.newspaper-layout {
    display: grid !important;
    grid-template-columns: 220px 1fr 260px !important;
    gap: 35px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px 25px;
    background: #fff;
    align-items: start; /* Prevent stretching issues */
}

/* DEBUG: Visual outline - uncomment to diagnose layout issues */
/*.newspaper-layout { border: 3px solid red !important; }
.newspaper-sidebar.left { border: 2px solid blue !important; }
.newspaper-main { border: 2px solid green !important; }
.newspaper-sidebar.right { border: 2px solid orange !important; }*/

/* Ensure main content and sidebars are visible */
.newspaper-main,
.newspaper-sidebar {
    visibility: visible !important;
    opacity: 1 !important;
    display: block !important;
}

/* Override any theme CSS that might hide sidebars */
aside.newspaper-sidebar {
    display: block !important;
}

/* Main content column */
.newspaper-layout > .newspaper-main {
    min-width: 0; /* Prevent overflow issues */
    width: 100%;
}

/* Sidebar base styles */
.newspaper-sidebar {
    padding: 0;
    box-sizing: border-box;
}

/* Left sidebar - Editor's picks */
.newspaper-sidebar.left {
    border-right: 1px solid #e5e5e5;
    padding-right: 25px;
    width: 220px !important;
}

/* Right sidebar - Market widgets */
.newspaper-sidebar.right {
    border-left: 1px solid #e5e5e5;
    padding-left: 25px;
    width: 260px !important;
    min-width: 260px !important;
    max-width: 260px !important;
}

/* Responsive - Tablet */
@media (max-width: 1100px) {
    .newspaper-layout {
        grid-template-columns: 200px 1fr 240px !important;
        gap: 25px;
        padding: 30px 20px;
    }
    .newspaper-sidebar.left { width: 200px !important; }
    .newspaper-sidebar.right { 
        width: 240px !important;
        min-width: 240px !important;
        max-width: 240px !important;
    }
}

/* Responsive - Small tablet (override theme's 890px breakpoint) */
@media screen and (max-width: 890px) {
    .newspaper-layout {
        grid-template-columns: 1fr 240px !important;
        gap: 25px;
        padding: 30px 20px;
    }
    .newspaper-sidebar.left { 
        display: none !important; 
    }
    .newspaper-sidebar.right { 
        width: 240px !important;
        min-width: 240px !important;
        max-width: 240px !important;
    }
    /* Override theme's .sidebar width:100% */
    .newspaper-sidebar {
        width: 240px !important;
    }
}

/* Responsive - Mobile (override theme's 590px breakpoint) */
@media screen and (max-width: 590px) {
    .newspaper-layout {
        grid-template-columns: 1fr !important;
        padding: 20px 15px;
    }
    .newspaper-sidebar { 
        display: none !important; 
    }
}

/* Fallback for any other breakpoints */
@media (max-width: 768px) {
    .newspaper-layout {
        grid-template-columns: 1fr !important;
        padding: 20px 15px;
    }
    .newspaper-sidebar { 
        display: none !important; 
    }
}

/* NYT-Style Sidebar Sections */
.sidebar-section {
    margin-bottom: 30px;
}

.sidebar-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #121212;
    border-bottom: 2px solid #121212;
    padding-bottom: 10px;
    margin-bottom: 18px;
}

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

.sidebar-menu li {
    margin-bottom: 10px;
}

.sidebar-menu a {
    color: #333;
    text-decoration: none;
    font-size: 1.0rem;
    transition: color 0.2s;
}

.sidebar-menu a:hover {
    color: #FF006E;
}

/* NYT-Style Trending */
.trending-list {
    counter-reset: trending;
}

.trending-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #e5e5e5;
}

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

.trending-item:hover {
    background: #f9f9f9;
    margin: 0 -10px;
    padding-left: 10px;
    padding-right: 10px;
}

.trending-number {
    font-family: Georgia, serif;
    font-size: 1.7rem;
    font-weight: 700;
    color: #d1d1d1;
    line-height: 1;
    min-width: 28px;
}

.trending-title {
    font-family: Georgia, serif;
    font-size: 1.0rem;
    line-height: 1.4;
    color: #121212;
    text-decoration: none;
    font-weight: 500;
}

.trending-title:hover {
    color: #326891;
}

/* NYT-Style Editor's Picks */
.nyt-editors-picks {
    border-bottom: 3px solid #121212;
    padding-bottom: 20px;
    margin-bottom: 25px;
}

.nyt-editors-picks .sidebar-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #121212;
    border-bottom: 1px solid #e2e2e2;
    padding-bottom: 8px;
    margin-bottom: 15px;
}

.editors-picks-list {
    display: flex;
    flex-direction: column;
}

.editors-pick-item {
    padding: 12px 0;
    border-bottom: 1px solid #e5e5e5;
}

.editors-pick-item:last-child {
    border-bottom: none;
}

.editors-pick-item:hover {
    background: #f9f9f9;
    margin: 0 -10px;
    padding-left: 10px;
    padding-right: 10px;
}

.editors-pick-title {
    font-family: Georgia, serif;
    font-size: 1.05rem;
    font-weight: 500;
    color: #121212;
    text-decoration: none;
    display: block;
    margin-bottom: 6px;
    line-height: 1.4;
}

.editors-pick-title:hover {
    color: #326891;
}

.editors-pick-meta {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    color: #888;
    display: flex;
    gap: 8px;
}

.editors-pick-meta .meta-author {
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.editors-pick-meta .meta-date {
    color: #999;
}

/* NYT-Style Trending */
.nyt-trending .sidebar-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #121212;
    border-bottom: 1px solid #e2e2e2;
    padding-bottom: 8px;
    margin-bottom: 15px;
}

/* NYT-Style Latest News by Category */
.latest-news {
    margin-bottom: 45px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #121212;
}

.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #121212;
}

.view-all {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: #326891;
    text-decoration: none;
    font-weight: 500;
}

.view-all:hover {
    color: #121212;
    text-decoration: underline;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

@media (max-width: 900px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .ai-title-simple {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 1.1rem;
    }
    
    .featured-main-title {
        font-size: 1.5rem;
    }
    
    .news-card-title {
        font-size: 1.05rem;
    }
    
    .news-card-excerpt {
        font-size: 0.85rem;
    }
}

.news-card {
    display: flex;
    flex-direction: column;
}

.news-card-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 12px;
}

.news-card-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.news-card-category {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #326891;
    margin-bottom: 6px;
}

.news-card-title {
    font-family: Georgia, serif;
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 10px;
}

.news-card-title a {
    color: #121212;
    text-decoration: none;
}

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

.news-card-meta {
    font-size: 0.75rem;
    color: #888;
    margin-top: auto;
    display: flex;
    gap: 10px;
}

.news-card-meta a {
    color: #666;
    text-decoration: none;
}

.news-card-meta a:hover {
    color: #326891;
    text-decoration: underline;
}

/* Author Links */
.author-link {
    color: #326891;
    text-decoration: none;
    font-weight: 500;
}

.author-link:hover {
    text-decoration: underline;
}

.news-card-excerpt {
    font-size: 0.7rem;
    line-height: 1.5;
    color: #555;
    margin: 0 0 10px 0;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-excerpt.has-image {
    -webkit-line-clamp: 2;
}

.text-only-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Load More Button */
.load-more-container {
    text-align: center;
    margin: 40px 0;
}

.load-more-btn {
    padding: 14px 40px;
    background: linear-gradient(135deg, #FF006E 0%, #FB5607 50%, #FFBE0B 100%);
    color: white;
    border: none;
    border-radius: 30px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.load-more-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 0, 110, 0.3);
}

.load-more-btn:active {
    transform: translateY(-1px);
}

.hidden-category {
    display: none;
}

.ai-generated-badge { background: linear-gradient(135deg, #FF006E, #FB5607); color: white; padding: 2px 8px; border-radius: 12px; font-size: 0.65rem; font-weight: 700; text-transform: uppercase; margin-left: 8px; }
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Dark Mode for Homepage Layout */
body.dark-mode .newspaper-layout {
    background: #121212;
}

body.dark-mode .newspaper-sidebar.left {
    border-right-color: #333;
}

body.dark-mode .newspaper-sidebar.right {
    border-left-color: #333;
}

body.dark-mode .ai-spotlight-simple {
    background: transparent;
}

body.dark-mode .ai-card-simple {
    background: #1a1a1a;
}

body.dark-mode .ai-card-simple-1 { background: linear-gradient(135deg, #2a1a1f 0%, #1a1a1a 100%); border-left-color: #FF6B9D; }
body.dark-mode .ai-card-simple-2 { background: linear-gradient(135deg, #2a1f1a 0%, #1a1a1a 100%); border-left-color: #FC8B4A; }
body.dark-mode .ai-card-simple-3 { background: linear-gradient(135deg, #2a2a1a 0%, #1a1a1a 100%); border-left-color: #FFD93D; }
body.dark-mode .ai-card-simple-4 { background: linear-gradient(135deg, #1f1a2a 0%, #1a1a1a 100%); border-left-color: #a855f7; }
body.dark-mode .ai-card-simple-5 { background: linear-gradient(135deg, #1a1f2a 0%, #1a1a1a 100%); border-left-color: #5a9fd4; }
body.dark-mode .ai-card-simple-6 { background: linear-gradient(135deg, #1a2a22 0%, #1a1a1a 100%); border-left-color: #4ade80; }

body.dark-mode .ai-card-simple:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}

body.dark-mode .ai-card-title-simple {
    color: #e0e0e0;
}

body.dark-mode .ai-card-excerpt-simple {
    color: #aaa;
}

body.dark-mode .ai-card-category-simple {
    color: #FF6B9D;
}

body.dark-mode .ai-card-meta {
    color: #888;
}

body.dark-mode .ai-card-author {
    color: #888;
}

body.dark-mode .ai-reporter-banner {
    background: #1a1a1a;
    border-color: #333;
}

body.dark-mode .ai-reporter-title {
    color: #e0e0e0;
}

body.dark-mode .ai-reporter-desc {
    color: #aaa;
}

body.dark-mode .ai-reporter-btn-primary {
    background: #e0e0e0;
    color: #121212;
}

body.dark-mode .ai-reporter-btn-primary:hover {
    background: #5a9fd4;
    color: #fff;
}

body.dark-mode .ai-reporter-btn-secondary {
    border-color: #e0e0e0;
    color: #e0e0e0;
}

body.dark-mode .ai-reporter-btn-secondary:hover {
    background: #e0e0e0;
    color: #121212;
}

body.dark-mode .ai-reporter-stats {
    border-left-color: #333;
}

body.dark-mode .ai-stat-label {
    color: #888;
}

body.dark-mode .sidebar-section {
    background: transparent;
}

body.dark-mode .sidebar-title {
    color: #e0e0e0;
    border-bottom-color: #444;
}

body.dark-mode .trending-number {
    color: #444;
    background: none;
    -webkit-text-fill-color: #555;
}

body.dark-mode .trending-title {
    color: #e0e0e0;
}

body.dark-mode .trending-title:hover {
    color: #5a9fd4;
}

body.dark-mode .editors-pick-title {
    color: #e0e0e0;
}

body.dark-mode .editors-pick-title:hover {
    color: #5a9fd4;
}

body.dark-mode .editors-pick-meta .meta-author {
    color: #888;
}

body.dark-mode .editors-pick-meta .meta-date {
    color: #666;
}

body.dark-mode .nyt-editors-picks {
    border-bottom-color: #444;
}

body.dark-mode .trending-item {
    border-bottom-color: #2a2a2a;
}

body.dark-mode .trending-item:hover {
    background: #1a1a1a;
}

body.dark-mode .editors-pick-item {
    border-bottom-color: #2a2a2a;
}

body.dark-mode .editors-pick-item:hover {
    background: #1a1a1a;
}

body.dark-mode .featured-main-story {
    border-bottom-color: #333;
}

body.dark-mode .featured-secondary-story {
    border-bottom-color: #2a2a2a;
}

body.dark-mode .news-card {
    background: transparent;
}

body.dark-mode .latest-news {
    background: transparent;
}

body.dark-mode .category-section {
    background: transparent;
}

body.dark-mode .load-more-btn {
    background: linear-gradient(135deg, #FF6B9D 0%, #FC8B4A 50%, #FFD93D 100%);
}

body.dark-mode .crypto-widget {
    background: #1a1a1a;
    border-color: #333;
}

body.dark-mode .crypto-widget-header {
    background: #0d0d0d;
    border-color: #333;
}

body.dark-mode .crypto-global-metrics {
    background: #1a1a1a;
    border-color: #2a2a2a;
}

body.dark-mode .crypto-metric-label {
    color: #888;
}

body.dark-mode .crypto-metric-value {
    color: #e0e0e0;
}

body.dark-mode .crypto-item {
    border-color: #2a2a2a;
}

body.dark-mode .crypto-item:hover {
    background: #222;
}

body.dark-mode .crypto-symbol {
    color: #e0e0e0;
}

body.dark-mode .crypto-name {
    color: #888;
}

body.dark-mode .crypto-price {
    color: #e0e0e0;
}

body.dark-mode .crypto-widget-footer {
    background: #1a1a1a;
    border-color: #2a2a2a;
}

body.dark-mode .stock-widget {
    background: #1a1a1a;
    border-color: #333;
}

body.dark-mode .stock-widget-header {
    background: #0d0d0d;
}

body.dark-mode .stock-indices {
    border-color: #2a2a2a;
}

body.dark-mode .stock-index-item {
    background: #1a1a1a;
    border-color: #2a2a2a;
}

body.dark-mode .stock-index-name {
            color: #e0e0e0;
        }

        body.dark-mode .stock-index-price {
            color: #e0e0e0;
        }

        body.dark-mode .stock-item {
            border-color: #2a2a2a;
        }

        body.dark-mode .stock-item:hover {
            background: #222;
        }

        body.dark-mode .stock-symbol {
            color: #e0e0e0;
        }

        body.dark-mode .stock-name {
            color: #888;
        }

        body.dark-mode .stock-price {
            color: #e0e0e0;
        }

        body.dark-mode .stock-widget-footer {
            background: #1a1a1a;
            border-color: #2a2a2a;
        }

/* World News Section Title */
.world-news-section-title {
    text-align: center;
    margin: 30px 0 20px;
    padding: 0 20px;
}

.world-news-title {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 1.9rem;
    font-weight: 700;
    color: #121212;
    margin: 0;
    display: inline-block;
}

body.dark-mode .world-news-title {
    color: #f0f0f0;
}

/* Hidden H1 for SEO - Accessible but invisible */
.homepage-seo-title {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Ensure widgets within sidebar are constrained */
.newspaper-sidebar.right .crypto-widget,
.newspaper-sidebar.right .stock-widget {
    max-width: 100%;
    box-sizing: border-box;
}
