/* ============================================================
   CricketHub Design System
   Dark cinematic cricket theme — stadium floodlights at night
   ============================================================ */

/* --- Google Fonts --- */


/* --- CSS Custom Properties --- */
:root {
    /* Background */
    --bg-body: #06080f;
    --bg-surface: #0d1117;
    --bg-card: #111827;
    --bg-card-hover: #1a2234;
    --bg-elevated: #1e293b;

    /* Accent Colors */
    --gold: #f59e0b;
    --gold-light: #fbbf24;
    --gold-dark: #d97706;
    --gold-glow: rgba(245, 158, 11, 0.15);
    --red: #ef4444;
    --red-light: #f87171;
    --green: #22c55e;

    /* Text */
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --text-accent: #f59e0b;

    /* Borders */
    --border: #1e293b;
    --border-hover: #334155;
    --border-gold: rgba(245, 158, 11, 0.3);

    /* Gradients */
    --gradient-gold: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    --gradient-hero: linear-gradient(135deg, #f59e0b 0%, #d97706 40%, #ef4444 100%);
    --gradient-card-border: linear-gradient(135deg, rgba(245,158,11,0.4), rgba(239,68,68,0.1), transparent);
    --gradient-dark: linear-gradient(180deg, #06080f 0%, #0d1117 100%);

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.5);
    --shadow-gold: 0 4px 30px rgba(245, 158, 11, 0.15);
    --shadow-glow: 0 0 40px rgba(245, 158, 11, 0.1);

    /* Spacing */
    --container-max: 1200px;
    --container-narrow: 800px;

    /* Transition */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Background ambient glow */
body::before {
    content: '';
    position: fixed;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(245,158,11,0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}
body::after {
    content: '';
    position: fixed;
    bottom: -200px;
    left: -200px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(239,68,68,0.04) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

a { text-decoration: none; color: inherit; transition: color 0.3s var(--ease); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 { font-family: 'Outfit', sans-serif; font-weight: 700; line-height: 1.2; color: var(--text-primary); }

/* --- Utility Classes --- */
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 20px; }
.gradient-text { background: var(--gradient-gold); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* --- Reading Progress Bar --- */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--gradient-gold);
    z-index: 10000;
    transition: width 0.1s linear;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: 92%;
    max-width: var(--container-max);
    padding: 12px 24px;
    background: rgba(13, 17, 23, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s var(--ease);
}
.navbar.scrolled {
    background: rgba(13, 17, 23, 0.95);
    box-shadow: var(--shadow-md);
    border-color: var(--border-hover);
}
.logo {
    font-family: 'Outfit', sans-serif;
    font-size: 1.3rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}
.logo-icon {
    width: 34px;
    height: 34px;
    background: #fdfbf7; /* Warm off-white */
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #000;
    font-weight: 900;
    box-shadow: 0 2px 8px rgba(253, 251, 247, 0.15); /* subtle glow to stand out against dark bg */
}
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a {
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-full);
    transition: all 0.3s var(--ease);
}
.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
    background: rgba(255,255,255,0.05);
}
.nav-links a.active { color: var(--gold); }

/* Mobile hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    background: none;
    border: none;
}
.nav-toggle span {
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s var(--ease);
}
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
    text-align: center;
    padding: 160px 20px 80px;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(245,158,11,0.08) 0%, transparent 70%);
    pointer-events: none;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: var(--gold-glow);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 24px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.hero-badge .pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--gold);
    border-radius: 50%;
    animation: pulse 2s infinite;
}
.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.2rem);
    font-weight: 900;
    margin-bottom: 20px;
    letter-spacing: -2px;
    line-height: 1.05;
}
.hero p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 550px;
    margin: 0 auto 36px;
    line-height: 1.7;
}
.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: var(--gradient-gold);
    color: #000;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: var(--radius-full);
    transition: all 0.3s var(--ease);
    box-shadow: var(--shadow-gold);
}
.hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 40px rgba(245,158,11,0.3);
}
.hero-cta i { transition: transform 0.3s var(--ease); }
.hero-cta:hover i { transform: translateX(4px); }

/* Stats row below hero */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}
.hero-stat { text-align: center; }
.hero-stat .stat-num {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--gold);
}
.hero-stat .stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 2px;
}

/* ============================================================
   ARTICLE CARDS
   ============================================================ */

