/* ===========================================================================
   Eghtesad24 Theme - Main Stylesheet
   Premium Persian RTL News Portal Design
   =========================================================================== */

/* === Design Tokens === */
:root {
  --color-navy: #0B1220;
  --color-navy-2: #0F172A;
  --color-brand: #2563EB;
  --color-brand-2: #1D4ED8;
  --color-breaking: #DC2626;
  --color-breaking-2: #B91C1C;
  --color-success: #16A34A;
  --color-warning: #F59E0B;
  --color-purple: #8B5CF6;

  --color-background: #F8FAFC;
  --color-foreground: #0B1220;
  --color-card: #FFFFFF;
  --color-muted: #F1F5F9;
  --color-muted-foreground: #475569;
  --color-accent: #EFF6FF;
  --color-border: #E5E7EB;
  --color-border-strong: #CBD5E1;

  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.625rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;

  --shadow-xs: 0 1px 2px 0 rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 1px 3px 0 rgba(15, 23, 42, 0.06), 0 1px 2px -1px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 8px -2px rgba(15, 23, 42, 0.06), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 12px 24px -6px rgba(15, 23, 42, 0.08), 0 4px 8px -4px rgba(15, 23, 42, 0.05);
  --shadow-xl: 0 24px 48px -12px rgba(15, 23, 42, 0.12), 0 8px 16px -8px rgba(15, 23, 42, 0.08);

  --transition-fast: 150ms cubic-bezier(0.22, 1, 0.36, 1);
  --transition-base: 250ms cubic-bezier(0.22, 1, 0.36, 1);
  --transition-slow: 400ms cubic-bezier(0.22, 1, 0.36, 1);

  --font-sans: 'Vazirmatn', 'Inter', system-ui, -apple-system, sans-serif;

  --header-height: 5rem;
  --container-max: 1280px;
}

/* Dark mode */
body.dark-mode {
  --color-background: #060B17;
  --color-foreground: #E2E8F0;
  --color-card: #0F172A;
  --color-muted: #1E293B;
  --color-muted-foreground: #94A3B8;
  --color-accent: #1E293B;
  --color-border: #1E293B;
  --color-border-strong: #334155;
  --color-brand: #3B82F6;
  --color-breaking: #EF4444;
  --color-success: #22C55E;
  --color-warning: #FBBF24;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background: var(--color-background);
  color: var(--color-foreground);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color var(--transition-base), color var(--transition-base);
}

img { max-width: 100%; height: auto; -webkit-user-drag: none; user-select: none; }
a { color: inherit; text-decoration: none; transition: color var(--transition-fast); }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }
ul, ol { list-style: none; }
input, textarea, select { font-family: inherit; font-size: inherit; }

::selection { background: rgba(37, 99, 235, 0.2); color: inherit; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--color-muted); }
::-webkit-scrollbar-thumb { background: rgba(100, 116, 139, 0.4); border-radius: 999px; border: 2px solid var(--color-muted); }
::-webkit-scrollbar-thumb:hover { background: rgba(100, 116, 139, 0.6); }

:focus-visible { outline: 2px solid var(--color-brand); outline-offset: 2px; border-radius: 4px; }

/* === Typography === */
h1, h2, h3, h4, h5, h6 { font-weight: 800; line-height: 1.3; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.75rem, 4vw + 1rem, 3rem); }
h2 { font-size: clamp(1.5rem, 2vw + 1rem, 2.25rem); }
h3 { font-size: clamp(1.125rem, 1vw + 0.875rem, 1.375rem); }

/* === Layout === */
.container { width: 100%; max-width: var(--container-max); margin: 0 auto; padding: 0 1rem; }
@media (min-width: 768px) { .container { padding: 0 2rem; } }

.site-main { flex: 1; min-height: 60vh; }

/* === Accessibility === */
.skip-link {
  position: absolute; top: -100px; right: 1rem; z-index: 999;
  background: var(--color-navy); color: #fff;
  padding: 0.75rem 1.25rem; border-radius: 0.5rem;
  font-weight: 700; transition: top var(--transition-fast);
}
.skip-link:focus { top: 1rem; }

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

/* === Header === */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--color-card);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow var(--transition-base), background-color var(--transition-base);
}
.site-header.scrolled { box-shadow: var(--shadow-md); backdrop-filter: blur(12px); background: rgba(255,255,255,0.95); }
body.dark-mode .site-header.scrolled { background: rgba(15, 23, 42, 0.95); }

.top-bar { border-bottom: 1px solid var(--color-border); font-size: 0.75rem; color: var(--color-muted-foreground); }
.top-bar-inner { display: flex; align-items: center; justify-content: space-between; padding: 0.5rem 0; gap: 1rem; flex-wrap: wrap; }
.top-bar-left, .top-bar-right { display: flex; align-items: center; gap: 1rem; }
.top-bar a:hover { color: var(--color-foreground); }
.top-bar .live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--color-success); display: inline-block; animation: pulse 1.5s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

.header-main { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: var(--header-height); }

.site-branding { display: flex; align-items: center; gap: 0.625rem; flex-shrink: 0; }
.site-logo-circle {
  width: 3rem; height: 3rem; border-radius: 0.75rem;
  background: linear-gradient(135deg, var(--color-navy), var(--color-navy-2));
  color: #fff; font-weight: 800; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  position: relative; transition: transform var(--transition-base);
}
.site-branding:hover .site-logo-circle { transform: scale(1.05); }
.site-logo-circle::before {
  content: ''; position: absolute; top: -4px; left: -4px;
  width: 12px; height: 12px; border-radius: 50%; background: var(--color-breaking);
}
.site-title { font-size: 1.5rem; font-weight: 800; color: var(--color-navy); line-height: 1; }
body.dark-mode .site-title { color: var(--color-foreground); }
.site-description { font-size: 0.625rem; color: var(--color-muted-foreground); letter-spacing: 0.15em; text-transform: uppercase; font-weight: 600; }
.site-logo-img { max-height: 3rem; width: auto; }

/* Main nav */
.main-nav { display: none; align-items: center; gap: 0.25rem; flex: 1; justify-content: center; }
@media (min-width: 1024px) { .main-nav { display: flex; } }
.main-nav ul { display: flex; gap: 0.25rem; list-style: none; }
.main-nav a {
  display: block; padding: 0.5rem 0.75rem; font-size: 0.875rem; font-weight: 700;
  color: var(--color-foreground); position: relative; transition: color var(--transition-fast);
}
.main-nav a:hover, .main-nav .current-menu-item > a { color: var(--color-brand); }
.main-nav a::after {
  content: ''; position: absolute; bottom: -4px; right: 0.75rem; left: 0.75rem;
  height: 2px; background: var(--color-brand); border-radius: 999px;
  transform: scaleX(0); transform-origin: right; transition: transform var(--transition-base);
}
.main-nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.main-nav .current-menu-item > a::after { background: var(--color-breaking); transform: scaleX(1); }

/* Dropdown */
.main-nav .sub-menu {
  position: absolute; top: 100%; right: 0; min-width: 200px;
  background: var(--color-card); border: 1px solid var(--color-border);
  border-radius: 0.5rem; box-shadow: var(--shadow-lg);
  padding: 0.5rem; opacity: 0; visibility: hidden;
  transform: translateY(10px); transition: all var(--transition-base);
}
.main-nav li { position: relative; }
.main-nav li:hover > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.main-nav .sub-menu a { padding: 0.5rem 0.75rem; border-radius: 0.375rem; }
.main-nav .sub-menu a:hover { background: var(--color-muted); }

/* Header actions */
.header-actions { display: flex; align-items: center; gap: 0.375rem; }
.icon-btn {
  width: 2.5rem; height: 2.5rem; border-radius: 0.5rem;
  display: flex; align-items: center; justify-content: center;
  color: var(--color-foreground); transition: all var(--transition-fast);
}
.icon-btn:hover { background: var(--color-muted); }
.icon-btn svg { width: 1.25rem; height: 1.25rem; }

.newsletter-cta {
  display: none; align-items: center; gap: 0.375rem;
  background: var(--color-brand); color: #fff; font-weight: 700; font-size: 0.875rem;
  padding: 0.5rem 1rem; border-radius: 0.5rem; transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
}
@media (min-width: 640px) { .newsletter-cta { display: inline-flex; } }
.newsletter-cta:hover { background: var(--color-brand-2); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.menu-toggle { display: flex; }
@media (min-width: 1024px) { .menu-toggle { display: none; } }

/* === Breaking News Ticker === */
.breaking-bar {
  background: var(--color-navy); color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.1); position: relative;
}
.breaking-bar::before {
  content: ''; position: absolute; top: 0; inset-inline: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(220,38,38,0.4), transparent);
}
.breaking-inner { display: flex; align-items: stretch; height: 3rem; }
.breaking-label {
  flex-shrink: 0; display: flex; align-items: center; gap: 0.5rem;
  padding: 0 1rem; background: var(--color-breaking); font-weight: 800; font-size: 0.875rem;
  position: relative; overflow: hidden;
}
.breaking-label::after {
  content: ''; position: absolute; inset: 0; opacity: 0.5;
  background: linear-gradient(to left, var(--color-breaking-2), transparent);
}
.breaking-label > * { position: relative; z-index: 1; }
.breaking-label .dot { width: 10px; height: 10px; border-radius: 50%; background: #fff; animation: pulse 1.5s infinite; }
.breaking-ticker { flex: 1; overflow: hidden; display: flex; align-items: center; position: relative; }
.breaking-ticker-track {
  display: inline-flex; white-space: nowrap; animation: ticker-scroll 45s linear infinite;
}
.breaking-ticker:hover .breaking-ticker-track { animation-play-state: paused; }
.breaking-ticker a {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0 1.5rem; font-size: 0.875rem; color: rgba(255,255,255,0.9); transition: color var(--transition-fast);
}
.breaking-ticker a:hover { color: #fff; }
.breaking-ticker a .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--color-breaking); flex-shrink: 0; }
.breaking-ticker a .time { color: rgba(255,255,255,0.4); font-size: 0.75rem; }
.breaking-ticker a .sep { color: rgba(255,255,255,0.2); margin: 0 0.5rem; }
@keyframes ticker-scroll { from { transform: translateX(100%); } to { transform: translateX(-100%); } }
.breaking-bar .live-clock {
  display: none; align-items: center; gap: 0.5rem; padding: 0 1rem;
  border-inline-start: 1px solid rgba(255,255,255,0.15);
  font-size: 0.75rem; color: rgba(255,255,255,0.6);
}
@media (min-width: 768px) { .breaking-bar .live-clock { display: flex; } }
.breaking-edge-fade { position: absolute; top: 0; bottom: 0; width: 4rem; pointer-events: none; z-index: 1; }
.breaking-edge-fade.right { right: 0; background: linear-gradient(to left, var(--color-navy), transparent); }
.breaking-edge-fade.left { left: 0; background: linear-gradient(to right, var(--color-navy), transparent); }

/* === Hero Section === */
.hero-section { padding: 1rem 0 1.25rem; }
@media (min-width: 768px) { .hero-section { padding: 1.5rem 0; } }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 0.875rem; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 7fr 5fr; gap: 1rem; } }

.hero-main {
  position: relative; border-radius: var(--radius-2xl); overflow: hidden;
  min-height: 320px; box-shadow: var(--shadow-lg); cursor: pointer;
}
@media (max-width: 1023px) { .hero-main { min-height: 240px; } }
.hero-main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 700ms cubic-bezier(0.16,1,0.3,1); }
.hero-main:hover img { transform: scale(1.05); }
.hero-main .overlay { position: absolute; inset: 0; background: linear-gradient(to top, var(--color-navy) 0%, rgba(11,18,32,0.6) 50%, transparent 100%); }
.hero-main .overlay-2 { position: absolute; inset: 0; background: linear-gradient(to left, rgba(11,18,32,0.4), transparent); }
.hero-main .content { position: absolute; inset: 0; padding: 1.25rem; display: flex; flex-direction: column; justify-content: flex-end; }
@media (min-width: 768px) { .hero-main .content { padding: 1.5rem; } }
.hero-main h2 { font-size: clamp(1.25rem, 2.5vw + 0.5rem, 2rem); color: #fff; margin: 0.5rem 0; line-height: 1.25; }
.hero-main .excerpt { color: rgba(255,255,255,0.8); font-size: 0.875rem; display: none; max-width: 42rem; margin-bottom: 0.5rem; }
@media (min-width: 640px) { .hero-main .excerpt { display: block; } }
.hero-meta { display: flex; align-items: center; gap: 0.625rem; color: rgba(255,255,255,0.9); font-size: 0.75rem; flex-wrap: wrap; }
.hero-meta .avatar { width: 2rem; height: 2rem; border-radius: 50%; border: 2px solid rgba(255,255,255,0.3); }
.hero-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: rgba(255,255,255,0.4); }

.hero-secondary { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 640px) and (max-width: 1023px) { .hero-secondary { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .hero-secondary { grid-template-columns: 1fr; } }
.hero-card {
  position: relative; border-radius: var(--radius-xl); overflow: hidden;
  min-height: 155px; cursor: pointer; box-shadow: var(--shadow-md);
}
.hero-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 700ms cubic-bezier(0.16,1,0.3,1); }
.hero-card:hover img { transform: scale(1.05); }
.hero-card .overlay { position: absolute; inset: 0; background: linear-gradient(to top, var(--color-navy) 0%, rgba(11,18,32,0.65) 50%, rgba(11,18,32,0.1) 100%); }
.hero-card .content { position: absolute; inset: 0; padding: 1.25rem; display: flex; flex-direction: column; justify-content: flex-end; }
.hero-card h3 { color: #fff; font-size: 1.125rem; margin-top: 0.5rem; }
.hero-card:hover h3 { color: var(--color-warning); }
.hero-card .time { color: rgba(255,255,255,0.7); font-size: 0.75rem; margin-top: 0.5rem; }

/* === Trending bar === */
.trending-bar {
  margin-top: 1rem; background: var(--color-card); border: 1px solid var(--color-border);
  border-radius: var(--radius-xl); padding: 0.875rem 1rem;
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem;
  overflow: hidden;
}
.trending-label {
  display: inline-flex; align-items: center; gap: 0.375rem;
  background: var(--color-breaking); color: #fff; font-weight: 700; font-size: 0.75rem;
  padding: 0.375rem 0.75rem; border-radius: 0.375rem; box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}
.trending-bar a {
  display: inline-flex; align-items: center; gap: 0.375rem;
  font-size: 0.8125rem; transition: color var(--transition-fast);
  max-width: 100%; overflow: hidden; min-width: 0;
}
.trending-bar a:hover { color: var(--color-brand); }
.trending-bar a .num { font-weight: 700; color: var(--color-muted-foreground); flex-shrink: 0; font-variant-numeric: tabular-nums; font-size: 0.75rem; }
.trending-bar a .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--color-breaking); flex-shrink: 0; }
.trending-bar a .title {
  font-weight: 600; color: var(--color-foreground);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  max-width: 220px; display: inline-block; vertical-align: middle;
  transition: color var(--transition-fast);
}
.trending-bar a:hover .title { color: var(--color-brand); }

/* === Section heading === */
.section-heading {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem;
  margin-bottom: 1.25rem; padding-bottom: 0.625rem; border-bottom: 2px solid var(--color-navy);
}
.section-heading-left { display: flex; align-items: center; gap: 0.75rem; }
.section-heading .accent-bar { width: 6px; height: 2.5rem; background: linear-gradient(to bottom, var(--color-breaking), var(--color-warning)); border-radius: 999px; flex-shrink: 0; }
.section-heading .number {
  display: none; align-items: center; justify-content: center;
  width: 3rem; height: 3rem; border-radius: 0.75rem;
  background: var(--color-navy); color: #fff; font-size: 1.25rem; font-weight: 800;
  box-shadow: var(--shadow-md); font-variant-numeric: tabular-nums;
}
@media (min-width: 768px) { .section-heading .number { display: flex; } }
.section-heading h2 { font-size: clamp(1.5rem, 2vw + 1rem, 2rem); }
.section-heading .subtitle { font-size: 0.875rem; color: var(--color-muted-foreground); margin-top: 0.25rem; }
.section-heading .view-all { font-size: 0.875rem; font-weight: 700; color: var(--color-brand); display: none; align-items: center; gap: 0.25rem; }
@media (min-width: 640px) { .section-heading .view-all { display: inline-flex; } }
.section-heading .view-all:hover { color: var(--color-brand-2); }
.section-heading .view-all svg { transition: transform var(--transition-base); }
.section-heading .view-all:hover svg { transform: translateX(-4px); }

/* === News Cards === */
.news-grid { display: grid; grid-template-columns: 1fr; gap: 0.875rem; }
@media (min-width: 640px) { .news-grid.cols-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 640px) { .news-grid.cols-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .news-grid.cols-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 640px) { .news-grid.cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .news-grid.cols-4 { grid-template-columns: repeat(4, 1fr); } }

/* Vertical card */
.news-card {
  background: var(--color-card); border: 1px solid var(--color-border); border-radius: 0.875rem;
  overflow: hidden; display: flex; flex-direction: column; height: 100%;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}
