/* ====================================================
   SM Mining News — Main Stylesheet
   Brand: Gold #B09155 | Navy #1a2332 | Warm White #F8F7F5
   ==================================================== */

:root {
  --gold: #B09155;
  --gold-dark: #8a6f3e;
  --gold-light: #d4b87a;
  --navy: #1a2332;
  --navy-light: #2c3e55;
  --text: #1a1a1a;
  --text-muted: #6b7280;
  --text-light: #9ca3af;
  --bg: #F8F7F5;
  --bg-alt: #f0ede8;
  --white: #ffffff;
  --border: #e5e0d8;
  --red: #c0392b;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow: 0 4px 16px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.15);
  --radius: 4px;
  --radius-md: 8px;
  --transition: 0.2s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

[x-cloak] { display: none !important; }

/* ─── TYPOGRAPHY ─────────────────────────────────── */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-serif); line-height: 1.25; color: var(--navy); }
h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }
h4 { font-size: 1.1rem; }
h5 { font-size: 1rem; font-weight: 600; }

/* ─── BREAKING NEWS TICKER ────────────────────────── */
.breaking-ticker {
  background: var(--red);
  color: white;
  display: flex;
  align-items: center;
  overflow: hidden;
  height: 36px;
  font-size: 0.8rem;
  font-weight: 500;
}
.ticker-label {
  background: var(--navy);
  padding: 0 1rem;
  height: 100%;
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  white-space: nowrap;
  flex-shrink: 0;
}
.ticker-track { overflow: hidden; flex: 1; }
.ticker-inner {
  display: flex;
  white-space: nowrap;
  animation: ticker-scroll 40s linear infinite;
}
.ticker-item { padding: 0 0.5rem; color: white; opacity: 0.95; transition: opacity var(--transition); }
.ticker-item:hover { opacity: 1; }
@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ─── TOP BAR ─────────────────────────────────────── */
.topbar {
  background: var(--navy);
  color: rgba(255,255,255,0.75);
  font-size: 0.78rem;
  padding: 0.4rem 0;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.topbar-left { display: flex; gap: 0.75rem; align-items: center; }
.topbar-left a { color: rgba(255,255,255,0.75); transition: color var(--transition); }
.topbar-left a:hover { color: var(--gold); }
.topbar-right { display: flex; gap: 1rem; align-items: center; }

.lang-switch { display: flex; gap: 0.4rem; align-items: center; color: rgba(255,255,255,0.6); }
.lang-switch a { color: rgba(255,255,255,0.7); transition: color var(--transition); }
.lang-switch a:hover, .lang-switch a.active { color: var(--gold); font-weight: 600; }

.social-links { display: flex; gap: 0.6rem; }
.social-links a { color: rgba(255,255,255,0.65); transition: color var(--transition); }
.social-links a:hover { color: var(--gold); }

/* ─── HEADER ─────────────────────────────────────── */
.site-header {
  background: var(--white);
  border-bottom: 3px solid var(--gold);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(26,35,50,0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0;
  gap: 1.5rem;
}
.site-logo { flex-shrink: 0; }
.site-logo img { height: 64px; width: auto; object-fit: contain; transition: opacity var(--transition); }
.site-logo:hover img { opacity: 0.88; }

.main-nav { flex: 1; display: flex; justify-content: center; }
.main-nav ul {
  display: flex;
  gap: 0;
  align-items: center;
  flex-wrap: nowrap;
}
.main-nav li { position: relative; }
.main-nav a {
  display: block;
  padding: 0.55rem 0.85rem;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--navy);
  white-space: nowrap;
  letter-spacing: 0.01em;
  transition: color 0.18s ease, background 0.18s ease;
  border-radius: var(--radius);
  position: relative;
}
.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0.85rem;
  right: 0.85rem;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.22s ease;
  border-radius: 2px;
}
.main-nav a:hover { color: var(--gold); }
.main-nav a:hover::after { transform: scaleX(1); }
.main-nav a.active { color: var(--gold); font-weight: 600; }
.main-nav a.active::after { transform: scaleX(1); }

.header-actions { display: flex; gap: 0.4rem; align-items: center; flex-shrink: 0; }
.search-toggle {
  padding: 0.5rem;
  color: var(--navy);
  transition: color var(--transition), background var(--transition);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
}
.search-toggle:hover { color: var(--gold); background: rgba(176,145,85,0.08); }

