/* ASCER Portal de Asociados - Modern Design */
:root {
  --ascer-orange: #B55D1F;
  --ascer-orange-light: #D4782F;
  --ascer-orange-dark: #8F4516;
  --ascer-black: #0D0D0D;
  --ascer-dark: #1A1A1A;
  --ascer-gray-900: #2A2A2A;
  --ascer-gray-700: #4A4A4A;
  --ascer-gray-500: #7A7A7A;
  --ascer-gray-300: #C4C4C4;
  --ascer-gray-100: #F5F3F0;
  --ascer-white: #FFFFFF;
  --font-signa: 'Signa', 'FF Signa', sans-serif;
  --font-sans: var(--font-signa), 'Roboto', system-ui, sans-serif;
  --font-display: var(--font-signa);
  --font-ui: 'Roboto', var(--font-signa), sans-serif;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow-md: 0 4px 20px rgba(0,0,0,.1);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.15);
  --radius: 12px;
  --radius-lg: 20px;
  --header-h: 72px;
  --transition: .25s cubic-bezier(.4,0,.2,1);
}

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

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

body {
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--ascer-dark);
  background: var(--ascer-gray-100);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6,
.hero h1, .section-header h2, .page-hero h1,
.stat-card .stat-value, .megamenu-title {
  font-family: var(--font-display);
  font-weight: 500;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--ascer-orange); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--ascer-orange-dark); }

/* ── Icons ── */
.icon { display: inline-block; vertical-align: middle; flex-shrink: 0; }
.card-icon, .qi-icon { display: flex; align-items: center; justify-content: center; color: var(--ascer-orange); }
.qi-icon svg { width: 26px; height: 26px; }
.card-icon svg { width: 22px; height: 22px; }

/* ── Header (claro) ── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 1px 0 rgba(0,0,0,.04);
  transition: box-shadow var(--transition);
  overflow: visible;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }

.header-inner {
  max-width: 1400px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h); padding: 0 1.25rem; gap: 1rem;
}

.logo { flex-shrink: 0; }
.logo img { height: 32px; width: auto; }

.nav-desktop {
  display: none; align-items: center; gap: .25rem;
  flex: 1; justify-content: center; min-width: 0;
}
.nav-megamenu-triggers {
  display: flex; align-items: center; gap: .125rem;
}
.nav-link, .nav-trigger {
  color: var(--ascer-gray-700); font-size: .875rem; font-weight: 500;
  padding: .5rem .75rem; border-radius: 8px; transition: all var(--transition);
  background: none; border: none; cursor: pointer;
  font-family: var(--font-ui); display: inline-flex; align-items: center; gap: .35rem;
  text-decoration: none; white-space: nowrap;
}
.nav-link:hover, .nav-trigger:hover, .nav-link.active, .nav-trigger.active {
  color: var(--ascer-orange); background: rgba(181,93,31,.08);
}
.nav-trigger svg { opacity: .45; transition: transform var(--transition); flex-shrink: 0; }
.nav-trigger.active svg { transform: rotate(180deg); opacity: 1; }

/* Megamenu panel — ancho completo */
.megamenu-panel {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--ascer-white);
  border-top: 1px solid rgba(0,0,0,.06);
  box-shadow: var(--shadow-lg);
  max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height .3s ease, opacity .2s ease;
  pointer-events: none;
}
.site-header.megamenu-open .megamenu-panel {
  max-height: 75vh; opacity: 1; pointer-events: auto;
  overflow-y: auto;
}
.megamenu-panel-inner { padding: 1.5rem 1.25rem 2rem; }
.megamenu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1.5rem 2rem;
}
.megamenu-col { min-width: 0; }
.megamenu-title {
  display: flex; align-items: flex-start; gap: .5rem;
  font-size: .875rem; font-weight: 600; color: var(--ascer-dark);
  margin-bottom: .5rem; padding-bottom: .5rem;
  border-bottom: 2px solid var(--ascer-orange); line-height: 1.3;
}
.megamenu-title:hover { color: var(--ascer-orange); }
.megamenu-title-icon { color: var(--ascer-orange); display: flex; flex-shrink: 0; margin-top: 1px; }
.megamenu-desc { font-size: .75rem; color: var(--ascer-gray-500); margin-bottom: .5rem; line-height: 1.4; }
.megamenu-links { list-style: none; margin: 0; padding: 0; }
.megamenu-links li { margin: 0; }
.megamenu-links a {
  display: block; font-size: .8125rem; color: var(--ascer-gray-700);
  padding: .35rem 0; transition: color var(--transition), padding var(--transition);
}
.megamenu-links a:hover { color: var(--ascer-orange); padding-left: .35rem; }