/* Featured article (large hero card) */
.featured-article {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: all 0.4s var(--ease);
    cursor: pointer;
}
.featured-article:hover {
    border-color: var(--border-gold);
    box-shadow: var(--shadow-glow);
    transform: translateY(-4px);
}
.featured-article .article-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    background: var(--bg-surface);
}
.featured-article {
    min-height: 400px;
    display: block;
    text-decoration: none;
}
.featured-article .article-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 60px 36px 36px;
    background: linear-gradient(to top, rgba(6,8,15,0.95) 30%, transparent);
}
.featured-article .article-overlay h2 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 12px;
    line-height: 1.2;
}
.featured-article .article-overlay p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 16px;
    max-width: 600px;
}

/* Article grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}

/* Standard article card */
.article-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.35s var(--ease);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    position: relative;
}
.article-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-gold);
    box-shadow: var(--shadow-gold);
}
.article-card .card-image-wrapper {
    position: relative;
    overflow: hidden;
    height: 200px;
}
.article-card .card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--ease);
}
.article-card:hover .card-image-wrapper img {
    transform: scale(1.05);
}
.article-card .card-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.article-card .card-body h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.35;
    transition: color 0.3s var(--ease);
}
.article-card:hover .card-body h3 { color: var(--gold); }
.article-card .card-body p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 16px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Category badge */
.category-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: var(--gold-glow);
    color: var(--gold);
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 12px;
    width: fit-content;
}
.category-badge.red { background: rgba(239,68,68,0.12); color: var(--red-light); }
.category-badge.green { background: rgba(34,197,94,0.12); color: var(--green); }
.category-badge.blue { background: rgba(59,130,246,0.12); color: #60a5fa; }

/* Article meta (author, date, read time) */
.article-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}
.article-meta span { display: flex; align-items: center; gap: 5px; }
.article-meta i { font-size: 0.7rem; color: var(--text-muted); }

/* ============================================================
   CATEGORY CARDS
   ============================================================ */
.categories-scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 8px 0 16px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    max-width: 100%;
}
.categories-scroll::-webkit-scrollbar { display: none; }

.category-card {
    min-width: 260px;
    padding: 28px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all 0.3s var(--ease);
    scroll-snap-align: start;
    cursor: pointer;
    text-decoration: none;
    display: block;
}
.category-card:hover {
    border-color: var(--border-gold);
    transform: translateY(-4px);
    box-shadow: var(--shadow-gold);
}
.category-card .cat-icon {
    width: 48px;
    height: 48px;
    background: var(--gold-glow);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 16px;
}
.category-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.category-card p { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 12px; }
.category-card .cat-count { font-size: 0.75rem; color: var(--gold); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }

/* ============================================================
   TRIVIA CARDS (Did You Know section — no text truncation)
   ============================================================ */
.trivia-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}
.trivia-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
    transition: all 0.3s ease;
}
.trivia-card:hover {
    border-color: var(--gold);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(245, 158, 11, 0.08);
}
.trivia-card .trivia-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}
.trivia-card h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}
.trivia-card:hover h3 { color: var(--gold); }
.trivia-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
    margin: 0;
}

/* ============================================================
   FAQ SECTION
   ============================================================ */
.faq-item {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.3s ease;
}
.faq-item:hover { border-color: var(--border-hover); }
.faq-item[open] { border-color: var(--gold); }
.faq-item summary {
    padding: 20px 24px;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1.05rem;
    font-family: 'Outfit', sans-serif;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker { display: none; content: ''; }
.faq-item summary .faq-toggle {
    color: var(--gold);
    font-size: 1.4rem;
    font-weight: 300;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 16px;
}
.faq-item[open] summary .faq-toggle { transform: rotate(45deg); }
.faq-item .faq-answer {
    padding: 0 24px 20px;
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 0.95rem;
}

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section { padding: 80px 0; position: relative; overflow: hidden; }
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
    gap: 20px;
}
.section-header h2 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -1px;
}
.section-header p { color: var(--text-secondary); margin-top: 8px; font-size: 1rem; }
.section-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--gold);
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    transition: gap 0.3s var(--ease);
}
.section-link:hover { gap: 10px; }

/* ============================================================
   NEWSLETTER SECTION
   ============================================================ */
