/* Light Theme for SnoringIsDeadly.com - Sleep Health & Awareness */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Accent - kept as requested */
    --accent-primary: #ff4757;
    --accent-secondary: #ff6b81;
    --accent-glow: rgba(255, 71, 87, 0.25);
    --gradient-accent: linear-gradient(135deg, #ff4757 0%, #ff6b81 100%);
    /* Light theme - main page */
    --bg-primary: #f0f4f8;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --bg-warm: #fff8f6;
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --gradient-light: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 50%, #e8f0f8 100%);
    /* Bright supporting colors */
    --bright-blue: #0ea5e9;
    --bright-mint: #14b8a6;
    --bright-amber: #f59e0b;
    /* Header - light */
    --header-bg: #ffffff;
    --header-border: #e2e8f0;
    --header-text: #1e293b;
    --header-text-muted: #475569;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
}

/* Header */
header {
    background: var(--header-bg);
    border-bottom: 1px solid var(--header-border);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 12px rgba(0, 0, 0, 0.06);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-icon {
    width: 45px;
    height: 45px;
    background: var(--gradient-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px var(--accent-glow);
}

.logo-icon svg {
    width: 28px;
    height: 28px;
    fill: white;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--header-text);
    letter-spacing: -0.5px;
}

.logo-tagline {
    font-size: 0.75rem;
    color: var(--header-text-muted);
    font-weight: 400;
}

header nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

header nav a {
    color: var(--header-text-muted);
    text-decoration: none;
    font-size: 18px;
    transition: color 0.3s ease;
    position: relative;
}

header nav a:hover,
header nav a.active {
    color: var(--accent-primary);
}

header nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-accent);
    transition: width 0.3s ease;
}