.header-actions { display: flex; align-items: center; gap: .25rem; flex-shrink: 0; }
.icon-btn {
  background: none; border: none; cursor: pointer;
  color: var(--ascer-gray-700); padding: .5rem; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.icon-btn:hover { background: rgba(0,0,0,.05); color: var(--ascer-orange); }
.menu-btn { display: flex; }

/* Mobile nav */
.mobile-nav {
  position: fixed; inset: 0; z-index: 1100;
  background: var(--ascer-white);
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
  overflow-y: auto; padding: 1rem 1.25rem 2rem;
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 1rem; padding-bottom: 1rem;
  border-bottom: 1px solid var(--ascer-gray-300);
}
.mobile-nav-link {
  display: flex; align-items: center; gap: .75rem;
  color: var(--ascer-dark); font-size: 1rem; font-weight: 600;
  padding: .875rem 0; border-bottom: 1px solid var(--ascer-gray-100);
}
.mobile-accordion { border-bottom: 1px solid var(--ascer-gray-100); }
.mobile-accordion summary {
  padding: .875rem 0; font-weight: 600; font-size: .9375rem;
  color: var(--ascer-dark); cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.mobile-accordion summary::-webkit-details-marker { display: none; }
.mobile-accordion summary::after { content: '+'; color: var(--ascer-orange); font-size: 1.25rem; }
.mobile-accordion[open] summary::after { content: '−'; }
.mobile-accordion-body { padding-bottom: .75rem; }
.mobile-nav-group { margin-bottom: .75rem; }
.mobile-nav-sublink {
  display: flex; align-items: center; gap: .5rem;
  font-size: .875rem; font-weight: 600; color: var(--ascer-orange);
  padding: .375rem 0;
}
.mobile-nav-child {
  display: block; font-size: .8125rem; color: var(--ascer-gray-700);
  padding: .3rem 0 .3rem 1.5rem;
}

/* Search overlay */
.search-overlay {
  position: fixed; inset: 0; z-index: 1200;
  background: rgba(255,255,255,.96); backdrop-filter: blur(8px);
  display: none; align-items: flex-start; justify-content: center;
  padding-top: 12vh;
}
.search-overlay.open { display: flex; }
.search-box { width: 90%; max-width: 600px; }
.search-box input {
  width: 100%; padding: 1rem 1.25rem; font-size: 1.125rem;
  background: var(--ascer-white); border: 2px solid var(--ascer-gray-300);
  border-radius: var(--radius); color: var(--ascer-dark); outline: none;
}
.search-box input:focus { border-color: var(--ascer-orange); }
.search-results { margin-top: 1rem; max-height: 50vh; overflow-y: auto; }
.search-results a {
  display: block; padding: .75rem 1rem; color: var(--ascer-dark);
  border-radius: 8px;
}
.search-results a:hover { background: rgba(181,93,31,.1); color: var(--ascer-orange); }
.btn-ghost {
  margin-top: 1rem; width: 100%; justify-content: center;
  background: transparent; color: var(--ascer-gray-700);
  border: 1px solid var(--ascer-gray-300); padding: .75rem;
  border-radius: var(--radius); cursor: pointer; font-weight: 500;
}
.btn-ghost:hover { border-color: var(--ascer-orange); color: var(--ascer-orange); }

/* ── Main ── */
main { padding-top: var(--header-h); min-height: 100vh; }

/* ── Hero ── */
.hero {
  position: relative; min-height: 70vh;
  display: flex; align-items: flex-end;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center 30%;
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(13,13,13,.88) 0%, rgba(13,13,13,.35) 45%, rgba(13,13,13,.15) 100%);
}

/* Hero slider (home) */
.hero-slider {
  position: absolute; inset: 0; z-index: 0;
}
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity 1s ease;
  pointer-events: none;
}
.hero-slide.active {
  opacity: 1; pointer-events: auto;
  z-index: 1;
}
.hero-slide img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 35%;
  display: block;
}
.hero-slide.active img {
  animation: heroKenBurns 8s ease forwards;
}
@keyframes heroKenBurns {
  from { transform: scale(1); }
  to { transform: scale(1.06); }
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(to top, rgba(13,13,13,.88) 0%, rgba(13,13,13,.4) 50%, rgba(13,13,13,.2) 100%);
  pointer-events: none;
}
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 4; width: 44px; height: 44px;
  border-radius: 50%; border: 1px solid rgba(255,255,255,.35);
  background: rgba(0,0,0,.25); backdrop-filter: blur(4px);
  color: var(--ascer-white); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.hero-arrow:hover { background: rgba(181,93,31,.7); border-color: transparent; }
