/* ============================================
   I Want Track Cards - Dark Theme Stylesheet
   Fascinating & Data-Driven Dark Design
   ============================================ */

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

/* ============================================
   Dark Theme Variables
   ============================================ */
:root {
    /* Backgrounds */
    --bg-dark: #0a0e14;
    --bg-darker: #06080c;
    --bg-card: #11161f;
    --bg-card-light: #1a1f2e;
    --bg-glass: rgba(17, 22, 31, 0.7);

    /* Text Colors */
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #64748b;
    --text-glow: rgba(99, 179, 237, 0.5);

    /* Accent Colors - Neon/Cyber inspired */
    --accent-cyan: #00d4ff;
    --accent-purple: #a855f7;
    --accent-pink: #ec4899;
    --accent-blue: #3b82f6;
    --accent-green: #10b981;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #00d4ff 0%, #3b82f6 50%, #a855f7 100%);
    --gradient-card: linear-gradient(145deg, #1a1f2e 0%, #11161f 100%);
    --gradient-glow: radial-gradient(ellipse at center, rgba(0, 212, 255, 0.15) 0%, transparent 70%);
    --gradient-border: linear-gradient(145deg, rgba(0, 212, 255, 0.3), rgba(168, 85, 247, 0.3));

    /* Borders & Effects */
    --border-color: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(0, 212, 255, 0.3);
    --glow-cyan: 0 0 20px rgba(0, 212, 255, 0.4);
    --glow-purple: 0 0 20px rgba(168, 85, 247, 0.4);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px rgba(0, 212, 255, 0.15);

    /* Typography */
    --font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --font-display: 'Outfit', sans-serif;
}

/* ============================================
   Animated Background
   ============================================ */
body {
    font-family: var(--font-family);
    line-height: 1.8;
    color: var(--text-primary);
    background-color: var(--bg-dark);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(0, 212, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(168, 85, 247, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(59, 130, 246, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* Grid Pattern Overlay */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: -1;
}

/* ============================================
   Links
   ============================================ */
a {
    color: var(--accent-cyan);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

a:hover {
    color: var(--accent-cyan);
    text-shadow: var(--text-glow);
}

/* ============================================
   Header - Glass Effect
   ============================================ */
.header {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-primary);
    opacity: 0.5;
}

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

/* Logo */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 50px;
    width: auto;
    filter: drop-shadow(0 0 15px rgba(0, 212, 255, 0.3));
}

/* Navigation */
.nav {
    display: flex;
    gap: 8px;
    background: rgba(255, 255, 255, 0.03);
    padding: 6px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 10px 24px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    display: none;
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
    color: var(--text-primary);
    background: var(--gradient-primary);
    box-shadow: var(--glow-cyan);
}

/* ============================================
   Ad Placements - Glowing Effects
   ============================================ */

/* Every Revive tag: block + margin-left/right auto = centered */
ins[data-revive-zoneid] {
    display: block;
    float: none !important;
    clear: both;
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: 100%;
}

.ad-leaderboard {
    width: 728px;
    max-width: 100%;
    height: 90px;
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 25px;
    margin-bottom: 25px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    overflow: hidden;
}

/* Article template: drop fixed “shell” so unfilled leaderboard isn’t a blank strip */
body.page-article aside.ad-leaderboard {
    height: auto;
    min-height: 0;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    margin-top: 16px;
    margin-bottom: 16px;
}

.container ins[data-revive-zoneid],
.blog-content ins[data-revive-zoneid] {
    margin-bottom: 16px;
}

.home-square-ad {
    padding-top: 8px;
    padding-bottom: 32px;
}

.sidebar-ads {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
    width: 100%;
}

.sidebar-ads .skyscraper-ad,
.blog-sidebar .skyscraper-ad {
    position: sticky;
    top: 80px;
    margin-left: auto;
    margin-right: auto;
    width: fit-content;
    max-width: 100%;
}

.blog-sidebar .ad-square,
.blog-sidebar .ad-skyscraper {
    margin-left: auto;
    margin-right: auto;
}

.ad-leaderboard .ad-leaderboard-label-mobile {
    display: none;
}

.ad-leaderboard-shimmer {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.1), transparent);
    animation: shimmer 3s infinite;
    pointer-events: none;
}

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

.ad-skyscraper {
    width: 160px;
    height: 600px;
    margin-left: auto;
    margin-right: auto;
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    position: relative;
    overflow: hidden;
}

.ad-skyscraper-label {
    position: relative;
    z-index: 1;
}

.ad-skyscraper-shimmer {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent, rgba(168, 85, 247, 0.1), transparent);
    animation: shimmer-vertical 4s infinite;
    pointer-events: none;
}

