:root {
  color-scheme: dark;
  --bg: #111113;
  --surface: #18181b;
  --card: #1c1c1f;
  --card-hover: #222225;
  --border: #27272a;
  --border-strong: #3f3f46;
  --header-bg: rgba(22, 22, 24, 0.72);

  --text: #eff1f5;
  --text-70: rgba(239, 241, 245, 0.7);
  --text-80: rgba(239, 241, 245, 0.8);
  --muted: #9096a2;

  --gold: #e6af5b;
  --gold-dim: rgba(230, 175, 91, 0.12);
  --red: #ff5d52;
  --red-dim: rgba(255, 93, 82, 0.12);
  --blue: #2866e2;

  --font-sans: 'Inter Tight', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', monospace;

  --header-h: 64px;
  --ticker-h: 38px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

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

html {
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) var(--bg);
}

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-strong); }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; }

.mono { font-family: var(--font-mono); }

/* ===== TICKER BAR ===== */
#ticker-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  height: var(--ticker-h);
  overflow: hidden;
  position: sticky;
  top: var(--header-h);
  z-index: 98;
  display: flex;
  align-items: center;
}

.ticker-label {
  background: #0a0a0c;
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.18em;
  padding: 0 12px;
  white-space: nowrap;
  flex-shrink: 0;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 5px;
  border-right: 1px solid var(--border);
}

.ticker-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  animation: blink 1.4s ease-in-out infinite;
}

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

.ticker-track {
  display: flex;
  animation: ticker-scroll 55s linear infinite;
  white-space: nowrap;
}

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

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

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 20px;
  border-right: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 10px;
  height: var(--ticker-h);
}

.ticker-symbol { color: var(--text-80); font-weight: 600; }
.ticker-price { color: var(--text-70); }
.ticker-change.up { color: var(--gold); }
.ticker-change.down { color: var(--red); }

/* ===== HEADER ===== */
header {
  background: var(--header-bg);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
  position: sticky;
  top: 0;
  z-index: 99;
}

.header-inner {
  width: 100%;
  padding: 0 5%;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 28px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-mark {
  width: 32px;
  height: 32px;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 14px;
  color: var(--bg);
}

.logo-text {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  text-transform: uppercase;
}

.logo-text .dim { color: var(--muted); font-weight: 500; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.main-nav a {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-70);
  padding: 8px 14px;
  transition: color 0.15s;
}

.main-nav a:hover { color: var(--gold); }

.search-bar {
  position: relative;
  width: 220px;
  flex-shrink: 0;
}

.search-bar input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 8px 36px 8px 12px;
  color: var(--text);
  font-size: 13px;
  outline: none;
  transition: border-color 0.15s;
}

.search-bar input::placeholder { color: var(--muted); }
.search-bar input:focus { border-color: var(--gold); }

.search-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 13px;
  pointer-events: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.live-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.05em;
}

.live-dot {
  width: 6px;
  height: 6px;
  background: var(--gold);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* Language switcher */
.lang-switcher { position: relative; }

.lang-btn {
  background: transparent;
  border: 1px solid var(--border);
  padding: 7px 12px;
  color: var(--text-80);
  font-size: 12px;
  font-family: var(--font-mono);
  cursor: pointer;
  transition: border-color 0.15s;
}

.lang-btn:hover { border-color: var(--gold); }

.lang-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--card);
  border: 1px solid var(--border);
  min-width: 150px;
  display: none;
  z-index: 200;
  box-shadow: var(--shadow);
}

.lang-dropdown.open { display: block; }

.lang-option {
  padding: 10px 16px;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.15s;
  border-bottom: 1px solid var(--border);
}

.lang-option:last-child { border-bottom: none; }
.lang-option:hover { background: var(--surface); }
.lang-option.active { color: var(--gold); }

.btn-admin {
  background: transparent;
  border: 1px solid var(--border);
  padding: 7px 16px;
  color: var(--text-70);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: all 0.15s;
  text-transform: uppercase;
  white-space: nowrap;
}

.btn-admin:hover { border-color: var(--gold); color: var(--gold); }
.btn-admin.active { border-color: var(--gold); color: var(--gold); background: var(--gold-dim); }

/* ===== MAIN CONTAINER ===== */
.container {
  width: var(--container-width, 88%);
  max-width: 1680px;
  margin: 0 auto;
  padding: 0;
}

