/**
 * Theme: telecoms-mag
 * Premium Editorial Magazine — Inspired by Wired.com & Slate.fr
 * Typography: Fraunces (serif) + DM Sans (sans) + DM Mono (mono)
 */

/* =========================================================
   0. GOOGLE FONTS IMPORT
   ========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,700;0,9..144,900;1,9..144,400;1,9..144,700&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=DM+Mono:wght@400;500&display=swap');

/* =========================================================
   1. DESIGN TOKENS / CSS VARIABLES
   ========================================================= */
:root {
    /* Color Palette */
    --ink:        #0A0A0F;
    --ink-soft:   #1C1C26;
    --paper:      #FAFAF8;
    --surface:    #FFFFFF;
    --border:     #E5E5DD;
    --border-mid: #CACAC0;
    --muted:      #787872;
    --muted-lt:   #A8A89F;

    /* Accent System */
    --red:        #E8281A;
    --red-hover:  #C41F10;
    --red-dim:    #FFF0EF;
    --blue:       #1756E8;
    --blue-hover: #1243C0;
    --blue-dim:   #EEF2FE;
    --green:      #177A3C;
    --amber:      #C87800;

    /* Ticker / breaking bar */
    --ticker-bg:  #E8281A;
    --ticker-fg:  #FFFFFF;

    /* Header */
    --header-bg:  #0A0A0F;
    --header-border: rgba(255,255,255,0.08);

    /* Spacing Scale */
    --sp-xs:  4px;
    --sp-sm:  8px;
    --sp-md:  16px;
    --sp-lg:  24px;
    --sp-xl:  40px;
    --sp-2xl: 64px;
    --sp-3xl: 96px;

    /* Typography */
    --font-serif: 'Fraunces', 'Georgia', serif;
    --font-sans:  'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono:  'DM Mono', 'Menlo', monospace;

    /* Border Radius */
    --r-sm: 3px;
    --r-md: 6px;
    --r-lg: 12px;
    --r-xl: 20px;

    /* Shadows */
    --shadow-sm:  0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md:  0 4px 16px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
    --shadow-lg:  0 20px 50px rgba(0,0,0,0.12), 0 6px 20px rgba(0,0,0,0.06);
    --shadow-xl:  0 40px 80px rgba(0,0,0,0.18);

    /* Transition */
    --t-fast:  0.15s ease;
    --t-base:  0.25s ease;
    --t-slow:  0.45s cubic-bezier(0.16, 1, 0.3, 1);

    /* Max width */
    --max-w: 1260px;
    --max-w-text: 740px;
}

/* =========================================================
   2. RESET & BASE
   ========================================================= */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--paper);
    color: var(--ink);
    font-family: var(--font-sans);
    font-weight: 400;
    line-height: 1.65;
    min-height: 100vh;
}

img, video, svg {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--t-fast);
}

ul, ol {
    list-style: none;
}

button, input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

/* =========================================================
   3. LAYOUT UTILITIES
   ========================================================= */
.container {
    width: 100%;
    max-width: var(--max-w);
    margin-inline: auto;
    padding-inline: var(--sp-xl);
}

.container--narrow {
    max-width: 900px;
    margin-inline: auto;
    padding-inline: var(--sp-xl);
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-lg); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-lg); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-lg); }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-sm { gap: var(--sp-sm); }
.gap-md { gap: var(--sp-md); }
.gap-lg { gap: var(--sp-lg); }

/* =========================================================
   4. TYPOGRAPHY SCALE
   ========================================================= */
.t-display {
    font-family: var(--font-serif);
    font-size: clamp(48px, 7vw, 88px);
    font-weight: 900;
    line-height: 1.0;
    letter-spacing: -0.025em;
}

.t-h1 {
    font-family: var(--font-serif);
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.t-h2 {
    font-family: var(--font-serif);
    font-size: clamp(22px, 2.5vw, 34px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.015em;
}

.t-h3 {
    font-family: var(--font-sans);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
}

.t-h4 {
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
}

.t-body { font-size: 17px; line-height: 1.75; }
.t-body-sm { font-size: 15px; line-height: 1.65; }
.t-caption { font-size: 13px; line-height: 1.5; color: var(--muted); }
.t-label {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* =========================================================
   5. BREAKING NEWS TICKER
   ========================================================= */
.breaking-ticker {
    background-color: var(--ticker-bg);
    color: var(--ticker-fg);
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    overflow: hidden;
    white-space: nowrap;
    height: 34px;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1001;
}

.ticker-label {
    background: rgba(0,0,0,0.25);
    padding: 0 16px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    font-size: 10px;
}

.ticker-label::after {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fff;
    animation: blink 1.2s ease infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.ticker-track {
    flex: 1;
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent 0%, black 5%, black 95%, transparent 100%);
}

.ticker-inner {
    display: inline-flex;
    gap: 60px;
    animation: ticker-scroll 40s linear infinite;
    white-space: nowrap;
}

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

.ticker-inner a {
    color: rgba(255,255,255,0.9);
    transition: color var(--t-fast);
}

.ticker-inner a:hover {
    color: #fff;
    text-decoration: underline;
}

.ticker-sep {
    color: rgba(255,255,255,0.35);
}

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

/* =========================================================
   6. SITE HEADER
   ========================================================= */
.site-header {
    background-color: var(--header-bg);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--header-border);
}

.header-inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: var(--sp-md);
    height: 72px;
    width: 100%;
    padding-inline: clamp(12px, 3vw, 60px);
}

/* Logo */
.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    min-width: 0;
    white-space: nowrap;
}