.hero-prev { left: 1rem; }
.hero-prev svg { transform: rotate(180deg); }
.hero-next { right: 1rem; }
.hero-dots {
  position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%);
  z-index: 4; display: flex; gap: .5rem;
}
.hero-dot {
  width: 8px; height: 8px; border-radius: 50%;
  border: none; padding: 0; cursor: pointer;
  background: rgba(255,255,255,.4);
  transition: all var(--transition);
}
.hero-dot.active { background: var(--ascer-orange); width: 28px; border-radius: 4px; }

.hero-content {
  position: relative; z-index: 3;
  max-width: 1400px; width: 100%; margin: 0 auto;
  padding: 3rem 1.25rem 4.5rem;
}
.hero-tag {
  display: inline-block; background: var(--ascer-orange);
  color: var(--ascer-white); font-size: .75rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .08em;
  padding: .375rem .875rem; border-radius: 100px; margin-bottom: 1rem;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 500; color: var(--ascer-white);
  line-height: 1.15; margin-bottom: 1rem; max-width: 800px;
}
.hero p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255,255,255,.8); max-width: 600px; margin-bottom: 2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .875rem 1.5rem; border-radius: 100px;
  font-weight: 600; font-size: .9375rem; border: none; cursor: pointer;
  transition: all var(--transition);
}
.btn-primary {
  background: var(--ascer-orange); color: var(--ascer-white);
}
.btn-primary:hover { background: var(--ascer-orange-light); color: var(--ascer-white); transform: translateY(-1px); }
.btn-outline {
  background: transparent; color: var(--ascer-white);
  border: 2px solid rgba(255,255,255,.4);
}
.btn-outline:hover { border-color: var(--ascer-white); background: rgba(255,255,255,.1); color: var(--ascer-white); }

/* ── Sections ── */
.section { padding: 4rem 0; }
.section-dark { background: var(--ascer-dark); color: var(--ascer-white); }
.section-white { background: var(--ascer-white); }
.container { max-width: 1400px; margin: 0 auto; padding: 0 1.25rem; }

.section-header { margin-bottom: 2.5rem; }
.section-header h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 500; margin-bottom: .5rem;
}
.section-header p { color: var(--ascer-gray-500); font-size: 1.0625rem; max-width: 600px; }
.section-dark .section-header p { color: rgba(255,255,255,.6); }

/* ── Cards Grid ── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}
.card {
  background: var(--ascer-white); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: all var(--transition); cursor: pointer;
  border: 1px solid rgba(0,0,0,.04);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-img { height: 160px; background-size: cover; background-position: center; position: relative; }
.card-img::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.5), transparent);
}
.card-body { padding: 1.25rem; }
.card-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: rgba(181,93,31,.1); color: var(--ascer-orange);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: .875rem;
}
.card h3 { font-size: 1.0625rem; font-weight: 600; margin-bottom: .375rem; }
.card p { font-size: .875rem; color: var(--ascer-gray-500); line-height: 1.5; }

/* Dark cards */
.section-dark .card {
  background: var(--ascer-gray-900); border-color: rgba(255,255,255,.06);
}
.section-dark .card h3 { color: var(--ascer-white); }
.section-dark .card p { color: rgba(255,255,255,.5); }

/* ── Stats ── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem; margin-bottom: 2rem;
}
.stat-card {
  background: var(--ascer-white); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--ascer-orange);
}
.stat-card .stat-value {
  font-size: 2rem; font-weight: 500; color: var(--ascer-dark);
}
.stat-card .stat-label { font-size: .8125rem; color: var(--ascer-gray-500); margin-top: .25rem; }
.stat-card .stat-change { font-size: .8125rem; font-weight: 600; margin-top: .5rem; }
.stat-card .stat-change.positive { color: #16a34a; }
.stat-card .stat-change.negative { color: #dc2626; }

.stats-charts { display: grid; gap: 2rem; }
@media (min-width: 900px) { .stats-charts { grid-template-columns: 1fr 1fr; } }

.chart-container {
  background: var(--ascer-white); border-radius: var(--radius-lg);
  padding: 1.5rem; box-shadow: var(--shadow-sm); margin-bottom: 1.5rem;
}
.chart-container h3 { font-size: 1rem; font-weight: 600; margin-bottom: 1rem; }
.chart-wrap { position: relative; height: 320px; }

/* ── News ── */
.news-featured { display: flex; flex-direction: column; gap: 1.25rem; }
.news-grid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.news-grid--sub { margin-top: .25rem; }
.news-list--cards,
.news-list--compact { display: flex; flex-direction: column; gap: .875rem; }