.newsletter-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 60px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.newsletter-section::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(245,158,11,0.08) 0%, transparent 70%);
    pointer-events: none;
}
.newsletter-section h2 { font-size: 2rem; margin-bottom: 12px; }
.newsletter-section p { color: var(--text-secondary); margin-bottom: 28px; max-width: 500px; margin-left: auto; margin-right: auto; }
.newsletter-form {
    display: flex;
    max-width: 480px;
    margin: 0 auto;
    gap: 12px;
}
.newsletter-form input {
    flex: 1;
    padding: 14px 20px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: border-color 0.3s var(--ease);
}
.newsletter-form input::placeholder { color: var(--text-muted); }
.newsletter-form input:focus { border-color: var(--gold); }
.newsletter-form button {
    padding: 14px 28px;
    background: var(--gradient-gold);
    color: #000;
    font-weight: 700;
    font-size: 0.9rem;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.3s var(--ease);
    font-family: 'Inter', sans-serif;
    white-space: nowrap;
}
.newsletter-form button:hover { transform: translateY(-2px); box-shadow: var(--shadow-gold); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    border-top: 1px solid var(--border);
    background: var(--bg-surface);
    padding: 60px 20px;
    margin-top: 80px;
}
.footer-content {
    max-width: var(--container-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 40px;
}
.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 16px;
    line-height: 1.7;
    max-width: 280px;
}
.footer-col h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
}
.footer-col li { margin-bottom: 10px; }
.footer-col a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: color 0.3s var(--ease);
}
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
    max-width: var(--container-max);
    margin: 0 auto;
    text-align: center;
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ============================================================
   ARTICLE PAGE STYLES
   ============================================================ */

/* Breadcrumb */
.breadcrumb {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 100px 20px 0;
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}
.breadcrumb a { color: var(--text-secondary); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb .separator { color: var(--text-muted); }
.breadcrumb .current { color: var(--text-primary); font-weight: 500; }

/* Article header */
.article-header {
    max-width: var(--container-narrow);
    margin: 0 auto;
    padding: 40px 20px;
    text-align: center;
}
.article-header h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    margin-bottom: 20px;
    letter-spacing: -1.5px;
    line-height: 1.1;
}
.article-header .article-meta-full {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    color: var(--text-muted);
    font-size: 0.85rem;
}
.article-header .article-meta-full span { display: flex; align-items: center; gap: 6px; }
.article-header .article-meta-full .author-name { color: var(--gold); font-weight: 600; }

/* Featured image */
.article-featured-image {
    max-width: 900px;
    margin: 0 auto 40px;
    padding: 0 20px;
}
.article-featured-image img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    background: var(--surface);
}

/* Article content layout (content + sidebar) */
.article-layout {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 48px;
}

/* Main article content */
.article-content {
    max-width: 100%;
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--text-secondary);
}
.article-content h2 {
    font-size: 1.6rem;
    color: var(--text-primary);
    margin: 48px 0 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
    letter-spacing: -0.5px;
}
.article-content h3 {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin: 32px 0 12px;
}
.article-content p { margin-bottom: 20px; }
.article-content strong { color: var(--text-primary); }
.article-content a { color: var(--gold); border-bottom: 1px solid rgba(245,158,11,0.3); }
.article-content a:hover { border-bottom-color: var(--gold); }

.article-content ul, .article-content ol {
    margin: 16px 0 24px 24px;
    color: var(--text-secondary);
}
.article-content li {
    margin-bottom: 10px;
    padding-left: 8px;
}
.article-content ul li { list-style: disc; }
.article-content ol li { list-style: decimal; }

.article-content img {
    display: block;
    max-width: 100%;
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    margin: 32px auto;
    border: 1px solid var(--border);
    background: var(--surface);
}
.article-content figure {
    margin: 32px 0;
}
.article-content figcaption {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 10px;
    font-style: italic;
}

/* Blockquote */
.article-content blockquote {
    margin: 32px 0;
    padding: 24px 28px;
    border-left: 4px solid var(--gold);
    background: var(--gold-glow);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-primary);
    line-height: 1.7;
}
.article-content blockquote cite {
    display: block;
    margin-top: 12px;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: normal;
    font-weight: 600;
}