.site-logo img {
    height: 36px;
    width: auto;
    display: block;
    max-width: 160px;
    object-fit: contain;
}

.logo-wordmark {
    font-family: var(--font-serif);
    font-weight: 900;
    font-size: 26px;
    letter-spacing: -0.02em;
    color: #fff;
    line-height: 1;
    white-space: nowrap;
}

.logo-wordmark span {
    color: var(--red);
}

/* Primary Navigation */
.primary-nav {
    display: flex;
    align-items: stretch;
    height: 100%;
    gap: 0;
    min-width: 0;
    /* Do NOT use overflow:hidden or overflow-x:auto here — it clips the megamenu dropdown */
}

.nav-item {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 5px;
    height: 100%;
    padding: 0 16px;
    color: rgba(255,255,255,0.72);
    font-family: var(--font-sans);
    font-size: 13.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    transition: color var(--t-fast), background-color var(--t-fast);
    white-space: nowrap;
    cursor: pointer;
    border: none;
    background: none;
}

.nav-link:hover,
.nav-link.active {
    color: #fff;
    background-color: rgba(255,255,255,0.06);
}

.nav-link svg {
    transition: transform var(--t-base);
}

.nav-item:hover .nav-link svg {
    transform: rotate(180deg);
}

/* Header right actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: var(--sp-sm);
    flex-shrink: 0;
}

/* Search toggle */
.search-toggle {
    width: 40px;
    height: 40px;
    border-radius: var(--r-md);
    border: 1px solid rgba(255,255,255,0.12);
    background: none;
    color: rgba(255,255,255,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--t-fast);
}

.search-toggle:hover {
    background: rgba(255,255,255,0.08);
    color: #fff;
    border-color: rgba(255,255,255,0.25);
}

/* Subscribe CTA */
.btn-subscribe {
    background: var(--red);
    color: #fff;
    padding: 0 var(--sp-md);
    height: 38px;
    border-radius: var(--r-sm);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border: none;
    cursor: pointer;
    transition: background var(--t-fast), transform var(--t-fast);
    white-space: nowrap;
}

.btn-subscribe:hover {
    background: var(--red-hover);
    transform: translateY(-1px);
}

/* Mobile hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 8px;
}

.hamburger span {
    width: 22px;
    height: 2px;
    background: rgba(255,255,255,0.8);
    border-radius: 2px;
    transition: all var(--t-base);
}

/* =========================================================
   7. MEGA MENU
   ========================================================= */
.megamenu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    background: var(--surface);
    border: 1px solid var(--border);
    border-top: 3px solid var(--red);
    border-radius: 0 0 var(--r-lg) var(--r-lg);
    min-width: 720px;
    padding: var(--sp-lg);
    box-shadow: var(--shadow-xl);
    display: grid;
    grid-template-columns: 200px 1fr 200px;
    gap: var(--sp-lg);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity var(--t-base), transform var(--t-base), visibility var(--t-base);
    z-index: 1100;
}

.nav-item:hover .megamenu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

/* Left: Category info */
.megamenu-category {
    border-right: 1px solid var(--border);
    padding-right: var(--sp-lg);
}

.megamenu-cat-title {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -0.02em;
    margin-bottom: var(--sp-sm);
    line-height: 1.1;
    color: var(--ink);
}

.megamenu-cat-desc {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: var(--sp-md);
}

.megamenu-cat-count {
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--red);
}

.megamenu-cat-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: var(--sp-md);
    font-size: 13px;
    font-weight: 600;
    color: var(--blue);
    padding: 8px 14px;
    border: 1.5px solid var(--blue);
    border-radius: var(--r-sm);
    transition: all var(--t-fast);
}

.megamenu-cat-link:hover {
    background: var(--blue);
    color: #fff;
}

/* Center: Articles list */
.megamenu-articles {
    display: flex;
    flex-direction: column;
    gap: var(--sp-md);
}

.megamenu-article {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: var(--sp-sm);
    align-items: start;
    padding-bottom: var(--sp-md);
    border-bottom: 1px solid var(--border);
}

.megamenu-article:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.megamenu-article-thumb {
    width: 70px;
    height: 52px;
    object-fit: cover;
    border-radius: var(--r-sm);
    background: var(--border);
}

.megamenu-article-title {
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--ink);
    transition: color var(--t-fast);
}

.megamenu-article:hover .megamenu-article-title {
    color: var(--red);
}