.search-bar {
  padding: 0.65rem 0;
  border-top: 1px solid var(--border);
}
.search-bar form { display: flex; gap: 0.5rem; }
.search-bar input {
  flex: 1;
  padding: 0.6rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--transition);
  background: var(--bg);
}
.search-bar input:focus { border-color: var(--gold); background: white; }
.search-bar button {
  padding: 0.6rem 1.2rem;
  background: var(--gold);
  color: white;
  border-radius: var(--radius);
  transition: background var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.search-bar button:hover { background: var(--gold-dark); }

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 0.5rem;
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  transition: background var(--transition);
  position: relative;
  z-index: 201;
}
.mobile-menu-btn:hover { background: rgba(176,145,85,0.08); }
.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1),
              opacity 0.2s ease,
              width 0.3s ease;
  transform-origin: center;
}
/* Animate to × when open */
.mobile-menu-btn.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.mobile-menu-btn.is-open span:nth-child(2) {
  opacity: 0;
  width: 0;
}
.mobile-menu-btn.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ─── MOBILE NAV BACKDROP ─────────────────────────── */
.mobile-nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 198;
  background: rgba(10, 16, 28, 0);
  transition: background 0.35s ease;
  pointer-events: none;
}
.mobile-nav-backdrop.visible {
  background: rgba(10, 16, 28, 0.65);
  pointer-events: auto;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.mobile-nav-header { display: none; }
.mobile-nav-footer { display: none; }
.nav-cat-dot { display: none; }

/* ─── HERO SLIDER ──────────────────────────────────── */
.hero-slider {
  position: relative;
  height: clamp(360px, 55vw, 600px);
  overflow: hidden;
  background: var(--navy);
}
.slides-wrapper { position: relative; width: 100%; height: 100%; }
.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.slide.active { opacity: 1; }
.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(26,35,50,0.85) 0%, rgba(26,35,50,0.4) 60%, transparent 100%);
}
.slide-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem 1rem;
  max-width: 680px;
  color: white;
}
.slide-tag {
  display: inline-block;
  background: var(--gold);
  color: white;
  padding: 0.2rem 0.75rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 2px;
  margin-bottom: 1rem;
  width: fit-content;
}
.slide-content h1 { color: white; font-size: clamp(1.6rem, 4vw, 2.8rem); margin-bottom: 0.75rem; text-shadow: 0 2px 8px rgba(0,0,0,0.3); }
.slide-content p { font-size: 1.05rem; opacity: 0.9; margin-bottom: 1.5rem; }

.slider-prev, .slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  background: rgba(255,255,255,0.15);
  color: white;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  line-height: 1;
  backdrop-filter: blur(4px);
  transition: background var(--transition);
}
.slider-prev:hover, .slider-next:hover { background: rgba(176,145,85,0.7); }
.slider-prev { left: 1.5rem; }
.slider-next { right: 1.5rem; }
.slider-dots { position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%); display: flex; gap: 0.5rem; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.4); transition: var(--transition); }
.dot.active { background: var(--gold); width: 24px; border-radius: 4px; }

/* ─── HERO STATIC (fallback) ───────────────────────── */
.hero-static {
  position: relative;
  height: clamp(300px, 45vw, 520px);
  background-size: cover;
  background-position: center;
}
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(26,35,50,0.88) 0%, rgba(26,35,50,0.4) 100%); }
.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 3rem;
  color: white;
}
.hero-category {
  display: inline-block;
  background: var(--gold);
  color: white;
  padding: 0.2rem 0.6rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.hero-content h1 { color: white; max-width: 700px; }
.hero-content h1 a { color: white; transition: opacity var(--transition); }
.hero-content h1 a:hover { opacity: 0.85; }
.hero-content p { color: rgba(255,255,255,0.85); max-width: 600px; margin-top: 0.75rem; }
.hero-meta { display: flex; gap: 1rem; margin-top: 1rem; font-size: 0.85rem; color: rgba(255,255,255,0.75); }

/* ─── MAIN CONTENT ──────────────────────────────────── */
.main-content { padding: 2.5rem 0; }

.section-block { margin-bottom: 3rem; }
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--gold);
  gap: 1rem;
}
.section-title {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--navy);
  font-weight: 700;
}
.section-line { flex: 1; height: 1px; background: var(--border); }
.see-all { font-size: 0.8rem; font-weight: 600; color: var(--gold); white-space: nowrap; }
.see-all:hover { color: var(--gold-dark); }