.news-card {
  display: block; text-decoration: none; color: inherit;
  background: var(--ascer-white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.news-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.news-card__media,
.news-card__thumb {
  position: relative; overflow: hidden;
  background: var(--ascer-gray-100);
}
.news-card__media { aspect-ratio: 16 / 10; }
.news-card__thumb { width: 72px; height: 72px; flex-shrink: 0; border-radius: var(--radius); }
.news-card__media img,
.news-card__thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .45s ease;
}
.news-card:hover .news-card__media img,
.news-card:hover .news-card__thumb img { transform: scale(1.05); }
.news-card__body { padding: 1rem 1.15rem 1.15rem; }
.news-card__meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem;
  margin-bottom: .35rem;
}
.news-card__date {
  font-size: .75rem; font-weight: 600; color: var(--ascer-orange);
  letter-spacing: .02em;
}
.news-card__tag {
  font-size: .6875rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .04em; color: var(--ascer-gray-500);
  background: var(--ascer-gray-100); padding: .2rem .55rem; border-radius: 100px;
}
.news-card__title {
  font-size: .98rem; font-weight: 600; line-height: 1.4;
  color: var(--ascer-dark); margin: 0;
}
.news-card__excerpt {
  margin: .5rem 0 0; font-size: .875rem; line-height: 1.55;
  color: var(--ascer-gray-600);
}
.news-card__more {
  display: inline-block; margin-top: .75rem;
  font-size: .8125rem; font-weight: 600; color: var(--ascer-orange);
}

.news-card--featured {
  display: grid; gap: 0;
}
@media (min-width: 768px) {
  .news-card--featured { grid-template-columns: 1.1fr 1fr; }
}
.news-card--featured .news-card__media { aspect-ratio: auto; min-height: 220px; }
@media (min-width: 768px) {
  .news-card--featured .news-card__media { min-height: 100%; }
}
.news-card--featured .news-card__date {
  position: absolute; left: 1rem; bottom: 1rem;
  background: rgba(0,0,0,.55); color: #fff;
  padding: .35rem .65rem; border-radius: 100px;
}
.news-card--featured .news-card__body { padding: 1.35rem 1.5rem; display: flex; flex-direction: column; justify-content: center; }
.news-card--featured .news-card__title { font-size: 1.2rem; }

.news-card--row {
  display: grid; gap: 0;
  grid-template-columns: 140px 1fr;
}
@media (min-width: 640px) {
  .news-card--row { grid-template-columns: 200px 1fr; }
}
.news-card--row .news-card__media { aspect-ratio: auto; min-height: 120px; }
.news-card--row .news-card__body { padding: 1.1rem 1.25rem; }

.news-card--compact {
  display: flex; gap: .875rem; align-items: center;
  padding: .75rem; border-radius: var(--radius);
}
.news-card--compact .news-card__body { padding: 0; flex: 1; min-width: 0; }
.news-card--compact .news-card__title { font-size: .9rem; }