.megamenu-article-date {
    font-family: var(--font-mono);
    font-size: 10.5px;
    color: var(--muted);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Right: Promo panel */
.megamenu-promo {
    background: linear-gradient(135deg, var(--ink) 0%, #1C2340 100%);
    border-radius: var(--r-md);
    padding: var(--sp-md);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 160px;
    position: relative;
    overflow: hidden;
}

.megamenu-promo-label {
    font-family: var(--font-mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--red);
    margin-bottom: var(--sp-sm);
}

.megamenu-promo-title {
    font-family: var(--font-serif);
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    margin-bottom: var(--sp-sm);
}

.megamenu-promo-cta {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255,255,255,0.6);
}

/* Simple nav fallback for small screens */
.nav-simple {
    display: flex;
    align-items: stretch;
    height: 100%;
    gap: 0;
}

.nav-simple-link {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 14px;
    color: rgba(255,255,255,0.72);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    transition: color var(--t-fast), background-color var(--t-fast);
    white-space: nowrap;
}

.nav-simple-link:hover,
.nav-simple-link.active {
    color: #fff;
    background-color: rgba(255,255,255,0.06);
}

/* =========================================================
   8. SEARCH OVERLAY
   ========================================================= */
.search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10,10,15,0.96);
    z-index: 9999;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 120px;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--t-base), visibility var(--t-base);
}

.search-overlay.open {
    opacity: 1;
    visibility: visible;
}

.search-overlay-inner {
    width: 100%;
    max-width: 680px;
    padding: 0 var(--sp-xl);
}

.search-input-wrap {
    position: relative;
    border-bottom: 2px solid rgba(255,255,255,0.2);
    padding-bottom: 12px;
    transition: border-color var(--t-fast);
}

.search-input-wrap:focus-within {
    border-color: var(--red);
}

.search-overlay input {
    width: 100%;
    background: none;
    border: none;
    color: #fff;
    font-family: var(--font-serif);
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 700;
    outline: none;
    padding: 0;
    caret-color: var(--red);
}

.search-overlay input::placeholder {
    color: rgba(255,255,255,0.25);
}

.search-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: rgba(255,255,255,0.5);
    cursor: pointer;
    font-family: var(--font-mono);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: color var(--t-fast);
}

.search-close:hover { color: #fff; }

.search-hint {
    font-family: var(--font-mono);
    font-size: 12px;
    color: rgba(255,255,255,0.3);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: var(--sp-md);
}

/* =========================================================
   9. CATEGORY BADGES / CHIPS
   ========================================================= */
.chip {
    display: inline-flex;
    align-items: center;
    height: 22px;
    padding: 0 10px;
    border-radius: 2px;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
    transition: all var(--t-fast);
}

.chip--red    { background: var(--red); color: #fff; }
.chip--blue   { background: var(--blue); color: #fff; }
.chip--ink    { background: var(--ink); color: #fff; }
.chip--glass  { background: rgba(255,255,255,0.15); color: #fff; backdrop-filter: blur(4px); border: 1px solid rgba(255,255,255,0.2); }
.chip--outline { border: 1.5px solid var(--border-mid); color: var(--muted); background: none; }
.chip--outline:hover { border-color: var(--red); color: var(--red); }

/* =========================================================
   10. HOME — HERO SECTION
   ========================================================= */
.hero {
    position: relative;
    overflow: hidden;
    background: var(--ink);
    min-height: 640px;
    display: grid;
    grid-template-columns: 3fr 1.4fr;
}

/* Main hero article — left side */
.hero-main {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.hero-main-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--t-slow);
}

.hero-main:hover .hero-main-img {
    transform: scale(1.04);
}

.hero-main-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(10,10,15,0.92) 0%,
        rgba(10,10,15,0.5) 40%,
        rgba(10,10,15,0.1) 75%,
        transparent 100%
    );
}

.hero-main-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--sp-2xl) var(--sp-xl) var(--sp-xl);
}

.hero-main-title {
    font-family: var(--font-serif);
    font-size: clamp(28px, 4vw, 54px);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.025em;
    color: #fff;
    margin-bottom: var(--sp-md);
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero-main-title a {
    color: inherit;
}

.hero-main-title a:hover {
    text-decoration: underline;
    text-decoration-thickness: 3px;
    text-underline-offset: 4px;
}

.hero-main-excerpt {
    font-size: 16px;
    color: rgba(255,255,255,0.75);
    line-height: 1.6;
    max-width: 560px;
    margin-bottom: var(--sp-md);
}

.hero-main-meta {
    display: flex;
    align-items: center;
    gap: var(--sp-md);
    flex-wrap: wrap;
}

.hero-meta-author {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,0.65);
}

.hero-meta-sep {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    flex-shrink: 0;
}

.hero-meta-date {
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255,255,255,0.45);
}

/* Right sidebar: secondary stories */
.hero-sidebar {
    background: var(--ink-soft);
    border-left: 1px solid rgba(255,255,255,0.07);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.hero-sidebar-item {
    position: relative;
    overflow: hidden;
    flex: 1;
    min-height: 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    cursor: pointer;
    display: block;
}

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

.hero-sidebar-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.45;
    transition: opacity var(--t-base), transform var(--t-slow);
}