/* ─── FEATURED GRID ─────────────────────────────────── */
.featured-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 1.25rem;
}
.featured-card--large {
  grid-row: 1 / 3;
}
.featured-card {
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}
.featured-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }

.card-image-link { display: block; position: relative; overflow: hidden; }
.featured-card--large .card-image-link { aspect-ratio: 16/9; }
.featured-card:not(.featured-card--large) .card-image-link { aspect-ratio: 16/9; }
.card-image-link img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.featured-card:hover .card-image-link img { transform: scale(1.04); }

.card-category {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  padding: 0.15rem 0.6rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: white;
  border-radius: 2px;
}
.card-body { padding: 1rem; }
.card-body h3 { margin-bottom: 0.5rem; }
.card-body h3 a { color: var(--navy); transition: color var(--transition); }
.card-body h3 a:hover { color: var(--gold); }
.card-excerpt { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 0.75rem; }
.card-meta { display: flex; gap: 0.75rem; font-size: 0.75rem; color: var(--text-light); flex-wrap: wrap; }

/* ─── CONTENT + SIDEBAR ─────────────────────────────── */
.content-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2.5rem;
  align-items: start;
}
.content-main {}

/* ─── ARTICLE LIST ──────────────────────────────────── */
.article-list { display: flex; flex-direction: column; gap: 1.5rem; }
.article-list-item {
  display: flex;
  gap: 1.25rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.article-list-item:last-child { border-bottom: none; }
.list-item-image { flex-shrink: 0; width: 200px; height: 130px; overflow: hidden; border-radius: var(--radius); }
.list-item-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.article-list-item:hover .list-item-image img { transform: scale(1.04); }
.list-item-body { flex: 1; min-width: 0; }
.item-category { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.list-item-body h2, .list-item-body h3 { margin: 0.3rem 0 0.4rem; font-size: clamp(1rem, 2vw, 1.2rem); }
.list-item-body h2 a, .list-item-body h3 a { color: var(--navy); transition: color var(--transition); }
.list-item-body h2 a:hover, .list-item-body h3 a:hover { color: var(--gold); }
.list-item-body p { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.item-meta { display: flex; gap: 0.75rem; font-size: 0.75rem; color: var(--text-light); align-items: center; flex-wrap: wrap; }

.badge-breaking {
  background: var(--red);
  color: white;
  padding: 0.1rem 0.4rem;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 2px;
}

/* ─── CARD GRID 4 ───────────────────────────────────── */
.card-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.news-card {
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}
.news-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card-thumb { display: block; aspect-ratio: 16/9; overflow: hidden; }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.news-card:hover .card-thumb img { transform: scale(1.04); }
.news-card .card-body { padding: 0.75rem; }
.news-card .card-body h4 { font-size: 0.9rem; margin-bottom: 0.3rem; }
.news-card .card-body h4 a { color: var(--navy); transition: color var(--transition); }
.news-card .card-body h4 a:hover { color: var(--gold); }

/* ─── SIDEBAR ────────────────────────────────────────── */
.sidebar { position: sticky; top: 120px; display: flex; flex-direction: column; gap: 1.5rem; }
.widget { background: white; border-radius: var(--radius-md); padding: 1.25rem; box-shadow: var(--shadow-sm); }
.widget-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--gold);
  margin-bottom: 1rem;
}
.category-list { display: flex; flex-direction: column; gap: 0; }
.category-list li { display: flex; justify-content: space-between; align-items: center; padding: 0.5rem 0; border-bottom: 1px solid var(--border); }
.category-list li:last-child { border-bottom: none; }
.category-list a { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; color: var(--text); transition: color var(--transition); }
.category-list a:hover, .category-list a.active-cat { color: var(--gold); }
.cat-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.cat-count { font-size: 0.75rem; color: var(--text-light); background: var(--bg-alt); padding: 0.1rem 0.4rem; border-radius: 10px; }

.widget-magazine {}
.magazine-cover { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: var(--radius); margin-bottom: 0.75rem; }
.issue-date { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.75rem; }
.widget-actions { display: flex; flex-direction: column; gap: 0.5rem; }

.widget-newsletter p { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1rem; }
.widget-newsletter form { display: flex; flex-direction: column; gap: 0.5rem; }
.widget-newsletter input {
  padding: 0.6rem 0.75rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.85rem;
  outline: none;
  transition: border-color var(--transition);
}
.widget-newsletter input:focus { border-color: var(--gold); }
.widget-newsletter button {
  padding: 0.6rem;
  background: var(--gold);
  color: white;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.875rem;
  transition: background var(--transition);
}
.widget-newsletter button:hover { background: var(--gold-dark); }

/* ─── RELATED ITEMS ─────────────────────────────────── */
.related-item { display: flex; gap: 0.75rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--border); margin-bottom: 0.75rem; }
.related-item:last-child { border-bottom: none; margin-bottom: 0; }
.related-item > a { flex-shrink: 0; width: 80px; height: 56px; overflow: hidden; border-radius: var(--radius); }
.related-item > a img { width: 100%; height: 100%; object-fit: cover; }
.related-item h5 { font-size: 0.8rem; font-weight: 600; margin-bottom: 0.2rem; }
.related-item h5 a { color: var(--navy); transition: color var(--transition); }
.related-item h5 a:hover { color: var(--gold); }
.related-item small { font-size: 0.7rem; color: var(--text-light); }