/* ===== HERO =====
   Customizable via CSS variables — override in a later stylesheet or inline <style>:
   --hero-bg-image : url('/img/hero-bg.jpg')  (optional photo/illustration, defaults to none)
   --hero-glow      : radial glow color (defaults to gold, low opacity)
   --hero-grid-opacity : visibility of the background grid lines (0 to disable)
*/
:root {
  --hero-bg-image: url('https://media.base44.com/images/public/6a5f44c5669fbc583d39a32a/cb81ad6ff_generated_51e810e4.png/v1/fill/w_1920,h_1080,al_c,q_90,usm_0.66_1.00_0.01,enc_webp,quality_auto/cb81ad6ff_generated_51e810e4.webp');
  --hero-glow: rgba(230, 175, 91, 0.10);
  --hero-grid-opacity: 0.05;
}

.hero {
  position: relative;
  padding: 70px 0 50px;
  text-align: left;
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: var(--hero-bg-image);
  background-size: cover;
  background-position: center;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, var(--bg) 0%, rgba(17,17,19,0.75) 55%, rgba(17,17,19,0.35) 100%),
    linear-gradient(to right, rgba(17,17,19,0.88) 0%, rgba(17,17,19,0.4) 55%, transparent 100%),
    linear-gradient(to right, rgba(39,39,42,0.45) 1px, transparent 1px);
  background-size: cover, cover, 6.25% 100%;
}

.hero-inner { width: var(--container-width, 88%); max-width: 1680px; margin: 0 auto; }

.hero-content {
  width: var(--hero-content-width, 50%);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 28px;
}

.hero-badge .diamond {
  display: inline-block;
  animation: pulse-dot 2s infinite;
}

.hero h1 {
  font-size: clamp(var(--hero-h1-size-mobile, 40px), var(--hero-h1-fluid, 9.5vw), var(--hero-h1-size, 120px));
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.04em;
  margin-bottom: 32px;
}

.hero p {
  font-size: 18px;
  color: var(--text-70);
  line-height: 1.6;
  margin-bottom: 40px;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 32px;
  height: 45px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s, background 0.15s;
  white-space: nowrap;
}

.btn-gold { background: var(--gold); color: var(--bg); border: none; }
.btn-gold:hover { opacity: 0.88; }

.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }

/* ===== SECTION HEADER (numbered) ===== */
.section {
  padding: 64px 0;
  border-top: 1px solid var(--border);
}

.section-head {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 36px;
}

.section-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
  flex-shrink: 0;
}

.section-titles h2 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}

.section-titles p {
  font-size: 14px;
  color: var(--muted);
}

/* ===== MARKET MATRIX ===== */
.matrix-tabs {
  display: flex;
  gap: 2px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.matrix-tab {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-70);
  padding: 0 20px;
  height: 40px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s;
}

.matrix-tab:hover { border-color: var(--border-strong); }
.matrix-tab.active { background: var(--gold); color: var(--bg); border-color: var(--gold); font-weight: 600; }

.matrix-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
}

.matrix-table { width: 100%; border-collapse: collapse; min-width: 640px; }

.matrix-table th {
  text-align: left;
  padding: 12px 20px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.matrix-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  vertical-align: middle;
}

.matrix-table tr:last-child td { border-bottom: none; }
.matrix-table tbody tr { transition: background 0.15s; }
.matrix-table tbody tr:hover { background: var(--surface); }