.hero-sidebar-item:hover .hero-sidebar-img {
    opacity: 0.6;
    transform: scale(1.04);
}

.hero-sidebar-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--sp-lg);
    background: linear-gradient(to top, rgba(10,10,15,0.9) 0%, transparent 100%);
}

.hero-sidebar-title {
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.25;
    color: #fff;
    letter-spacing: -0.01em;
}

.hero-sidebar-item:hover .hero-sidebar-title {
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 2px;
}

/* =========================================================
   11. SECTION HEADERS (editorial dividers)
   ========================================================= */
.section-header {
    display: flex;
    align-items: center;
    gap: var(--sp-md);
    margin-bottom: var(--sp-xl);
    padding-bottom: var(--sp-md);
    border-bottom: 1px solid var(--border);
}

.section-header::before {
    content: '';
    display: block;
    width: 4px;
    height: 28px;
    background: var(--red);
    border-radius: 2px;
    flex-shrink: 0;
}

.section-title {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -0.015em;
    color: var(--ink);
}

.section-link {
    margin-left: auto;
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--blue);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap var(--t-fast);
}

.section-link:hover {
    gap: 10px;
}

/* =========================================================
   12. ARTICLE CARDS
   ========================================================= */

/* Standard card */
.article-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    overflow: hidden;
    transition: box-shadow var(--t-base), transform var(--t-base);
}

.article-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.card-thumb-wrap {
    overflow: hidden;
    flex-shrink: 0;
    background: var(--border);
}

.card-thumb {
    width: 100%;
    height: 210px;
    object-fit: cover;
    transition: transform var(--t-slow);
}

.article-card:hover .card-thumb {
    transform: scale(1.05);
}

.card-body {
    padding: var(--sp-md) var(--sp-md) var(--sp-lg);
    display: flex;
    flex-direction: column;
    gap: var(--sp-sm);
    flex: 1;
}

.card-title {
    font-family: var(--font-serif);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.015em;
    color: var(--ink);
    transition: color var(--t-fast);
}

.article-card:hover .card-title {
    color: var(--red);
}

.card-excerpt {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.65;
    flex: 1;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: var(--sp-sm);
    flex-wrap: wrap;
    margin-top: var(--sp-sm);
    padding-top: var(--sp-sm);
    border-top: 1px solid var(--border);
}

.card-author {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--ink-soft);
}

.card-date {
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
    margin-left: auto;
}

/* Horizontal card (list view) */
.article-card--horizontal {
    flex-direction: row;
    gap: 0;
    align-items: stretch;
}

.article-card--horizontal .card-thumb-wrap {
    width: 180px;
    flex-shrink: 0;
}

.article-card--horizontal .card-thumb {
    width: 100%;
    height: 100%;
    min-height: 130px;
}

.article-card--horizontal .card-body {
    padding: var(--sp-md);
}

.article-card--horizontal .card-title {
    font-size: 17px;
}

/* Feature card (large, first in grid) */
.article-card--feature {
    grid-column: 1 / -1;
    flex-direction: row;
}

.article-card--feature .card-thumb-wrap {
    width: 55%;
    flex-shrink: 0;
}

.article-card--feature .card-thumb {
    height: 100%;
    min-height: 340px;
}

.article-card--feature .card-body {
    padding: var(--sp-xl);
    justify-content: center;
}

.article-card--feature .card-title {
    font-size: clamp(24px, 3vw, 36px);
    line-height: 1.15;
}

.article-card--feature .card-excerpt {
    font-size: 15.5px;
}

/* Minimal card (no image, inline list) */
.article-card--minimal {
    flex-direction: row;
    align-items: center;
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-top: none;
    background: none;
    padding: var(--sp-md) 0;
    gap: var(--sp-md);
}

.article-card--minimal:hover {
    box-shadow: none;
    transform: none;
}

.card-rank {
    font-family: var(--font-serif);
    font-size: 36px;
    font-weight: 900;
    color: var(--border-mid);
    width: 40px;
    flex-shrink: 0;
    line-height: 1;
}

/* =========================================================
   13. MAGAZINE LAYOUT (Home body)
   ========================================================= */
.home-body {
    padding: var(--sp-2xl) 0;
}

.home-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: var(--sp-2xl);
    align-items: start;
}

.home-main-content {}

/* News grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-lg);
}

/* =========================================================
   14. SIDEBAR WIDGETS
   ========================================================= */
.sidebar {
    position: sticky;
    top: calc(72px + var(--sp-lg));
    display: flex;
    flex-direction: column;
    gap: var(--sp-xl);
}

.widget {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    overflow: hidden;
}

.widget-header {
    padding: var(--sp-md) var(--sp-md) 0;
    border-bottom: 1px solid var(--border);
    padding-bottom: var(--sp-md);
    display: flex;
    align-items: center;
    gap: var(--sp-sm);
}

.widget-title {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
}

.widget-body {
    padding: var(--sp-md);
}

/* Popular articles widget */
.popular-list {
    display: flex;
    flex-direction: column;
}