/* ─── ARTICLE PAGE ──────────────────────────────────── */
.article-page { padding: 2rem 0 3rem; }
.article-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2.5rem;
  align-items: start;
}

.breadcrumb { display: flex; gap: 0.5rem; align-items: center; font-size: 0.8rem; color: var(--text-muted); margin-bottom: 1.5rem; flex-wrap: wrap; }
.breadcrumb a { color: var(--text-muted); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--gold); }

.article-full {}
.article-category-tag {
  display: inline-block;
  color: white;
  padding: 0.2rem 0.75rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 2px;
  margin-bottom: 1rem;
}
.article-full h1 { margin-bottom: 1.25rem; }
.article-meta {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 1rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
}
.article-meta span { display: flex; align-items: center; gap: 0.35rem; }

.article-hero-image { margin-bottom: 1.5rem; border-radius: var(--radius-md); overflow: hidden; }
.article-hero-image img { width: 100%; max-height: 540px; object-fit: cover; }
.article-hero-image figcaption { font-size: 0.78rem; color: var(--text-muted); padding: 0.5rem; text-align: center; background: var(--bg-alt); }

.article-lang-switch {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  padding: 0.75rem;
  background: var(--bg-alt);
  border-radius: var(--radius);
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  margin-bottom: 1.5rem;
  border-radius: var(--radius-md);
  background: var(--navy);
}
.video-wrapper iframe, .video-wrapper video {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}

.article-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text);
}
.article-content p { margin-bottom: 1.25rem; }
.article-content h2 { font-size: 1.5rem; margin: 2rem 0 1rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--gold); }
.article-content h3 { font-size: 1.25rem; margin: 1.5rem 0 0.75rem; }
.article-content ul, .article-content ol { margin: 1rem 0 1rem 1.5rem; }
.article-content ul { list-style: disc; }
.article-content ol { list-style: decimal; }
.article-content li { margin-bottom: 0.4rem; }
.article-content blockquote {
  border-left: 4px solid var(--gold);
  padding: 0.75rem 1.25rem;
  margin: 1.5rem 0;
  background: var(--bg-alt);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--navy);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.article-content img { border-radius: var(--radius); margin: 1rem 0; }
.article-content a { color: var(--gold); text-decoration: underline; }
.article-content a:hover { color: var(--gold-dark); }

.article-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--border); font-size: 0.85rem; color: var(--text-muted); }
.tag { padding: 0.25rem 0.6rem; background: var(--bg-alt); border: 1px solid var(--border); border-radius: 2px; font-size: 0.78rem; color: var(--text-muted); transition: var(--transition); }
.tag:hover { background: var(--gold); border-color: var(--gold); color: white; }