.mx-symbol { font-family: var(--font-mono); font-weight: 700; color: var(--text); }
.mx-name { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.mx-price { font-family: var(--font-mono); color: var(--text-80); }
.mx-change { font-family: var(--font-mono); font-weight: 600; }
.mx-change.up { color: var(--gold); }
.mx-change.down { color: var(--red); }

/* ===== TRENDING STRIP ===== */
.trending-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

@media (max-width: 860px) {
  .trending-strip { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .trending-strip { grid-template-columns: 1fr; }
}

.trend-item {
  background: var(--bg);
  padding: 16px 18px;
  cursor: pointer;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  transition: background 0.15s;
}

.trend-item:hover { background: var(--surface); }

.trend-num {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  color: var(--border-strong);
  flex-shrink: 0;
  line-height: 1;
}

.trend-title {
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.4;
}

.trend-meta {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--muted);
  margin-top: 6px;
}

/* ===== BREAKING BANNER ===== */
.breaking-banner {
  border: 1px solid var(--red);
  background: var(--red-dim);
  padding: 12px 18px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.breaking-label {
  background: var(--red);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 3px 8px;
  flex-shrink: 0;
}

.breaking-text {
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  flex: 1;
}

.breaking-text:hover { color: var(--red); }

/* ===== FILTER PILLS ===== */
.filter-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 32px;
  align-items: center;
}

.filter-pill {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-70);
  padding: 6px 14px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.filter-pill:hover { border-color: var(--border-strong); color: var(--text); }
.filter-pill.active { background: var(--gold); border-color: var(--gold); color: var(--bg); font-weight: 600; }

.filter-sep {
  width: 1px;
  height: 20px;
  background: var(--border);
  margin: 0 4px;
}

/* ===== SHARED TAG STYLES (article view + lists) ===== */
.card-symbol-tag {
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.05em;
  font-family: var(--font-mono);
  font-size: 11px;
}

.card-lang-tag {
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 1px 6px;
  font-family: var(--font-mono);
  font-size: 10.5px;
}

.card-date {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
}

.card-breaking-tag {
  color: var(--red);
  font-weight: 700;
  letter-spacing: 0.08em;
  font-family: var(--font-mono);
  font-size: 10.5px;
}

/* ===== DOSSIER FEATURED (large split card) ===== */
.dossier-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--border);
  margin-bottom: 4px;
  min-height: 400px;
  cursor: pointer;
}

@media (max-width: 860px) {
  .dossier-featured { grid-template-columns: 1fr; min-height: 0; }
}

.dossier-featured-visual {
  position: relative;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 260px;
}

@media (max-width: 860px) { .dossier-featured-visual { border-right: none; border-bottom: 1px solid var(--border); } }

.ghost-symbol {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(44px, 8vw, 118px);
  letter-spacing: -0.02em;
  color: rgba(239, 241, 245, 0.06);
  white-space: nowrap;
  user-select: none;
}

.visual-tag {
  position: absolute;
  left: 24px;
  bottom: 24px;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 12px;
}

.dossier-featured-content {
  padding: 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  transition: background 0.15s;
}

.dossier-featured:hover .dossier-featured-content { background: var(--surface); }

.dossier-featured-content .meta-row {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.dossier-featured-content h2 {
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -0.015em;
  color: var(--gold);
}

.dossier-featured-content p {
  font-size: 15px;
  color: var(--text-70);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dossier-byline {
  font-size: 12.5px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.dossier-byline .diamond { color: var(--gold); font-size: 9px; }

.related-tickers-boxed {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.related-tickers-boxed span {
  border: 1px solid var(--border);
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: 11.5px;
}

.related-tickers-boxed b { color: var(--text-80); font-weight: 600; margin-right: 6px; }
.related-tickers-boxed .up { color: var(--gold); }
.related-tickers-boxed .down { color: var(--red); }

/* ===== NEWS LIST (elenco) ===== */
.news-list {
  border-top: 1px solid var(--border);
}

.list-row {
  display: grid;
  grid-template-columns: 120px 150px 1fr 130px;
  gap: 24px;
  padding: 28px 4px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.15s;
  align-items: start;
}

.list-row:hover { background: var(--surface); }
.list-row:hover .list-row-body h3 { color: var(--gold); }
.list-row:hover .read-link { opacity: 1; }

@media (max-width: 900px) {
  .list-row { grid-template-columns: 90px 1fr; gap: 16px; padding: 20px 4px; }
  .list-row-meta { display: none !important; }
  .list-row-side { display: none !important; }
  .list-row-img { width: 100% !important; min-width: 0; }
  .list-row-body { min-width: 0; overflow: hidden; }
  .list-row-body h3 { font-size: 15px; }
}

@media (max-width: 560px) {
  .list-row { grid-template-columns: 80px 1fr; gap: 12px; padding: 16px 4px; }
  .list-row-img { width: 100% !important; min-height: 64px; }
}

/* ===== LIST ROW IMAGE ===== */
.list-row-img {
  width: 120px;
  min-width: 0;
  min-height: 80px;
  align-self: stretch;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.list-row-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.2s;
}

.list-row-img .img-placeholder {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  color: rgba(239,241,245,0.08);
  letter-spacing: -0.02em;
  user-select: none;
}

.list-row-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.list-row-meta .tag { color: var(--gold); font-weight: 700; letter-spacing: 0.06em; }
.list-row-meta .breaking { color: var(--red); font-weight: 700; letter-spacing: 0.08em; }

.list-row-body h3 {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
  transition: color 0.15s;
}

.list-row-body p {
  font-size: 13.5px;
  color: var(--text-70);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.list-row-side {
  text-align: right;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}

.list-row-side .byline { margin-bottom: 8px; }

.read-link {
  color: var(--gold);
  font-size: 11.5px;
  font-weight: 600;
  opacity: 0.7;
  transition: opacity 0.15s;
}

/* ===== PAGINATION ===== */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 40px 0 0;
  flex-wrap: wrap;
}

.page-btn {
  background: transparent;
  border: 1px solid var(--border);
  padding: 8px 14px;
  color: var(--text-70);
  font-family: var(--font-mono);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.15s;
}

.page-btn:hover:not(:disabled) { border-color: var(--gold); color: var(--gold); }
.page-btn.active { background: var(--gold); border-color: var(--gold); color: var(--bg); font-weight: 700; }
.page-btn:disabled { opacity: 0.35; cursor: not-allowed; }

.page-info { font-family: var(--font-mono); font-size: 11px; color: var(--muted); padding: 0 8px; }

/* ===== ARTICLE DETAIL ===== */
#article-view { display: none; }
#article-view.active { display: block; }

.article-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 56px 0 80px;
  width: 88%;
}

.article-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  cursor: pointer;
  margin-bottom: 32px;
  transition: color 0.15s;
}

.article-back:hover { color: var(--gold); }

.article-tags {
  display: flex;
  gap: 12px;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.article-title {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.article-meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
  font-size: 12.5px;
  color: var(--muted);
  padding: 20px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
}

.article-meta .meta-item { display: flex; align-items: center; gap: 6px; }
.article-meta .meta-item b { color: var(--text-80); font-weight: 600; }

.article-summary {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-80);
  margin-bottom: 28px;
  padding-left: 20px;
  border-left: 2px solid var(--gold);
}

.article-excerpt {
  margin: 28px 0;
  padding: 20px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--border);
  position: relative;
}

.article-excerpt-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-40, #666);
  margin-bottom: 10px;
}