.popular-item {
    display: grid;
    grid-template-columns: 32px 1fr;
    gap: var(--sp-sm);
    align-items: start;
    padding: var(--sp-md) 0;
    border-bottom: 1px solid var(--border);
}

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

.popular-rank {
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: 900;
    color: var(--border);
    line-height: 1.1;
    text-align: center;
}

.popular-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--ink);
    transition: color var(--t-fast);
}

.popular-title:hover { color: var(--red); }

.popular-date {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 4px;
}

/* Category pills widget */
.category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cat-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 100px;
    border: 1.5px solid var(--border);
    font-size: 13px;
    font-weight: 500;
    color: var(--ink-soft);
    transition: all var(--t-fast);
}

.cat-pill:hover {
    border-color: var(--red);
    color: var(--red);
    background: var(--red-dim);
}

.cat-pill-count {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--muted-lt);
}

/* Newsletter widget */
.newsletter-widget {
    background: linear-gradient(135deg, var(--ink) 0%, #0A1A3C 100%);
    border: none;
    border-radius: var(--r-lg);
    padding: var(--sp-xl);
    text-align: center;
}

.newsletter-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(232,40,26,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--sp-md);
}

.newsletter-title {
    font-family: var(--font-serif);
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin-bottom: var(--sp-sm);
    letter-spacing: -0.01em;
}

.newsletter-text {
    font-size: 13.5px;
    color: rgba(255,255,255,0.55);
    line-height: 1.6;
    margin-bottom: var(--sp-lg);
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: var(--sp-sm);
}

.newsletter-input {
    width: 100%;
    padding: 12px var(--sp-md);
    border: 1.5px solid rgba(255,255,255,0.12);
    border-radius: var(--r-sm);
    background: rgba(255,255,255,0.06);
    color: #fff;
    font-size: 14px;
    outline: none;
    transition: border-color var(--t-fast);
}

.newsletter-input::placeholder { color: rgba(255,255,255,0.3); }
.newsletter-input:focus { border-color: rgba(255,255,255,0.3); }

.newsletter-submit {
    width: 100%;
    padding: 12px;
    background: var(--red);
    color: #fff;
    border: none;
    border-radius: var(--r-sm);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background var(--t-fast), transform var(--t-fast);
}

.newsletter-submit:hover {
    background: var(--red-hover);
    transform: translateY(-1px);
}

/* Ad widget */
.ad-widget {
    text-align: center;
}

.ad-widget-label {
    font-family: var(--font-mono);
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted-lt);
    margin-bottom: var(--sp-sm);
}

/* =========================================================
   15. ARTICLE DETAIL PAGE
   ========================================================= */

/* Reading progress bar */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--red);
    z-index: 9998;
    width: 0%;
    transition: width 0.1s linear;
}

/* Article hero */
.article-hero {
    position: relative;
    width: 100%;
    height: clamp(380px, 55vw, 620px);
    overflow: hidden;
    background: var(--ink);
}

.article-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
}

.article-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10,10,15,0.85) 0%, rgba(10,10,15,0.2) 60%, transparent 100%);
}

.article-hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--sp-2xl) var(--sp-xl) var(--sp-xl);
    max-width: var(--max-w);
    margin: 0 auto;
}

/* Article header (when no hero) */
.article-header-block {
    padding: var(--sp-xl) 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: var(--sp-xl);
}

/* Article layout */
.article-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: var(--sp-2xl);
    align-items: start;
    padding: var(--sp-2xl) 0;
}

/* Article title */
.article-title {
    font-family: var(--font-serif);
    font-size: clamp(32px, 5vw, 58px);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -0.025em;
    color: var(--ink);
    margin-bottom: var(--sp-md);
}