.news-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--color-border-strong); }
.news-card-image { position: relative; aspect-ratio: 16/9; overflow: hidden; background: var(--color-muted); }
.news-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms cubic-bezier(0.16,1,0.3,1); }
.news-card:hover .news-card-image img { transform: scale(1.06); }
.news-card-image .badges { position: absolute; top: 0.5rem; right: 0.5rem; display: flex; gap: 0.375rem; flex-wrap: wrap; }
.news-card-body { padding: 0.75rem 0.875rem 0.875rem; display: flex; flex-direction: column; flex: 1; }
.news-card h3 { font-size: 0.9375rem; line-height: 1.5; margin-bottom: 0.375rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color var(--transition-fast); }
@media (min-width: 768px) { .news-card h3 { font-size: 1rem; } }
.news-card:hover h3 { color: var(--color-brand); }
.news-card .excerpt { font-size: 0.8125rem; color: var(--color-muted-foreground); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 0.625rem; flex: 1; line-height: 1.6; }
.news-card-meta { display: flex; align-items: center; justify-content: space-between; padding-top: 0.5rem; border-top: 1px solid var(--color-border); }
.news-card-author { display: flex; align-items: center; gap: 0.375rem; min-width: 0; }
.news-card-author img { width: 1.5rem; height: 1.5rem; border-radius: 50%; border: 1px solid var(--color-border); flex-shrink: 0; }
.news-card-author .name { font-size: 0.6875rem; font-weight: 700; color: var(--color-foreground); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.news-card-author .role { font-size: 0.5625rem; color: var(--color-muted-foreground); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.news-card-meta .time { font-size: 0.6875rem; color: var(--color-muted-foreground); font-variant-numeric: tabular-nums; }

/* Horizontal card */
.news-card.horizontal { display: flex; gap: 0.75rem; padding: 0.625rem; border-radius: 0.75rem; }
.news-card.horizontal .news-card-image { width: 6rem; aspect-ratio: 4/3; border-radius: 0.5rem; flex-shrink: 0; }
@media (min-width: 640px) { .news-card.horizontal .news-card-image { width: 7.5rem; } }
.news-card.horizontal .news-card-body { padding: 0; }
.news-card.horizontal h3 { font-size: 0.8125rem; line-height: 1.4; -webkit-line-clamp: 2; }
@media (min-width: 640px) { .news-card.horizontal h3 { font-size: 0.9375rem; } }

/* === Badges === */
.badge {
  display: inline-flex; align-items: center; gap: 0.25rem;
  padding: 0.1875rem 0.5rem; border-radius: 0.3125rem;
  font-size: 0.625rem; font-weight: 700; color: #fff;
  box-shadow: var(--shadow-xs); backdrop-filter: blur(4px);
  line-height: 1.4;
}
.badge-breaking { background: var(--color-breaking); animation: glow-pulse 2s infinite; }
.badge-breaking .dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: pulse 1.5s infinite; }
@keyframes glow-pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(220,38,38,0.5); } 50% { box-shadow: 0 0 0 8px rgba(220,38,38,0); } }

/* === Sidebar Widgets === */
.widget {
  background: var(--color-card); border: 1px solid var(--color-border);
  border-radius: var(--radius-xl); overflow: hidden; margin-bottom: 1.25rem;
  box-shadow: var(--shadow-xs);
}
.widget-title {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 1rem; border-bottom: 1px solid var(--color-border);
  background: linear-gradient(to left, var(--color-navy), var(--color-navy-2)); color: #fff;
  font-weight: 700; font-size: 0.9375rem;
}
.widget-title svg { color: var(--color-warning); width: 1.125rem; height: 1.125rem; }
.widget-body { padding: 1rem; }
.widget ul { list-style: none; }

/* Market widget tabs */
.market-tabs { display: flex; gap: 0.25rem; padding: 0.5rem; border-bottom: 1px solid var(--color-border); background: rgba(241,245,249,0.5); }
.market-tab { flex: 1; padding: 0.5rem 0.75rem; border-radius: 0.375rem; font-size: 0.75rem; font-weight: 700; color: var(--color-muted-foreground); transition: all var(--transition-fast); }
.market-tab.active { background: var(--color-card); color: var(--color-navy); box-shadow: var(--shadow-xs); }
.market-tab:hover:not(.active) { color: var(--color-foreground); }
.market-row { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.625rem 0.5rem; border-radius: 0.375rem; transition: background var(--transition-fast); }
.market-row:hover { background: rgba(241,245,249,0.5); }
.market-symbol { font-weight: 700; font-size: 0.875rem; }
.market-name { font-size: 0.75rem; color: var(--color-muted-foreground); }
.market-price { font-weight: 700; font-size: 0.875rem; font-variant-numeric: tabular-nums; }
.market-unit { font-size: 0.625rem; color: var(--color-muted-foreground); }
.market-change { font-size: 0.75rem; font-weight: 700; display: inline-flex; align-items: center; gap: 0.125rem; font-variant-numeric: tabular-nums; }
.market-change.up { color: var(--color-success); }
.market-change.down { color: var(--color-breaking); }

/* Most read widget */
.most-read-item { display: flex; gap: 0.75rem; padding: 0.875rem 0; border-bottom: 1px solid var(--color-border); align-items: flex-start; transition: background var(--transition-fast); }
.most-read-item:last-child { border-bottom: 0; }
.most-read-item:hover { background: rgba(241,245,249,0.3); }
.most-read-num {
  flex-shrink: 0; width: 2rem; height: 2rem; border-radius: 0.5rem;
  background: linear-gradient(135deg, var(--color-navy), var(--color-navy-2));
  color: #fff; font-size: 0.875rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition-base); font-variant-numeric: tabular-nums;
}
.most-read-item:hover .most-read-num { transform: scale(1.1); background: linear-gradient(135deg, var(--color-brand), var(--color-brand-2)); }
.most-read-title { font-weight: 700; font-size: 0.875rem; line-height: 1.5rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color var(--transition-fast); }
.most-read-item:hover .most-read-title { color: var(--color-brand); }
.most-read-meta { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.375rem; font-size: 0.75rem; color: var(--color-muted-foreground); }
.most-read-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--color-muted-foreground); opacity: 0.4; }

/* Tags widget */
.tags-cloud { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tags-cloud a {
  padding: 0.375rem 0.75rem; border-radius: 999px;
  background: var(--color-muted); font-size: 0.875rem; font-weight: 500;
  transition: all var(--transition-fast);
}
.tags-cloud a:hover { background: var(--color-brand); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-sm); }

/* === Category tabs === */
.cat-tabs { display: flex; gap: 0.5rem; overflow-x: auto; padding-bottom: 0.75rem; margin-bottom: 2rem; scrollbar-width: none; }
.cat-tabs::-webkit-scrollbar { display: none; }
.cat-tab {
  padding: 0.625rem 1rem; border-radius: 999px; font-size: 0.875rem; font-weight: 700;
  white-space: nowrap; flex-shrink: 0; transition: all var(--transition-base);
  background: var(--color-card); border: 1px solid var(--color-border); color: var(--color-foreground);
  display: flex; align-items: center; gap: 0.5rem;
}
.cat-tab:hover { border-color: rgba(15,23,42,0.3); transform: translateY(-2px); }
.cat-tab.active { color: #fff; box-shadow: var(--shadow-md); transform: scale(1.05); }
.cat-tab .dot { width: 8px; height: 8px; border-radius: 50%; }
.cat-tab.active .dot { background: #fff; }

/* === Newsletter Section === */
.newsletter-section {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--color-navy), var(--color-navy-2), var(--color-brand));
  color: #fff; padding: 4rem 0; text-align: center;
}
@media (min-width: 768px) { .newsletter-section { padding: 5rem 0; } }
.newsletter-section .bg-blob {
  position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.2;
}
.newsletter-section .bg-blob.b1 { top: 0; right: 0; width: 24rem; height: 24rem; background: #fff; animation: float 4s ease-in-out infinite; }
.newsletter-section .bg-blob.b2 { bottom: 0; left: 0; width: 24rem; height: 24rem; background: var(--color-warning); animation: float 4s ease-in-out infinite 1s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.newsletter-section .grid-pattern {
  position: absolute; inset: 0; opacity: 0.03;
  background-image: linear-gradient(rgba(255,255,255,0.5) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.5) 1px, transparent 1px);
  background-size: 40px 40px;
}
.newsletter-inner { position: relative; max-width: 42rem; margin: 0 auto; padding: 0 1rem; }
.newsletter-icon {
  width: 4rem; height: 4rem; border-radius: 1rem; background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 1.5rem;
  animation: float 4s ease-in-out infinite;
}
.newsletter-icon svg { color: var(--color-warning); }
.newsletter-section h2 { font-size: clamp(1.875rem, 3vw + 0.5rem, 2.5rem); margin-bottom: 0.75rem; }
.newsletter-section p { color: rgba(255,255,255,0.8); font-size: 1.125rem; margin-bottom: 2rem; }
.newsletter-form { display: flex; flex-direction: column; gap: 0.75rem; max-width: 36rem; margin: 0 auto; }
@media (min-width: 640px) { .newsletter-form { flex-direction: row; } }
.newsletter-form input {
  flex: 1; padding: 0.875rem 1.25rem; border-radius: 0.75rem;
  background: rgba(255,255,255,0.1); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.2); color: #fff; outline: none;
  transition: all var(--transition-base); direction: ltr;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.6); }