/* Did You Know callout */
.did-you-know {
    background: rgba(239,68,68,0.08);
    border: 1px solid rgba(239,68,68,0.2);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin: 32px 0;
}
.did-you-know .dyk-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: var(--red-light);
    margin-bottom: 10px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.did-you-know p { margin-bottom: 8px; font-size: 0.95rem; }
.did-you-know p:last-child { margin-bottom: 0; }

/* Table of Contents */
.toc {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 32px;
}
.toc h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}
.toc ol { margin: 0; padding: 0 0 0 24px; }
.toc li {
    margin-bottom: 8px;
}
.toc li::marker {
    color: var(--gold);
    font-weight: 600;
}
.toc a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: color 0.2s;
}
.toc a:hover { color: var(--gold); }

/* Sidebar */
.article-sidebar { position: sticky; top: 100px; align-self: start; }
.sidebar-widget {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
}
.sidebar-widget h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

/* Author box */
.author-box {
    display: flex;
    gap: 16px;
    align-items: center;
}
.author-box img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-gold);
}
.author-box .author-info h5 {
    font-size: 0.95rem;
    margin-bottom: 4px;
}
.author-box .author-info p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

/* Related articles in sidebar */
.related-sidebar-item {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
}
.related-sidebar-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.related-sidebar-item img {
    width: 72px;
    height: 56px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}
.related-sidebar-item h5 {
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.35;
    transition: color 0.2s;
}
.related-sidebar-item:hover h5 { color: var(--gold); }
.related-sidebar-item .rel-date {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Social share buttons */
.share-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s var(--ease);
    text-decoration: none;
}
.share-btn:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }

/* Article bottom author bio */
.author-bio-full {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 32px;
    margin: 48px 0;
}
.author-bio-full img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--border-gold);
    flex-shrink: 0;
}
.author-bio-full .bio-content h3 { font-size: 1.1rem; margin-bottom: 4px; }
.author-bio-full .bio-content .bio-label { font-size: 0.75rem; color: var(--gold); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 10px; }
.author-bio-full .bio-content p { font-size: 0.9rem; color: var(--text-secondary); margin: 0; line-height: 1.7; }

/* Related articles grid */
.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin: 32px 0;
}

/* Prev/Next navigation */
.article-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 48px 0;
    max-width: var(--container-narrow);
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}
.article-nav a {
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all 0.3s var(--ease);
    text-decoration: none;
}
.article-nav a:hover { border-color: var(--border-gold); transform: translateY(-2px); }
.article-nav .nav-label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.article-nav .nav-title { font-family: 'Outfit', sans-serif; font-size: 0.95rem; font-weight: 600; line-height: 1.3; }
.article-nav .next-article { text-align: right; }

/* ============================================================
   ESSENTIAL PAGE STYLES
   ============================================================ */
.page-hero {
    text-align: center;
    padding: 150px 20px 60px;
}
.page-hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    margin-bottom: 16px;
    letter-spacing: -1px;
}
.page-hero p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.page-content {
    max-width: var(--container-narrow);
    margin: 0 auto;
    padding: 0 20px 80px;
}
.content-block {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 40px;
    margin-bottom: 24px;
}
.content-block h2 {
    font-size: 1.4rem;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.content-block h2 i { color: var(--gold); font-size: 1.1rem; }
.content-block p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 16px;
}
.content-block p:last-child { margin-bottom: 0; }
.content-block ul { margin: 12px 0 20px 24px; }
.content-block li { margin-bottom: 8px; color: var(--text-secondary); list-style: disc; line-height: 1.7; }
.content-block strong { color: var(--text-primary); }
.content-block a { color: var(--gold); }

/* Contact form */
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 0.85rem; font-weight: 600; color: var(--text-secondary); }
.form-group input,
.form-group textarea,
.form-group select {
    padding: 12px 16px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.3s var(--ease);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--gold); }
.form-group textarea { min-height: 140px; resize: vertical; }
.form-submit {
    padding: 14px 32px;
    background: var(--gradient-gold);
    color: #000;
    font-weight: 700;
    font-size: 0.95rem;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.3s var(--ease);
    font-family: 'Inter', sans-serif;
    align-self: flex-start;
}
.form-submit:hover { transform: translateY(-2px); box-shadow: var(--shadow-gold); }