.article-title--white { color: #fff; }

.article-deck {
    font-size: clamp(16px, 2vw, 20px);
    line-height: 1.6;
    color: var(--muted);
    margin-bottom: var(--sp-lg);
    font-weight: 400;
}

.article-deck--white { color: rgba(255,255,255,0.7); }

.article-meta {
    display: flex;
    align-items: center;
    gap: var(--sp-md);
    flex-wrap: wrap;
}

.article-meta--white .meta-author,
.article-meta--white .meta-date { color: rgba(255,255,255,0.7); }

.meta-author {
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
}

.meta-author a { color: inherit; }
.meta-author a:hover { color: var(--red); }

.meta-date {
    font-family: var(--font-mono);
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
}

.meta-reading-time {
    font-family: var(--font-mono);
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Article body */
.article-body {
    font-size: 18px;
    line-height: 1.8;
    color: var(--ink);
}

/* Drop cap on first paragraph */
.article-body > p:first-of-type::first-letter {
    float: left;
    font-family: var(--font-serif);
    font-size: 5.2em;
    font-weight: 900;
    line-height: 0.82;
    margin-right: 10px;
    margin-top: 4px;
    color: var(--ink);
}

.article-body p {
    margin-bottom: var(--sp-lg);
}

.article-body h2 {
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.015em;
    margin: var(--sp-2xl) 0 var(--sp-md);
    color: var(--ink);
}

.article-body h3 {
    font-family: var(--font-sans);
    font-size: 20px;
    font-weight: 700;
    margin: var(--sp-xl) 0 var(--sp-md);
    color: var(--ink);
}

.article-body a {
    color: var(--blue);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.article-body blockquote {
    margin: var(--sp-xl) 0;
    padding: var(--sp-lg) var(--sp-xl);
    border-left: 4px solid var(--red);
    background: var(--red-dim);
    border-radius: 0 var(--r-md) var(--r-md) 0;
}

.article-body blockquote p {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 700;
    font-style: italic;
    line-height: 1.5;
    color: var(--ink);
    margin-bottom: 0;
}

.article-body figure {
    margin: var(--sp-xl) 0;
}

.article-body figure img {
    width: 100%;
    border-radius: var(--r-md);
}

.article-body figcaption {
    font-size: 13px;
    color: var(--muted);
    text-align: center;
    margin-top: var(--sp-sm);
    font-style: italic;
}

/* Tags */
.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: var(--sp-xl);
    padding-top: var(--sp-xl);
    border-top: 1px solid var(--border);
}

.article-tag {
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    padding: 6px 12px;
    border: 1.5px solid var(--border-mid);
    border-radius: 2px;
    transition: all var(--t-fast);
}

.article-tag:hover {
    color: var(--red);
    border-color: var(--red);
}

/* Social share bar */
.share-bar {
    display: flex;
    align-items: center;
    gap: var(--sp-sm);
    padding: var(--sp-md) 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin: var(--sp-xl) 0;
    flex-wrap: wrap;
}

.share-label {
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    margin-right: var(--sp-sm);
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--r-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: filter var(--t-fast), transform var(--t-fast);
}

.share-btn:hover { filter: brightness(1.1); transform: translateY(-1px); }

.share-btn--facebook { background: #3b5998; color: #fff; }
.share-btn--linkedin { background: #0077b5; color: #fff; }
.share-btn--twitter  { background: #000; color: #fff; }
.share-btn--whatsapp { background: #25d366; color: #fff; }

/* Sticky sidebar for article */
.article-sidebar {
    position: sticky;
    top: calc(72px + var(--sp-lg));
    display: flex;
    flex-direction: column;
    gap: var(--sp-xl);
}

/* TOC widget */
.toc-widget { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: var(--sp-md); }
.toc-list { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-top: var(--sp-md); }
.toc-link {
    font-size: 13px;
    color: var(--muted);
    transition: color var(--t-fast), padding-left var(--t-fast);
    display: block;
    padding-left: 0;
    line-height: 1.4;
}
.toc-link:hover { color: var(--red); padding-left: 6px; }
.toc-link.active { color: var(--red); font-weight: 600; padding-left: 6px; }

/* =========================================================
   16. CATEGORY / TAG ARCHIVE
   ========================================================= */
.archive-header {
    background: var(--ink);
    padding: var(--sp-2xl) 0;
    margin-bottom: var(--sp-2xl);
}

.archive-label {
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--red);
    margin-bottom: var(--sp-sm);
}

.archive-title {
    font-family: var(--font-serif);
    font-size: clamp(36px, 6vw, 72px);
    font-weight: 900;
    letter-spacing: -0.03em;
    color: #fff;
    line-height: 1;
    margin-bottom: var(--sp-md);
}

.archive-description {
    font-size: 16px;
    color: rgba(255,255,255,0.55);
    max-width: 600px;
    line-height: 1.65;
}

.archive-count {
    font-family: var(--font-mono);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255,255,255,0.35);
    margin-top: var(--sp-md);
}

.archive-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-xl);
    padding-bottom: var(--sp-2xl);
}

/* =========================================================
   17. PAGINATION
   ========================================================= */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: var(--sp-xl) 0;
    border-top: 1px solid var(--border);
}

.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: var(--r-sm);
    border: 1.5px solid var(--border);
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
    background: var(--surface);
    transition: all var(--t-fast);
    cursor: pointer;
}

.page-btn:hover {
    border-color: var(--red);
    color: var(--red);
}

.page-btn.active {
    background: var(--red);
    border-color: var(--red);
    color: #fff;
}

.page-btn.disabled {
    opacity: 0.35;
    pointer-events: none;
}

/* =========================================================
   18. BREADCRUMB
   ========================================================= */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: var(--sp-md) 0;
    font-size: 12.5px;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border);
    margin-bottom: var(--sp-xl);
}

.breadcrumb a { color: var(--muted); transition: color var(--t-fast); }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb-sep { color: var(--border-mid); }
.breadcrumb-current { color: var(--ink); font-weight: 600; }

/* =========================================================
   19. FOOTER
   ========================================================= */
.site-footer {
    background: var(--ink);
    color: rgba(255,255,255,0.55);
    margin-top: var(--sp-3xl);
    padding-top: var(--sp-2xl);
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--sp-2xl);
    padding-bottom: var(--sp-2xl);
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

.footer-brand .logo-wordmark {
    font-size: 30px;
    margin-bottom: var(--sp-md);
    display: block;
}