header nav a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    background: var(--gradient-light);
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 5rem 2rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(255, 71, 87, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(14, 165, 233, 0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Hero background icons - Font Awesome */
.hero-bg-icons {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.07;
    color: var(--accent-primary);
}

.hero-bg-icons i {
    position: absolute;
    font-size: 4.5rem;
}

.hero-bg-icons i:nth-child(1) { top: 12%; left: 8%; }
.hero-bg-icons i:nth-child(2) { top: 18%; right: 12%; }
.hero-bg-icons i:nth-child(3) { top: 55%; left: 5%; }
.hero-bg-icons i:nth-child(4) { bottom: 20%; left: 15%; }
.hero-bg-icons i:nth-child(5) { top: 25%; right: 8%; }
.hero-bg-icons i:nth-child(6) { top: 60%; right: 10%; }
.hero-bg-icons i:nth-child(7) { bottom: 25%; right: 18%; }
.hero-bg-icons i:nth-child(8) { top: 8%; left: 25%; }
.hero-bg-icons i:nth-child(9) { bottom: 15%; right: 6%; }
.hero-bg-icons i:nth-child(10) { top: 75%; left: 22%; }

/* News Ticker - continuous slider under hero */
.news-ticker {
    display: flex;
    align-items: center;
    width: 100%;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 0.5rem 0;
    overflow: hidden;
}

.news-ticker-label {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 1rem;
    margin-right: 1rem;
    background: var(--accent-primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-ticker-label i {
    font-size: 0.7rem;
}

.news-ticker-wrap {
    flex: 1;
    overflow: hidden;
    min-width: 0;
}

.news-ticker-track {
    display: inline-flex;
    align-items: center;
    gap: 2rem;
    padding-left: 2rem;
    animation: news-ticker-scroll 40s linear infinite;
    width: max-content;
}

.news-ticker-track:hover {
    animation-play-state: paused;
}

.news-ticker-item {
    flex-shrink: 0;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.news-ticker-item:hover {
    color: var(--accent-primary);
}

.news-ticker-dot {
    flex-shrink: 0;
    width: 4px;
    height: 4px;
    background: var(--accent-primary);
    border-radius: 50%;
    opacity: 0.6;
}

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

@media (max-width: 640px) {
    .news-ticker {
        flex-direction: column;
        align-items: stretch;
        padding: 0.6rem;
    }
    .news-ticker-label {
        margin-right: 0;
        margin-bottom: 0.5rem;
        justify-content: center;
    }
    .news-ticker-track {
        padding-left: 0;
        animation-duration: 30s;
    }
}

.hero-content {
    max-width: 840px;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    padding: 0.6rem 1.75rem;
    background: rgba(255, 71, 87, 0.12);
    border: 1px solid var(--accent-primary);
    border-radius: 50px;
    font-size: 0.95rem;
    color: var(--accent-primary);
    margin-bottom: 1.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.75rem;
    line-height: 1.1;
    background: linear-gradient(135deg, #1e293b 0%, #334155 50%, #475569 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.35rem;
    color: var(--text-secondary);
    margin-bottom: 2.75rem;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.65;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1.15rem 2.75rem;
    background: var(--gradient-accent);
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    border-radius: 50px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--accent-glow);
}

.hero-cta i {
    font-size: 0.9em;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3.5rem;
    margin-top: 3.5rem;
}

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

.stat-number {
    font-size: 2.85rem;
    font-weight: 700;
    color: var(--accent-primary);
    line-height: 1;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* Top leaderboard (Revive) — block centered with horizontal auto margins */
.ad-leaderboard {
    display: block;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 1rem 1.25rem 0;
    box-sizing: border-box;
    text-align: center;
}

/* Ad Space - all pages: fixed width, centered */
.ad-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
}

.ad-space {
    background: var(--bg-card);
    border: 1px dashed var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    box-sizing: border-box;
    flex-shrink: 0;
}

.ad-space.leaderboard {
    width: 728px;
    height: 90px;
    max-width: 100%;
}

.ad-space.skyscraper {
    width: 160px;
    height: 600px;
}

.ad-space.square {
    width: 300px;
    height: 300px;
}

.ad-label {
    position: absolute;
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Main Content */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 4rem;
}

/* Home page - Featured blogs (below ad, 3 in a row + Load more) */
.home-blogs-section {
    padding-top: 0.5rem;
}

.home-blogs-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.home-blogs-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.blog-grid-three {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.blog-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
    box-shadow: 0 10px 40px rgba(255, 71, 87, 0.15);
}

.blog-card-image {
    height: 200px;
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

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

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.blog-card-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    align-self: flex-start;
}

.badge-sleep-apnea { background: rgba(255, 71, 87, 0.2); color: var(--accent-secondary); }
.badge-treatment { background: rgba(59, 130, 246, 0.2); color: #60a5fa; }
.badge-heart { background: rgba(239, 68, 68, 0.2); color: #f87171; }
.badge-lifestyle { background: rgba(16, 185, 129, 0.2); color: #34d399; }
.badge-tips { background: rgba(245, 158, 11, 0.2); color: #fbbf24; }
.badge-children { background: rgba(139, 92, 246, 0.2); color: #a78bfa; }

.blog-card h3 {
    color: var(--text-primary);
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    flex: 1;
}

.blog-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex: 1;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.blog-card-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.home-blogs-actions {
    text-align: center;
    margin-top: 2.5rem;
}

.btn-load-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 2.25rem;
    background: var(--bg-card);
    color: var(--accent-primary);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border: 2px solid var(--accent-primary);
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-load-more:hover {
    background: var(--accent-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--accent-glow);
}

@media (max-width: 900px) {
    .blog-grid-three {
        grid-template-columns: 1fr;
    }
}

/* Info Sections - below ad, above RSS (redesigned) */
.info-sections {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.info-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.info-card:hover {
    box-shadow: 0 8px 24px rgba(255, 71, 87, 0.08);
    border-color: rgba(255, 71, 87, 0.25);
}

.info-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 2rem;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
}

.info-card-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-primary);
    opacity: 0.4;
    line-height: 1;
}

.info-card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-accent);
    color: white;
    border-radius: 12px;
    font-size: 1.25rem;
}

.info-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    flex: 1;
    min-width: 0;
}

.info-card-body {
    padding: 2rem;
}

.info-card-body p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.75;
    margin: 0 0 1rem 0;
}

.info-card-body p:last-of-type {
    margin-bottom: 0;
}

.warning-signs-box {
    margin-top: 1.75rem;
    padding: 1.75rem;
    background: rgba(255, 71, 87, 0.06);
    border: 1px solid rgba(255, 71, 87, 0.2);
    border-radius: 12px;
    border-left: 4px solid var(--accent-primary);
}

.warning-signs-box h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-primary);
    margin: 0 0 1.25rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.warning-signs-box h3 i {
    font-size: 1rem;
}

.warning-signs-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.warning-signs-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0;
    color: var(--text-primary);
    font-size: 1rem;
    line-height: 1.5;
    border-bottom: 1px solid rgba(255, 71, 87, 0.1);
}

.warning-signs-list li:last-child {
    border-bottom: none;
}

.warning-signs-list li i {
    color: var(--accent-primary);
    font-size: 0.9rem;
    width: 1.25rem;
    text-align: center;
    flex-shrink: 0;
}

.info-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.25rem;
    padding: 0.65rem 1.25rem;
    color: var(--accent-primary);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.2s ease, color 0.2s ease;
}

.info-card-cta:hover {
    background: rgba(255, 71, 87, 0.1);
    color: var(--accent-secondary);
}

.info-card-cta i {
    font-size: 0.85em;
}

@media (max-width: 768px) {
    .info-card-header {
        padding: 1.25rem 1.5rem;
    }
    .info-card-body {
        padding: 1.5rem;
    }
    .info-card-title {
        font-size: 1.25rem;
    }
    .warning-signs-box {
        padding: 1.25rem;
    }
}

/* Spacing between info cards and RSS section */
.info-sections + .section {
    margin-top: 3rem;
}

/* Section Styling (used by RSS etc.) */
.section {
    margin-bottom: 4rem;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.section-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent-primary);
    opacity: 0.3;
    line-height: 1;
}