.article-excerpt p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-70);
  white-space: pre-wrap;
  margin: 0;
}

.article-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: var(--bg);
  padding: 0 28px;
  height: 44px;
  font-size: 13.5px;
  font-weight: 600;
  margin-top: 8px;
  transition: opacity 0.15s;
}

.article-cta:hover { opacity: 0.88; }

.article-admin-actions { display: flex; gap: 8px; margin-top: 24px; }

.related-block { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--border); }

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 20px;
}

@media (max-width: 620px) { .related-grid { grid-template-columns: 1fr; } }

.related-card {
  background: var(--bg);
  padding: 16px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  transition: background 0.15s;
}

.related-card:hover { background: var(--surface); color: var(--gold); }

/* ===== ADMIN PANEL ===== */
#admin-panel { display: none; }
#admin-panel.active { display: block; }

.admin-wrap { width: var(--container-width, 88%); max-width: 1680px; margin: 0 auto; padding: 40px 0 80px; }

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.admin-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.admin-sub { font-family: var(--font-mono); font-size: 12px; color: var(--muted); margin-top: 6px; }

.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-bottom: 32px;
}

@media (max-width: 768px) { .admin-stats { grid-template-columns: repeat(2, 1fr); } }

.stat-card { background: var(--bg); padding: 22px; }

.stat-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 10px;
}

.stat-value { font-family: var(--font-mono); font-size: 30px; font-weight: 700; line-height: 1; }
.stat-sub { font-size: 11.5px; color: var(--muted); margin-top: 8px; }

.admin-tabs { display: flex; gap: 0; margin-bottom: 24px; border-bottom: 1px solid var(--border); }

.admin-tab {
  padding: 10px 22px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.15s;
}

.admin-tab:hover { color: var(--text); }
.admin-tab.active { color: var(--gold); border-color: var(--gold); }

.admin-section { display: none; }
.admin-section.active { display: block; }

.admin-table-wrap { overflow-x: auto; border: 1px solid var(--border); }
.admin-table { width: 100%; border-collapse: collapse; font-size: 12.5px; min-width: 700px; }

.admin-table th {
  text-align: left;
  padding: 12px 18px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.admin-table td { padding: 12px 18px; border-bottom: 1px solid var(--border); color: var(--text-70); vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--surface); }