.footer-tagline {
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255,255,255,0.45);
    margin-bottom: var(--sp-lg);
    max-width: 280px;
}

.footer-social {
    display: flex;
    gap: var(--sp-sm);
}

.footer-social-link {
    width: 36px;
    height: 36px;
    border-radius: var(--r-sm);
    border: 1px solid rgba(255,255,255,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.55);
    font-size: 13px;
    font-weight: 700;
    transition: all var(--t-fast);
}

.footer-social-link:hover {
    background: rgba(255,255,255,0.08);
    color: #fff;
    border-color: rgba(255,255,255,0.25);
}

.footer-col-title {
    font-family: var(--font-mono);
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.35);
    margin-bottom: var(--sp-lg);
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-nav a {
    font-size: 14px;
    color: rgba(255,255,255,0.55);
    transition: color var(--t-fast);
}

.footer-nav a:hover { color: #fff; }

.footer-bottom {
    padding: var(--sp-lg) 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--sp-md);
}

.footer-copyright {
    font-size: 12.5px;
    color: rgba(255,255,255,0.3);
}

.footer-legal {
    display: flex;
    gap: var(--sp-lg);
}

.footer-legal a {
    font-size: 12.5px;
    color: rgba(255,255,255,0.3);
    transition: color var(--t-fast);
}

.footer-legal a:hover { color: rgba(255,255,255,0.6); }

/* Footer newsletter inline */
.footer-newsletter-row {
    background: rgba(255,255,255,0.04);
    border-top: 1px solid rgba(255,255,255,0.06);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding: var(--sp-xl) 0;
    margin: var(--sp-xl) 0;
}

.footer-newsletter-inner {
    display: flex;
    align-items: center;
    gap: var(--sp-xl);
    flex-wrap: wrap;
}

.footer-newsletter-text h3 {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
    letter-spacing: -0.01em;
}

.footer-newsletter-text p {
    font-size: 13.5px;
    color: rgba(255,255,255,0.45);
}

.footer-newsletter-form {
    display: flex;
    gap: 8px;
    flex: 1;
    min-width: 300px;
}

.footer-nl-input {
    flex: 1;
    padding: 12px 16px;
    border: 1.5px solid rgba(255,255,255,0.12);
    border-radius: var(--r-sm);
    background: rgba(255,255,255,0.06);
    color: #fff;
    font-size: 14px;
    outline: none;
    transition: border-color var(--t-fast);
}

.footer-nl-input::placeholder { color: rgba(255,255,255,0.3); }
.footer-nl-input:focus { border-color: rgba(255,255,255,0.3); }

.footer-nl-submit {
    padding: 12px 24px;
    background: var(--red);
    color: #fff;
    border: none;
    border-radius: var(--r-sm);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
    transition: background var(--t-fast);
}

.footer-nl-submit:hover { background: var(--red-hover); }

/* =========================================================
   20. AD CONTAINERS
   ========================================================= */
.ad-container {
    text-align: center;
    margin: var(--sp-xl) 0;
}

.ad-container-label {
    font-family: var(--font-mono);
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted-lt);
    margin-bottom: 6px;
}

.ad-container img { max-width: 100%; border-radius: var(--r-sm); }

/* =========================================================
   21. HIGHLIGHT / SPECIAL SECTIONS
   ========================================================= */
.highlight-band {
    background: var(--red);
    padding: var(--sp-xl) 0;
    margin: var(--sp-2xl) 0;
    overflow: hidden;
}

.highlight-band-inner {
    display: flex;
    align-items: center;
    gap: var(--sp-xl);
}

.highlight-band-label {
    font-family: var(--font-mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.6);
    white-space: nowrap;
}

.highlight-band-title {
    font-family: var(--font-serif);
    font-size: 26px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.01em;
}

.highlight-band-link {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background: rgba(255,255,255,0.15);
    color: #fff;
    border: 1.5px solid rgba(255,255,255,0.3);
    border-radius: var(--r-sm);
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
    transition: background var(--t-fast);
}

.highlight-band-link:hover { background: rgba(255,255,255,0.25); }

/* =========================================================
   22. MOBILE NAVIGATION DRAWER
   ========================================================= */
.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 1998;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--t-base), visibility var(--t-base);
}

.mobile-nav-overlay.open { opacity: 1; visibility: visible; }

.mobile-nav-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(360px, 90vw);
    background: var(--ink-soft);
    z-index: 1999;
    transform: translateX(100%);
    transition: transform var(--t-slow);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.mobile-nav-drawer.open { transform: translateX(0); }

.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--sp-md) var(--sp-lg);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.mobile-nav-close {
    background: none;
    border: none;
    color: rgba(255,255,255,0.6);
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
}