/* Entry article */
.entry-hero { position: relative; min-height: 42vh; display: flex; align-items: flex-end; }
.entry-hero__media { position: absolute; inset: 0; }
.entry-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.entry-hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.82) 0%, rgba(0,0,0,.35) 55%, rgba(0,0,0,.15) 100%);
}
.entry-hero__content {
  position: relative; z-index: 2; padding: 2.5rem 1.25rem 2.75rem;
  color: #fff; max-width: 900px;
}
.entry-hero__content h1 {
  font-size: clamp(1.5rem, 3.5vw, 2.35rem);
  font-weight: 500; line-height: 1.25; margin: .75rem 0;
  color: #fff;
}
.entry-hero__content h1::after { display: none; }
.entry-hero__tag {
  display: inline-block; font-size: .75rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .05em;
  background: var(--ascer-orange); padding: .3rem .7rem; border-radius: 100px;
}
.entry-hero__date { font-size: .875rem; opacity: .9; }
.breadcrumb--light a { color: rgba(255,255,255,.85); }
.breadcrumb--light a:hover { color: #fff; }
.breadcrumb--light span { color: rgba(255,255,255,.45); }
.entry-body-wrap { max-width: 900px; }
.entry-content { max-width: none; }
.entry-lead { font-size: 1.05rem; line-height: 1.7; color: var(--ascer-dark); }
.entry-note { margin-top: 1rem; color: var(--ascer-gray-600); }
.entry-actions { margin-top: 1.5rem; }
.page-hero--news .page-intro { margin-top: .5rem; color: var(--ascer-gray-600); max-width: 52ch; }

/* Legacy aliases */
.news-list { display: flex; flex-direction: column; gap: .75rem; }
.news-item {
  display: flex; gap: 1rem; padding: 1rem 1.25rem;
  background: var(--ascer-white); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); transition: all var(--transition);
  border-left: 3px solid transparent;
}
.news-date {
  flex-shrink: 0; font-size: .75rem; font-weight: 600;
  color: var(--ascer-orange); min-width: 70px; padding-top: .125rem;
}
.news-title { font-size: .9375rem; font-weight: 500; color: var(--ascer-dark); }

/* ── Page content ── */
.page-hero {
  background: var(--ascer-white); padding: 2.5rem 0 2rem;
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.page-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--ascer-dark); font-weight: 500;
}
.page-hero h1::after {
  content: ''; display: block; width: 48px; height: 3px;
  background: var(--ascer-orange); margin-top: .75rem; border-radius: 2px;
}
.breadcrumb {
  display: flex; flex-wrap: wrap; gap: .5rem;
  font-size: .8125rem; color: var(--ascer-gray-500); margin-bottom: 1rem;
}
.breadcrumb a { color: var(--ascer-gray-700); }
.breadcrumb a:hover { color: var(--ascer-orange); }
.breadcrumb span { color: var(--ascer-gray-300); }

.page-content { padding: 2.5rem 0 4rem; }
.content-body {
  background: var(--ascer-white); border-radius: var(--radius-lg);
  padding: 2rem; box-shadow: var(--shadow-sm);
  font-size: .9375rem; line-height: 1.75; color: var(--ascer-gray-700);
  max-width: 900px;
}
.content-body h2, .content-body h3 { color: var(--ascer-dark); margin: 1.5rem 0 .75rem; }

/* ── Countries ── */
.continent-tabs {
  display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem;
}
.continent-tab {
  padding: .625rem 1.25rem; border-radius: 100px;
  background: var(--ascer-white); border: 1px solid var(--ascer-gray-300);
  font-size: .875rem; font-weight: 500; cursor: pointer;
  transition: all var(--transition);
}
.continent-tab.active, .continent-tab:hover {
  background: var(--ascer-orange); color: var(--ascer-white); border-color: var(--ascer-orange);
}
.country-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: .75rem;
}
.country-link {
  display: block; padding: .875rem 1rem;
  background: var(--ascer-white); border-radius: var(--radius);
  font-size: .875rem; font-weight: 500; color: var(--ascer-dark);
  box-shadow: var(--shadow-sm); transition: all var(--transition);
}
.country-link:hover {
  background: var(--ascer-orange); color: var(--ascer-white);
  transform: translateY(-2px); box-shadow: var(--shadow-md);
}

/* ── Reports list ── */
.reports-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}
.report-card {
  display: flex; gap: 1rem; padding: 1.25rem;
  background: var(--ascer-white); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); transition: all var(--transition);
  align-items: flex-start;
}
.report-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.report-icon {
  width: 48px; height: 48px; flex-shrink: 0;
  background: rgba(181,93,31,.1); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--ascer-orange);
}
.report-icon svg { width: 22px; height: 22px; }
.footer-about { font-size: .875rem; line-height: 1.6; color: rgba(255,255,255,.6); }
.footer-web { margin-top: 1rem; font-size: .8125rem; }
.report-card h4 { font-size: .9375rem; font-weight: 600; margin-bottom: .25rem; }
.report-card .meta { font-size: .75rem; color: var(--ascer-gray-500); }