.status-dot { width: 7px; height: 7px; display: inline-block; margin-right: 8px; }
.status-dot.success { background: var(--gold); }
.status-dot.error { background: var(--red); }
.status-dot.running { background: var(--blue); animation: pulse-dot 1s infinite; }

.btn-sm {
  background: transparent;
  border: 1px solid var(--border);
  padding: 5px 12px;
  color: var(--text-70);
  font-size: 11.5px;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-sm:hover { border-color: var(--gold); color: var(--gold); }
.btn-sm.danger:hover { border-color: var(--red); color: var(--red); }
.btn-sm.success { border-color: var(--gold); color: var(--gold); }

.btn-crawl {
  background: var(--gold);
  color: var(--bg);
  border: none;
  padding: 0 22px;
  height: 38px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.15s;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.btn-crawl:hover { opacity: 0.88; }
.btn-crawl:disabled { opacity: 0.4; cursor: not-allowed; }

.source-form { background: var(--surface); border: 1px solid var(--border); padding: 24px; margin-bottom: 20px; display: none; }
.source-form.open { display: block; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.form-group { margin-bottom: 16px; }

.form-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 7px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.form-input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 10px 14px;
  color: var(--text);
  font-size: 13.5px;
  outline: none;
  transition: border-color 0.15s;
}

.form-input:focus { border-color: var(--gold); }

.btn-primary {
  width: 100%;
  background: var(--gold);
  color: var(--bg);
  border: none;
  padding: 13px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.15s;
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.btn-primary:hover { opacity: 0.88; }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

/* ===== LOGIN MODAL ===== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  z-index: 999;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
}

.modal-overlay.open { display: flex; }

.modal {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 36px;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow);
}

.modal-title { font-size: 19px; font-weight: 700; margin-bottom: 6px; }
.modal-sub { font-size: 12.5px; color: var(--muted); margin-bottom: 26px; }

.modal-error {
  color: var(--red);
  font-size: 12.5px;
  margin-top: 10px;
  display: none;
}

.modal-close {
  float: right;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 18px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: color 0.15s;
}

.modal-close:hover { color: var(--text); }

/* ===== LOADER / EMPTY ===== */
.loader {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12.5px;
  gap: 12px;
}

.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid var(--border);
  border-top-color: var(--gold);
  border-radius: 50% !important;
  animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
  border: 1px solid var(--border);
}

.empty-icon { font-size: 36px; margin-bottom: 14px; }
.empty-state p { font-family: var(--font-mono); font-size: 13px; }

/* ===== FOOTER ===== */
footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 32px;
  margin-top: 40px;
}

.footer-inner { width: 88%; max-width: 1680px; margin: 0 auto; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}

@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

.footer-brand .logo { margin-bottom: 12px; }
.footer-brand p { font-size: 13px; color: var(--muted); line-height: 1.6; max-width: 260px; }

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 14px;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 13px; color: var(--text-70); transition: color 0.15s; }
.footer-col a:hover { color: var(--gold); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  font-size: 12px;
  color: var(--muted);
}

.footer-disclaimer { font-size: 11.5px; color: var(--muted); max-width: 640px; line-height: 1.6; margin-top: 8px; }

/* ===== HERO CUSTOMIZER ===== */
.hero-customizer {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 32px;
  align-items: start;
}

@media (max-width: 1024px) {
  .hero-customizer { grid-template-columns: 1fr; }
}

.hc-preview {
  position: relative;
  height: 320px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg);
}

.hc-preview-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hc-preview-grid {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.45;
}

.hc-preview-text {
  position: relative;
  z-index: 3;
  padding: 40px 48px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.hc-preview-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 14px;
}

.hc-preview-h1 {
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.04em;
  color: var(--text);
  margin-bottom: 12px;
  transition: font-size 0.1s;
}

.hc-preview-sub {
  font-size: 13px;
  color: var(--text-70);
  max-width: 420px;
  line-height: 1.5;
}

.hc-controls {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
}

.hc-group {
  padding: 20px 22px;
  border-bottom: 1px solid var(--border);
}

.hc-group:last-of-type { border-bottom: none; }

.hc-group-title {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 16px;
}

.hc-row {
  margin-bottom: 14px;
}

.hc-row:last-child { margin-bottom: 0; }