/* Cookie consent */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    z-index: 9999;
    font-size: 0.85rem;
    color: var(--text-secondary);
    box-shadow: 0 -4px 30px rgba(0,0,0,0.3);
}
.cookie-banner a { color: var(--gold); text-decoration: underline; }
.cookie-banner button {
    background: var(--gradient-gold);
    color: #000;
    border: none;
    padding: 8px 24px;
    border-radius: var(--radius-full);
    cursor: pointer;
    font-weight: 700;
    font-size: 0.85rem;
    white-space: nowrap;
    font-family: 'Inter', sans-serif;
}
.cookie-banner button:hover { transform: translateY(-1px); }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

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

.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children animation */
.stagger-children .fade-in:nth-child(1) { transition-delay: 0.05s; }
.stagger-children .fade-in:nth-child(2) { transition-delay: 0.1s; }
.stagger-children .fade-in:nth-child(3) { transition-delay: 0.15s; }
.stagger-children .fade-in:nth-child(4) { transition-delay: 0.2s; }
.stagger-children .fade-in:nth-child(5) { transition-delay: 0.25s; }
.stagger-children .fade-in:nth-child(6) { transition-delay: 0.3s; }

/* ============================================================
   RESPONSIVE DESIGN
   ============================================================ */
@media (max-width: 1024px) {
    .article-layout { grid-template-columns: 1fr; }
    .article-sidebar { position: static; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
    .footer-content { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .navbar {
        width: 95%;
        top: 10px;
        padding: 10px 16px;
    }
    .nav-links {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: rgba(13, 17, 23, 0.98);
        backdrop-filter: blur(20px);
        border: 1px solid var(--border);
        border-radius: var(--radius-lg);
        padding: 16px;
        flex-direction: column;
        gap: 4px;
    }
    .nav-links.open { display: flex; }
    .nav-links a { padding: 12px 16px; width: 100%; border-radius: var(--radius-md); }
    .nav-toggle { display: flex; }

    .section { padding: 48px 0; }
    .hero { padding: 120px 20px 48px; }
    .hero-stats { gap: 24px; flex-wrap: wrap; }

    .categories-scroll {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        overflow-x: visible;
    }
    .category-card {
        min-width: 0;
        padding: 18px;
    }
    .category-card .cat-icon { width: 40px; height: 40px; font-size: 1.1rem; margin-bottom: 10px; }
    .category-card h3 { font-size: 0.95rem; margin-bottom: 4px; }
    .category-card p { font-size: 0.78rem; margin-bottom: 8px; line-height: 1.4; }

    .articles-grid { grid-template-columns: 1fr; }
    .featured-article .article-image { height: 260px; }
    .featured-article .article-overlay h2 { font-size: 1.3rem; }

    .section-header { flex-direction: column; align-items: flex-start; margin-bottom: 24px; }

    .newsletter-section { padding: 36px 20px; }
    .newsletter-form { flex-direction: column; }

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

    .article-header h1 { font-size: 1.8rem; }
    .content-block { padding: 24px; }

    .author-bio-full { flex-direction: column; align-items: center; text-align: center; }

    .article-nav { grid-template-columns: 1fr; }

    .cookie-banner { flex-direction: column; text-align: center; gap: 12px; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 2rem; letter-spacing: -1px; }
    .hero p { font-size: 1rem; }
    .articles-grid { gap: 16px; }
    .article-card .card-body { padding: 16px; }
    .breadcrumb { font-size: 0.75rem; }
}

/* ============================================================
   CATEGORY PAGE STYLES
   ============================================================ */
.category-hero {
    text-align: center;
    padding: 150px 20px 50px;
}
.category-hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    letter-spacing: -1px;
    margin-bottom: 12px;
}
.category-hero p { color: var(--text-secondary); font-size: 1.05rem; max-width: 550px; margin: 0 auto; }
.category-hero .article-count {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    padding: 6px 16px;
    background: var(--gold-glow);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    color: var(--gold);
    font-weight: 600;
}

/* Sitemap page */
.sitemap-list { margin: 0; padding: 0; }
.sitemap-list li { margin-bottom: 12px; list-style: none; }
.sitemap-list a { color: var(--gold); font-size: 0.95rem; }
.sitemap-list a:hover { text-decoration: underline; }
.sitemap-group { margin-bottom: 32px; }
.sitemap-group h3 { font-size: 1.1rem; color: var(--text-primary); margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