/* ── Footer ── */
.site-footer {
  background: var(--ascer-black); color: rgba(255,255,255,.6);
  padding: 3rem 0 1.5rem;
}
.footer-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem; margin-bottom: 2rem;
}
.footer-grid h4 {
  color: var(--ascer-white); font-size: .875rem; font-weight: 600;
  margin-bottom: 1rem; text-transform: uppercase; letter-spacing: .05em;
}
.footer-grid a {
  display: block; color: rgba(255,255,255,.6); font-size: .875rem;
  padding: .25rem 0; transition: color var(--transition);
}
.footer-grid a:hover { color: var(--ascer-orange-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 1.5rem; display: flex; flex-wrap: wrap;
  justify-content: space-between; gap: 1rem;
  font-size: .8125rem;
}
.footer-contact a { color: var(--ascer-orange-light); }

/* ── Quick access bar ── */
.quick-bar {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem; margin-top: -3rem; position: relative; z-index: 2;
  padding: 0 1.25rem; max-width: 1400px; margin-left: auto; margin-right: auto;
}
.quick-item {
  background: var(--ascer-white); border-radius: var(--radius);
  padding: 1.25rem; text-align: center; box-shadow: var(--shadow-md);
  transition: all var(--transition); cursor: pointer;
}
.quick-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.quick-item .qi-icon { margin-bottom: .625rem; }
.quick-item span { font-size: .8125rem; font-weight: 600; color: var(--ascer-dark); display: block; }

/* ── Two column layout ── */
.two-col { display: grid; gap: 2rem; }
@media (min-width: 900px) { .two-col { grid-template-columns: 2fr 1fr; } }

/* ── Press strip ── */
/* ── Press feed ── */
.section-press-home {
  background: linear-gradient(180deg, var(--ascer-gray-100) 0%, var(--ascer-white) 100%);
  padding: 3.5rem 0;
}
.section-header--row {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 1rem 2rem; margin-bottom: 2rem;
}
.section-eyebrow {
  display: inline-block; font-size: .75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em; color: var(--ascer-orange);
  margin-bottom: .35rem;
}
.page-hero--press { background: var(--ascer-dark); color: #fff; padding: 3rem 0; }
.page-hero--press h1 { color: #fff; }
.page-hero--press h1::after { background: var(--ascer-orange); }
.page-hero--press .page-intro,
.page-hero--press .breadcrumb a { color: rgba(255,255,255,.85); }
.page-hero--press .breadcrumb span { color: rgba(255,255,255,.4); }
.press-updated { font-size: .8125rem; opacity: .75; margin-top: .5rem; }

.press-grid {
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.press-grid--home {
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .press-grid--home {
    grid-template-columns: 1.2fr 1fr 1fr;
    grid-template-rows: auto auto;
  }
  .press-grid--home .press-card--lead {
    grid-row: span 2;
  }
}
.press-day-group { margin-bottom: 2.5rem; }
.press-day-title {
  font-size: 1rem; font-weight: 600; color: var(--ascer-orange);
  margin: 0 0 1rem; padding-bottom: .5rem;
  border-bottom: 2px solid var(--ascer-gray-200);
}
.press-card {
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  background: var(--ascer-white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid rgba(0,0,0,.04);
}
a.press-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.press-card__media {
  position: relative; aspect-ratio: 16/9; overflow: hidden;
  background: var(--ascer-gray-100);
}
.press-card--lead .press-card__media { aspect-ratio: auto; min-height: 220px; }
@media (min-width: 768px) {
  .press-card--lead .press-card__media { min-height: 100%; }
}
.press-card__media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .5s ease;
}
a.press-card:hover .press-card__media img { transform: scale(1.04); }
.press-card__topic {
  position: absolute; left: .75rem; top: .75rem;
  font-size: .6875rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .05em; background: rgba(0,0,0,.6); color: #fff;
  padding: .25rem .55rem; border-radius: 100px;
}
.press-card__body { padding: 1rem 1.15rem 1.2rem; flex: 1; display: flex; flex-direction: column; }
.press-card__meta {
  display: flex; flex-wrap: wrap; gap: .35rem .75rem; align-items: center;
  font-size: .75rem; margin-bottom: .5rem;
}
.press-card__meta time { font-weight: 600; color: var(--ascer-orange); }
.press-card__source { color: var(--ascer-gray-500); }
.press-card__title {
  font-size: 1rem; font-weight: 600; line-height: 1.4;
  color: var(--ascer-dark); margin: 0 0 .5rem;
}
.press-card--lead .press-card__title { font-size: 1.2rem; }
.press-card__summary {
  font-size: .875rem; line-height: 1.55; color: var(--ascer-gray-600);
  margin: 0 0 .75rem; flex: 1;
}
.press-card__link {
  font-size: .8125rem; font-weight: 600; color: var(--ascer-orange); margin-top: auto;
}
.press-footer-note {
  margin-top: 2rem; padding-top: 1.5rem;
  border-top: 1px solid var(--ascer-gray-200);
  color: var(--ascer-gray-600); font-size: .9rem;
}
.press-empty {
  padding: 2rem; background: var(--ascer-gray-100); border-radius: var(--radius-lg);
}

.press-strip {
  background: var(--ascer-orange); padding: 1rem 0; overflow: hidden;
}
.press-marquee {
  display: flex; gap: 3rem; animation: marquee 40s linear infinite;
  white-space: nowrap;
}
.press-marquee span {
  color: var(--ascer-white); font-size: .875rem; font-weight: 500;
  opacity: .9;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── Responsive ── */
@media (min-width: 768px) {
  .nav-desktop { display: flex; }
  .menu-btn { display: none; }
  .hero { min-height: 80vh; }
}
@media (max-width: 640px) {
  .hero-arrow { width: 36px; height: 36px; }
  .hero-prev { left: .5rem; }
  .hero-next { right: .5rem; }
  .hero-content { padding-bottom: 3.5rem; }
}
@media (min-width: 1200px) {
  .megamenu-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 767px) {
  .megamenu-panel { display: none; }
}

@media (min-width: 1024px) {
  .header-inner, .container { padding-left: 2rem; padding-right: 2rem; }
}

/* ── Utilities ── */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.text-orange { color: var(--ascer-orange); }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
.hidden { display: none !important; }

/* Loading */
.page-loading {
  display: flex; align-items: center; justify-content: center;
  min-height: 50vh; color: var(--ascer-gray-500);
}

/* Feature banner */
.feature-banner {
  display: grid; gap: 0; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-md);
}
@media (min-width: 768px) {
  .feature-banner { grid-template-columns: 1fr 1fr; }
}
.feature-banner-img { min-height: 280px; background-size: cover; background-position: center; }
.feature-banner-content {
  background: var(--ascer-dark); padding: 2.5rem;
  display: flex; flex-direction: column; justify-content: center;
}
.feature-banner-content h3 {
  font-size: 1.75rem; font-weight: 500;
  color: var(--ascer-white); margin-bottom: 1rem;
}
.feature-banner-content p { color: rgba(255,255,255,.7); margin-bottom: 1.5rem; }

/* Formation */
.formation-list { display: flex; flex-direction: column; gap: 1.25rem; }
.formation-card {
  display: flex; gap: 1.25rem; padding: 1.25rem;
  border: 1px solid var(--ascer-gray-200); border-radius: var(--radius-md);
  background: var(--ascer-white);
}
.formation-date {
  flex-shrink: 0; width: 4.5rem; text-align: center;
  background: var(--ascer-gray-100); border-radius: var(--radius-sm); padding: .75rem .5rem;
}
.fd-day { display: block; font-size: 1.5rem; font-weight: 700; color: var(--ascer-orange); line-height: 1; }
.fd-month { display: block; font-size: .7rem; text-transform: uppercase; color: var(--ascer-gray-500); margin-top: .25rem; }
.formation-meta { display: flex; align-items: center; gap: .35rem; color: var(--ascer-gray-500); font-size: .875rem; margin: .35rem 0; }
.formation-org { font-size: .875rem; color: var(--ascer-gray-600); margin-top: .5rem; }

/* Continents */
.continent-block { margin-bottom: 2.5rem; }
.continent-title { font-size: 1.25rem; color: var(--ascer-orange); margin-bottom: 1rem; padding-bottom: .5rem; border-bottom: 2px solid var(--ascer-gray-200); }

/* News full */

/* Sidebar */
.sidebar-nav .nav-pills { list-style: none; padding: 0; }
.sidebar-nav .nav-pills a { display: block; padding: .5rem .75rem; border-radius: var(--radius-sm); color: var(--ascer-gray-700); text-decoration: none; }
.sidebar-nav .nav-pills a:hover, .sidebar-nav .nav-pills .active a { background: var(--ascer-orange); color: #fff; }

/* Imported content */
.content-body h2, .content-body h3 { margin: 1.5rem 0 .75rem; color: var(--ascer-dark); }
.content-body p { margin-bottom: 1rem; line-height: 1.7; }
.content-body ul, .content-body ol { margin: 0 0 1rem 1.25rem; }
.content-body li { margin-bottom: .35rem; }
.content-body table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: .9rem; }
.content-body th, .content-body td { border: 1px solid var(--ascer-gray-200); padding: .5rem .75rem; text-align: left; }
.content-body th { background: var(--ascer-gray-100); }
.content-body .list-group-item {
  display: block; padding: 1rem; margin-bottom: .5rem;
  border: 1px solid var(--ascer-gray-200); border-radius: var(--radius-sm);
  text-decoration: none; color: inherit; transition: border-color var(--transition);
}
.content-body .list-group-item:hover { border-color: var(--ascer-orange); }
.content-body .list-group-item-heading { font-size: 1rem; margin-bottom: .35rem; color: var(--ascer-dark); }
.content-body .panel { border: 1px solid var(--ascer-gray-200); border-radius: var(--radius-md); margin: 1.5rem 0; overflow: hidden; }
.content-body .panel-heading { background: var(--ascer-gray-100); padding: .75rem 1rem; }
.content-body .panel-body { padding: 1rem; }

/* Hero / card fallbacks */
.page-hero--fallback { background: linear-gradient(135deg, #1a1a1a 0%, #3d2b1f 50%, #b55d1f 100%); }
.card-img--fallback { background: linear-gradient(135deg, var(--ascer-gray-200), var(--ascer-gray-100)); }

/* News links */
.formation-card { text-decoration: none; color: inherit; transition: border-color var(--transition), box-shadow var(--transition); }
.formation-card:hover { border-color: var(--ascer-orange); box-shadow: var(--shadow-sm); }

/* Hero prev arrow rotation */
.hero-prev svg { transform: rotate(180deg); }

/* Hub & advanced layouts */
.hub-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.hub-card {
  display: block; padding: 1.25rem; text-decoration: none; color: inherit;
  border: 1px solid var(--ascer-gray-200); border-radius: var(--radius-md);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.hub-card:hover { border-color: var(--ascer-orange); box-shadow: var(--shadow-sm); }
.hub-card h3 { font-size: 1rem; margin-bottom: .5rem; color: var(--ascer-dark); }
.hub-card p { font-size: .875rem; color: var(--ascer-gray-600); margin-bottom: .75rem; }
.hub-card-link { font-size: .8125rem; font-weight: 600; color: var(--ascer-orange); }

.highlight-grid { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); margin: 1.5rem 0; }
.highlight-card {
  padding: 1rem; background: var(--ascer-gray-100); border-radius: var(--radius-sm);
  font-size: .875rem; font-weight: 500; border-left: 3px solid var(--ascer-orange);
}

.meta-badges { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.25rem 0; }
.meta-badge {
  display: inline-block; padding: .35rem .75rem; font-size: .75rem; font-weight: 600;
  background: rgba(181,93,31,.1); color: var(--ascer-orange); border-radius: 100px;
}

.info-blocks { display: grid; gap: 1rem; margin: 1.5rem 0; }
@media (min-width: 768px) { .info-blocks { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); } }
.info-block {
  padding: 1.25rem; border: 1px solid var(--ascer-gray-200); border-radius: var(--radius-md);
}
.info-block h3 { font-size: 1rem; margin-bottom: .5rem; color: var(--ascer-orange); }
.info-block p { font-size: .9rem; color: var(--ascer-gray-700); margin: 0; line-height: 1.6; }

.content-intro { margin-bottom: 1.5rem; }
.content-intro p { font-size: 1.05rem; line-height: 1.7; color: var(--ascer-gray-700); }
.content-cta { margin-top: 2rem; padding: 1rem; background: var(--ascer-gray-100); border-radius: var(--radius-md); }

.help-steps { margin: 1.5rem 0; padding-left: 1.25rem; }
.help-steps li { margin-bottom: 1rem; line-height: 1.6; }

.sidebar-title { font-size: .875rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ascer-gray-500); margin-bottom: .75rem; }
.sidebar-links { list-style: none; padding: 0; margin: 0; }
.sidebar-links a {
  display: block; padding: .5rem .75rem; border-radius: var(--radius-sm);
  text-decoration: none; color: var(--ascer-gray-700); font-size: .9rem;
}
.sidebar-links a:hover, .sidebar-links a.active { background: var(--ascer-orange); color: #fff; }

.page-hero { background-size: cover; background-position: center; color: #fff; padding: 2.5rem 0; }
.page-hero .breadcrumb a { color: rgba(255,255,255,.8); }
.page-hero h1 { color: #fff; }