.article-share { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--border); font-size: 0.85rem; color: var(--text-muted); }
.share-btn { padding: 0.35rem 0.85rem; border-radius: var(--radius); font-size: 0.78rem; font-weight: 600; color: white; }
.share-fb { background: #1877f2; }
.share-tw { background: #1da1f2; }
.share-wa { background: #25d366; }
.share-li { background: #0a66c2; }
.share-btn:hover { opacity: 0.85; }

/* ─── PAGE HEADER ───────────────────────────────────── */
.page-header {
  padding: 2.5rem 0 1.5rem;
  border-bottom: 3px solid var(--gold);
  margin-bottom: 2rem;
}
.page-header h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.page-header p { font-size: 1rem; color: var(--text-muted); margin-top: 0.5rem; max-width: 700px; }
.search-query { color: var(--gold); }

/* ─── MAGAZINES ─────────────────────────────────────── */
.featured-magazine {
  background: white;
  border-radius: var(--radius-md);
  padding: 2rem;
  margin-bottom: 3rem;
  box-shadow: var(--shadow);
}
.mag-featured-inner { display: grid; grid-template-columns: 280px 1fr; gap: 2.5rem; align-items: center; }
.mag-cover-wrap { position: relative; }
.mag-cover-large { width: 100%; border-radius: var(--radius-md); box-shadow: var(--shadow-lg); }
.mag-badge {
  position: absolute;
  top: -0.75rem;
  right: -0.75rem;
  background: var(--red);
  color: white;
  padding: 0.25rem 0.75rem;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 2px;
  text-transform: uppercase;
}
.mag-issue { font-size: 0.78rem; font-weight: 600; color: var(--gold); letter-spacing: 0.08em; text-transform: uppercase; }
.mag-featured-info h2 { margin: 0.5rem 0; }
.mag-date { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1rem; }
.mag-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1.5rem; }

.magazine-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
}
.magazine-card { background: white; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); transition: var(--transition); }
.magazine-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.magazine-card .mag-cover-wrap { aspect-ratio: 3/4; }
.magazine-card .mag-cover-wrap img { width: 100%; height: 100%; object-fit: cover; }
.mag-placeholder { width: 100%; height: 100%; background: var(--bg-alt); display: flex; align-items: center; justify-content: center; color: var(--text-light); }
.mag-info { padding: 1rem; }
.mag-issue-sm { font-size: 0.72rem; font-weight: 600; color: var(--gold); letter-spacing: 0.06em; text-transform: uppercase; }
.mag-info h3 { font-size: 0.95rem; margin: 0.3rem 0; }
.mag-info .mag-date { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 0.75rem; }

/* ─── CONTACT ────────────────────────────────────────── */
.contact-layout { display: grid; grid-template-columns: 1fr 360px; gap: 3rem; align-items: start; margin-bottom: 3rem; }
.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label { font-size: 0.85rem; font-weight: 500; color: var(--navy); }
.form-group input, .form-group textarea {
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  background: white;
  transition: border-color var(--transition);
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--gold); }
.form-group input.is-invalid, .form-group textarea.is-invalid { border-color: var(--red); }
.contact-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem;
  background: white;
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
}
.contact-card svg { color: var(--gold); flex-shrink: 0; margin-top: 0.2rem; }
.contact-card h4 { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 0.25rem; }
.contact-card a, .contact-card p { font-size: 0.9rem; color: var(--navy); }
.contact-about { padding: 1.25rem; background: var(--navy); color: white; border-radius: var(--radius-md); }
.contact-about h4 { color: var(--gold-light); font-size: 0.85rem; margin-bottom: 0.75rem; }
.contact-about p { font-size: 0.875rem; opacity: 0.85; line-height: 1.7; }

/* ─── SEARCH PAGE ──────────────────────────────────── */
.search-form-large { display: flex; gap: 0.75rem; margin-bottom: 2rem; }
.search-form-large input {
  flex: 1;
  padding: 0.85rem 1.25rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  transition: border-color var(--transition);
}
.search-form-large input:focus { border-color: var(--gold); }
.search-form-large button { padding: 0.85rem 1.75rem; background: var(--gold); color: white; border-radius: var(--radius); font-weight: 600; transition: background var(--transition); }
.search-form-large button:hover { background: var(--gold-dark); }