@keyframes shimmer-vertical {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

.ad-square {
    width: 300px;
    height: 250px;
    margin-left: auto;
    margin-right: auto;
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.ad-square-label {
    position: relative;
    z-index: 1;
}

.ad-square-effect {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(236, 72, 153, 0.15) 0%, transparent 70%);
    animation: pulse-glow 2s infinite alternate;
    pointer-events: none;
}

@keyframes pulse-glow {
    0% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* ============================================
   Container
   ============================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   Hero Section - Animated Gradient
   ============================================ */
.hero {
    background: var(--gradient-primary);
    color: white;
    padding: 100px 20px 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 50%);
    animation: rotate-bg 20s linear infinite;
}

@keyframes rotate-bg {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: 4rem;
    margin-bottom: 24px;
    font-weight: 800;
    letter-spacing: -1.5px;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
    line-height: 1.1;
}

.hero h1 span {
    display: block;
    background: linear-gradient(180deg, #ffffff 0%, rgba(255,255,255,0.7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.95;
    line-height: 1.6;
}

/* ============================================
   Live Feed Section
   ============================================ */
.live-feed {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 0;
    overflow: hidden;
}

.live-feed-inner {
    display: flex;
    align-items: center;
    gap: 20px;
}

.live-feed-badge {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    border-radius: 6px;
    animation: live-pulse 2s ease-in-out infinite;
}

@keyframes live-pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(0, 212, 255, 0.4); }
    50% { opacity: 0.95; box-shadow: 0 0 12px 2px rgba(0, 212, 255, 0.3); }
}

.live-feed-ticker-wrap {
    flex: 1;
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, black 5%, black 95%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, black 5%, black 95%, transparent);
}

.live-feed-ticker {
    display: flex;
    gap: 3rem;
    animation: ticker-scroll 45s linear infinite;
    width: max-content;
}

.live-feed-ticker:hover {
    animation-play-state: paused;
}

.live-feed-item {
    flex-shrink: 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
    white-space: nowrap;
}

.live-feed-item::after {
    content: ' • ';
    margin-left: 3rem;
    color: var(--text-muted);
    font-weight: 300;
}

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

/* ============================================
   Main Content Area
   ============================================ */
.main-content {
    padding: 60px 0;
}

/* ============================================
   Welcome Section
   ============================================ */
.welcome-section {
    width: 100%;
    margin: 0 0 56px;
}

.welcome-card {
    text-align: center;
    position: relative;
    padding: 48px 40px 44px;
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.welcome-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    background: var(--gradient-border);
    border-radius: 21px;
    opacity: 0;
    z-index: -1;
}

.welcome-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse 60% 40% at 50% 0%, rgba(0, 212, 255, 0.06) 0%, transparent 55%);
    pointer-events: none;
}

.welcome-eyebrow {
    position: relative;
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent-cyan);
    margin-bottom: 14px;
    opacity: 0.95;
}

.welcome-eyebrow::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.welcome-heading {
    position: relative;
    font-family: var(--font-display);
    font-size: clamp(1.85rem, 4vw, 2.5rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #f1f5f9 0%, #cbd5e1 45%, #00d4ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.welcome-tagline {
    position: relative;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 28px;
    letter-spacing: 0.02em;
}

.welcome-divider {
    width: 80px;
    height: 1px;
    margin: 0 auto 28px;
    background: linear-gradient(90deg, transparent, var(--border-glow), transparent);
    opacity: 0.8;
}

.welcome-text {
    position: relative;
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.85;
    margin: 0;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

.welcome-brand {
    color: var(--accent-cyan);
    font-weight: 600;
}

/* ============================================
   Home Page – From the Blog (3 cards + Load more)
   ============================================ */
.home-blogs {
    margin-bottom: 56px;
}

.home-blogs-heading {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3.5vw, 2.25rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.home-blogs-desc {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 32px;
}

.home-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.home-blog-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.home-blog-card:focus-within {
    border-color: rgba(0, 212, 255, 0.4);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.15);
}

.home-blog-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    outline: none;
}

.home-blog-card-link:focus-visible {
    outline: 2px solid var(--accent-cyan);
    outline-offset: 2px;
}

.home-blog-card-image {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--bg-darker);
}

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

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

.home-blog-card-body {
    padding: 22px 24px 26px;
}

.home-blog-card-meta {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-cyan);
    letter-spacing: 0.03em;
    margin-bottom: 10px;
}

.home-blog-card-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.35;
    margin-bottom: 12px;
    transition: color 0.2s ease;
}