.newsletter-form input:focus { background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.4); box-shadow: 0 0 0 4px rgba(255,255,255,0.1); }
.newsletter-form button {
  background: var(--color-warning); color: var(--color-navy); font-weight: 700;
  padding: 0.875rem 1.75rem; border-radius: 0.75rem; transition: all var(--transition-base);
  box-shadow: var(--shadow-md); white-space: nowrap; display: flex; align-items: center; justify-content: center; gap: 0.5rem;
}
.newsletter-form button:hover { background: rgba(245,158,11,0.9); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.newsletter-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; margin-top: 3rem; padding-top: 2.5rem; border-top: 1px solid rgba(255,255,255,0.1); }
.newsletter-stat .num { font-size: 1.875rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.newsletter-stat .label { font-size: 0.875rem; color: rgba(255,255,255,0.7); margin-top: 0.25rem; }
.newsletter-stat:not(:last-child) { border-left: 1px solid rgba(255,255,255,0.1); }

/* === Video Section === */
.video-section { background: var(--color-navy); color: #fff; padding: 2.5rem 0; position: relative; overflow: hidden; }
@media (min-width: 768px) { .video-section { padding: 4rem 0; } }
.video-section .bg-glow { position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.3; }
.video-section .bg-glow.g1 { top: 0; right: 0; width: 24rem; height: 24rem; background: rgba(37,99,235,0.2); }
.video-section .bg-glow.g2 { bottom: 0; left: 0; width: 24rem; height: 24rem; background: rgba(220,38,38,0.1); }
.video-section .container { position: relative; }
.video-section .section-heading { border-bottom-color: rgba(255,255,255,0.1); }
.video-section .section-heading h2 { color: #fff; display: flex; align-items: center; gap: 0.75rem; }
.video-section .accent-bar { background: linear-gradient(to bottom, var(--color-breaking), var(--color-warning)); }
.video-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 1024px) { .video-grid { grid-template-columns: 2fr 1fr; } }
.video-main { position: relative; border-radius: var(--radius-xl); overflow: hidden; min-height: 20rem; cursor: pointer; box-shadow: var(--shadow-lg); }
@media (min-width: 768px) { .video-main { min-height: 27.5rem; } }
.video-main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 700ms cubic-bezier(0.16,1,0.3,1); }
.video-main:hover img { transform: scale(1.05); }
.video-main .overlay { position: absolute; inset: 0; background: linear-gradient(to top, var(--color-navy), rgba(11,18,32,0.75) 50%, rgba(11,18,32,0.2)); }
.play-button {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none;
}
.play-button-inner {
  position: relative; width: 5rem; height: 5rem; border-radius: 50%;
  background: rgba(255,255,255,0.95); backdrop-filter: blur(12px);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-2xl); transition: all 500ms cubic-bezier(0.16,1,0.3,1);
}
@media (min-width: 768px) { .play-button-inner { width: 5rem; height: 5rem; } }
.video-main:hover .play-button-inner { transform: scale(1.1) rotate(3deg); }
.play-button-inner::before {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  background: rgba(255,255,255,0.3); animation: ping 1.8s ease-out infinite;
}
@keyframes ping { 0% { transform: scale(0.95); opacity: 0.8; } 70%,100% { transform: scale(1.4); opacity: 0; } }
.play-button-inner svg { color: var(--color-navy); margin-right: 0.25rem; }
.video-content { position: absolute; bottom: 0; inset-inline: 0; padding: 1.25rem; }
@media (min-width: 768px) { .video-content { padding: 1.75rem; } }
.video-content h3 { color: #fff; font-size: 1.25rem; }
@media (min-width: 768px) { .video-content h3 { font-size: 1.5rem; } }
.video-content .meta { color: rgba(255,255,255,0.7); font-size: 0.875rem; margin-top: 0.5rem; }
.video-side { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (min-width: 768px) { .video-side { grid-template-columns: 1fr 1fr; } }
.video-card { position: relative; border-radius: var(--radius-xl); overflow: hidden; min-height: 11rem; cursor: pointer; box-shadow: var(--shadow-md); }
@media (min-width: 768px) { .video-card { min-height: 13rem; } }
.video-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 700ms cubic-bezier(0.16,1,0.3,1); }
.video-card:hover img { transform: scale(1.05); }
.video-card .overlay { position: absolute; inset: 0; background: linear-gradient(to top, var(--color-navy), rgba(11,18,32,0.65) 50%, rgba(11,18,32,0.1)); }
.video-card .play { position: absolute; top: 0.75rem; right: 0.75rem; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: rgba(255,255,255,0.95); display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-md); transition: all 500ms cubic-bezier(0.16,1,0.3,1); }
.video-card:hover .play { transform: scale(1.1) rotate(3deg); }
.video-card .play svg { color: var(--color-navy); margin-right: 0.125rem; }
.video-card .content { position: absolute; bottom: 0; inset-inline: 0; padding: 1rem; }
.video-card h4 { color: #fff; font-size: 0.875rem; font-weight: 700; line-height: 1.5rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; transition: color var(--transition-base); }
.video-card:hover h4 { color: var(--color-warning); }
.video-card .time { color: rgba(255,255,255,0.7); font-size: 0.75rem; margin-top: 0.375rem; }

/* === Breadcrumbs === */
.breadcrumbs { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; color: var(--color-muted-foreground); margin-bottom: 1.5rem; flex-wrap: wrap; }
.breadcrumbs a:hover { color: var(--color-brand); }
.breadcrumbs .sep { color: rgba(100,116,139,0.6); }
.breadcrumbs .current { color: var(--color-foreground); font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* === Single Article === */
.single-article { padding: 1.5rem 0; }
@media (min-width: 768px) { .single-article { padding: 2.5rem 0; } }
.article-header { margin-bottom: 1.5rem; }
.article-badges { display: flex; gap: 0.5rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.article-title { font-size: clamp(1.875rem, 3vw + 1rem, 3rem); margin-bottom: 1rem; line-height: 1.2; }
.article-excerpt { font-size: 1.125rem; color: var(--color-muted-foreground); line-height: 2; margin-bottom: 1.5rem; }
.article-meta { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1rem 0; border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }
.article-author { display: flex; align-items: center; gap: 0.75rem; }
.article-author img { width: 3rem; height: 3rem; border-radius: 50%; border: 2px solid var(--color-border); }
.article-author .name { font-weight: 700; }
.article-author .role { font-size: 0.75rem; color: var(--color-muted-foreground); }
.article-meta-info { display: flex; align-items: center; gap: 1rem; font-size: 0.75rem; color: var(--color-muted-foreground); flex-wrap: wrap; }
.article-meta-info .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--color-muted-foreground); opacity: 0.4; }

.article-featured-image { border-radius: var(--radius-2xl); overflow: hidden; margin-bottom: 2rem; box-shadow: var(--shadow-md); aspect-ratio: 16/9; }
.article-featured-image img { width: 100%; height: 100%; object-fit: cover; }

.article-share { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
.share-buttons { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.share-buttons .label { font-size: 0.75rem; font-weight: 700; color: var(--color-muted-foreground); display: flex; align-items: center; gap: 0.375rem; }
.share-btn {
  width: 2.25rem; height: 2.25rem; border-radius: 0.5rem;
  background: var(--color-muted); color: var(--color-foreground);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition-fast);
}
.share-btn:hover { transform: translateY(-2px) scale(1.05); }
.share-btn.twitter:hover { background: #000; color: #fff; }
.share-btn.telegram:hover { background: #0088cc; color: #fff; }
.share-btn.whatsapp:hover { background: #25D366; color: #fff; }
.share-btn.facebook:hover { background: #1877F2; color: #fff; }
.share-btn.copy:hover { background: var(--color-foreground); color: var(--color-card); }
.share-btn.copied { background: var(--color-success); color: #fff; }

/* Article body */
.article-body { font-size: 1.125rem; line-height: 2; }
.article-body p { margin-bottom: 1.5rem; }
.article-body h2 { font-size: 1.875rem; margin: 2rem 0 0.5rem; }
.article-body h3 { font-size: 1.5rem; margin: 1.5rem 0 0.5rem; }
.article-body blockquote {
  background: var(--color-accent); border-right: 4px solid var(--color-brand);
  border-radius: 0 1rem 1rem 0; padding: 1.25rem 5rem 1.25rem 1.25rem;
  margin: 2rem 0; position: relative; font-weight: 700; font-style: italic;
}
.article-body blockquote::before {
  content: '"'; position: absolute; top: 0.75rem; left: 0.75rem;
  font-size: 3rem; color: rgba(37,99,235,0.3); line-height: 1;
}
.article-body ul, .article-body ol { margin: 1rem 0 1.5rem; padding-right: 1.5rem; }
.article-body ul li, .article-body ol li { margin-bottom: 0.75rem; }
.article-body ul li { list-style: disc; }
.article-body ol li { list-style: decimal; }
.article-body img { border-radius: var(--radius-xl); margin: 1.5rem 0; }
.article-body a { color: var(--color-brand); text-decoration: underline; text-underline-offset: 4px; }
.article-body figcaption { text-align: center; font-size: 0.75rem; color: var(--color-muted-foreground); margin-top: 0.5rem; font-style: italic; }

.article-tags { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; padding-top: 1.5rem; border-top: 1px solid var(--color-border); margin-top: 2rem; }
.article-tags .label { font-size: 0.875rem; font-weight: 700; color: var(--color-muted-foreground); display: flex; align-items: center; gap: 0.375rem; }
.article-tags a { padding: 0.375rem 0.75rem; border-radius: 999px; background: var(--color-muted); font-size: 0.875rem; font-weight: 500; transition: all var(--transition-fast); }
.article-tags a:hover { background: var(--color-brand); color: #fff; transform: translateY(-2px); }

/* Author box */
.author-box { background: var(--color-card); border: 1px solid var(--color-border); border-radius: var(--radius-xl); padding: 1.25rem; display: flex; gap: 1rem; margin-top: 2rem; }
.author-box img { width: 4rem; height: 4rem; border-radius: 50%; border: 2px solid var(--color-border); flex-shrink: 0; }
.author-box .name { font-weight: 700; display: flex; align-items: center; gap: 0.5rem; }
.author-box .role { font-size: 0.75rem; color: var(--color-brand); font-weight: 700; margin-bottom: 0.5rem; }
.author-box .bio { font-size: 0.875rem; color: var(--color-muted-foreground); line-height: 1.75; }

/* === Comments === */
.comments-area { margin-top: 3rem; }
.comments-title { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--color-border); }
.comments-title .accent-bar { width: 6px; height: 2rem; background: linear-gradient(to bottom, var(--color-brand), var(--color-purple)); border-radius: 999px; }
.comments-title .count { background: var(--color-muted); color: var(--color-muted-foreground); font-size: 0.75rem; font-weight: 700; padding: 0.25rem 0.625rem; border-radius: 999px; }
.comment-form-wrapper { background: var(--color-card); border: 1px solid var(--color-border); border-radius: var(--radius-xl); padding: 1.25rem; margin-bottom: 2rem; }
.comment-form-wrapper h3 { font-weight: 700; margin-bottom: 1rem; display: flex; align-items: center; gap: 0.5rem; }
.comment-form .row { display: grid; grid-template-columns: 1fr; gap: 0.75rem; margin-bottom: 0.75rem; }
@media (min-width: 768px) { .comment-form .row { grid-template-columns: 1fr 2fr; } }
.comment-form input, .comment-form textarea {
  width: 100%; padding: 0.625rem 1rem; border-radius: 0.5rem;
  background: var(--color-muted); border: 1px solid var(--color-border);
  outline: none; transition: all var(--transition-fast); font-size: 0.875rem;
}
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--color-brand); box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }
.comment-form textarea { resize: vertical; }
.comment-form button { background: var(--color-brand); color: #fff; font-weight: 700; padding: 0.625rem 1.25rem; border-radius: 0.5rem; transition: all var(--transition-base); box-shadow: var(--shadow-sm); display: inline-flex; align-items: center; gap: 0.5rem; }
.comment-form button:hover { background: var(--color-brand-2); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.comment-list { list-style: none; }
.comment { padding: 1rem 0; border-bottom: 1px solid var(--color-border); }
.comment:last-child { border-bottom: 0; }
.comment-body { display: flex; gap: 0.75rem; }
.comment-body img.avatar { width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 2px solid var(--color-border); flex-shrink: 0; }
.comment-content { flex: 1; min-width: 0; }
.comment-content .author { font-weight: 700; font-size: 0.875rem; }
.comment-content .time { font-size: 0.625rem; color: var(--color-muted-foreground); font-variant-numeric: tabular-nums; }
.comment-content p { font-size: 0.875rem; line-height: 1.75; margin-top: 0.375rem; }
.comment-reply-link { font-size: 0.75rem; font-weight: 700; color: var(--color-muted-foreground); }
.comment-reply-link:hover { color: var(--color-foreground); }

/* === Pagination === */
.pagination { display: flex; justify-content: center; gap: 0.375rem; margin-top: 3rem; }
.pagination .page-numbers {
  width: 2.5rem; height: 2.5rem; border-radius: 0.5rem;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.875rem; color: var(--color-foreground);
  background: var(--color-card); border: 1px solid var(--color-border);
  transition: all var(--transition-fast); font-variant-numeric: tabular-nums;
}
.pagination .page-numbers:hover { border-color: var(--color-brand); color: var(--color-brand); }
.pagination .page-numbers.current { background: var(--color-navy); color: #fff; border-color: var(--color-navy); }
.pagination .page-numbers.dots { border: 0; background: transparent; }

/* === Footer === */
.site-footer { background: var(--color-navy); color: #fff; margin-top: auto; position: relative; overflow: hidden; }
.site-footer::before { content: ''; position: absolute; top: 0; inset-inline: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--color-brand), transparent); }
.footer-widgets { padding: 3rem 0; }
@media (min-width: 768px) { .footer-widgets { padding: 4rem 0; } }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.5fr; } }
.footer-brand .brand-row { display: flex; align-items: center; gap: 0.625rem; margin-bottom: 1.25rem; }
.footer-brand .logo-box { width: 3rem; height: 3rem; border-radius: 0.75rem; background: #fff; color: var(--color-navy); font-weight: 800; display: flex; align-items: center; justify-content: center; position: relative; }
.footer-brand .logo-box::before { content: ''; position: absolute; top: -4px; left: -4px; width: 12px; height: 12px; border-radius: 50%; background: var(--color-breaking); }
.footer-brand .name { font-size: 1.25rem; font-weight: 800; }
.footer-brand .tagline { font-size: 0.625rem; color: rgba(255,255,255,0.6); letter-spacing: 0.15em; text-transform: uppercase; font-weight: 600; }
.footer-brand p { color: rgba(255,255,255,0.7); font-size: 0.875rem; line-height: 1.75; margin-bottom: 1.5rem; }
.footer-social { display: flex; gap: 0.5rem; }
.footer-social a {
  width: 2.5rem; height: 2.5rem; border-radius: 0.5rem; background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center; transition: all var(--transition-base);
}
.footer-social a:hover { transform: translateY(-2px) scale(1.05); }
.footer-social a.telegram:hover { background: #0088cc; }
.footer-social a.instagram:hover { background: #E1306C; }
.footer-social a.twitter:hover { background: #000; }
.footer-social a.youtube:hover { background: #FF0000; }
.footer-col h4 { font-size: 1.125rem; font-weight: 700; margin-bottom: 1.25rem; padding-bottom: 0.5rem; border-bottom: 1px solid rgba(255,255,255,0.1); display: flex; align-items: center; gap: 0.5rem; }
.footer-col h4 .bar { width: 4px; height: 1.25rem; border-radius: 999px; }
.footer-col h4 .bar.b1 { background: var(--color-breaking); }
.footer-col h4 .bar.b2 { background: var(--color-brand); }
.footer-col h4 .bar.b3 { background: var(--color-warning); }
.footer-col ul li { margin-bottom: 0.625rem; }
.footer-col ul li a { color: rgba(255,255,255,0.7); font-size: 0.875rem; display: flex; align-items: center; gap: 0.5rem; transition: color var(--transition-fast); }
.footer-col ul li a:hover { color: var(--color-warning); }
.footer-col ul li a .dot { width: 6px; height: 6px; border-radius: 50%; }
.footer-contact li { display: flex; align-items: flex-start; gap: 0.75rem; margin-bottom: 1rem; color: rgba(255,255,255,0.7); font-size: 0.875rem; }
.footer-contact li svg { color: var(--color-warning); flex-shrink: 0; margin-top: 0.125rem; }
.footer-hours { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 0.75rem; padding: 1rem; margin-top: 1.5rem; }
.footer-hours .label { font-size: 0.75rem; color: rgba(255,255,255,0.7); margin-bottom: 0.5rem; }
.footer-hours .value { font-size: 0.875rem; font-weight: 700; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 1.25rem 0; }
.footer-bottom-inner { display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 1rem; font-size: 0.875rem; color: rgba(255,255,255,0.6); }
@media (min-width: 768px) { .footer-bottom-inner { flex-direction: row; } }
.footer-bottom a:hover { color: #fff; }
.footer-bottom .links { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
.footer-bottom .heart { color: var(--color-breaking); }

/* === Ads === */
.ad-slot { background: rgba(241,245,249,0.5); border: 1px dashed var(--color-border-strong); border-radius: var(--radius-lg); padding: 1.25rem; text-align: center; margin: 1.5rem 0; }
.ad-slot .label { font-size: 0.625rem; color: var(--color-muted-foreground); text-transform: uppercase; letter-spacing: 0.15em; font-weight: 700; }
.ad-leaderboard { margin-bottom: 1.5rem; padding: 0.5rem; }
.ad-sidebar { background: var(--color-card); border: 1px solid var(--color-border); border-radius: var(--radius-xl); padding: 1rem; text-align: center; margin-bottom: 1.25rem; }
.ad-sidebar .placeholder { background: var(--color-muted); border-radius: 0.75rem; display: flex; align-items: center; justify-content: center; color: var(--color-muted-foreground); font-size: 0.75rem; }
.ad-sidebar .placeholder.p-300x250 { aspect-ratio: 6/5; }
.ad-sidebar .placeholder.p-300x600 { aspect-ratio: 1/2; }
.ad-in-article { background: rgba(241,245,249,0.5); border: 1px dashed var(--color-border-strong); border-radius: var(--radius-xl); padding: 1.25rem; margin: 2rem 0; }
.ad-in-article .header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.75rem; }
.ad-in-article .label { font-size: 0.625rem; color: var(--color-muted-foreground); text-transform: uppercase; letter-spacing: 0.15em; font-weight: 700; }
.ad-in-article .powered { font-size: 0.625rem; color: rgba(100,116,139,0.5); }
.ad-in-article .content { display: flex; align-items: center; gap: 1rem; }
.ad-in-article .thumb { width: 6rem; height: 6rem; border-radius: 0.75rem; background: var(--color-muted); flex-shrink: 0; }
.ad-in-article .text { flex: 1; text-align: right; }
.ad-in-article .text .tag { font-size: 0.625rem; color: var(--color-muted-foreground); text-transform: uppercase; }
.ad-in-article .text h4 { font-weight: 700; margin: 0.25rem 0; }
.ad-in-article .text p { font-size: 0.875rem; color: var(--color-muted-foreground); margin-bottom: 0.5rem; }
.ad-in-article .text a { font-size: 0.75rem; font-weight: 700; color: var(--color-brand); }

/* === Mobile menu === */
.mobile-menu {
  position: fixed; inset: 0; z-index: 200; display: none;
}
.mobile-menu.open { display: block; }
.mobile-menu-backdrop { position: absolute; inset: 0; background: rgba(11,18,32,0.6); backdrop-filter: blur(8px); animation: fadeIn 0.3s; }
.mobile-menu-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: 20rem; max-width: 85vw;
  background: var(--color-card); box-shadow: var(--shadow-2xl); padding: 1rem;
  overflow-y: auto; animation: slideInRight 0.3s cubic-bezier(0.16,1,0.3,1);
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideInRight { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
.mobile-menu-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
.mobile-menu-header .brand { display: flex; align-items: center; gap: 0.5rem; }
.mobile-menu-header .logo-box { width: 2.25rem; height: 2.25rem; border-radius: 0.5rem; background: var(--color-navy); color: #fff; font-weight: 800; font-size: 0.875rem; display: flex; align-items: center; justify-content: center; }
.mobile-menu-header .title { font-weight: 800; font-size: 1.125rem; color: var(--color-navy); }
body.dark-mode .mobile-menu-header .title { color: var(--color-foreground); }
.mobile-menu-nav ul { list-style: none; }
.mobile-menu-nav li { margin-bottom: 0.25rem; }
.mobile-menu-nav a { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem; border-radius: 0.5rem; font-weight: 700; transition: background var(--transition-fast); }
.mobile-menu-nav a:hover, .mobile-menu-nav .current-menu-item > a { background: var(--color-muted); }
.mobile-menu-nav .dot { width: 10px; height: 10px; border-radius: 0.125rem; }
.mobile-menu-nav .sub-menu { padding-right: 1.5rem; margin-top: 0.25rem; display: none; }
.mobile-menu-nav li.menu-item-has-children.open > .sub-menu { display: block; }
.mobile-menu-cta { display: flex; align-items: center; justify-content: center; gap: 0.5rem; background: var(--color-brand); color: #fff; font-weight: 700; padding: 0.75rem; border-radius: 0.75rem; margin-top: 1.5rem; }

/* === Search overlay === */
.search-overlay { position: fixed; inset: 0; z-index: 200; background: rgba(11,18,32,0.7); backdrop-filter: blur(12px); display: none; }
.search-overlay.open { display: block; animation: fadeIn 0.3s; }
.search-panel { max-width: 48rem; margin: 5rem 1rem 0; background: var(--color-card); border-radius: var(--radius-2xl); box-shadow: var(--shadow-2xl); overflow: hidden; animation: slideUp 0.4s cubic-bezier(0.16,1,0.3,1); }
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.search-input-row { display: flex; align-items: center; gap: 0.75rem; padding: 1rem; border-bottom: 1px solid var(--color-border); }
.search-input-row input { flex: 1; background: transparent; border: 0; outline: none; font-size: 1.125rem; color: var(--color-foreground); }
.search-input-row input::placeholder { color: var(--color-muted-foreground); }
.search-input-row .esc { background: var(--color-muted); color: var(--color-muted-foreground); padding: 0.375rem 0.625rem; border-radius: 0.375rem; font-size: 0.75rem; font-weight: 700; }
.search-suggestions { padding: 1rem; max-height: 60vh; overflow-y: auto; }
.search-suggestions .label { font-size: 0.75rem; font-weight: 700; color: var(--color-muted-foreground); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.75rem; }
.search-suggestion-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.search-suggestion-chips a { padding: 0.375rem 0.75rem; border-radius: 999px; background: var(--color-muted); font-size: 0.875rem; font-weight: 500; transition: all var(--transition-fast); }
.search-suggestion-chips a:hover { background: var(--color-accent); color: var(--color-brand); transform: translateY(-2px); }

/* === Back to top === */
.back-to-top {
  position: fixed; bottom: 1.5rem; left: 1.5rem; z-index: 40;
  width: 3rem; height: 3rem; border-radius: 50%;
  background: var(--color-navy); color: #fff; box-shadow: var(--shadow-xl);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: translateY(1rem); pointer-events: none;
  transition: all var(--transition-base);
}
.back-to-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover { background: var(--color-brand); transform: translateY(-4px) scale(1.05); }
.back-to-top svg { position: relative; z-index: 1; }
.back-to-top .progress-ring { position: absolute; inset: 0; transform: rotate(-90deg); }
.back-to-top .progress-ring circle { fill: none; stroke-width: 2; }
.back-to-top .progress-ring .bg { stroke: rgba(255,255,255,0.2); }
.back-to-top .progress-ring .fg { stroke: var(--color-warning); transition: stroke-dashoffset 150ms; }

/* === Reading progress bar === */
.reading-progress { position: fixed; top: 0; inset-inline: 0; height: 3px; z-index: 60; pointer-events: none; }
.reading-progress .bar { height: 100%; background: linear-gradient(to left, var(--color-brand), var(--color-warning), var(--color-breaking)); width: 0; transition: width 150ms; }

/* === Reveal animation === */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1); will-change: opacity, transform; }
.reveal.visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* === 404 === */
.error-404 { text-align: center; padding: 5rem 1rem; }
.error-404 .code { font-size: 8rem; font-weight: 900; color: var(--color-brand); line-height: 1; margin-bottom: 1rem; }
.error-404 h1 { font-size: 2rem; margin-bottom: 1rem; }
.error-404 p { color: var(--color-muted-foreground); margin-bottom: 2rem; }
.error-404 .btn { background: var(--color-brand); color: #fff; font-weight: 700; padding: 0.75rem 1.5rem; border-radius: 0.75rem; transition: all var(--transition-base); display: inline-flex; align-items: center; gap: 0.5rem; }
.error-404 .btn:hover { background: var(--color-brand-2); transform: translateY(-2px); }

/* === No results === */
.no-results { text-align: center; padding: 4rem 1rem; background: var(--color-muted); border-radius: var(--radius-xl); }
.no-results svg { color: var(--color-muted-foreground); opacity: 0.5; margin: 0 auto 1rem; }
.no-results h2 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.no-results p { color: var(--color-muted-foreground); margin-bottom: 1.5rem; }

/* === Archive header === */
.archive-header { background: linear-gradient(135deg, var(--color-brand), var(--color-navy)); color: #fff; padding: 2.5rem 0; margin-bottom: 2rem; border-radius: var(--radius-2xl); position: relative; overflow: hidden; margin-top: 1.5rem; }
.archive-header .bg-blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.2; }
.archive-header .bg-blob.b1 { top: -3rem; left: -3rem; width: 12rem; height: 12rem; background: #fff; }
.archive-header .bg-blob.b2 { bottom: -1.5rem; right: -1.5rem; width: 8rem; height: 8rem; background: var(--color-warning); }
.archive-header .container { position: relative; }
.archive-header h1 { font-size: clamp(1.875rem, 3vw + 0.5rem, 2.5rem); margin-bottom: 0.5rem; }
.archive-header .description { color: rgba(255,255,255,0.8); }
.archive-header .stats { display: flex; align-items: center; gap: 1rem; margin-top: 1rem; font-size: 0.875rem; color: rgba(255,255,255,0.8); }
.archive-header .stats .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--color-success); animation: pulse 1.5s infinite; }

/* === Grid layouts === */
.layout-grid { display: grid; gap: 2rem; }
@media (min-width: 1024px) { .layout-grid.has-sidebar { grid-template-columns: 2fr 1fr; } }

/* === Sticky sidebar === */
@media (min-width: 1024px) { .sticky-sidebar { position: sticky; top: calc(var(--header-height) + 1.5rem); } }

/* === Print === */
@media print {
  .site-header, .site-footer, .breaking-bar, .newsletter-section, .ad-slot, .article-share, .back-to-top, .reading-progress { display: none !important; }
  body { background: #fff; color: #000; }
}

/* === Reduced motion === */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .breaking-ticker-track { animation: none !important; }
}

/* ===========================================================================
   v1.0.1 — Accessibility & Mobile Fixes (Senior Review)
   =========================================================================== */

/* === Accessibility: Focus visibility === */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid var(--color-brand);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Screen-reader-only text */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}
.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    clip-path: none;
    color: #21759b;
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    height: auto;
    right: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* === Accessibility: Better contrast for muted text === */
body { --color-muted-foreground: #475569; }
body.dark-mode { --color-muted-foreground: #94A3B8; }

/* === Accessibility: Reduce motion === */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .breaking-ticker-track {
        animation: none !important;
    }
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* === Mobile: Better touch targets === */
@media (max-width: 768px) {
    .icon-btn,
    .share-btn,
    .cat-tab,
    .pagination .page-numbers {
        min-height: 44px;
        min-width: 44px;
    }
    .header-actions { gap: 0.25rem; }
    .newsletter-cta { display: none !important; }
    .main-nav { display: none; }
    .site-branding { flex: 1; }
    .site-title { font-size: 1.25rem !important; }
    .site-description { font-size: 0.5rem !important; }
    .top-bar { font-size: 0.65rem; }
    .top-bar-right { display: none; }
    .hero-main { min-height: 18rem !important; }
    .hero-main h2 { font-size: 1.25rem !important; }
    .hero-card { min-height: 10rem !important; }
    .hero-card h3 { font-size: 0.95rem !important; }
    .news-card h3 { font-size: 0.9rem !important; line-height: 1.5rem; }
    .news-card .excerpt { font-size: 0.8rem; }
    .news-card-body { padding: 0.875rem; }
    .section-heading { margin-bottom: 1.5rem; }
    .section-heading h2 { font-size: 1.25rem !important; }
    .section-heading .number { display: none !important; }
    .section-heading .view-all { display: none !important; }
    .breaking-label { font-size: 0.7rem; padding: 0 0.75rem; }
    .breaking-ticker a { font-size: 0.75rem; padding: 0 0.75rem; }
    .breaking-bar .live-clock { display: none !important; }
    .article-title { font-size: 1.5rem !important; }
    .article-excerpt { font-size: 1rem !important; }
    .article-body { font-size: 1rem !important; line-height: 1.9; }
    .article-meta { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
    .article-meta-info { gap: 0.5rem; font-size: 0.7rem; }
    .share-buttons { gap: 0.375rem; }
    .share-btn { width: 2rem; height: 2rem; }
    .author-box { flex-direction: column; gap: 0.75rem; padding: 1rem; }
    .author-box img { width: 3rem; height: 3rem; }
    .newsletter-section { padding: 2.5rem 0 !important; }
    .newsletter-section h2 { font-size: 1.5rem !important; }
    .newsletter-section p { font-size: 0.95rem !important; }
    .newsletter-stats { grid-template-columns: 1fr !important; gap: 1rem; }
    .newsletter-stat:not(:last-child) { border-left: 0; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 1rem; }
    .footer-grid { grid-template-columns: 1fr !important; gap: 1.5rem; }
    .video-grid { grid-template-columns: 1fr !important; }
    .video-main { min-height: 16rem !important; }
    .video-side { grid-template-columns: 1fr 1fr; }
    .layout-grid.has-sidebar { grid-template-columns: 1fr !important; }
    .sidebar { margin-top: 2rem; }
    .sticky-sidebar { position: static !important; }
    .trending-bar { flex-direction: column; align-items: flex-start; }
    .trending-bar a { font-size: 0.75rem; width: 100%; }
    .trending-bar a .title { max-width: 100%; }
    .archive-header { padding: 1.5rem 1rem !important; }
    .archive-header h1 { font-size: 1.5rem !important; }
    .news-grid.cols-3, .news-grid.cols-4 { grid-template-columns: 1fr !important; }
    .news-grid.cols-2 { grid-template-columns: 1fr !important; }
    .back-to-top { bottom: 1rem; left: 1rem; width: 2.5rem; height: 2.5rem; }
    .pagination { flex-wrap: wrap; }
    .pagination .page-numbers { width: 2.25rem; height: 2.25rem; font-size: 0.8rem; }
    .article-featured-image { aspect-ratio: 16/10; }
    .hero-section { padding: 1rem 0 !important; }
    .container { padding: 0 0.875rem; }
}

/* === Mobile: Small phones (375px) === */
@media (max-width: 480px) {
    .hero-main { min-height: 16rem !important; }
    .hero-main h2 { font-size: 1.1rem !important; }
    .hero-main .content { padding: 1rem; }
    .hero-meta { font-size: 0.7rem; gap: 0.5rem; }
    .hero-meta .avatar { width: 1.75rem; height: 1.75rem; }
    .news-card.horizontal { flex-direction: column; gap: 0.5rem; }
    .news-card.horizontal .news-card-image { width: 100%; aspect-ratio: 16/9; }
    .article-title { font-size: 1.25rem !important; }
    .error-404 .code { font-size: 5rem; }
    .video-side { grid-template-columns: 1fr; }
    .footer-bottom-inner { flex-direction: column; text-align: center; }
}

/* === Performance: Content visibility for long pages === */
@supports (content-visibility: auto) {
    .news-card,
    .most-read-item,
    .footer-col {
        content-visibility: auto;
        contain-intrinsic-size: 200px;
    }
}

/* === Performance: Image rendering === */
img {
    image-rendering: -webkit-optimize-contrast;
}

/* === Print styles === */
@media print {
    .site-header,
    .site-footer,
    .breaking-bar,
    .newsletter-section,
    .ad-slot,
    .ad-leaderboard,
    .ad-sidebar,
    .ad-in-article,
    .article-share,
    .back-to-top,
    .reading-progress,
    .video-section,
    .mobile-menu,
    .search-overlay,
    .trending-bar {
        display: none !important;
    }
    body { background: #fff !important; color: #000 !important; }
    .container { max-width: 100% !important; }
    .article-body { font-size: 12pt !important; }
    a { color: #000 !important; text-decoration: underline !important; }
    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #666;
    }
}

/* === SEO: Hide content properly === */
.sr-only:focus {
    position: fixed !important;
    top: 1rem;
    right: 1rem;
    width: auto;
    height: auto;
    padding: 1rem 1.5rem;
    background: #000;
    color: #fff;
    z-index: 100000;
    clip: auto !important;
    clip-path: none;
}

/* === Heading hierarchy fix === */
h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
}

/* === Table of contents for accessibility === */
.article-body h2,
.article-body h3 {
    scroll-margin-top: 6rem;
}

/* === Better link underline === */
.article-body a {
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}

/* === Form accessibility === */
input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration {
    -webkit-appearance: none;
}
input[type="search"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* === Skip link === */
.skip-link {
    position: absolute;
    top: -100px;
    right: 1rem;
    z-index: 999;
    background: var(--color-navy);
    color: #fff;
    padding: 0.75rem 1.25rem;
    border-radius: 0.5rem;
    font-weight: 700;
    transition: top var(--transition-fast);
}
.skip-link:focus {
    top: 1rem;
    color: #fff;
}

/* ===========================================================================
   v1.1.0 — TOC, Load More, AJAX Search, Sticky Share (No UI redesign)
   =========================================================================== */

/* === Table of Contents === */
.article-toc {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xs);
}
.article-toc-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.25rem;
    background: var(--color-muted);
    font-weight: 700;
    font-size: 0.9375rem;
    color: var(--color-foreground);
}
.article-toc-header svg { color: var(--color-brand); flex-shrink: 0; }
.article-toc-header span { flex: 1; }
.article-toc-toggle {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 0.375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-muted-foreground);
    transition: all var(--transition-fast);
}
.article-toc-toggle:hover { background: var(--color-card); color: var(--color-foreground); }
.article-toc-toggle svg { transition: transform var(--transition-base); }
.article-toc-list {
    list-style: none;
    padding: 0.75rem;
    margin: 0;
    counter-reset: toc-counter;
}
.article-toc-item { padding: 0.25rem 0; }
.article-toc-item.level-2 { padding-right: 0; }
.article-toc-item.level-3 { padding-right: 1.25rem; }
.article-toc-item a {
    display: block;
    padding: 0.375rem 0.625rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    color: var(--color-muted-foreground);
    transition: all var(--transition-fast);
    line-height: 1.6;
}
.article-toc-item a:hover {
    background: var(--color-muted);
    color: var(--color-brand);
}
.article-toc-item a.active {
    background: var(--color-accent);
    color: var(--color-brand);
    font-weight: 700;
}
.toc-heading { scroll-margin-top: 6rem; }

/* === Load More Button === */
.load-more-wrapper {
    text-align: center;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
}
.load-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--color-card);
    color: var(--color-foreground);
    border: 2px solid var(--color-border);
    padding: 0.875rem 2rem;
    border-radius: var(--radius-lg);
    font-weight: 700;
    font-size: 0.875rem;
    transition: all var(--transition-base);
    cursor: pointer;
    min-height: 44px;
}
.load-more-btn:hover {
    border-color: var(--color-brand);
    color: var(--color-brand);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.load-more-btn:disabled {
    opacity: 0.7;
    cursor: wait;
}
.load-more-btn svg {
    transition: transform var(--transition-base);
}
.load-more-btn:hover svg {
    transform: rotate(180deg);
}

/* === AJAX Search Results === */
.search-suggestions .search-result-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: var(--radius-md);
    transition: background var(--transition-fast);
    text-decoration: none;
    color: inherit;
}
.search-suggestions .search-result-item:hover {
    background: var(--color-muted);
}
.search-suggestions .search-result-item img {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--radius-sm);
    object-fit: cover;
    flex-shrink: 0;
}
.search-suggestions .search-result-item .result-title {
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--color-foreground);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.search-suggestions .search-result-item .result-meta {
    font-size: 0.75rem;
    color: var(--color-muted-foreground);
}
.search-suggestions .search-result-item .breaking-badge {
    background: var(--color-breaking);
    color: #fff;
    font-size: 0.625rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 3px;
    flex-shrink: 0;
}

/* === Sticky Share (Desktop) === */
@media (min-width: 1280px) {
    body.has-sticky-share .article-share {
        position: sticky;
        top: 7rem;
        z-index: 10;
    }
}

/* === Editor Styles for Gutenberg === */
.eghtesad24-alert {
    border: 2px solid var(--color-breaking) !important;
    border-radius: var(--radius-lg) !important;
    padding: 1.25rem !important;
    background: rgba(220, 38, 38, 0.05) !important;
}
.eghtesad24-alert-title {
    font-weight: 800 !important;
    color: var(--color-breaking) !important;
    margin-bottom: 0.5rem !important;
}
.eghtesad24-quote {
    border-right: 4px solid var(--color-brand) !important;
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0 !important;
    padding: 1.25rem 1.25rem 1.25rem 3rem !important;
    background: var(--color-accent) !important;
    font-weight: 700 !important;
    font-style: italic !important;
    position: relative !important;
}
.eghtesad24-market-table table {
    border-collapse: collapse;
    width: 100%;
}
.eghtesad24-market-table th {
    background: var(--color-navy);
    color: #fff;
    padding: 0.75rem;
    font-weight: 700;
    text-align: right;
}
.eghtesad24-market-table td {
    padding: 0.75rem;
    border-bottom: 1px solid var(--color-border);
}

/* === Spinner animation === */
@keyframes spin {
    to { transform: rotate(360deg); }
}
.animate-spin {
    animation: spin 1s linear infinite;
}

/* === Print: TOC hidden === */
@media print {
    .article-toc, .load-more-wrapper, .article-share { display: none !important; }
}

/* ===========================================================================
   v1.4.0 — Mega Menu, Reading Settings, Shortcodes, Cookie Consent, Login, Maintenance
   =========================================================================== */

/* === Mega Menu === */
.main-nav .mega-menu-item { position: static; }
.main-nav .mega-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-card);
        border-top: 1px solid var(--color-border);
        box-shadow: var(--shadow-xl);
        padding: 2rem;
        display: none;
        z-index: 100;
        grid-template-columns: 1fr 3fr;
        gap: 2rem;
        max-height: 70vh;
        overflow-y: auto;
}
.main-nav .mega-menu-item:hover .mega-menu { display: grid; }
.mega-menu-subcats h4 {
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        color: var(--color-muted-foreground);
        margin-bottom: 0.75rem;
        padding-bottom: 0.5rem;
        border-bottom: 1px solid var(--color-border);
}
.mega-menu-subcats ul { list-style: none; }
.mega-menu-subcats li { margin-bottom: 0.5rem; }
.mega-menu-subcats a {
        font-size: 0.875rem;
        font-weight: 600;
        color: var(--color-foreground);
}
.mega-menu-subcats a:hover { color: var(--color-brand); }
.mega-menu-posts {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
}
.mega-menu-post {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        text-decoration: none;
        color: inherit;
        transition: transform var(--transition-fast);
}
.mega-menu-post:hover { transform: translateY(-3px); }
.mega-menu-post img {
        width: 100%;
        aspect-ratio: 16/10;
        object-fit: cover;
        border-radius: 0.5rem;
}
.mega-menu-post span {
        font-size: 0.8125rem;
        font-weight: 600;
        line-height: 1.5;
        color: var(--color-foreground);
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
}
.mega-menu-post:hover span { color: var(--color-brand); }

/* === Reading Settings Bar === */
.reading-settings {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        padding: 0.75rem;
        background: var(--color-muted);
        border-radius: var(--radius-lg);
        margin-bottom: 2rem;
        flex-wrap: wrap;
}
.reading-settings-btn {
        display: flex;
        align-items: center;
        gap: 0.25rem;
        padding: 0.375rem 0.75rem;
        background: var(--color-card);
        border: 1px solid var(--color-border);
        border-radius: var(--radius-md);
        font-size: 0.875rem;
        font-weight: 700;
        color: var(--color-foreground);
        transition: all var(--transition-fast);
        min-height: 36px;
}
.reading-settings-btn:hover {
        border-color: var(--color-brand);
        color: var(--color-brand);
}
.reading-settings-divider {
        width: 1px;
        height: 1.5rem;
        background: var(--color-border);
}
/* Font size variations */
.article-body.font-size-small { font-size: 0.9375rem !important; }
.article-body.font-size-normal { font-size: 1.125rem !important; }
.article-body.font-size-large { font-size: 1.25rem !important; }
.article-body.font-size-xlarge { font-size: 1.375rem !important; }
/* Content width variations */
.article-content-width-narrow { max-width: 36rem !important; margin-left: auto !important; margin-right: auto !important; }
.article-content-width-normal { max-width: 48rem !important; margin-left: auto !important; margin-right: auto !important; }
.article-content-width-wide { max-width: 64rem !important; margin-left: auto !important; margin-right: auto !important; }

/* === Article Source === */
.article-source {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.75rem 0;
        font-size: 0.875rem;
        color: var(--color-muted-foreground);
        border-top: 1px solid var(--color-border);
        margin-top: 1rem;
}
.article-source a {
        color: var(--color-brand);
        font-weight: 700;
}
.article-source a:hover { text-decoration: underline; }

/* === Breaking List Shortcode === */
.breaking-list {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
}
.breaking-list-item {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.75rem;
        background: var(--color-card);
        border: 1px solid var(--color-border);
        border-radius: var(--radius-md);
        font-size: 0.875rem;
        transition: all var(--transition-fast);
}
.breaking-list-item:hover {
        border-color: var(--color-breaking);
        transform: translateX(-4px);
}
.breaking-list-item .time {
        margin-right: auto;
        font-size: 0.75rem;
        color: var(--color-muted-foreground);
}

/* === Market Shortcode === */
.market-shortcode {
        background: var(--color-card);
        border: 1px solid var(--color-border);
        border-radius: var(--radius-xl);
        overflow: hidden;
}

/* === Cookie Consent === */
.cookie-consent {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 9999;
        background: var(--color-navy);
        color: #fff;
        padding: 1rem;
        animation: slideUp 0.4s ease-out;
}
.cookie-consent-content {
        max-width: var(--container-max);
        margin: 0 auto;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        flex-wrap: wrap;
}
.cookie-consent-text {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        font-size: 0.875rem;
        line-height: 1.6;
}
.cookie-consent-text svg { color: var(--color-warning); flex-shrink: 0; }
.cookie-consent-buttons { display: flex; gap: 0.5rem; }
.cookie-consent-btn {
        padding: 0.5rem 1.25rem;
        border-radius: var(--radius-md);
        font-weight: 700;
        font-size: 0.875rem;
        transition: all var(--transition-fast);
        min-height: 40px;
}
.cookie-consent-btn.primary {
        background: var(--color-brand);
        color: #fff;
}
.cookie-consent-btn.primary:hover { background: var(--color-brand-2); }
.cookie-consent-btn.secondary {
        background: rgba(255,255,255,0.1);
        color: #fff;
        border: 1px solid rgba(255,255,255,0.2);
}
.cookie-consent-btn.secondary:hover { background: rgba(255,255,255,0.2); }

/* === Sticky Sidebar === */
@media (min-width: 1024px) {
        .sticky-sidebar {
                position: sticky;
                top: 6rem;
                max-height: calc(100vh - 7rem);
                overflow-y: auto;
                scrollbar-width: thin;
        }
        .sticky-sidebar::-webkit-scrollbar { width: 4px; }
        .sticky-sidebar::-webkit-scrollbar-thumb { background: var(--color-muted-foreground); border-radius: 999px; }
}

/* === Mobile Mega Menu Fix === */
@media (max-width: 1023px) {
        .mega-menu { display: none !important; }
        .main-nav .mega-menu-item { position: relative; }
}

/* === Print Article Enhancement === */
@media print {
        .reading-settings, .article-share, .article-toc, .back-to-top, .reading-progress,
        .cookie-consent, .newsletter-section, .video-section, .ad-slot, .breaking-bar { display: none !important; }
        .article-body { font-size: 12pt; line-height: 1.8; max-width: 100% !important; }
        .article-title { font-size: 18pt; }
        .article-featured-image { max-width: 100%; page-break-after: avoid; }
        .author-box, .article-source { page-break-inside: avoid; }
}

/* === TOC Heading Offset === */
.toc-heading { scroll-margin-top: 6rem; }

/* ===========================================================================
   v3.0 — EDITORIAL HOMEPAGE GRID (Bloomberg/BBC/FT style)
   =========================================================================== */

/* === Editorial Hero === */
.eh-hero { padding: 0.75rem 0 1rem; }
.eh-hero-grid {
    display: grid; grid-template-columns: 1fr; gap: 0.625rem;
}
@media (min-width: 768px) {
    .eh-hero-grid { grid-template-columns: 1.4fr 1fr; gap: 0.875rem; }
}

/* Hero Left: Main + List */
.eh-hero-left { display: flex; flex-direction: column; gap: 0.625rem; }
.eh-hero-main {
    position: relative; display: block; border-radius: 0.75rem; overflow: hidden;
    aspect-ratio: 16/10; cursor: pointer; box-shadow: var(--shadow-md);
}
@media (max-width: 767px) { .eh-hero-main { aspect-ratio: 16/9; } }
.eh-hero-main img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
    transition: transform 500ms var(--ease-out);
}
.eh-hero-main:hover img { transform: scale(1.03); }
.eh-hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, var(--navy-900) 5%, rgba(10,14,26,0.5) 40%, transparent 70%);
}
.eh-hero-content { position: absolute; bottom: 0; right: 0; left: 0; padding: 0.75rem; }
@media (min-width: 768px) { .eh-hero-content { padding: 1rem 1.25rem; } }
.eh-hero-badges { display: flex; gap: 0.375rem; margin-bottom: 0.375rem; }
.eh-hero-title {
    font-size: 1rem; font-weight: 800; line-height: 1.35; color: #fff;
    margin: 0 0 0.25rem;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
@media (min-width: 768px) { .eh-hero-title { font-size: 1.375rem; -webkit-line-clamp: 3; } }
.eh-hero-meta { display: flex; align-items: center; gap: 0.375rem; font-size: 0.6875rem; color: rgba(255,255,255,0.8); }
.eh-hero-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: rgba(255,255,255,0.4); }

/* Hero List (2 items under main) */
.eh-hero-list { display: flex; flex-direction: column; gap: 0.5rem; }
.eh-list-item {
    display: flex; align-items: center; gap: 0.5rem;
    padding: 0.5rem 0.625rem; background: var(--bg-elevated);
    border: 1px solid var(--border-default); border-radius: 0.5rem;
    transition: var(--transition-color); text-decoration: none;
}
.eh-list-item:hover { border-color: var(--accent-brand); background: var(--bg-muted); }
.eh-list-cat { font-size: 0.625rem; font-weight: 700; flex-shrink: 0; white-space: nowrap; }
.eh-list-title {
    font-size: 0.8125rem; font-weight: 600; line-height: 1.4; color: var(--text-primary);
    flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.eh-list-item:hover .eh-list-title { color: var(--accent-brand); }
.eh-list-time { font-size: 0.625rem; color: var(--text-tertiary); flex-shrink: 0; }

/* Hero Right: 4 compact cards */
.eh-hero-right { display: flex; flex-direction: column; gap: 0.5rem; }
.eh-side-card {
    display: flex; gap: 0.5rem; padding: 0.5rem;
    background: var(--bg-elevated); border: 1px solid var(--border-default);
    border-radius: 0.5rem; transition: var(--transition-all);
    text-decoration: none; color: inherit;
}
.eh-side-card:hover { border-color: var(--accent-brand); transform: translateX(-2px); }
.eh-side-thumb { width: 3.5rem; height: 3.5rem; border-radius: 0.375rem; overflow: hidden; flex-shrink: 0; }
.eh-side-thumb img { width: 100%; height: 100%; object-fit: cover; }
.eh-side-text { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.eh-side-cat { font-size: 0.5625rem; font-weight: 700; margin-bottom: 0.125rem; }
.eh-side-title {
    font-size: 0.75rem; font-weight: 600; line-height: 1.35; color: var(--text-primary);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.eh-side-card:hover .eh-side-title { color: var(--accent-brand); }

/* Trending strip */
.eh-trending {
    margin-top: 0.625rem; display: flex; align-items: center; gap: 0.375rem;
    padding: 0.5rem 0.75rem; background: var(--bg-elevated);
    border: 1px solid var(--border-default); border-radius: 0.5rem;
    overflow: hidden;
}
.eh-trending-label {
    flex-shrink: 0; background: var(--accent-breaking); color: #fff;
    font-size: 0.625rem; font-weight: 700; padding: 0.1875rem 0.5rem;
    border-radius: 0.25rem;
}
.eh-trending-item {
    display: inline-flex; align-items: center; gap: 0.25rem;
    font-size: 0.6875rem; transition: var(--transition-color);
    overflow: hidden; min-width: 0;
}
.eh-trending-num { font-weight: 700; color: var(--text-tertiary); font-size: 0.625rem; flex-shrink: 0; }
.eh-trending-title {
    font-weight: 600; color: var(--text-secondary);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    max-width: 140px;
}
.eh-trending-item:hover .eh-trending-title { color: var(--accent-brand); }

/* === Main Sections === */
.eh-main-section { padding: 1.25rem 1rem 1.5rem; }
.eh-section-muted { background: var(--bg-muted); padding: 1.25rem 0; }

.eh-layout-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 1024px) {
    .eh-layout-grid { grid-template-columns: 1fr 300px; gap: 2rem; }
}

.eh-section-head {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    margin-bottom: 0.875rem; padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--text-primary);
}
.eh-section-title {
    font-size: 1.125rem; font-weight: 800; margin: 0; color: var(--text-primary);
    display: flex; align-items: center; gap: 0.5rem;
}
.eh-section-title::before {
    content: ''; width: 3px; height: 1rem; background: var(--accent-breaking);
    border-radius: var(--radius-full);
}

/* === Editorial News Grid === */
.eh-news-grid {
    display: grid; grid-template-columns: 1fr; gap: 0.625rem;
}
@media (min-width: 640px) { .eh-news-grid { grid-template-columns: repeat(2, 1fr); gap: 0.875rem; } }
@media (min-width: 1024px) { .eh-news-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .eh-news-grid.eh-grid-4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1024px) { .eh-news-grid.eh-grid-3 { grid-template-columns: repeat(3, 1fr); } }

/* === Mobile: Hero compact === */
@media (max-width: 767px) {
    .eh-hero-right { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
    .eh-side-card { flex-direction: column; gap: 0.375rem; padding: 0.375rem; }
    .eh-side-thumb { width: 100%; height: auto; aspect-ratio: 16/9; }
    .eh-side-title { font-size: 0.6875rem; -webkit-line-clamp: 2; }
    .eh-trending { flex-wrap: wrap; }
    .eh-trending-item { width: 100%; }
    .eh-trending-title { max-width: 100%; }
}

/* ===========================================================================
   v3.0 — DS PAGE STYLES (Single, Archive, Search, 404, Author, About, Contact)
   =========================================================================== */

/* === Article Page === */
.ds-article-container { padding: 1rem 1rem 2rem; }
.ds-article-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 1024px) { .ds-article-grid { grid-template-columns: 1fr 300px; gap: 2rem; } }

.ds-article-header { margin-bottom: 1.25rem; }
.ds-article-badges { display: flex; gap: 0.375rem; margin-bottom: 0.625rem; flex-wrap: wrap; }
.ds-article-title { font-size: var(--text-2xl); font-weight: 800; line-height: 1.25; margin-bottom: 0.625rem; }
.ds-article-excerpt { font-size: var(--text-md); color: var(--text-secondary); line-height: 1.625; margin-bottom: 1rem; }
.ds-article-meta { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 0.625rem 0; border-top: 1px solid var(--border-default); border-bottom: 1px solid var(--border-default); }
.ds-article-author { display: flex; align-items: center; gap: 0.625rem; text-decoration: none; color: inherit; }
.ds-avatar { width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 2px solid var(--border-default); }
.ds-author-name { font-weight: 700; font-size: var(--text-sm); }
.ds-author-role { font-size: var(--text-2xs); color: var(--text-tertiary); }
.ds-article-meta-info { display: flex; align-items: center; gap: 0.625rem; font-size: var(--text-xs); color: var(--text-tertiary); }
.ds-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--text-tertiary); opacity: 0.5; }

.ds-article-hero-img { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 1.25rem; aspect-ratio: 16/9; }
.ds-article-hero-img img { width: 100%; height: 100%; object-fit: cover; }

.ds-article-share { margin-bottom: 1.25rem; }
.ds-toc-wrapper { margin-bottom: 1.25rem; }

.ds-article-body { font-size: var(--text-md); line-height: var(--leading-loose); }
.ds-article-body p { margin-bottom: 1.25rem; }
.ds-article-body h2 { font-size: var(--text-xl); margin: 1.5rem 0 0.5rem; }
.ds-article-body h3 { font-size: var(--text-lg); margin: 1.25rem 0 0.5rem; }
.ds-article-body blockquote { border-right: 3px solid var(--accent-brand); background: var(--bg-muted); padding: 1rem 1.25rem; border-radius: 0 0.5rem 0.5rem 0; margin: 1.25rem 0; font-weight: 600; font-style: italic; }
.ds-article-body img { border-radius: var(--radius-md); margin: 1.25rem 0; }
.ds-article-body a { color: var(--accent-brand); text-decoration: underline; text-underline-offset: 3px; }

.ds-article-source { display: flex; align-items: center; gap: 0.375rem; padding-top: 0.75rem; font-size: var(--text-xs); color: var(--text-tertiary); border-top: 1px solid var(--border-default); margin-top: 0.75rem; }

.ds-article-tags { display: flex; align-items: center; gap: 0.375rem; flex-wrap: wrap; padding-top: 1rem; border-top: 1px solid var(--border-default); margin-top: 1.5rem; }
.ds-tags-label { font-size: var(--text-xs); font-weight: 700; color: var(--text-tertiary); }
.ds-article-tags a { padding: 0.25rem 0.625rem; border-radius: var(--radius-full); background: var(--bg-muted); font-size: var(--text-xs); font-weight: 500; transition: var(--transition-color); }
.ds-article-tags a:hover { background: var(--accent-brand); color: #fff; }

.ds-author-box { display: flex; gap: 1rem; padding: 1.25rem; background: var(--bg-elevated); border: 1px solid var(--border-default); border-radius: var(--radius-lg); margin-top: 1.5rem; }
.ds-avatar-lg { width: 3.5rem; height: 3.5rem; border-radius: 50%; border: 2px solid var(--border-default); flex-shrink: 0; }
.ds-author-box-name { font-weight: 700; font-size: var(--text-md); }
.ds-author-box-role { font-size: var(--text-xs); color: var(--accent-brand); font-weight: 600; margin-bottom: 0.375rem; }
.ds-author-box-bio { font-size: var(--text-sm); color: var(--text-secondary); line-height: 1.625; }
.ds-author-link { font-size: var(--text-xs); font-weight: 700; color: var(--accent-brand); display: inline-block; margin-top: 0.5rem; }

.ds-article-sidebar .sticky-sidebar { position: sticky; top: 5.5rem; }
.ds-widget { background: var(--bg-elevated); border: 1px solid var(--border-default); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 1rem; }
.ds-widget-head { padding: 0.75rem 1rem; background: var(--navy-900); color: #fff; font-weight: 700; font-size: var(--text-sm); }
.ds-widget-head h2, .ds-widget-head h3 { font-size: var(--text-sm); margin: 0; color: #fff; }
.ds-widget-body { padding: 0.625rem 0.75rem; }
.ds-related-item { display: flex; gap: 0.625rem; padding: 0.5rem 0; border-bottom: 1px solid var(--border-default); text-decoration: none; color: inherit; }
.ds-related-item:last-child { border-bottom: 0; }
.ds-related-thumb { width: 4rem; height: 4rem; border-radius: var(--radius-md); overflow: hidden; flex-shrink: 0; }
.ds-related-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ds-related-title { font-size: var(--text-xs); font-weight: 700; line-height: 1.4; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ds-related-item:hover .ds-related-title { color: var(--accent-brand); }
.ds-related-time { font-size: var(--text-2xs); color: var(--text-tertiary); }

.ds-related-section { background: var(--bg-muted); padding: 2rem 0; margin-top: 2rem; }
.ds-related-section .container { padding: 0 1rem; }
.ds-related-section .ds-section-head { margin-bottom: 1rem; }

/* === Archive Header === */
.ds-archive-container { padding: 1rem 1rem 2rem; }
.ds-archive-header { background: linear-gradient(135deg, var(--navy-900), var(--navy-800)); color: #fff; border-radius: var(--radius-lg); padding: 1.5rem; margin-bottom: 1.25rem; position: relative; overflow: hidden; }
.ds-archive-header-inner { position: relative; z-index: 1; }
.ds-archive-title { font-size: var(--text-xl); font-weight: 800; color: #fff; margin-bottom: 0.375rem; }
.ds-archive-desc { color: rgba(255,255,255,0.8); font-size: var(--text-sm); margin-bottom: 0.75rem; }
.ds-archive-stats { font-size: var(--text-xs); color: rgba(255,255,255,0.7); }
.ds-archive-stats strong { color: #fff; font-size: var(--text-md); }

.ds-archive-sidebar .sticky-sidebar { position: sticky; top: 5.5rem; }

/* === Search === */
.ds-search-header { background: var(--bg-elevated); border: 1px solid var(--border-default); border-radius: var(--radius-lg); padding: 1.5rem; margin-bottom: 1.25rem; }
.ds-search-header-inner { text-align: center; }
.ds-search-form { display: flex; gap: 0.5rem; max-width: 36rem; margin: 1rem auto 0; }
.ds-search-input { flex: 1; padding: 0.625rem 1rem; border: 1px solid var(--border-default); border-radius: var(--radius-md); background: var(--bg-base); color: var(--text-primary); font-size: var(--text-sm); outline: none; transition: var(--transition-color); }
.ds-search-input:focus { border-color: var(--accent-brand); box-shadow: 0 0 0 3px var(--blue-100); }
.ds-search-count { font-size: var(--text-sm); color: var(--text-tertiary); margin-bottom: 1rem; }
.ds-search-count strong { color: var(--text-primary); }

.ds-no-results { text-align: center; padding: 3rem 1rem; background: var(--bg-elevated); border: 1px solid var(--border-default); border-radius: var(--radius-lg); }
.ds-no-results svg { color: var(--text-tertiary); opacity: 0.3; margin: 0 auto 1rem; }
.ds-no-results h2 { font-size: var(--text-lg); margin-bottom: 0.5rem; }
.ds-no-results p { color: var(--text-tertiary); margin-bottom: 1.5rem; }
.ds-search-suggestions p { font-size: var(--text-xs); color: var(--text-tertiary); margin-bottom: 0.5rem; }

/* === 404 === */
.ds-404-container { padding: 2rem 1rem; }
.ds-404 { text-align: center; max-width: 32rem; margin: 0 auto; padding: 3rem 1rem; }
.ds-404-code { font-size: 6rem; font-weight: 900; color: var(--accent-brand); line-height: 1; margin-bottom: 0.5rem; }
.ds-404-title { font-size: var(--text-xl); margin-bottom: 0.75rem; }
.ds-404-desc { color: var(--text-secondary); font-size: var(--text-sm); margin-bottom: 1.5rem; line-height: 1.625; }
.ds-404-search { display: flex; gap: 0.5rem; max-width: 28rem; margin: 0 auto 2rem; }
.ds-404-cats { margin-bottom: 2rem; }
.ds-404-cats-title { font-size: var(--text-xs); font-weight: 700; color: var(--text-tertiary); text-transform: uppercase; margin-bottom: 0.75rem; }
.ds-404-cats-grid { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; }
.ds-404-cat { display: inline-flex; align-items: center; gap: 0.375rem; padding: 0.375rem 0.875rem; border: 1px solid var(--border-strong); border-radius: var(--radius-full); font-size: var(--text-sm); font-weight: 600; transition: var(--transition-color); }
.ds-404-cat:hover { background: var(--bg-muted); }
.ds-404-cat .dot { width: 6px; height: 6px; border-radius: 50%; }
.ds-404-home { margin: 0 auto; }

/* === Author Page === */
.ds-author-hero { background: linear-gradient(135deg, var(--navy-900), var(--navy-700)); border-radius: var(--radius-lg); padding: 1.5rem; margin-bottom: 1.25rem; color: #fff; overflow: hidden; }
.ds-author-hero-inner { display: flex; gap: 1.25rem; align-items: center; }
.ds-author-avatar-wrap { position: relative; flex-shrink: 0; }
.ds-author-avatar { width: 5rem; height: 5rem; border-radius: 50%; border: 3px solid rgba(255,255,255,0.2); }
.ds-author-verified { position: absolute; bottom: -2px; left: -2px; width: 1.5rem; height: 1.5rem; background: var(--accent-brand); border: 2px solid var(--navy-900); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; }
.ds-author-info { flex: 1; min-width: 0; }
.ds-author-name { font-size: var(--text-xl); font-weight: 800; color: #fff; margin-bottom: 0.25rem; }
.ds-author-role-text { font-size: var(--text-sm); color: var(--accent-warning); font-weight: 600; margin-bottom: 0.5rem; }
.ds-author-bio-text { font-size: var(--text-sm); color: rgba(255,255,255,0.8); line-height: 1.625; }
.ds-author-stats-row { display: flex; gap: 1.5rem; margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,0.1); }
.ds-author-stat { text-align: center; }
.ds-author-stat .num { font-size: var(--text-lg); font-weight: 800; color: #fff; }
.ds-author-stat .label { font-size: var(--text-xs); color: rgba(255,255,255,0.6); }

/* === Generic Page (About) === */
.ds-page-container { padding: 1rem 1rem 2rem; }
.ds-page-header { margin-bottom: 1.5rem; }
.ds-page-title { font-size: var(--text-2xl); font-weight: 800; }
.ds-page-featured { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 1.5rem; aspect-ratio: 16/9; }
.ds-page-featured img { width: 100%; height: 100%; object-fit: cover; }
.ds-page-body { font-size: var(--text-md); line-height: var(--leading-loose); max-width: 48rem; }
.ds-page-body p { margin-bottom: 1.25rem; }
.ds-page-body h2 { font-size: var(--text-xl); margin: 1.5rem 0 0.5rem; }

.ds-about-team { margin-top: 3rem; }
.ds-team-card { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 1.5rem; background: var(--bg-elevated); border: 1px solid var(--border-default); border-radius: var(--radius-lg); transition: var(--transition-all); text-decoration: none; color: inherit; }
.ds-team-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.ds-team-avatar { width: 4rem; height: 4rem; border-radius: 50%; border: 2px solid var(--border-default); margin-bottom: 0.75rem; }
.ds-team-name { font-size: var(--text-base); font-weight: 700; margin-bottom: 0.25rem; }
.ds-team-role { font-size: var(--text-xs); color: var(--accent-brand); font-weight: 600; margin-bottom: 0.375rem; }
.ds-team-count { font-size: var(--text-xs); color: var(--text-tertiary); }

/* === Contact Page === */
.ds-contact-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 768px) { .ds-contact-grid { grid-template-columns: 1fr 1fr; } }
.ds-contact-info { }
.ds-contact-details { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 1.25rem; }
.ds-contact-item { display: flex; gap: 0.75rem; align-items: flex-start; }
.ds-contact-item svg { color: var(--accent-warning); flex-shrink: 0; margin-top: 0.125rem; }
.ds-contact-label { font-size: var(--text-xs); color: var(--text-tertiary); font-weight: 600; margin-bottom: 0.125rem; }
.ds-contact-value { font-size: var(--text-sm); color: var(--text-primary); font-weight: 600; }

.ds-contact-form-wrap { background: var(--bg-elevated); border: 1px solid var(--border-default); border-radius: var(--radius-lg); padding: 1.5rem; }
.ds-contact-form p { margin-bottom: 1rem; }
.ds-contact-form label { display: block; font-size: var(--text-xs); font-weight: 700; color: var(--text-secondary); margin-bottom: 0.375rem; }
.ds-contact-form .input { width: 100%; }
.ds-contact-form textarea.input { resize: vertical; min-height: 8rem; }

/* === Mobile Fixes for DS Pages === */
@media (max-width: 767px) {
    .ds-article-title { font-size: var(--text-xl); }
    .ds-article-meta { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
    .ds-author-box { flex-direction: column; }
    .ds-author-hero-inner { flex-direction: column; text-align: center; }
    .ds-author-stats-row { justify-content: center; }
    .ds-404-code { font-size: 4rem; }
    .ds-contact-grid { gap: 1.5rem; }
    .ds-search-form { flex-direction: column; }
}

/* ===========================================================================
   v3.1 — PREMIUM COMPONENT REDESIGN
   =========================================================================== */

/* === Header === */
.ds-topbar { background: var(--navy-900); color: rgba(255,255,255,0.6); font-size: var(--text-xs); }
.ds-topbar-inner { display: flex; align-items: center; justify-content: space-between; padding: 0.375rem 0; gap: 0.5rem; }
.ds-topbar-left { display: flex; align-items: center; gap: 0.5rem; }
.ds-topbar-right { display: flex; align-items: center; gap: 0.75rem; }
.ds-topbar-right a { color: rgba(255,255,255,0.6); transition: var(--transition-color); }
.ds-topbar-right a:hover { color: #fff; }
.ds-topbar-sep { color: rgba(255,255,255,0.2); }
.ds-topbar-live { display: flex; align-items: center; gap: 0.25rem; }
.ds-topbar .live-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--green-500); animation: pulse-dot 1.5s infinite; }
@media (max-width: 640px) { .ds-topbar-right { display: none; } .ds-topbar-sep { display: none; } }

.ds-header-main { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; height: 3.5rem; }
@media (min-width: 1024px) { .ds-header-main { height: 4rem; } }

.site-branding { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }
.ds-logo-box { width: 2.5rem; height: 2.5rem; border-radius: var(--radius-md); background: var(--navy-900); color: #fff; font-weight: 800; font-size: 0.875rem; display: flex; align-items: center; justify-content: center; position: relative; }
.ds-logo-box::before { content: ''; position: absolute; top: -3px; left: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-breaking); }
.ds-brand-text { line-height: 1.1; }
.ds-site-title { font-size: 1.125rem; font-weight: 800; color: var(--text-primary); margin: 0; }
@media (min-width: 768px) { .ds-site-title { font-size: 1.25rem; } }
.ds-site-title a { color: inherit; text-decoration: none; }
.ds-site-desc { font-size: 0.5625rem; color: var(--text-tertiary); letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; margin: 0; }
@media (max-width: 480px) { .ds-site-desc { display: none; } }

.ds-header-actions { display: flex; align-items: center; gap: 0.25rem; }
.ds-icon-btn { width: 2.25rem; height: 2.25rem; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; color: var(--text-secondary); transition: var(--transition-color); }
.ds-icon-btn:hover { background: var(--bg-muted); color: var(--text-primary); }
.ds-cta { gap: 0.375rem; }
.ds-cta-text { font-size: var(--text-xs); }
@media (max-width: 640px) { .ds-cta-text { display: none; } .ds-cta { padding: 0.5rem; } }

.site-header { background: var(--bg-elevated); border-bottom: 1px solid var(--border-default); position: sticky; top: 0; z-index: var(--z-header); transition: box-shadow var(--duration-normal) var(--ease-out); }
.site-header.scrolled { box-shadow: var(--shadow-sm); backdrop-filter: blur(8px); background: rgba(255,255,255,0.92); }
body.dark-mode .site-header.scrolled { background: rgba(15,23,42,0.92); }

.ds-menu-toggle { display: flex; }
@media (min-width: 1024px) { .ds-menu-toggle { display: none; } }

/* Nav */
.main-nav { display: none; align-items: center; flex: 1; justify-content: center; }
@media (min-width: 1024px) { .main-nav { display: flex; } }
.main-nav ul { display: flex; gap: 0.125rem; list-style: none; }
.main-nav a { display: block; padding: 0.375rem 0.625rem; font-size: var(--text-sm); font-weight: 700; color: var(--text-secondary); position: relative; transition: var(--transition-color); }
.main-nav a:hover, .main-nav .current-menu-item > a { color: var(--accent-brand); }
.main-nav a::after { content: ''; position: absolute; bottom: 0; right: 0.625rem; left: 0.625rem; height: 2px; background: var(--accent-brand); border-radius: 999px; transform: scaleX(0); transform-origin: right; transition: transform var(--duration-normal) var(--ease-out); }
.main-nav a:hover::after { transform: scaleX(1); transform-origin: left; }

/* === Premium News Card === */
.ds-news-card { background: var(--bg-elevated); border: 1px solid var(--border-default); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; height: 100%; transition: var(--transition-transform), var(--transition-shadow), border-color var(--duration-fast) var(--ease-out); }
.ds-news-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: var(--border-strong); }
.ds-card-image { position: relative; aspect-ratio: 16/9; overflow: hidden; background: var(--bg-muted); display: block; }
.ds-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms var(--ease-out); }
.ds-news-card:hover .ds-card-image img { transform: scale(1.05); }
.ds-card-badges { position: absolute; top: 0.5rem; right: 0.5rem; display: flex; gap: 0.25rem; flex-wrap: wrap; }
.ds-card-body { padding: 0.625rem 0.75rem 0.75rem; display: flex; flex-direction: column; flex: 1; }
.ds-card-title { font-size: var(--text-sm); font-weight: 700; line-height: 1.4; margin: 0 0 0.375rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: var(--transition-color); }
.ds-news-card:hover .ds-card-title { color: var(--accent-brand); }
.ds-card-title a { color: inherit; text-decoration: none; }
.ds-card-meta { display: flex; align-items: center; gap: 0.375rem; font-size: var(--text-2xs); color: var(--text-tertiary); margin-top: auto; }
.ds-card-author { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 7rem; }
.ds-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--text-tertiary); opacity: 0.4; flex-shrink: 0; }

/* === Premium Horizontal Card === */
.ds-h-card { display: flex; gap: 0.625rem; padding: 0.5rem; background: var(--bg-elevated); border: 1px solid var(--border-default); border-radius: var(--radius-md); transition: var(--transition-all); height: 100%; }
.ds-h-card:hover { border-color: var(--accent-brand); transform: translateX(-2px); box-shadow: var(--shadow-sm); }
.ds-h-card-thumb { position: relative; width: 5rem; aspect-ratio: 4/3; border-radius: var(--radius-md); overflow: hidden; background: var(--bg-muted); flex-shrink: 0; display: block; }
@media (min-width: 640px) { .ds-h-card-thumb { width: 6rem; } }
.ds-h-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms var(--ease-out); }
.ds-h-card:hover .ds-h-card-thumb img { transform: scale(1.05); }
.ds-breaking-dot { position: absolute; top: 4px; right: 4px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-breaking); animation: pulse-dot 1.5s infinite; }
.ds-h-card-body { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.ds-h-card-cats { margin-bottom: 0.25rem; }
.ds-h-card-title { font-size: var(--text-xs); font-weight: 700; line-height: 1.35; margin: 0 0 0.25rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: var(--transition-color); }
.ds-h-card:hover .ds-h-card-title { color: var(--accent-brand); }
.ds-h-card-title a { color: inherit; text-decoration: none; }
.ds-h-card-meta { display: flex; align-items: center; gap: 0.375rem; font-size: var(--text-2xs); color: var(--text-tertiary); margin-top: auto; }

/* === Search Panel === */
.search-panel { max-width: 40rem; margin: 4rem 1rem 0; background: var(--bg-elevated); border-radius: var(--radius-xl); box-shadow: var(--shadow-2xl); overflow: hidden; }
.search-input-row { display: flex; align-items: center; gap: 0.625rem; padding: 0.875rem 1rem; border-bottom: 1px solid var(--border-default); }
.search-input-row input { flex: 1; background: transparent; border: 0; outline: none; font-size: var(--text-md); color: var(--text-primary); }
.search-input-row input::placeholder { color: var(--text-tertiary); }
.ds-search-esc { background: var(--bg-muted); color: var(--text-tertiary); padding: 0.25rem 0.5rem; border-radius: var(--radius-sm); font-size: var(--text-2xs); font-weight: 700; }
.search-suggestions { padding: 1rem; max-height: 60vh; overflow-y: auto; }
.search-suggestions .label { font-size: var(--text-2xs); font-weight: 700; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.625rem; }
.search-suggestion-chips { display: flex; flex-wrap: wrap; gap: 0.375rem; }
.search-suggestion-chips a { padding: 0.25rem 0.625rem; border-radius: var(--radius-full); background: var(--bg-muted); font-size: var(--text-xs); font-weight: 500; transition: var(--transition-color); }
.search-suggestion-chips a:hover { background: var(--accent-brand); color: #fff; }

/* === Premium Footer === */
.ds-footer { background: var(--navy-900); color: rgba(255,255,255,0.7); margin-top: auto; }
.ds-footer-top { padding: 2.5rem 0; }
@media (min-width: 768px) { .ds-footer-top { padding: 3rem 0; } }
.ds-footer-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 768px) { .ds-footer-grid { grid-template-columns: 2fr 1fr 1fr 1.5fr; } }
.ds-footer-brand-row { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1rem; }
.ds-footer-logo { width: 2.5rem; height: 2.5rem; border-radius: var(--radius-md); background: #fff; color: var(--navy-900); font-weight: 800; display: flex; align-items: center; justify-content: center; position: relative; }
.ds-footer-logo::before { content: ''; position: absolute; top: -3px; left: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-breaking); }
.ds-footer-name { font-size: var(--text-lg); font-weight: 800; color: #fff; }
.ds-footer-tagline { font-size: var(--text-2xs); color: rgba(255,255,255,0.5); letter-spacing: 0.1em; text-transform: uppercase; }
.ds-footer-about { font-size: var(--text-sm); color: rgba(255,255,255,0.6); line-height: 1.625; margin-bottom: 1rem; }
.ds-footer .footer-social a { width: 2.25rem; height: 2.25rem; border-radius: var(--radius-md); background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; transition: var(--transition-all); }
.ds-footer .footer-social a:hover { transform: translateY(-2px); }
.ds-footer .footer-social a.telegram:hover { background: #0088cc; }
.ds-footer .footer-social a.instagram:hover { background: #E1306C; }
.ds-footer .footer-social a.twitter:hover { background: #000; }
.ds-footer .footer-social a.youtube:hover { background: #FF0000; }

.ds-footer-title { font-size: var(--text-sm); font-weight: 700; color: #fff; margin-bottom: 0.875rem; padding-bottom: 0.375rem; border-bottom: 1px solid rgba(255,255,255,0.08); display: flex; align-items: center; gap: 0.375rem; }
.ds-footer-title .bar { width: 3px; height: 0.875rem; border-radius: 999px; }
.ds-footer-col ul li { margin-bottom: 0.5rem; }
.ds-footer-col ul li a { font-size: var(--text-xs); color: rgba(255,255,255,0.6); display: flex; align-items: center; gap: 0.375rem; transition: var(--transition-color); }
.ds-footer-col ul li a:hover { color: var(--accent-warning); }
.ds-footer-col ul li a .dot { width: 5px; height: 5px; border-radius: 50%; }
.ds-footer-col .footer-contact li { display: flex; align-items: flex-start; gap: 0.625rem; margin-bottom: 0.875rem; color: rgba(255,255,255,0.6); font-size: var(--text-xs); }
.ds-footer-col .footer-contact li svg { color: var(--accent-warning); flex-shrink: 0; margin-top: 0.125rem; }
.ds-footer-hours { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: var(--radius-md); padding: 0.75rem; margin-top: 1rem; }
.ds-footer-hours .label { font-size: var(--text-2xs); color: rgba(255,255,255,0.6); margin-bottom: 0.25rem; }
.ds-footer-hours .value { font-size: var(--text-xs); font-weight: 700; }

.ds-footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); }
.ds-footer-bottom-inner { display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.875rem 0; font-size: var(--text-xs); color: rgba(255,255,255,0.5); }
@media (min-width: 768px) { .ds-footer-bottom-inner { flex-direction: row; } }
.ds-footer-copy { display: flex; align-items: center; gap: 0.375rem; }
.ds-footer-copy .live-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--green-500); animation: pulse-dot 1.5s infinite; }
.ds-footer-links { display: flex; gap: 0.875rem; }
.ds-footer-links a { color: rgba(255,255,255,0.5); transition: var(--transition-color); }
.ds-footer-links a:hover { color: #fff; }

/* === Premium Widget Styles === */
.widget { background: var(--bg-elevated); border: 1px solid var(--border-default); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 0.875rem; }
.widget-title { display: flex; align-items: center; gap: 0.375rem; padding: 0.625rem 0.875rem; background: var(--navy-900); color: #fff; font-weight: 700; font-size: var(--text-sm); }
.widget-title svg { color: var(--accent-warning); width: 1rem; height: 1rem; }
.widget-title h2, .widget-title h3 { font-size: var(--text-sm); margin: 0; color: #fff; }
.widget-body { padding: 0.5rem 0.625rem; }

/* Market widget */
.market-tabs { display: flex; gap: 0.25rem; padding: 0.375rem; border-bottom: 1px solid var(--border-default); background: var(--bg-muted); }
.market-tab { flex: 1; padding: 0.375rem 0.5rem; border-radius: var(--radius-sm); font-size: var(--text-2xs); font-weight: 700; color: var(--text-tertiary); transition: var(--transition-color); }
.market-tab.active { background: var(--bg-elevated); color: var(--text-primary); box-shadow: var(--shadow-xs); }
.market-tab:hover:not(.active) { color: var(--text-primary); }
.market-row { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; padding: 0.5rem 0.375rem; border-radius: var(--radius-sm); transition: var(--transition-color); }
.market-row:hover { background: var(--bg-muted); }
.market-symbol { font-weight: 700; font-size: var(--text-xs); }
.market-name { font-size: var(--text-2xs); color: var(--text-tertiary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.market-price { font-weight: 700; font-size: var(--text-xs); font-variant-numeric: tabular-nums; }
.market-unit { font-size: var(--text-2xs); color: var(--text-tertiary); }
.market-change { font-size: var(--text-2xs); font-weight: 700; display: inline-flex; align-items: center; gap: 0.125rem; font-variant-numeric: tabular-nums; }
.market-change.up { color: var(--green-500); }
.market-change.down { color: var(--accent-breaking); }

/* Most read widget */
.most-read-item { display: flex; gap: 0.5rem; padding: 0.5rem 0; border-bottom: 1px solid var(--border-default); align-items: flex-start; transition: var(--transition-color); border-radius: var(--radius-sm); }
.most-read-item:last-child { border-bottom: 0; }
.most-read-item:hover { background: var(--bg-muted); }
.most-read-num { flex-shrink: 0; width: 1.5rem; height: 1.5rem; border-radius: var(--radius-sm); background: var(--navy-900); color: #fff; font-size: var(--text-2xs); font-weight: 800; display: flex; align-items: center; justify-content: center; font-variant-numeric: tabular-nums; transition: var(--transition-all); }
.most-read-item:hover .most-read-num { background: var(--accent-brand); }
.most-read-title { font-weight: 700; font-size: var(--text-xs); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: var(--transition-color); }
.most-read-item:hover .most-read-title { color: var(--accent-brand); }
.most-read-meta { display: flex; align-items: center; gap: 0.375rem; margin-top: 0.25rem; font-size: var(--text-2xs); color: var(--text-tertiary); }

/* Tags widget */
.tags-cloud { display: flex; flex-wrap: wrap; gap: 0.375rem; }
.tags-cloud a { padding: 0.25rem 0.625rem; border-radius: var(--radius-full); background: var(--bg-muted); font-size: var(--text-xs); font-weight: 500; transition: var(--transition-all); }
.tags-cloud a:hover { background: var(--accent-brand); color: #fff; transform: translateY(-1px); }

/* === Pagination === */
.pagination { display: flex; align-items: center; justify-content: center; gap: 0.25rem; margin-top: 2rem; }
.pagination .page-numbers { display: flex; align-items: center; justify-content: center; min-width: 2rem; height: 2rem; padding: 0 0.5rem; font-size: var(--text-xs); font-weight: 700; border-radius: var(--radius-sm); border: 1px solid var(--border-default); background: var(--bg-elevated); color: var(--text-secondary); transition: var(--transition-all); text-decoration: none; }
.pagination .page-numbers:hover { border-color: var(--accent-brand); color: var(--accent-brand); }
.pagination .page-numbers.current { background: var(--navy-900); color: #fff; border-color: var(--navy-900); }
.pagination .page-numbers.dots { border: 0; background: transparent; }

/* === Breadcrumbs === */
.breadcrumbs { display: flex; align-items: center; gap: 0.375rem; font-size: var(--text-2xs); color: var(--text-tertiary); margin-bottom: 0.875rem; flex-wrap: wrap; }
.breadcrumbs a { color: var(--text-tertiary); transition: var(--transition-color); }
.breadcrumbs a:hover { color: var(--accent-brand); }
.breadcrumbs .sep { color: rgba(100,116,139,0.5); }
.breadcrumbs .current { color: var(--text-primary); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* === Breaking Bar === */
.breaking-bar { background: var(--navy-900); color: #fff; border-bottom: 1px solid rgba(255,255,255,0.08); }
.breaking-inner { display: flex; align-items: stretch; height: 2.5rem; }
.breaking-label { flex-shrink: 0; display: flex; align-items: center; gap: 0.375rem; padding: 0 0.875rem; background: var(--accent-breaking); font-weight: 800; font-size: var(--text-2xs); position: relative; overflow: hidden; }
.breaking-label .dot { width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: pulse-dot 1.5s infinite; }
.breaking-ticker { flex: 1; overflow: hidden; display: flex; align-items: center; position: relative; }
.breaking-ticker-track { display: inline-flex; white-space: nowrap; animation: ticker-scroll 40s linear infinite; }
.breaking-ticker:hover .breaking-ticker-track { animation-play-state: paused; }
.breaking-ticker a { display: inline-flex; align-items: center; gap: 0.375rem; padding: 0 1rem; font-size: var(--text-xs); color: rgba(255,255,255,0.85); transition: var(--transition-color); }
.breaking-ticker a:hover { color: #fff; }
.breaking-ticker a .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--accent-breaking); flex-shrink: 0; }
.breaking-ticker a .time { color: rgba(255,255,255,0.4); font-size: var(--text-2xs); }
.breaking-ticker a .sep { color: rgba(255,255,255,0.15); margin: 0 0.375rem; }
.live-clock { display: none; align-items: center; gap: 0.375rem; padding: 0 0.875rem; border-right: 1px solid rgba(255,255,255,0.08); font-size: var(--text-2xs); color: rgba(255,255,255,0.5); }
@media (min-width: 768px) { .live-clock { display: flex; } }
.breaking-edge-fade { position: absolute; top: 0; bottom: 0; width: 3rem; pointer-events: none; z-index: 1; }
.breaking-edge-fade.right { right: 0; background: linear-gradient(to left, var(--navy-900), transparent); }
.breaking-edge-fade.left { left: 0; background: linear-gradient(to right, var(--navy-900), transparent); }

/* === Mobile Menu === */
.mobile-menu { position: fixed; inset: 0; z-index: var(--z-modal); display: none; }
.mobile-menu.open { display: block; }
.mobile-menu-backdrop { position: absolute; inset: 0; background: rgba(10,14,26,0.6); backdrop-filter: blur(8px); animation: fade-in 0.3s; }
.mobile-menu-panel { position: absolute; top: 0; right: 0; bottom: 0; width: 20rem; max-width: 85vw; background: var(--bg-elevated); box-shadow: var(--shadow-2xl); padding: 1rem; overflow-y: auto; animation: slide-in-right 0.3s var(--ease-out); }
.mobile-menu-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.25rem; }
.mobile-menu-header .brand { display: flex; align-items: center; gap: 0.5rem; }
.mobile-menu-header .logo-box { width: 2.25rem; height: 2.25rem; border-radius: var(--radius-md); background: var(--navy-900); color: #fff; font-weight: 800; font-size: var(--text-xs); display: flex; align-items: center; justify-content: center; }
.mobile-menu-header .title { font-weight: 800; font-size: var(--text-md); }
.mobile-menu-nav ul { list-style: none; }
.mobile-menu-nav a { display: flex; align-items: center; gap: 0.625rem; padding: 0.625rem; border-radius: var(--radius-md); font-weight: 700; font-size: var(--text-sm); transition: var(--transition-color); }
.mobile-menu-nav a:hover { background: var(--bg-muted); }
.mobile-menu-cta { display: flex; align-items: center; justify-content: center; gap: 0.5rem; background: var(--accent-brand); color: #fff; font-weight: 700; padding: 0.75rem; border-radius: var(--radius-md); margin-top: 1.25rem; }

/* === Back to top === */
.back-to-top { position: fixed; bottom: 1rem; left: 1rem; z-index: var(--z-dropdown); width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--navy-900); color: #fff; box-shadow: var(--shadow-lg); display: flex; align-items: center; justify-content: center; opacity: 0; transform: translateY(0.5rem); pointer-events: none; transition: var(--transition-all); }
.back-to-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover { background: var(--accent-brand); transform: translateY(-2px) scale(1.05); }
.back-to-top .progress-ring { position: absolute; inset: 0; transform: rotate(-90deg); }
.back-to-top .progress-ring circle { fill: none; stroke-width: 2; }
.back-to-top .progress-ring .bg { stroke: rgba(255,255,255,0.2); }
.back-to-top .progress-ring .fg { stroke: var(--accent-warning); transition: stroke-dashoffset 150ms; }

/* ===========================================================================
   v3.3 — PREMIUM FEATURES CSS
   =========================================================================== */

/* === Floating Sticky Share === */
.ds-floating-share {
    position: fixed; top: 50%; right: 0.75rem; transform: translateY(-50%);
    z-index: var(--z-dropdown); display: none; flex-direction: column; gap: 0.375rem;
    padding: 0.5rem; background: var(--bg-elevated); border: 1px solid var(--border-default);
    border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
}
@media (min-width: 1280px) { .ds-floating-share { display: flex; } }
.ds-floating-share a, .ds-floating-share button {
    width: 2.25rem; height: 2.25rem; border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-secondary); transition: var(--transition-all);
    background: var(--bg-muted); border: 0; cursor: pointer;
}
.ds-floating-share a:hover { transform: translateX(-3px); color: var(--accent-brand); background: var(--blue-50); }
.ds-floating-share button:hover { transform: translateX(-3px); color: var(--accent-brand); background: var(--blue-50); }
.ds-share-count {
    text-align: center; font-size: var(--text-2xs); font-weight: 700;
    color: var(--text-tertiary); padding-top: 0.25rem; border-top: 1px solid var(--border-default);
}

/* === Bookmark Button === */
.ds-bookmark-btn {
    position: absolute; top: 0.375rem; left: 0.375rem; z-index: 2;
    width: 1.75rem; height: 1.75rem; border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.85); backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-secondary); transition: var(--transition-all);
    border: 0; cursor: pointer; opacity: 0;
}
.ds-news-card:hover .ds-bookmark-btn, .ds-h-card:hover .ds-bookmark-btn { opacity: 1; }
.ds-bookmark-btn:hover { background: var(--accent-warning); color: #fff; transform: scale(1.1); }

/* === Recently Updated Widget === */
.ds-nl-count-widget {
    text-align: center; padding: 1.5rem 1rem; background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
    border-radius: var(--radius-lg); color: #fff;
}
.ds-nl-count-icon { width: 3rem; height: 3rem; margin: 0 auto 0.75rem; border-radius: var(--radius-md); background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; }
.ds-nl-count-icon svg { color: var(--accent-warning); }
.ds-nl-count-num { font-size: var(--text-2xl); font-weight: 800; margin-bottom: 0.25rem; }
.ds-nl-count-label { font-size: var(--text-xs); color: rgba(255,255,255,0.7); }

/* === Sticky Sidebar Enhancement === */
@media (min-width: 1024px) {
    .sticky-sidebar {
        position: sticky; top: 5rem;
        max-height: calc(100vh - 6rem); overflow-y: auto;
        scrollbar-width: thin; padding-left: 0.25rem;
    }
    .sticky-sidebar::-webkit-scrollbar { width: 3px; }
    .sticky-sidebar::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 999px; }
}

/* === Reading Progress Enhancement === */
.reading-progress { position: fixed; top: 0; inset-inline: 0; height: 3px; z-index: var(--z-header); pointer-events: none; }
.reading-progress .bar { height: 100%; background: linear-gradient(to left, var(--accent-brand), var(--accent-warning), var(--accent-breaking)); width: 0; transition: width 100ms linear; box-shadow: 0 0 4px rgba(37,99,235,0.4); }

/* === Breaking News Badge Enhancement === */
.badge-breaking { animation: glow-pulse 2s infinite; }
@keyframes glow-pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(220,38,38,0.4); } 50% { box-shadow: 0 0 0 6px rgba(220,38,38,0); } }

/* === Mobile Floating Share === */
@media (max-width: 1279px) {
    .ds-floating-share { display: none !important; }
}

/* === Premium Card Enhancement === */
.ds-news-card { position: relative; }
.ds-news-card .ds-card-image { position: relative; }
.ds-news-card::after {
    content: ''; position: absolute; top: 0; right: 0; width: 0; height: 3px;
    background: var(--accent-brand); transition: width var(--duration-normal) var(--ease-out);
    border-radius: 0 var(--radius-lg) 0 0;
}
.ds-news-card:hover::after { width: 100%; }

/* ===========================================================================
   v3.4.0 PERFORMANCE OPTIMIZATIONS
   - content-visibility: auto for long list items (saves render time)
   - scroll-margin-top for heading anchors (TOC navigation offset)
   - will-change hints for animated elements (GPU acceleration)
   - Print styles
   - Reduced-data on mobile
   =========================================================================== */

/* content-visibility: auto — lets the browser skip rendering offscreen
   sections until they're scrolled into view. Massive win for pages with
   many news cards. */
.eh-news-grid > .ds-news-card,
.eh-news-grid > .ds-h-card,
.eh-news-grid > article {
    content-visibility: auto;
    contain-intrinsic-size: 1px 380px; /* approximate card height */
}

/* Same for sidebar widgets — skip rendering until scrolled to. */
.sidebar .widget,
.ds-footer-col {
    content-visibility: auto;
    contain-intrinsic-size: 1px 240px;
}

/* scroll-margin-top: when clicking TOC links or anchor links, the heading
   should not be hidden behind the sticky header. */
.toc-heading,
h2[id], h3[id] {
    scroll-margin-top: 100px;
}

/* will-change hints — only for elements that actually animate.
   Avoid over-using will-change (it consumes GPU memory). */
.site-header,
.back-to-top,
.ds-news-card,
.ds-h-card,
.reading-progress .bar {
    will-change: transform, opacity;
}

/* Disable will-change on hover for cards (we don't need GPU acceleration
   on every card; let the browser optimize). */
.ds-news-card:hover,
.ds-h-card:hover {
    will-change: auto;
}

/* Print styles — clean print output for articles. */
@media print {
    .site-header,
    .site-footer,
    .breaking-bar,
    .ds-floating-share,
    .back-to-top,
    .reading-progress,
    .reading-settings,
    .mobile-menu,
    .search-overlay,
    .sidebar,
    .newsletter-section,
    .video-section,
    .eh-trending,
    .ds-related-section,
    .ad-slot,
    .load-more-wrapper,
    .comments-area {
        display: none !important;
    }
    body {
        background: #fff !important;
        color: #000 !important;
        font-size: 12pt;
    }
    .ds-article-container {
        max-width: 100% !important;
    }
    .ds-article-hero-img img,
    .ds-article-body img {
        max-width: 100% !important;
        height: auto !important;
    }
    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 0.85em;
        color: #555;
    }
    /* Don't show URL for internal anchor links. */
    a[href^="#"]::after,
    a[href^="javascript:"]::after {
        content: "";
    }
    h1, h2, h3 {
        page-break-after: avoid;
    }
    img, table, figure {
        page-break-inside: avoid;
    }
}

/* Reduce motion: disable all transitions/animations for users who prefer
   reduced motion (accessibility). */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Save-data: when user has data-saver enabled, skip background images
   and decorative gradients. */
@media (prefers-reduced-data: reduce) {
    .newsletter-section .bg-blob,
    .newsletter-section .grid-pattern,
    .video-section::before,
    .video-section::after {
        display: none !important;
    }
    img {
        filter: none !important;
    }
}

/* Hover-only devices (touch): disable hover-only effects that would
   "stick" on tap. */
@media (hover: none) {
    .ds-news-card:hover::after,
    .ds-h-card:hover::after {
        width: 0 !important;
    }
    .ds-news-card:hover .ds-card-image img,
    .ds-h-card:hover .ds-h-card-thumb img {
        transform: none !important;
    }
}

/* Better focus-visible styles for keyboard navigation. */
*:focus-visible {
    outline: 2px solid var(--accent-brand, #2563eb);
    outline-offset: 2px;
    border-radius: 2px;
}

/* Remove outline for mouse users (but keep for keyboard). */
*:focus:not(:focus-visible) {
    outline: none;
}

/* Smooth scrolling for anchor links (respects reduced motion). */
html {
    scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}

/* Image rendering: optimize for photos. */
img,
picture {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Prevent layout shift from embedded content. */
iframe,
video,
.embed-container {
    max-width: 100%;
    aspect-ratio: 16 / 9;
}

/* Search results list — used by AJAX search dropdown. */
.search-results-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.search-result-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 0.5rem;
    transition: background 0.2s;
    text-decoration: none;
    color: inherit;
}
.search-result-item:hover {
    background: var(--color-muted, rgba(0, 0, 0, 0.04));
}

/* Loading spinner (used by AJAX). */
.animate-spin {
    animation: spin 1s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===========================================================================
   v3.4.1 AUDIT FIXES — Critical issues from multi-disciplinary review
   =========================================================================== */

/* === CRITICAL: Dark mode contrast fixes === */
/* --text-tertiary was not overridden in dark mode, yielding ~3.6:1 contrast */
body.dark-mode {
    --text-tertiary: #94A3B8;
}

/* Ticker time + live clock + footer bottom were too dim */
body.dark-mode .breaking-ticker a .time,
.dark-mode .breaking-ticker a .time { color: rgba(255, 255, 255, 0.7); }
body.dark-mode .live-clock,
.dark-mode .live-clock { color: rgba(255, 255, 255, 0.75); }
body.dark-mode .ds-footer-bottom-inner,
.dark-mode .ds-footer-bottom-inner { color: rgba(255, 255, 255, 0.75); }
body.dark-mode .breaking-ticker a .sep,
.dark-mode .breaking-ticker a .sep { color: rgba(255, 255, 255, 0.3); }

/* Light-mode ticker improvements */
.breaking-ticker a .time { color: rgba(255, 255, 255, 0.7); }
.live-clock { color: rgba(255, 255, 255, 0.75); }
.ds-footer-bottom-inner { color: rgba(255, 255, 255, 0.75); }
.breaking-ticker a .sep { color: rgba(255, 255, 255, 0.3); }

/* === CRITICAL: Remove will-change anti-pattern from cards === */
/* Having will-change on every card hoards GPU memory (20+ cards per page). */
.ds-news-card,
.ds-h-card {
    will-change: auto;
}
/* Only opt-in on hover, removed on transitionend (CSS can't do transitionend,
   but the browser will reclaim when no longer hovered). */
.ds-news-card:hover,
.ds-h-card:hover {
    will-change: transform;
}
/* Reveal elements: only will-change when not yet visible */
.reveal {
    will-change: auto;
}
.reveal:not(.visible) {
    will-change: opacity, transform;
}

/* === CRITICAL: Replace width animation with transform (perf) === */
/* Animating width causes layout recalculation every frame for every card. */
.ds-news-card::after {
    width: 100%;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--duration-normal) var(--ease-out);
}
.ds-news-card:hover::after {
    transform: scaleX(1);
}
@media (hover: none) {
    .ds-news-card::after { transform: scaleX(0); }
}

/* === CRITICAL: Fix content-visibility contain-intrinsic-size === */
/* 1px width causes layout shift when card renders. Use realistic width. */
.eh-news-grid > .ds-news-card,
.eh-news-grid > .ds-h-card,
.eh-news-grid > article {
    content-visibility: auto;
    contain-intrinsic-size: 320px 380px;
}
.sidebar .widget,
.ds-footer-col {
    content-visibility: auto;
    contain-intrinsic-size: 300px 240px;
}

/* === CRITICAL: Add prefers-contrast: more support === */
@media (prefers-contrast: more) {
    :root {
        --text-secondary: #1e293b;
        --text-tertiary: #334155;
        --border-default: #475569;
        --border-strong: #1e293b;
    }
    body.dark-mode {
        --text-secondary: #f1f5f9;
        --text-tertiary: #e2e8f0;
        --border-default: #cbd5e1;
        --border-strong: #f1f5f9;
    }
    *:focus-visible {
        outline: 3px solid currentColor;
        outline-offset: 3px;
    }
    a {
        text-decoration: underline;
        text-decoration-thickness: 2px;
    }
}

/* === HIGH: Restore link underlines (WCAG 1.4.1 F73) === */
/* Links were color-only — invisible to users who don't perceive color. */
.article-body a,
.ds-article-body a,
.comment-content a,
.ds-page-content a,
.breadcrumbs a,
.ds-related-item,
.most-read-item {
    text-decoration: underline;
    text-decoration-color: transparent;
    text-underline-offset: 2px;
    text-decoration-skip-ink: all;
    transition: text-decoration-color var(--duration-fast) var(--ease-out);
}
.article-body a:hover,
.ds-article-body a:hover,
.comment-content a:hover,
.ds-page-content a:hover,
.breadcrumbs a:hover,
.ds-related-item:hover,
.most-read-item:hover {
    text-decoration-color: currentColor;
}
/* Footer/nav links: persistent subtle underline */
.ds-footer-col a,
.footer-contact a,
.ds-footer-links a,
footer a {
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.25);
    text-underline-offset: 2px;
}
.ds-footer-col a:hover,
.footer-contact a:hover,
.ds-footer-links a:hover,
footer a:hover {
    text-decoration-color: rgba(255, 255, 255, 0.7);
}

/* === HIGH: 44px touch targets for all interactive elements === */
@media (max-width: 768px) {
    .reading-settings-btn,
    .cookie-consent-btn,
    .article-toc-toggle,
    .ds-search-esc,
    .market-tab,
    .cat-tab,
    .ds-icon-btn,
    .share-btn,
    .ds-share-copy,
    .ds-bookmark-btn {
        min-height: 44px;
        min-width: 44px;
    }
    .pagination .page-numbers {
        min-width: 44px;
        min-height: 44px;
    }
}

/* === HIGH: 320px breakpoint for very small phones === */
@media (max-width: 360px) {
    body { font-size: 15px; }
    .container { padding-inline: 0.75rem; }
    .ds-site-title { font-size: 1.125rem; }
    .ds-site-desc { display: none; }
    .ds-article-title { font-size: 1.25rem; }
    .ds-card-title { font-size: 0.875rem; }
    .eh-hero-title { font-size: 1.125rem; }
    .eh-side-title { font-size: 0.8125rem; }
    .eh-trending-title { font-size: 0.75rem; max-width: 100px; }
    .error-404 .code,
    .ds-404-code {
        font-size: clamp(4rem, 22vw, 6rem);
    }
    .newsletter-section { padding: 2rem 0; }
    .newsletter-form { flex-direction: column; }
    .newsletter-form input { width: 100%; }
}

/* === HIGH: Minimum 11px font sizes === */
/* 9-10px was used for labels, captions, units — below readable minimum */
.ds-site-desc { font-size: 0.6875rem; } /* 11px, was 9px */
.site-description { font-size: 0.6875rem; } /* 11px, was 10px */
.ds-search-esc { font-size: var(--text-xs); } /* 11px, was 10px */
.market-unit { font-size: 0.6875rem; } /* 11px, was 10px */
.news-card-author .role,
.ds-author-role,
.ds-author-box-role { font-size: 0.6875rem; } /* 11px, was 9px */
.comment-content .time { font-size: 0.6875rem; } /* 11px, was 10px */
.ds-topbar { font-size: 0.75rem; } /* 12px, was 10.4px on mobile */
.top-bar { font-size: 0.75rem; }

/* === HIGH: 404 responsive font === */
.error-404 .code,
.ds-404-code {
    font-size: clamp(4rem, 18vw, 8rem);
    line-height: 1;
}

/* === HIGH: Keyboard nav for dropdown menus (:focus-within) === */
.main-nav li:hover > .sub-menu,
.main-nav li:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.main-nav li:focus-within > a {
    color: var(--accent-brand, var(--color-brand));
}

/* === HIGH: Mega menu keyboard support === */
.main-nav .mega-menu-item:hover .mega-menu,
.main-nav .mega-menu-item:focus-within .mega-menu {
    display: grid;
}

/* === HIGH: Toggle button states (active, focus-visible) === */
.btn-primary:active,
.btn-secondary:active,
.btn-outline:active,
.btn-ghost:active,
.icon-btn:active,
.cat-tab:active,
.tags-cloud a:active,
.ds-news-card:active,
.back-to-top:active {
    transform: translateY(0) scale(0.98);
}
.back-to-top:active { transform: scale(0.92); }

/* === HIGH: Touch device — show bookmark button always === */
@media (hover: none) {
    .ds-bookmark-btn {
        opacity: 1;
    }
    .ds-news-card:hover h3,
    .ds-h-card:hover h3 {
        color: inherit;
    }
}

/* === HIGH: Reading settings + cookie consent target size on desktop too === */
.reading-settings-btn { min-height: 44px; min-width: 44px; }
.cookie-consent-btn { min-height: 44px; }

/* === HIGH: Mobile menu panel — logical positioning === */
.mobile-menu-panel {
    inset-inline-start: 0;
    right: auto;
    left: auto;
}
body.rtl .mobile-menu-panel {
    right: 0;
    left: auto;
}

/* === HIGH: Back-to-top — logical positioning === */
.back-to-top {
    inset-inline-end: 1rem;
    left: auto;
    right: auto;
}
body.rtl .back-to-top {
    right: 1rem;
    left: auto;
}

/* === HIGH: Floating share — END side in RTL (left in LTR) === */
.ds-floating-share {
    inset-inline-end: 0.75rem;
    right: auto;
    left: auto;
}
body.rtl .ds-floating-share {
    left: 0.75rem;
    right: auto;
}

/* === HIGH: Reading progress z-index above header === */
.reading-progress {
    z-index: calc(var(--z-header, 100) + 1);
}

/* === HIGH: Standardize scroll-margin-top to 100px === */
.toc-heading,
h2[id],
h3[id] {
    scroll-margin-top: 100px;
}

/* === HIGH: Cookie consent z-index from token === */
.cookie-consent {
    z-index: var(--z-toast, 400);
}

/* === MEDIUM: Forms — keep default outline as fallback === */
.ds-search-input:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--accent-brand, var(--color-brand));
    outline-offset: 2px;
}
.ds-search-input:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    box-shadow: 0 0 0 3px var(--blue-100, rgba(37, 99, 235, 0.1));
}

/* === MEDIUM: Removed image-rendering crisp-edges (jagged photos) === */
/* Kept only -webkit-optimize-contrast which is browser-optimized */
img,
picture {
    image-rendering: auto;
}

/* === MEDIUM: Remove user-select: none from images (allows copying charts) === */
img { user-select: text; }

/* === MEDIUM: iframe aspect-ratio — scope to actual embeds === */
iframe,
video,
.embed-container,
.wp-block-embed iframe,
.wp-block-embed-youtube iframe {
    max-width: 100%;
}
.wp-block-embed-aspect-16-9 .wp-block-embed__wrapper,
.embed-container {
    aspect-ratio: 16 / 9;
}

/* === MEDIUM: Search results dark mode === */
.search-result-item:hover {
    background: var(--bg-muted, rgba(0, 0, 0, 0.04));
}

/* === MEDIUM: Search input focus outline restored === */
.ds-search-input { outline: revert; }
.ds-search-input:focus { outline: none; }
.ds-search-input:focus-visible {
    outline: 2px solid var(--accent-brand, #2563eb);
    outline-offset: 2px;
}

/* === MEDIUM: Standardize backdrop-filter with -webkit prefix === */
.site-header.scrolled,
.mobile-menu-backdrop,
.search-panel,
.ds-bookmark-btn,
.cookie-consent,
.badge,
.search-input-row input,
.play-button-inner,
.newsletter-form input,
.mobile-menu-panel,
.search-overlay {
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}
.site-header.scrolled {
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

/* === MEDIUM: Firefox scrollbar styling === */
html {
    scrollbar-color: var(--navy-300, #cbd5e1) var(--bg-muted, #f1f5f9);
    scrollbar-width: thin;
}

/* === MEDIUM: Breadcrumb text size minimum === */
.breadcrumbs { font-size: var(--text-xs); }

/* === MEDIUM: Article body heading responsive sizes === */
.ds-article-body h2,
.article-body h2 {
    font-size: clamp(1.375rem, 2vw + 1rem, 1.875rem);
}
.ds-article-body h3,
.article-body h3 {
    font-size: clamp(1.125rem, 1vw + 0.875rem, 1.5rem);
}

/* === MEDIUM: Disable infinite animations on mobile (perf) === */
@media (max-width: 768px) {
    .newsletter-section .bg-blob,
    .video-section .bg-glow,
    .newsletter-icon {
        animation: none;
        display: none;
    }
    .play-button-inner::before { animation: none; }
    .bg-blob { display: none; }
}

/* === MEDIUM: Removed transition: all anti-patterns === */
.ds-h-card {
    transition: transform var(--duration-normal) var(--ease-out),
                box-shadow var(--duration-normal) var(--ease-out),
                border-color var(--duration-fast) var(--ease-out);
}
.video-card .play {
    transition: transform 500ms cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 500ms cubic-bezier(0.16, 1, 0.3, 1);
}
.ds-team-card {
    transition: transform var(--duration-normal) var(--ease-out),
                box-shadow var(--duration-normal) var(--ease-out);
}

/* === MEDIUM: Cookie consent dialog accessibility === */
.cookie-consent {
    role: dialog;
    aria-modal: true;
}

/* === MEDIUM: Comment form pending/closed notice classes === */
.ds-comment-pending {
    background: var(--accent-warning, var(--color-warning));
    color: #fff;
    padding: 0.5rem;
    border-radius: 0.375rem;
    margin-top: 0.5rem;
    font-size: 0.8125rem;
}
.ds-comment-closed {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary, var(--color-muted-foreground));
}

/* === MEDIUM: Comment form labels styling === */
.comment-form label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.375rem;
    color: var(--text-primary, var(--color-foreground));
}
.comment-form .required { color: var(--accent-breaking, var(--color-breaking)); }
.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-default, var(--color-border));
    border-radius: 0.5rem;
    background: var(--bg-card, var(--color-card));
    color: var(--text-primary, var(--color-foreground));
    font-family: inherit;
    font-size: 0.9375rem;
    transition: border-color var(--duration-fast) var(--ease-out),
                box-shadow var(--duration-fast) var(--ease-out);
}
.comment-form input:focus,
.comment-form textarea:focus {
    border-color: var(--accent-brand, var(--color-brand));
    box-shadow: 0 0 0 3px var(--blue-100, rgba(37, 99, 235, 0.1));
    outline: none;
}

/* === MEDIUM: Search results list styling (AJAX dropdown) === */
.search-results-list { gap: var(--space-1, 4px); }
.search-result-item {
    background: transparent;
    border: none;
    text-decoration: none;
    color: inherit;
}

/* === LOW: Standardize keyframe names === */
@keyframes eghtesad24-spin {
    to { transform: rotate(360deg); }
}
.animate-spin {
    animation: eghtesad24-spin 1s linear infinite;
}

/* === LOW: Removed universal margin/padding reset side effects === */
/* Restore default margins for content paragraphs (was nuked by * reset) */
.article-body p,
.ds-article-body p {
    margin-bottom: 1.25rem;
}
.article-body p:last-child,
.ds-article-body p:last-child {
    margin-bottom: 0;
}

/* === LOW: Disable hover transforms on reduced motion === */
@media (prefers-reduced-motion: reduce) {
    .ds-news-card:hover::after,
    .ds-news-card:hover .ds-card-image img,
    .ds-h-card:hover .ds-h-card-thumb img,
    .tags-cloud a:hover,
    .footer-social a:hover,
    .btn-primary:hover,
    .btn-secondary:hover,
    .btn-outline:hover,
    .back-to-top:hover {
        transform: none;
    }
    html { scroll-behavior: auto; }
}

/* === LOW: Removed border-radius from global focus outline === */
*:focus-visible {
    outline: 2px solid var(--accent-brand, #2563eb);
    outline-offset: 2px;
}

/* === LOW: Blockquote logical properties (RTL-safe) === */
.article-body blockquote,
.ds-article-body blockquote {
    border-inline-start: 4px solid var(--accent-brand, var(--color-brand));
    border-right: 0;
    padding: 1.25rem 1.25rem 1.25rem 5rem;
    position: relative;
}
.article-body blockquote::before,
.ds-article-body blockquote::before {
    inset-inline-start: 0.75rem;
    left: auto;
    right: auto;
}
body.rtl .article-body blockquote,
body.rtl .ds-article-body blockquote {
    padding: 1.25rem 5rem 1.25rem 1.25rem;
}

/* === LOW: List padding logical === */
.article-body ul,
.article-body ol,
.ds-article-body ul,
.ds-article-body ol {
    padding-inline-start: 1.5rem;
    padding-right: 0;
}
.mobile-menu-nav .sub-menu {
    padding-inline-start: 1.5rem;
    padding-right: 0;
}
.article-toc-item.level-3 {
    padding-inline-start: 1.25rem;
    padding-right: 0;
}

/* === LOW: Newsletter stat border logical === */
.newsletter-stat:not(:last-child) {
    border-inline-end: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 0;
}

/* === LOW: Content width margin logical === */
.article-content-width-narrow,
.article-content-width-normal,
.article-content-width-wide {
    margin-inline: auto;
}

/* === LOW: Standardize nav active styles === */
.main-nav .current-menu-item > a {
    color: var(--accent-brand, var(--color-brand));
}
.mobile-menu-nav .current-menu-item > a {
    background: var(--bg-muted, var(--color-muted));
    color: var(--accent-brand, var(--color-brand));
}