/* ─── NEWSLETTER SECTION ─────────────────────────── */
.newsletter-section {
  background: var(--navy);
  padding: 3rem 0;
  margin-top: 3rem;
}
.newsletter-inner {
  display: flex;
  gap: 3rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.newsletter-text h3 { color: white; font-size: 1.6rem; margin-bottom: 0.5rem; }
.newsletter-text p { color: rgba(255,255,255,0.75); }
.newsletter-form { display: flex; gap: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); flex: 1; max-width: 440px; }
.newsletter-form input {
  flex: 1;
  padding: 0.85rem 1.25rem;
  border: none;
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
}
.newsletter-form button {
  padding: 0.85rem 1.5rem;
  background: var(--gold);
  color: white;
  font-weight: 600;
  font-size: 0.875rem;
  white-space: nowrap;
  transition: background var(--transition);
}
.newsletter-form button:hover { background: var(--gold-dark); }

/* ─── FOOTER ─────────────────────────────────────── */
.site-footer { background: #111827; color: rgba(255,255,255,0.75); padding: 3.5rem 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
}
.footer-brand img { height: 60px; margin-bottom: 1rem; }
.footer-brand p { font-size: 0.875rem; line-height: 1.7; max-width: 280px; margin-bottom: 1.25rem; }
.footer-social { display: flex; gap: 0.75rem; }
.footer-social a { width: 36px; height: 36px; background: rgba(255,255,255,0.08); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.65); transition: var(--transition); }
.footer-social a:hover { background: var(--gold); color: white; }
.footer-nav h4 { color: var(--gold-light); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1rem; font-family: var(--font-sans); font-weight: 700; }
.footer-nav ul { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-nav a { font-size: 0.875rem; color: rgba(255,255,255,0.65); transition: color var(--transition); }
.footer-nav a:hover { color: var(--gold-light); }
.footer-contact h4 { color: var(--gold-light); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1rem; font-family: var(--font-sans); font-weight: 700; }
.footer-contact p { font-size: 0.875rem; margin-bottom: 0.4rem; }
.footer-contact strong { color: rgba(255,255,255,0.9); }
.footer-disclaimer { font-size: 0.78rem; opacity: 0.55; margin-top: 1rem; line-height: 1.6; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 1.25rem 0; text-align: center; font-size: 0.78rem; }
.footer-bottom a { color: var(--gold-light); }

/* ─── BUTTONS ─────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--gold);
  color: white;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.875rem;
  transition: background var(--transition);
  border: none;
  cursor: pointer;
  text-decoration: none;
}
.btn-primary:hover { background: var(--gold-dark); }
.btn-primary.btn-large { padding: 0.9rem 2rem; font-size: 1rem; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  background: transparent;
  color: var(--gold);
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.875rem;
  transition: var(--transition);
  text-decoration: none;
}
.btn-outline:hover { background: var(--gold); color: white; }
.btn-outline.btn-sm { padding: 0.4rem 0.85rem; font-size: 0.78rem; }
.btn-lang { padding: 0.25rem 0.75rem; background: rgba(176,145,85,0.15); color: var(--gold); border: 1px solid var(--gold); border-radius: 2px; font-size: 0.8rem; font-weight: 600; }

/* ─── ALERTS ─────────────────────────────────────── */
.alert { padding: 0.85rem 1.25rem; border-radius: var(--radius); margin-bottom: 1rem; font-size: 0.9rem; }
.alert-success { background: #d1fae5; color: #065f46; border: 1px solid #6ee7b7; }
.alert-info { background: #dbeafe; color: #1e40af; border: 1px solid #93c5fd; }
.alert-danger { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }
.alert-danger ul { margin: 0.5rem 0 0 1rem; }

/* ─── PAGINATION ─────────────────────────────────── */
.pagination-wrapper { margin-top: 2rem; }
.pagination-wrapper nav { display: flex; justify-content: center; }
.pagination-wrapper .pagination { display: flex; gap: 0.35rem; flex-wrap: wrap; justify-content: center; }
.pagination-wrapper .page-item a, .pagination-wrapper .page-item span {
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.875rem;
  color: var(--navy);
  transition: var(--transition);
  display: block;
}
.pagination-wrapper .page-item.active span { background: var(--gold); border-color: var(--gold); color: white; }
.pagination-wrapper .page-item a:hover { border-color: var(--gold); color: var(--gold); }

/* ─── EMPTY STATE ─────────────────────────────────── */
.empty-state { text-align: center; padding: 3rem; color: var(--text-muted); font-size: 1rem; }

/* ─── CATEGORY SECTION ────────────────────────────── */
.category-section .section-title { border-left: 4px solid; padding-left: 0.75rem; }

/* ─── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 1024px) {
  .featured-grid { grid-template-columns: 1fr 1fr; }
  .featured-card--large { grid-column: 1 / 3; grid-row: auto; }
  .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .mag-featured-inner { grid-template-columns: 220px 1fr; }
}

@media (max-width: 768px) {
  .content-with-sidebar { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .article-layout { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }

  .mobile-nav-backdrop { display: block; }
  body.menu-locked { overflow: hidden; }
  .mobile-menu-btn { display: flex; }

  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    width: min(300px, 85vw);
    background: var(--navy);
    z-index: 199;
    flex-direction: column;
    justify-content: flex-start;
    padding: 0;
    overflow-y: auto;
    overflow-x: hidden;
    transform: translateX(105%);
    transition: transform 0.36s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    box-shadow: -6px 0 32px rgba(0,0,0,0.35);
    will-change: transform;
  }
  .main-nav.open { transform: translateX(0); }

  .mobile-nav-header {
    display: flex;
    align-items: center;
    padding: 1.5rem 1.5rem 1.25rem;
    border-bottom: 1px solid rgba(176,145,85,0.25);
    flex-shrink: 0;
  }
  .mobile-nav-brand {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 700;
    color: var(--gold-light);
    letter-spacing: 0.02em;
  }

  .main-nav ul {
    flex-direction: column;
    width: 100%;
    gap: 0;
    padding: 0.5rem 0;
    flex: 1;
    border: none;
  }
  .main-nav li {
    opacity: 0;
    transform: translateX(20px);
  }
  .main-nav.open li {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.28s ease calc(var(--i, 0) * 45ms + 80ms),
                transform 0.28s ease calc(var(--i, 0) * 45ms + 80ms);
  }
  .main-nav a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(255,255,255,0.72);
    border-radius: 0;
    border-bottom: none;
    border-left: 2px solid transparent;
    transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
    letter-spacing: 0.01em;
  }
  .main-nav a svg { flex-shrink: 0; opacity: 0.55; transition: opacity 0.18s ease; }
  .main-nav a::after { display: none; }

  .main-nav a:hover {
    color: rgba(255,255,255,0.95);
    background: rgba(255,255,255,0.05);
    border-left-color: var(--gold);
  }
  .main-nav a:hover svg { opacity: 0.9; }

  .main-nav a.active {
    color: var(--gold-light);
    background: rgba(176,145,85,0.08);
    border-left-color: var(--gold);
    font-weight: 600;
  }
  .main-nav a.active svg { opacity: 1; }

  .mobile-nav-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem 2rem;
    border-top: 1px solid rgba(255,255,255,0.07);
    flex-shrink: 0;
  }
  .mobile-nav-social {
    display: flex;
    gap: 0.6rem;
  }
  .mobile-nav-social a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.45);
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    transition: color 0.18s ease, background 0.18s ease;
  }
  .mobile-nav-social a:hover {
    color: white;
    background: var(--gold);
  }
  .mobile-nav-tagline {
    font-size: 0.68rem;
    color: rgba(255,255,255,0.28);
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  /* ── Content layout changes ──────────────────────── */
  .featured-grid { grid-template-columns: 1fr; }
  .featured-card--large { grid-column: auto; }
  .card-grid-4 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .newsletter-inner { flex-direction: column; }
  .newsletter-form { max-width: 100%; width: 100%; }
  .topbar-left { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .mag-featured-inner { grid-template-columns: 1fr; }
  .article-list-item { flex-direction: column; }
  .list-item-image { width: 100%; height: 200px; }
}

@media (max-width: 480px) {
  .card-grid-4 { grid-template-columns: 1fr; }
  .social-links { display: none; }
}

/* ─── PRINT ─────────────────────────────────────── */
@media print {
  .site-header, .breaking-ticker, .topbar, .newsletter-section, .site-footer, .sidebar { display: none; }
  .article-layout { grid-template-columns: 1fr; }
  .article-content { font-size: 11pt; }
}