.home-blog-card:hover .home-blog-card-title {
    color: var(--accent-cyan);
}

.home-blog-card-excerpt {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0 0 16px;
}

.home-blog-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-cyan);
    transition: gap 0.25s ease;
}

.home-blog-card-arrow {
    transition: transform 0.25s ease;
}

.home-blog-card:hover .home-blog-card-arrow {
    transform: translateX(4px);
}

.home-blog-load-more {
    text-align: center;
    margin-top: 40px;
}

.load-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 160px;
    padding: 14px 28px;
    background: transparent;
    border: 2px solid var(--accent-cyan);
    border-radius: 10px;
    color: var(--accent-cyan);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease;
}

.load-more-btn:hover {
    background: var(--accent-cyan);
    color: var(--bg-dark);
}

.load-more-btn:focus-visible {
    outline: 2px solid var(--accent-cyan);
    outline-offset: 4px;
}

.load-more-btn:active {
    transform: scale(0.98);
}

/* ============================================
   RSS Feed Section - Redesign
   ============================================ */
.rss-section {
    margin-bottom: 48px;
    position: relative;
    padding-left: 24px;
}

.rss-section::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--accent-cyan), var(--accent-purple));
    border-radius: 4px 0 0 4px;
}

.rss-section-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
    padding-left: 0;
}

.rss-icon {
    width: 40px;
    height: 40px;
    background: var(--bg-card-light);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
}

.rss-section-title {
    font-family: var(--font-display);
    font-size: 1.45rem;
    color: var(--text-primary);
    font-weight: 600;
    letter-spacing: -0.4px;
}

.rss-feed-list {
    list-style: none;
    display: grid;
    gap: 14px;
}

.rss-feed-item {
    padding: 20px 22px 20px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    position: relative;
}

.rss-feed-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 28px;
    background: var(--accent-cyan);
    border-radius: 0 2px 2px 0;
    opacity: 0.6;
}

.rss-feed-title {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.rss-feed-title a {
    color: var(--text-primary);
}

.rss-feed-title a:hover {
    color: var(--accent-cyan);
}

.rss-feed-excerpt {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

.rss-feed-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 14px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.rss-feed-source {
    display: flex;
    align-items: center;
    gap: 6px;
}

.rss-feed-source::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--accent-cyan);
    border-radius: 50%;
    opacity: 0.8;
}

/* Live RSS blocks (Google News) — matches home blog cards */
.rss-section--live {
    padding-left: 0;
    margin-bottom: 56px;
}

.rss-section--live::before {
    display: none;
}

.rss-feed-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}

.rss-live-pulse {
    flex-shrink: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent-cyan);
    box-shadow: 0 0 0 0 rgba(0, 212, 255, 0.5);
    animation: rss-live-pulse 2s ease-out infinite;
}

@keyframes rss-live-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 212, 255, 0.45);
    }
    70% {
        box-shadow: 0 0 0 12px rgba(0, 212, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 212, 255, 0);
    }
}

.rss-feed-heading {
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 2.5vw, 1.7rem);
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    margin: 0;
    line-height: 1.2;
}

.rss-feed {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: stretch;
}

.rss-feed-loading {
    grid-column: 1 / -1;
    margin: 0;
    padding: 28px 24px;
    text-align: center;
    font-size: 0.95rem;
    color: var(--text-muted);
    background: var(--bg-card);
    border: 1px dashed var(--border-color);
    border-radius: 16px;
}

.rss-card {
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
    position: relative;
}

.rss-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--accent-cyan), var(--accent-purple));
    border-radius: 3px 0 0 3px;
    opacity: 0.9;
}

.rss-card:hover {
    border-color: rgba(0, 212, 255, 0.35);
    box-shadow: var(--shadow-md), 0 0 24px rgba(0, 212, 255, 0.08);
    transform: translateY(-4px);
}

.rss-card-link {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: 100%;
    padding: 22px 22px 22px 26px;
    text-decoration: none;
    color: inherit;
    outline: none;
}

.rss-card-link:focus-visible {
    outline: 2px solid var(--accent-cyan);
    outline-offset: 2px;
}

.rss-card-title {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.35;
    margin: 0 0 14px;
    transition: color 0.2s ease;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rss-card-meta {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    margin: 0;
    margin-top: auto;
    line-height: 1.5;
}

.rss-card-link::after {
    content: 'Opens in new tab ↗';
    display: block;
    margin-top: 16px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--accent-cyan);
    opacity: 0.85;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.rss-card:hover .rss-card-title {
    color: var(--accent-cyan);
}

.rss-card:hover .rss-card-link::after {
    opacity: 1;
    transform: translateX(2px);
}

/* ============================================
   Blog Layout
   ============================================ */
.blog-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
}