.hc-label {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-70);
  margin-bottom: 8px;
  font-family: var(--font-mono);
}

.hc-val {
  color: var(--gold);
  font-weight: 600;
}

.hc-range {
  width: 100%;
  accent-color: var(--gold);
  cursor: pointer;
  height: 3px;
}

.hc-color {
  width: 100%;
  height: 36px;
  border: 1px solid var(--border);
  background: var(--bg);
  cursor: pointer;
  padding: 2px;
}

.hc-actions {
  padding: 20px 22px;
  display: flex;
  gap: 10px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.hc-row--hint { padding-bottom: 0; }
.hc-hint { font-size: 11px; color: var(--text-40, #666); font-style: italic; line-height: 1.4; }

.hc-upload-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.hc-upload-row .form-input { flex: 1; min-width: 0; }

/* ===== NEWS LAYOUT WITH SIDEBAR ===== */
.news-layout {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.news-main { flex: 1; min-width: 0; }

.news-sidebar {
  width: 280px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: calc(var(--header-h) + var(--ticker-h) + 24px);
}

/* ===== ARTICLE LAYOUT WITH SIDEBAR ===== */
.article-layout {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  width: var(--container-width, 88%);
  max-width: 1680px;
  margin: 0 auto;
  padding: 56px 0 80px;
}

.article-layout .article-wrap {
  flex: 1;
  min-width: 0;
  max-width: 860px;
  width: auto;
  padding: 0;
  margin: 0;
}

.article-sidebar {
  width: 280px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: calc(var(--header-h) + var(--ticker-h) + 24px);
}

/* ===== AD SLOT ===== */
.ad-slot {
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
  position: relative;
  min-height: 100px;
}

.ad-slot-label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-40, #555);
  text-align: center;
  padding: 6px 8px;
  border-bottom: 1px solid var(--border);
}

.ad-slot-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* ===== ADS ADMIN ===== */
.ads-admin { padding: 24px; }

.ads-admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.ads-admin-title { font-size: 16px; font-weight: 700; margin: 0; }

.ads-list-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-bottom: 28px;
}

.ads-list-table th {
  text-align: left;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  color: var(--text-40, #888);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ads-list-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.ads-slot-badge {
  font-size: 10px;
  font-family: var(--font-mono);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 2px 6px;
  color: var(--text-70);
}

.ads-type-badge {
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 2px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.ads-type-html   { background: rgba(59,130,246,0.15); color: #60a5fa; }
.ads-type-adsense { background: rgba(234,179,8,0.15); color: #fbbf24; }
.ads-type-image  { background: rgba(16,185,129,0.15); color: #34d399; }
.ads-type-disabled { background: rgba(107,114,128,0.12); color: #9ca3af; }

.ads-toggle {
  width: 32px; height: 18px;
  background: var(--border);
  border-radius: 9px;
  position: relative;
  cursor: pointer;
  transition: background 0.2s;
  border: none;
  flex-shrink: 0;
}

.ads-toggle.on { background: var(--gold); }
.ads-toggle::after {
  content: '';
  position: absolute;
  width: 12px; height: 12px;
  background: #fff;
  border-radius: 50%;
  top: 3px; left: 3px;
  transition: left 0.2s;
}
.ads-toggle.on::after { left: 17px; }

.ads-form-wrap {
  border-top: 1px solid var(--border);
  padding-top: 24px;
}

.ads-form {
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ads-form h4 { font-size: 14px; font-weight: 700; margin: 0 0 16px; }

/* ===== ARTICLES CMS ===== */
.art-form {
  max-width: 760px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-top: 20px;
}

.art-lang-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
}

.art-lang-tab {
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.art-lang-tab:hover { background: var(--bg-hover); color: var(--text); }
.art-lang-tab.active { background: var(--gold); color: var(--bg); border-color: var(--gold); }

@media (max-width: 1024px) {
  .news-sidebar, .article-sidebar { display: none; }
  .article-layout { width: 92%; padding: 40px 0 60px; }
}

/* ===== TOAST ===== */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 13px 18px;
  font-size: 13px;
  color: var(--text);
  box-shadow: var(--shadow);
  animation: slide-in 0.25s ease;
  max-width: 320px;
  border-left: 2px solid var(--gold);
}

.toast.error { border-left-color: var(--red); }

@keyframes slide-in {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ===== HOME TWO-COL LAYOUT ===== */
.home-two-col {
  width: var(--container-width, 88%);
  max-width: 1680px;
  margin: 0 auto;
  display: flex;
  gap: 48px;
  align-items: flex-start;
  padding: 56px 0 80px;
  border-top: 1px solid var(--border);
}

.home-left {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.home-right {
  width: 30%;
  min-width: 260px;
  flex-shrink: 0;
  position: sticky;
  top: calc(var(--header-h) + var(--ticker-h) + 16px);
  max-height: calc(100vh - var(--header-h) - var(--ticker-h) - 32px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border) var(--bg);
}

.home-right::-webkit-scrollbar { width: 4px; }
.home-right::-webkit-scrollbar-track { background: var(--bg); }
.home-right::-webkit-scrollbar-thumb { background: var(--border); }
.home-right::-webkit-scrollbar-thumb:hover { background: var(--border-strong); }

.home-block {
  padding-bottom: 48px;
}

.home-block + .home-block {
  border-top: 1px solid var(--border);
  padding-top: 48px;
  margin-top: 0;
}

.home-block-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.home-block-head .section-head {
  margin-bottom: 0;
  flex: 1;
}

/* ===== VIEW TOGGLE (list / grid) ===== */
.view-toggle {
  display: flex;
  gap: 2px;
  flex-shrink: 0;
  margin-top: 4px;
}

.view-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  width: 34px;
  height: 34px;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  line-height: 1;
}

.view-btn:hover { border-color: var(--border-strong); color: var(--text); }
.view-btn.active { background: var(--gold); border-color: var(--gold); color: var(--bg); }

/* ===== MARKET MATRIX — COMPACT (right column) ===== */
.home-right .matrix-table { min-width: 0; }
.home-right .matrix-table-wrap { overflow-x: hidden; }
.home-right .matrix-table th,
.home-right .matrix-table td { padding: 10px 12px; font-size: 12px; }
.home-right .matrix-table th:last-child,
.home-right .matrix-table td:last-child { display: none; }
.home-right .matrix-tab { padding: 0 12px; height: 32px; font-size: 11.5px; }

/* ===== NEWS CARD GRID VIEW ===== */
.news-grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 0;
}

.news-card {
  background: var(--bg);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: background 0.15s;
}

.news-card:hover { background: var(--surface); }
.news-card:hover .news-card-title { color: var(--gold); }

.news-card-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--surface);
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}

.news-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.news-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  color: rgba(239, 241, 245, 0.06);
  letter-spacing: -0.02em;
}

.news-card-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.news-card-tags {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.news-card-title {
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.15s;
}

.news-card-excerpt {
  font-size: 12.5px;
  color: var(--text-70);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-meta {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--muted);
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 860px) {
  .main-nav { display: none; }
  .search-bar { width: 160px; }
}

@media (max-width: 860px) {
  .hero-content { width: var(--hero-content-width-tablet, 75%); }
}

@media (max-width: 1100px) {
  .home-two-col { gap: 32px; }
  .home-right { width: 280px; min-width: 240px; }
}

@media (max-width: 860px) {
  .home-two-col {
    flex-direction: column;
    gap: 0;
    padding: 40px 0 60px;
  }
  .home-right {
    width: 100%;
    min-width: 0;
    position: static;
    max-height: none;
    overflow-y: visible;
    border-top: 1px solid var(--border);
    padding-top: 40px;
    margin-top: 40px;
    order: -1;
  }
  .home-right .matrix-table th:last-child,
  .home-right .matrix-table td:last-child { display: table-cell; }
  .home-right .matrix-table { min-width: 560px; }
  .home-right .matrix-table-wrap { overflow-x: auto; }
  .home-right .matrix-tab { padding: 0 16px; height: 38px; font-size: 13px; }
  .home-block + .home-block { padding-top: 40px; }
  .news-grid-cards { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
}

@media (max-width: 640px) {
  .header-inner { gap: 12px; padding: 0 5%; }
  .search-bar { display: none; }
  .hero { padding: 64px 0 48px; }
  .container { width: 92%; }
  .home-two-col { width: 92%; padding: 32px 0 48px; }
  .hero-inner { width: 92%; }
  .hero-content { width: 100% !important; }
  .footer-inner { width: 92%; }
  .admin-wrap { width: 92%; }
  .article-wrap { width: 92%; padding: 40px 0 60px; }
  .news-grid-cards { grid-template-columns: 1fr; }
}