.section-title h2 {
    font-size: 1.75rem;
    color: var(--text-primary);
}

/* RSS Feed Sections */
.rss-sections {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.rss-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.rss-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 71, 87, 0.12), 0 4px 12px rgba(0, 0, 0, 0.08);
}

.rss-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.rss-icon {
    width: 32px;
    height: 32px;
    background: var(--gradient-accent);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rss-icon svg {
    width: 18px;
    height: 18px;
    fill: white;
}

.rss-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.rss-update {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 4px;
}

.rss-update::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--bright-mint);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

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

.rss-loading {
    padding: 1.5rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.rss-item {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

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

.rss-source {
    font-size: 0.7rem;
    color: var(--accent-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.rss-headline {
    font-size: 0.9rem;
    color: var(--text-primary);
    line-height: 1.5;
}

.rss-headline:hover {
    color: var(--accent-primary);
}

.rss-time {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* Blog Specific Styles */
.blog-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
    margin-top: 2rem;
}

.blog-main {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 3rem;
}

/* Article featured image */
.article-featured-image {
    width: 100%;
    margin: 0 0 2rem 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.article-featured-image img {
    width: 100%;
    height: auto;
    max-height: 420px;
    object-fit: cover;
    display: block;
}

/* Inline images inside article content */
.article-inline-image {
    margin: 2rem 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.article-inline-image img {
    width: 100%;
    height: auto;
    max-height: 450px;
    object-fit: cover;
    display: block;
}

.article-inline-image figcaption {
    padding: 0.75rem 1rem;
    background: var(--bg-primary);
    font-size: 0.9rem;
    color: var(--text-muted);
    font-style: italic;
    border-top: 1px solid var(--border-color);
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.blog-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.blog-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.blog-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-primary);
}

.blog-content h2 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin: 2rem 0 1rem;
    font-weight: 700;
}

.blog-content h3 {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin: 1.5rem 0 0.75rem;
    font-weight: 600;
}

.blog-content p {
    margin-bottom: 1.5rem;
}

.blog-content ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.blog-content li {
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.blog-content strong {
    color: var(--accent-secondary);
}

.quote-block {
    background: rgba(255, 71, 87, 0.08);
    border-left: 4px solid var(--accent-primary);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 8px 8px 0;
}

.quote-block p {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-primary);
    margin: 0;
}

/* Blog Sidebar */
.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.blog-sidebar .skyscraper-ad {
    display: block;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    width: fit-content;
    max-width: 100%;
}

/* Sleep-health index: stack + center sidebar ads (square + skyscraper) */
.sidebar-ads {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    margin-top: 20px;
}

.sidebar-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
}

.sidebar-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.related-blogs {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.related-blog-item {
    padding: 1rem;
    background: var(--bg-primary);
    border-radius: 8px;
    transition: background 0.3s ease;
}

.related-blog-item:hover {
    background: rgba(255, 71, 87, 0.08);
}

.related-blog-item h4 {
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.related-blog-item p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Newsletter Section */
.newsletter {
    background: var(--gradient-light);
    padding: 4rem 2rem;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
}

.newsletter h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.newsletter p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 1rem 1.5rem;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 50px;
    color: var(--text-primary);
    font-size: 1rem;
}

.newsletter-form input::placeholder {
    color: var(--text-muted);
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.newsletter-form button {
    padding: 1rem 2rem;
    background: var(--gradient-accent);
    border: none;
    border-radius: 50px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.newsletter-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px var(--accent-glow);
}

/* Footer */
footer {
    background: var(--bg-secondary);
    padding: 3rem 2rem 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-primary);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
}

.footer-section h3 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--accent-primary);
}

.footer-bottom {
    max-width: 1200px;
    margin: 2rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 900px) {
    .hero h1 {
        font-size: 2.75rem;
    }

    .hero-bg-icons i {
        font-size: 3rem;
    }

    .rss-sections {
        grid-template-columns: 1fr;
    }

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

    .blog-sidebar {
        order: 2;
    }

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

    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    nav ul {
        display: none;
    }
}

@media (max-width: 768px) {
    .blog-main {
        padding: 1.5rem;
    }

    .blog-title {
        font-size: 1.75rem;
    }

    .blog-content {
        font-size: 1rem;
    }

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

    .newsletter-form button {
        width: 100%;
    }
}

/* More Articles You Might Like - Article Page */
.more-articles-section {
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    padding-top: 4rem;
    padding-bottom: 5rem;
    margin-bottom: 3rem;
}

.more-articles-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.more-articles-header {
    text-align: center;
    margin-bottom: 2.5rem;
    position: static;
}

.more-articles-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.more-articles-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--gradient-accent);
    border-radius: 2px;
    margin: 1rem auto 0;
}

.more-articles-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.6;
}

.more-articles-section .related-articles-grid {
    margin-top: 0;
    margin-left: auto;
    margin-right: auto;
    padding: 0;
}

/* Bottom Related Articles Grid */
.main-content > section {
    max-width: 1200px;
    margin: 0 auto;
}

.related-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.related-article-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.related-article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 71, 87, 0.12), 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: var(--accent-primary);
}

.related-article-card:hover .related-article-image img {
    transform: scale(1.05);
}

.related-article-image {
    height: 180px;
    overflow: hidden;
    background: var(--bg-primary);
}

.related-article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.related-article-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.related-article-badge {
    background: var(--accent-primary);
    color: white;
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    align-self: flex-start;
}

.related-article-body h3 {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.related-article-body p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
    flex: 1;
}

.related-article-cta {
    color: var(--accent-secondary);
    font-size: 0.8rem;
    margin-top: 1rem;
    display: block;
}

/* Popular Items with Numbers */
.related-blog-item {
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    padding: 0.75rem !important;
}

/* Category Item Hover */
.sidebar-section a:hover {
    color: var(--accent-secondary) !important;
}

.sidebar-section a:hover span[style*="background"] {
    background: var(--accent-primary) !important;
    color: white !important;
}