.blog-content {
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 45px;
    box-shadow: var(--shadow-lg);
}

.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* ============================================
   Sidebar Widgets
   ============================================ */
.sidebar-widget {
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    position: relative;
    transition: all 0.3s ease;
}

.sidebar-widget::before {
    content: '';
    position: absolute;
    inset: -1px;
    background: var(--gradient-border);
    border-radius: 13px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.sidebar-widget:hover {
    transform: translateY(-2px);
}

.sidebar-widget:hover::before {
    opacity: 1;
}

.sidebar-widget-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 18px;
    font-weight: 600;
}

.sidebar-widget-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

/* Newsletter Widget */
.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.newsletter-input {
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 16px;
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.2);
}

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

.newsletter-btn {
    background: var(--gradient-primary);
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    color: white;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.newsletter-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shimmer 2s infinite;
}

.newsletter-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow-cyan);
}

/* Categories Widget */
.categories-widget .sidebar-widget-title {
    margin-bottom: 20px;
}

.categories-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.categories-list li {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: var(--bg-darker);
    transition: border-color 0.25s ease, background 0.25s ease;
}

.categories-list li:hover {
    border-color: rgba(0, 212, 255, 0.3);
    background: rgba(0, 212, 255, 0.04);
}

.categories-list li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.25s ease;
    position: relative;
}

.categories-list li a:hover {
    color: var(--accent-cyan);
}

.categories-list .category-name {
    flex: 1;
    font-size: 0.95rem;
    font-weight: 500;
}

.categories-list .category-count {
    font-size: 0.8rem;
    color: var(--text-muted);
    background: var(--bg-card);
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
    min-width: 28px;
    text-align: center;
    transition: color 0.25s ease, background 0.25s ease;
}

.categories-list li a:hover .category-count {
    color: var(--accent-cyan);
    background: rgba(0, 212, 255, 0.12);
}

.categories-list .category-arrow {
    font-size: 0.9rem;
    color: var(--accent-cyan);
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.categories-list li a:hover .category-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Recent Posts Widget */
.recent-posts-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.recent-post-item {
    display: block;
    padding: 16px;
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.recent-post-item:hover {
    transform: translateX(4px);
    border-color: var(--border-glow);
}

.recent-post-date {
    display: block;
    font-size: 0.8rem;
    color: var(--accent-purple);
    margin-bottom: 6px;
    font-weight: 600;
}

.recent-post-title {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin: 0;
    font-weight: 500;
}

/* ============================================
   Related Blogs Section
   ============================================ */
.related-blogs {
    margin-top: 60px;
    padding-top: 50px;
    border-top: 1px solid var(--border-color);
}

.related-blogs-title {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--text-primary);
    margin-bottom: 35px;
    position: relative;
}

.related-blogs-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
    margin-top: 12px;
    box-shadow: var(--glow-cyan);
}

.related-blogs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

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

.related-blog-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    background: var(--gradient-border);
    border-radius: 13px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.related-blog-card:hover {
    transform: translateY(-6px);
}

.related-blog-card:hover::before {
    opacity: 1;
}

.related-blog-image {
    aspect-ratio: 400 / 220;
    overflow: hidden;
    background: var(--bg-darker);
}

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

.related-blog-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: var(--glow-cyan);
}

.related-blog-title {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin: 0;
    font-weight: 600;
    padding: 18px 24px 0;
}

.related-blog-excerpt {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
    padding: 10px 24px 24px;
}

/* ============================================
   Blog Article
   ============================================ */
.article {
    max-width: 100%;
}

.article-header {
    text-align: center;
    margin-bottom: 45px;
    padding-bottom: 35px;
    border-bottom: 1px solid var(--border-color);
}

.article-title {
    font-family: var(--font-display);
    font-size: 2.4rem;
    color: var(--text-primary);
    margin-bottom: 18px;
    line-height: 1.3;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 24px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.article-featured-image {
    margin-top: 28px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.article-featured-image img {
    width: 100%;
    height: auto;
    display: block;
    vertical-align: middle;
}

.article-content h2 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--text-primary);
    margin: 40px 0 24px 0;
    letter-spacing: -0.5px;
    position: relative;
}

.article-content h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
    margin-top: 12px;
    box-shadow: var(--glow-cyan);
}

.article-content h3 {
    font-size: 1.4rem;
    color: var(--text-secondary);
    margin: 32px 0 18px 0;
}