.mobile-nav-links {
    padding: var(--sp-lg);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mobile-nav-link {
    padding: 14px var(--sp-md);
    color: rgba(255,255,255,0.75);
    font-weight: 600;
    font-size: 15px;
    border-radius: var(--r-sm);
    transition: all var(--t-fast);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mobile-nav-link:hover {
    color: #fff;
    background: rgba(255,255,255,0.06);
}

.mobile-search {
    padding: 0 var(--sp-lg) var(--sp-lg);
}

.mobile-search-input {
    width: 100%;
    padding: 12px var(--sp-md);
    background: rgba(255,255,255,0.06);
    border: 1.5px solid rgba(255,255,255,0.12);
    border-radius: var(--r-sm);
    color: #fff;
    font-size: 15px;
    outline: none;
}

.mobile-search-input::placeholder { color: rgba(255,255,255,0.3); }

/* =========================================================
   23. MISC UTILITY CLASSES
   ========================================================= */
.mt-sm { margin-top: var(--sp-sm); }
.mt-md { margin-top: var(--sp-md); }
.mt-lg { margin-top: var(--sp-lg); }
.mt-xl { margin-top: var(--sp-xl); }
.mt-2xl { margin-top: var(--sp-2xl); }

.mb-sm { margin-bottom: var(--sp-sm); }
.mb-md { margin-bottom: var(--sp-md); }
.mb-lg { margin-bottom: var(--sp-lg); }
.mb-xl { margin-bottom: var(--sp-xl); }

.text-center { text-align: center; }
.text-right  { text-align: right; }

.visually-hidden {
    position: absolute;
    width: 1px; height: 1px;
    margin: -1px; padding: 0;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* =========================================================
   24. 404 PAGE
   ========================================================= */
.error-page {
    min-height: calc(100vh - 250px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--sp-2xl);
    text-align: center;
}

.error-code {
    font-family: var(--font-serif);
    font-size: 180px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--border);
    margin-bottom: var(--sp-lg);
}

.error-title {
    font-family: var(--font-serif);
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: var(--sp-md);
}

.error-text {
    font-size: 16px;
    color: var(--muted);
    max-width: 440px;
    margin: 0 auto var(--sp-xl);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: var(--red);
    color: #fff;
    border-radius: var(--r-sm);
    font-weight: 700;
    font-size: 15px;
    border: none;
    cursor: pointer;
    transition: background var(--t-fast), transform var(--t-fast);
}

.btn-primary:hover { background: var(--red-hover); transform: translateY(-2px); }

/* =========================================================
   25. RESPONSIVE BREAKPOINTS
   ========================================================= */
@media (max-width: 1280px) {
    /* Compact nav links so logo + 9 items fit on laptop screens */
    .nav-link { padding: 0 10px; font-size: 12.5px; letter-spacing: 0.03em; }
    .btn-subscribe { padding: 0 var(--sp-sm); font-size: 10px; }
}

@media (max-width: 1100px) {
    .container { padding-inline: var(--sp-lg); }
    .hero { grid-template-columns: 1fr; min-height: 500px; }
    .hero-sidebar { flex-direction: row; height: 200px; }
    .hero-sidebar-item { border-bottom: none; border-right: 1px solid rgba(255,255,255,0.06); }
    .hero-sidebar-item:last-child { border-right: none; }
    .news-grid { grid-template-columns: repeat(2, 1fr); }
    .archive-grid { grid-template-columns: repeat(2, 1fr); }
    .article-layout { grid-template-columns: 1fr; }
    .article-sidebar { position: static; }
    .footer-top { grid-template-columns: 1fr 1fr; gap: var(--sp-xl); }
    .megamenu { min-width: 560px; grid-template-columns: 170px 1fr; }
    .megamenu-promo { display: none; }
    /* Further compact nav at 1100px */
    .nav-link { padding: 0 8px; font-size: 12px; letter-spacing: 0.02em; }
}

@media (max-width: 768px) {
    .container { padding-inline: var(--sp-md); }
    .header-inner { grid-template-columns: auto auto; gap: var(--sp-md); }
    .primary-nav { display: none; }
    .hamburger { display: flex; }
    .btn-subscribe { display: none; }
    .hero-sidebar { display: none; }
    .hero { min-height: 420px; }
    .news-grid { grid-template-columns: 1fr; }
    .archive-grid { grid-template-columns: 1fr; }
    .home-layout { grid-template-columns: 1fr; }
    .sidebar { position: static; }
    .article-card--feature { flex-direction: column; }
    .article-card--feature .card-thumb-wrap { width: 100%; }
    .article-card--feature .card-thumb { min-height: 220px; height: 220px; }
    .article-card--horizontal { flex-direction: column; }
    .article-card--horizontal .card-thumb-wrap { width: 100%; }
    .footer-top { grid-template-columns: 1fr; }
    .footer-newsletter-inner { flex-direction: column; align-items: stretch; }
    .footer-newsletter-form { flex-direction: column; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .megamenu { display: none; }
    .t-display { font-size: 40px; }
    .t-h1 { font-size: 28px; }
    .article-title { font-size: 28px; }
    .archive-title { font-size: 36px; }
    .error-code { font-size: 100px; }
    .hero-main-title { font-size: 26px; }
}

@media (max-width: 480px) {
    :root { --sp-xl: 24px; --sp-2xl: 48px; }
    .breaking-ticker { font-size: 10px; height: 28px; }
}