.article-content p {
    margin-bottom: 22px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.article-content ul {
    list-style: none;
    margin: 24px 0;
    padding-left: 0;
}

.article-content ul li {
    padding: 14px 20px;
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 12px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
}

.article-content ul li:hover {
    border-color: var(--border-glow);
    transform: translateX(4px);
}

.article-content ul li::before {
    content: '✓';
    color: var(--accent-green);
    font-weight: bold;
    font-size: 1.1rem;
    min-width: 20px;
    text-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

.article-content strong {
    color: var(--accent-cyan);
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--bg-darker);
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 50px 20px;
    text-align: center;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-primary);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 35px;
    margin-bottom: 24px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.footer-links a::after {
    display: none;
}

.footer-links a:hover {
    color: var(--accent-cyan);
    text-shadow: var(--text-glow);
}

.footer-copy {
    color: var(--text-muted);
    font-size: 0.9rem;
    opacity: 0.7;
}

/* ============================================
   Blog Listing Page – Banner, Grid, Sidebar, Pagination
   ============================================ */
.blog-banner {
    background: var(--gradient-card);
    border-bottom: 1px solid var(--border-color);
    padding: 56px 24px 48px;
    text-align: center;
}

.blog-banner-title {
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 5vw, 3rem);
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.03em;
    margin-bottom: 12px;
}

.blog-banner-desc {
    max-width: 640px;
    margin: 0 auto;
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.65;
}

.blog-listing-main {
    padding: 48px 0 64px;
}

.blog-listing-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 48px;
    align-items: start;
}

.blog-listing-content {
    min-width: 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.blog-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(0, 212, 255, 0.25);
}

.blog-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.blog-card-image {
    aspect-ratio: 600 / 340;
    overflow: hidden;
    background: var(--bg-darker);
}

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

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

.blog-card-body {
    padding: 22px 24px 24px;
}

.blog-card-title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.35;
    margin-bottom: 10px;
    transition: color 0.2s ease;
}

.blog-card-link:hover .blog-card-title {
    color: var(--accent-cyan);
}

.blog-card-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.blog-card-excerpt {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Blog listing sidebar */
.blog-listing-sidebar {
    display: flex;
    flex-direction: column;
    gap: 28px;
    position: sticky;
    top: 100px;
}

.search-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.search-input {
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 16px;
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: border-color 0.2s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--accent-cyan);
}

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

.search-btn {
    background: var(--accent-cyan);
    border: none;
    border-radius: 8px;
    padding: 10px 18px;
    color: var(--bg-dark);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s ease, background 0.2s ease;
}

.search-btn:hover {
    background: #00b8e6;
}

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
}

.pagination-btn {
    padding: 10px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.pagination-btn:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

.pagination-numbers {
    display: flex;
    align-items: center;
    gap: 6px;
}

.pagination-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.pagination-num:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

.pagination-num.active {
    background: var(--accent-cyan);
    border-color: var(--accent-cyan);
    color: var(--bg-dark);
}

.pagination-num.active:hover {
    color: var(--bg-dark);
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 992px) {
    .home-blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

    .blog-listing-sidebar {
        position: static;
    }

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

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

    .blog-sidebar {
        order: 3;
    }

    .ad-skyscraper {
        display: none;
    }

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

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 18px;
    }

    .nav {
        width: 100%;
        justify-content: center;
    }

    .hero {
        padding: 70px 20px 60px;
    }

    .welcome-card {
        padding: 36px 24px 32px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .rss-section:not(.rss-section--live),
    .blog-content {
        padding: 24px;
    }

    .rss-feed {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .blog-banner {
        padding: 40px 20px 36px;
    }

    .blog-card-body {
        padding: 18px 20px 20px;
    }

    .home-blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .home-blog-card-body {
        padding: 18px 20px 22px;
    }

    .article-title {
        font-size: 1.8rem;
    }

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

@media (max-width: 600px) {
    .ad-leaderboard {
        width: 300px;
        height: 250px;
    }

    .ad-leaderboard .ad-leaderboard-label-desktop {
        display: none;
    }

    .ad-leaderboard .ad-leaderboard-label-mobile {
        display: inline;
    }

    .ad-square {
        width: 100%;
        max-width: 300px;
    }

    .nav {
        flex-wrap: wrap;
        gap: 4px;
    }

    .nav-link {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}

/* ============================================
   Scrollbar Styling
   ============================================ */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-darker);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-cyan);
}

/* ============================================
   Selection Styling
   ============================================ */
::selection {
    background: var(--accent-cyan);
    color: var(--bg-dark);
}
