/* ==========================================================================
   eVaslui.ro — style.css v1.0.0
   Portal & Homepage styles: hero, sections, articles, single post, comments
   Loaded ONLY on: homepage, articles, archives, search, pages
   Depends on: core.css
   ========================================================================== */

/* ---------- HERO SECTION ---------- */
.hero-section {
  padding: var(--space-7) 0 var(--space-12);
}

.hero-card {
  position: relative;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  aspect-ratio: 21/9;
  background: var(--color-dark-bg);
  box-shadow: var(--shadow-xl);
  cursor: pointer;
}

.hero-card__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-card__image img {
  width: 100%;
  height: 100%!IMPORTANT;
  object-fit: cover;
  transition: transform 0.8s var(--ease-apple);
}

.hero-card:hover .hero-card__image img {
  transform: scale(1.02);
}

.hero-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.75) 0%,
    rgba(0, 0, 0, 0.3) 40%,
    rgba(0, 0, 0, 0.05) 100%
  );
  z-index: 1;
}

.hero-card__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-10);
  z-index: 2;
}

.hero-card__badge {
  margin-bottom: var(--space-4);
}

.hero-card__badge .cat-badge {
  background: rgba(255, 255, 255, 0.15);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #fff;
  font-size: 11px;
  padding: 5px 12px;
}

.hero-card__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.003em;
  color: #ffffff;
  max-width: 720px;
  margin-bottom: var(--space-4);
}

.hero-card__title a {
  color: inherit;
}

/* Stretched link — entire hero-card is clickable */
.hero-card__title a::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 5;
}

.hero-card__excerpt {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.47059;
  color: rgba(255, 255, 255, 0.8);
  max-width: 540px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-card__meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-5);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

/* ---------- LATEST SECTION ---------- */
.latest-section {
  padding: var(--space-12) 0;
}

.latest-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.latest-item {
  position: relative;
  display: flex;
  gap: var(--space-6);
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  overflow: hidden;
  padding: var(--space-5);
  cursor: pointer;
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
  box-shadow: var(--shadow-sm);
  align-items: center;
}

.latest-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.latest-item__image {
  flex-shrink: 0;
  width: 260px;
  height: 170px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.latest-item__image img {
  width: 100%;
  height: 100%!IMPORTANT;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.latest-item:hover .latest-item__image img {
  transform: scale(1.04);
}

.latest-item__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-3);
  min-width: 0;
}

.latest-item__category .cat-badge {
  font-size: 11px;
}

.latest-item__title {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.011em;
  color: var(--color-text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.latest-item__title a {
  color: inherit;
}

/* Stretched link — entire latest-item is clickable */
.latest-item__title a::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 3;
}

.latest-item__title a:hover {
  color: var(--color-accent);
}

.latest-item__excerpt {
  font-size: 14px;
  line-height: 1.42859;
  color: var(--color-text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.latest-item__meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: 12px;
  color: var(--color-text-tertiary);
}

/* ---------- SECTION ONE (1 big + 3 small) ---------- */
.section-one {
  padding: var(--space-12) 0;
}

.section-one__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  align-items: stretch;
  max-height: 450px;
}

.section-one__grid > * {
  min-height: 0;
  overflow: hidden;
}

/* Featured card (left) */
.section-one__featured {
  position: relative;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  background: var(--color-dark-bg);
  box-shadow: var(--shadow-lg);
}

.section-one__featured .card__image {
  position: absolute;
  inset: 0;
  border-radius: 0;
}

.section-one__featured .card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section-one__featured .card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0.15) 50%,
    transparent 100%
  );
  z-index: 1;
}

.section-one__featured .card__body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: var(--space-8);
}

.section-one__featured .card__title {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  line-height: 1.14;
  -webkit-line-clamp: 4;
}

.section-one__featured .card__title a {
  color: inherit;
}

.section-one__featured .card__excerpt {
  color: rgba(255, 255, 255, 0.75);
  margin-top: var(--space-3);
}

.section-one__featured .card__meta {
  color: rgba(255, 255, 255, 0.5);
}

.section-one__featured .cat-badge {
  background: rgba(255, 255, 255, 0.15);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #fff;
}

/* Sidebar list (right) */
.section-one__sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.section-one__sidebar .latest-item {
  padding: var(--space-4);
}

.section-one__sidebar .latest-item__image {
  width: 180px;
  height: 120px;
}

.section-one__sidebar .latest-item__title {
  font-size: 17px;
}

/* ---------- SECTION TWO (Video Section) ---------- */
.section-video {
  padding: var(--space-12) 0;
}

.video-showcase {
  position: relative;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  background: var(--color-dark-bg);
  box-shadow: var(--shadow-xl);
}

/* Full-bleed background image — spans entire widget */
.video-showcase__bg-image {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.video-showcase__bg-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1 !important;
}

/* Main content zone (aspect-ratio for the visible area) */
.video-showcase__main {
  position: relative;
  aspect-ratio: 16/9;
  z-index: 1;
}

.video-showcase__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.85) 0%,
    rgba(0, 0, 0, 0.4) 40%,
    rgba(0, 0, 0, 0.1) 100%
  );
  z-index: 1;
}

.video-showcase__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: var(--space-8);
  padding-bottom: var(--space-6);
}

.video-showcase__play {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  background: rgba(255, 255, 255, 0.15);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-full);
  padding: var(--space-3) var(--space-5);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: var(--space-4);
  transition: background var(--transition-fast);
  cursor: pointer;
  border: none;
}

.video-showcase__play:hover {
  background: rgba(255, 255, 255, 0.25);
}

.video-showcase__play svg {
  width: 20px;
  height: 20px;
}

.video-showcase__title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  line-height: 1.125;
  margin-bottom: var(--space-3);
  max-width: 600px;
}

.video-showcase__title a {
  color: inherit;
}

.video-showcase__meta {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
}

.video-showcase__meta-sep {
  margin: 0 6px;
  opacity: 0.5;
}

.video-showcase__excerpt {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
  max-width: 540px;
  margin-bottom: var(--space-3);
}

.video-showcase__badge {
  margin-bottom: var(--space-3);
}

.video-showcase__duration svg {
  vertical-align: -2px;
  margin-right: 2px;
}

/* Content positions */
.video-showcase__content--bottom-left {
  bottom: 0; left: 0; right: 0;
  text-align: left;
}
.video-showcase__content--bottom-center {
  bottom: 0; left: 0; right: 0;
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.video-showcase__content--center {
  top: 50%; left: 50%; right: auto; bottom: auto;
  transform: translate(-50%, -50%);
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.video-showcase__content--top-left {
  top: 0; left: 0; right: 0; bottom: auto;
  padding-top: var(--space-8);
  text-align: left;
}

/* Bottom video list — semi-transparent, image visible behind */
.video-showcase__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  position: relative;
  z-index: 3;
  background: rgba(28, 28, 30, 0.75);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.video-showcase__item {
  padding: var(--space-5) var(--space-6);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  transition: background var(--transition-fast);
  cursor: pointer;
}

.video-showcase__item:last-child {
  border-right: none;
}

.video-showcase__item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.video-showcase__item-number {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 800;
  line-height: 1;
  color: rgba(255, 255, 255, 0.12);
  margin-bottom: var(--space-3);
  letter-spacing: -0.02em;
}

.video-showcase__item-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-inverse);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-showcase__item-title a {
  color: inherit;
}

.video-showcase__item-title a:hover {
  text-decoration: underline;
}

/* ---------- SECTION THREE (Tabbed Categories) ---------- */
.section-tabs {
  padding: var(--space-12) 0;
}

.tabs-nav {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-8);
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.tabs-nav::-webkit-scrollbar {
  display: none;
}

.tabs-nav__item {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-secondary);
  padding: var(--space-3) var(--space-5);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color var(--transition-fast), border-color var(--transition-fast);
  white-space: nowrap;
  cursor: pointer;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
}

.tabs-nav__item:hover {
  color: var(--color-text-primary);
}

.tabs-nav__item.active {
  color: var(--color-text-primary);
  font-weight: 600;
  border-bottom-color: var(--color-text-primary);
}

.tabs-content {
  display: none;
}

.tabs-content.active {
  display: block;
  animation: tabFadeIn 0.4s var(--ease-apple);
}

@keyframes tabFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tabs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

.tabs-grid .card__image {
  aspect-ratio: 16/10;
}

.tabs-grid .card__title {
  font-size: 17px;
  -webkit-line-clamp: 2;
}

.tabs-grid .card__excerpt {
  font-size: 13px;
  -webkit-line-clamp: 2;
}

/* ---------- SINGLE POST Template ---------- */

/* Breadcrumbs */
.breadcrumbs {
  padding: var(--space-4) 0 0;
  font-size: 13px;
  color: var(--color-text-tertiary);
}

.breadcrumbs a {
  color: var(--color-text-secondary);
  transition: color var(--transition-fast);
}

.breadcrumbs a:hover {
  color: var(--color-accent);
}

.breadcrumbs__sep {
  margin: 0 var(--space-2);
  color: var(--color-text-tertiary);
  opacity: 0.5;
}

.breadcrumbs__current {
  color: var(--color-text-tertiary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 300px;
  display: inline-block;
  vertical-align: bottom;
}

.single-header {
  padding: var(--space-10) 0 var(--space-7);
  text-align: left;
}

.single-header__category {
  margin-bottom: var(--space-4);
}

.single-header__title {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 700;
  line-height: 1.083;
  letter-spacing: -0.003em;
  color: var(--color-text-primary);
  margin: 0 0 var(--space-5);
}

.single-header__excerpt {
  font-size: 21px;
  line-height: 1.381;
  color: var(--color-text-secondary);
  max-width: 760px;
  margin: 0 0 var(--space-6);
}

.single-header__meta {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 13px;
  color: var(--color-text-tertiary);
}

.single-header__dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--color-text-tertiary);
  opacity: 0.5;
  flex-shrink: 0;
}

.single-header__comments-link {
  display: inline-flex; align-items: center; gap: 5px;
  color: var(--color-accent, #1A5FA4); text-decoration: none;
  font-weight: 500; transition: color 0.2s;
}
.single-header__comments-link:hover { color: var(--blue-900, #0B3D6B); text-decoration: underline; }
.single-header__comments-link i { font-size: 14px; }

/* ── Hero Image — Adaptive: wide images fill, narrow images get blur backdrop ── */
.single-hero-image {
  position: relative;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  margin-bottom: var(--space-10);
  box-shadow: var(--shadow-lg);
  max-height: 550px;
  background: var(--color-surface-secondary);
}

/* ── Mode A: Wide image (≥1200px, ratio ≥1.5) — classic cover ── */
.single-hero-image--wide {
  /* No blur needed, image is large enough */
}

.single-hero-image--wide .single-hero-image__img {
  width: 100%;
  height: auto;
  max-height: 550px;
  object-fit: cover;
  display: block;
}

/* ── Mode B: Contain — image at natural size + blurred backdrop ── */
.single-hero-image--contain {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  max-height: 550px;
}

/* Blurred background layer */
.single-hero-image__blur {
  position: absolute;
  inset: -20px;
  background-size: cover;
  background-position: center;
  filter: blur(40px) saturate(1.2) brightness(0.7);
  transform: scale(1.1);
  z-index: 0;
}

/* Dark overlay on blur for contrast */
.single-hero-image--contain::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.15);
  z-index: 1;
  pointer-events: none;
}

.single-hero-image--contain .single-hero-image__img {
  position: relative;
  z-index: 2;
  max-width: 100%;
  max-height: 550px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  /* Subtle shadow to lift image off the blurred bg */
  filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.3));
}

/* ── Fallback: no blur div (e.g. no JS or image too small) ── */
.single-hero-image:not(.single-hero-image--wide):not(.single-hero-image--contain) .single-hero-image__img,
.single-hero-image img:not(.single-hero-image__img) {
  width: 100%;
  max-height: 550px;
  object-fit: cover;
  display: block;
}

/* Article Content */
/* ==========================================================================
   ARTICLE CONTENT — Apple-Inspired UI Kit
   Complete typography & design system for single post content
   ========================================================================== */

.article-content {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 40px 0px;
  background: var(--color-surface);
  border-radius: var(--radius-2xl);
}

.article-content__inner {
  max-width: var(--container-content);
  margin: 0 auto;
}

/* ── 1. VERTICAL RHYTHM — .prose / .flow ── */
.article-content > *,
.article-content__inner > * {
  max-width: var(--container-content);
  margin-left: auto;
  margin-right: auto;
}

/* alignwide/alignfull handled in fix section at bottom of file */

/* ── 2. HEADINGS ── */
.article-content h2 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.16667;
  letter-spacing: 0.009em;
  color: var(--color-text-primary);
  margin: 1.6em 0 0.5em;
}

.article-content h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.1667;
  letter-spacing: -0.003em;
  color: var(--color-text-primary);
  margin: 1.4em 0 0.4em;
}

.article-content h4 {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.19;
  color: var(--color-text-primary);
  margin: 1.2em 0 0.35em;
}

.article-content h5 {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.294;
  letter-spacing: -0.005em;
  color: var(--color-text-primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 1.6em 0 0.4em;
}

.article-content h6 {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.33;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 1.4em 0 0.3em;
}

/* First heading after hero — no top margin */
.article-content > h2:first-child,
.article-content__inner > h2:first-child {
  margin-top: 0;
}

/* ── 3. PARAGRAPH & INLINE TEXT ── */
.article-content p {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.47059;
  color: var(--color-text-primary);
  margin-bottom: 1.4em;
  text-align: left;
  font-weight: 400;
  letter-spacing: -0.022em;
}

.article-content strong,
.article-content b {
  font-weight: 600;
  color: var(--color-text-primary);
}

.article-content em,
.article-content i {
  font-style: italic;
}

.article-content small {
  font-size: 0.85em;
  color: var(--color-text-secondary);
}

.article-content mark {
  background: linear-gradient(120deg, rgba(26, 95, 164, 0.08) 0%, rgba(26, 95, 164, 0.15) 100%);
  color: inherit;
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

.article-content del {
  text-decoration: line-through;
  color: var(--color-text-tertiary);
}

.article-content ins:not(.adsbygoogle) {
  text-decoration: none;
  border-bottom: 2px solid var(--color-accent);
}

/* Reset AdSense ins — no article styling interference */
.article-content ins.adsbygoogle {
  text-decoration: none;
  border: none;
}

/* ── AdSense Containment — prevent overflow from inline width:2000px ── */
ins.adsbygoogle {
  max-width: 100% !important;
  overflow: hidden !important;
}

ins.adsbygoogle > div,
ins.adsbygoogle > ins,
div[id^="aswift_"],
div[data-ad-status] {
  max-width: 100% !important;
  overflow: hidden !important;
}

iframe[id^="aswift_"],
iframe[id^="google_ads_"],
iframe[name^="google_ads_"] {
  max-width: 100% !important;
}

.article-content sub,
.article-content sup {
  font-size: 0.75em;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

.article-content sup { top: -0.5em; }
.article-content sub { bottom: -0.25em; }

.article-content abbr[title] {
  text-decoration: underline dotted var(--color-text-tertiary);
  text-underline-offset: 3px;
  cursor: help;
}

.article-content cite {
  font-style: italic;
  color: var(--color-text-secondary);
}

.article-content q {
  quotes: "«" "»" "‹" "›";
}

.article-content q::before { content: open-quote; }
.article-content q::after { content: close-quote; }

.article-content time {
  font-variant-numeric: tabular-nums;
}

/* ── 4. CODE / TECHNICAL ── */
.article-content code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background: var(--color-surface-secondary);
  color: #D4537E;
  padding: 0.15em 0.4em;
  border-radius: 6px;
  word-break: break-word;
}

.article-content pre {
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.6;
  background: var(--color-dark-bg);
  color: #D3D1C7;
  padding: var(--space-5) var(--space-6);
  border-radius: var(--radius-md);
  overflow-x: auto;
  margin: var(--space-7) auto;
  -webkit-overflow-scrolling: touch;
  tab-size: 2;
}

.article-content pre code {
  background: transparent;
  color: inherit;
  padding: 0;
  border-radius: 0;
  font-size: inherit;
}

.article-content kbd {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--color-surface-tertiary);
  color: var(--color-text-primary);
  padding: 0.15em 0.5em;
  border-radius: 6px;
  border: 1px solid var(--color-border-strong);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}

.article-content samp {
  font-family: var(--font-mono);
  font-size: 0.875em;
  color: var(--color-text-secondary);
}

.article-content var {
  font-family: var(--font-mono);
  font-style: italic;
  color: var(--color-accent);
}

/* ── 5. LINKS ── */
.article-content a {
  color: var(--color-link);
  text-decoration: underline;
  text-decoration-color: rgba(0, 102, 204, 0.3);
  text-underline-offset: 2px;
  transition: color var(--transition-fast), text-decoration-color var(--transition-fast);
}

.article-content a:hover {
  color: var(--color-link-hover);
  text-decoration-color: var(--color-link-hover);
}

.article-content a:active {
  color: var(--color-accent-active);
}

.article-content a:visited {
  color: #534AB7;
  text-decoration-color: rgba(88, 86, 214, 0.3);
}

.article-content a:visited:hover {
  text-decoration-color: #534AB7;
}

.article-content a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 3px;
  text-decoration: none;
}

/* ── 6. LISTS ── */
.article-content ul,
.article-content ol {
  padding-left: 1.5em;
  margin-bottom: 1.4em;
}

.article-content ul { list-style: disc; }
.article-content ol { list-style: decimal; }

.article-content li {
  font-size: 17px;
  line-height: 1.58824;
  margin-bottom: 0.5em;
  color: var(--color-text-primary);
}

.article-content li::marker {
  color: var(--color-text-tertiary);
}

.article-content ol li::marker {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.article-content li > ul,
.article-content li > ol {
  margin-top: 0.4em;
  margin-bottom: 0;
}

.article-content dl {
  margin-bottom: 1.4em;
}

.article-content dt {
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 0.25em;
}

.article-content dd {
  margin-left: 1.5em;
  margin-bottom: 1em;
  color: var(--color-text-secondary);
}

/* ── 7. QUOTES & SEPARATORS ── */
.article-content blockquote {
  position: relative;
  margin: var(--space-10) auto;
  padding: var(--space-8) var(--space-8) var(--space-7);
  background: linear-gradient(135deg, rgba(26, 95, 164, 0.04) 0%, rgba(88, 86, 214, 0.03) 100%);
  border-radius: var(--radius-xl);
  border: none;
  max-width: 90%;
}

/* Large decorative quote mark */
.article-content blockquote::before {
  content: "\201C";
  position: absolute;
  top: -8px;
  left: 24px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 72px;
  font-weight: 700;
  line-height: 1;
  color: var(--color-accent);
  opacity: 0.25;
  pointer-events: none;
}

.article-content blockquote p {
  font-size: 20px;
  line-height: 1.5;
  font-style: normal;
  font-weight: 500;
  color: var(--color-text-primary);
  margin-bottom: 0.5em;
  letter-spacing: -0.01em;
}

.article-content blockquote p:first-of-type {
  padding-top: var(--space-3);
}

.article-content blockquote p:last-child {
  margin-bottom: 0;
}

.article-content blockquote cite {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-style: normal;
  font-weight: 600;
  color: var(--color-accent);
  margin-top: var(--space-4);
  letter-spacing: 0.01em;
}

.article-content blockquote cite::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 2px;
  background: var(--color-accent);
  border-radius: 1px;
  opacity: 0.6;
}

.article-content hr {
  border: none;
  height: 1px;
  background: var(--color-border);
  margin: var(--space-9) auto;
}

/* ── 8. FIGURES ── */
.article-content figure {
  margin: var(--space-8) auto;
  text-align: center;
}

/* article-content img — handled by comprehensive fix at bottom */

.article-content figure img {
  margin: 0 auto var(--space-3);
}

.article-content figcaption {
  font-size: 13px;
  line-height: 1.46;
  color: var(--color-text-tertiary);
  text-align: center;
  max-width: 480px;
  margin: 0 auto;
}

/* ── 9. TABLES ── */
.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-7) auto;
  font-size: 15px;
  line-height: 1.47;
}

.article-content caption {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-tertiary);
  text-align: left;
  padding-bottom: var(--space-3);
}

.article-content thead {
  border-bottom: 2px solid var(--color-border-strong);
}

.article-content th {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-secondary);
  text-align: left;
  padding: var(--space-3) var(--space-4);
}

.article-content td {
  padding: var(--space-3) var(--space-4);
  color: var(--color-text-primary);
  border-bottom: 1px solid var(--color-border);
}

.article-content tbody tr:last-child td {
  border-bottom: none;
}

.article-content tbody tr:hover {
  background: var(--color-surface-secondary);
}

.article-content tfoot {
  border-top: 2px solid var(--color-border-strong);
}

.article-content tfoot td {
  font-weight: 600;
  font-size: 14px;
  color: var(--color-text-secondary);
  border-bottom: none;
}

/* ── 10. FORMS ── */
.article-content form {
  margin: var(--space-7) auto;
}

.article-content label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-2);
}

.article-content input[type="text"],
.article-content input[type="email"],
.article-content input[type="password"],
.article-content input[type="search"],
.article-content input[type="number"],
.article-content input[type="tel"],
.article-content input[type="url"],
.article-content input[type="date"],
.article-content textarea,
.article-content select {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.4;
  color: var(--color-text-primary);
  background: var(--color-surface);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  padding: var(--space-3) var(--space-4);
  width: 100%;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.article-content input:focus,
.article-content textarea:focus,
.article-content select:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(26, 95, 164, 0.12);
}

.article-content ::placeholder {
  color: var(--color-text-tertiary);
}

.article-content textarea {
  min-height: 120px;
  resize: vertical;
}

.article-content select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23636366' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: var(--space-8);
}

.article-content input[type="file"] {
  font-family: var(--font-body);
  font-size: 14px;
  padding: var(--space-3);
  border: 1px dashed var(--color-border-strong);
  border-radius: var(--radius-sm);
  background: var(--color-surface-secondary);
  cursor: pointer;
}

.article-content input[type="file"]::file-selector-button {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  background: var(--color-accent);
  color: #fff;
  border: none;
  cursor: pointer;
  margin-right: var(--space-3);
}

.article-content input[type="checkbox"],
.article-content input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--color-accent);
  cursor: pointer;
  vertical-align: middle;
  margin-right: var(--space-2);
}

.article-content input[type="range"] {
  width: 100%;
  accent-color: var(--color-accent);
  cursor: pointer;
}

.article-content input[type="color"] {
  width: 44px;
  height: 44px;
  padding: 2px;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.article-content button,
.article-content input[type="submit"],
.article-content input[type="reset"] {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.article-content input[type="submit"],
.article-content button[type="submit"] {
  background: var(--color-accent);
  color: #fff;
}

.article-content input[type="submit"]:hover,
.article-content button[type="submit"]:hover {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
}

.article-content input[type="reset"] {
  background: var(--color-surface-secondary);
  color: var(--color-text-secondary);
}

.article-content input:disabled,
.article-content textarea:disabled,
.article-content select:disabled,
.article-content button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.article-content input:required {
  border-left: 2px solid var(--color-accent);
}

.article-content input:invalid:not(:placeholder-shown) {
  border-color: #E24B4A;
  box-shadow: 0 0 0 3px rgba(226, 75, 74, 0.1);
}

.article-content fieldset {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-5) var(--space-6);
  margin: var(--space-6) auto;
}

.article-content legend {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text-primary);
  padding: 0 var(--space-2);
}

/* ── 11. MEDIA ── */
.article-content svg {
  max-width: 100%;
  height: auto;
  display: block;
  margin: var(--space-6) auto;
}

.article-content video {
  max-width: 100%;
  border-radius: var(--radius-lg);
  margin: var(--space-8) auto;
  display: block;
}

.article-content canvas {
  max-width: 100%;
  margin: var(--space-6) auto;
  display: block;
}

/* WordPress post embeds */
.article-content iframe.wp-embedded-content {
  position: relative !important;
  visibility: visible !important;
  display: block !important;
  max-width: 600px;
  min-height: 500px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-strong);
  box-shadow: var(--shadow-sm);
  margin: var(--space-6) auto;
  background: var(--color-surface);
}

.article-content iframe:not(.wp-embedded-content):not([src*="googlesyndication"]):not([src*="doubleclick"]):not([id^="google_ads"]):not([id^="aswift"]) {
  max-width: 100%;
  border-radius: var(--radius-lg);
  display: block;
  margin: var(--space-6) auto;
}

/* ── 12. DETAILS / SUMMARY ── */
.article-content details {
  background: var(--color-surface-secondary);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
  margin: var(--space-5) auto;
  border: 1px solid var(--color-border);
}

.article-content details[open] {
  padding-bottom: var(--space-5);
}

.article-content summary {
  font-weight: 600;
  font-size: 15px;
  color: var(--color-text-primary);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.article-content summary::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-right: 2px solid var(--color-text-tertiary);
  border-bottom: 2px solid var(--color-text-tertiary);
  transform: rotate(-45deg);
  transition: transform var(--transition-fast);
  flex-shrink: 0;
}

.article-content details[open] > summary::before {
  transform: rotate(45deg);
}

.article-content summary::-webkit-details-marker {
  display: none;
}

.article-content details > *:not(summary) {
  margin-top: var(--space-4);
}

/* ── 13. ACCESSIBILITY / ARIA ── */
.article-content [aria-disabled="true"] {
  opacity: 0.5;
  pointer-events: none;
}

.article-content [role="button"] {
  cursor: pointer;
}

/* ── 14. TYPOGRAPHIC UTILITY CLASSES ── */
.article-content .text-xs   { font-size: 12px; }
.article-content .text-sm   { font-size: 14px; }
.article-content .text-base { font-size: 17px; }
.article-content .text-lg   { font-size: 21px; }
.article-content .text-xl   { font-size: 28px; }
.article-content .text-2xl  { font-size: 36px; }

.article-content .lead {
  font-size: 21px;
  line-height: 1.47;
  color: var(--color-text-secondary);
  margin-bottom: 1.6em;
}

.article-content .caption {
  font-size: 13px;
  color: var(--color-text-tertiary);
}

.article-content .muted {
  color: var(--color-text-tertiary);
}

.article-content .text-left   { text-align: left; }
.article-content .text-center { text-align: center; }
.article-content .text-right  { text-align: right; }
.article-content .uppercase   { text-transform: uppercase; letter-spacing: 0.04em; }
.article-content .lowercase   { text-transform: lowercase; }

.article-content .truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── 15. WP BLOCK COMPATIBILITY ── */
.article-content .wp-block-image {
  margin: var(--space-8) auto;
}

.article-content .wp-block-image img {
  margin: 0 auto;
}

/* Gallery — full CSS at bottom of file */

.article-content .wp-block-embed {
  margin: var(--space-7) auto;
}

.article-content .wp-block-separator {
  border: none;
  height: 1px;
  background: var(--color-border);
  margin: var(--space-9) auto;
}

.article-content .wp-block-columns {
  gap: var(--space-6);
  margin: var(--space-6) auto;
}

/* ══════════════════════════════════════════════════════════
   SHARE ZONE — Modern Apple-style share section
   ══════════════════════════════════════════════════════════ */
.article-share-wrap {
  padding: var(--space-8) 0 var(--space-6);
  margin-top: var(--space-8);
  border-top: 1px solid var(--color-border);
}

.share-box {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  background: var(--color-surface-secondary);
  border-radius: var(--radius-xl);
  padding: var(--space-5) var(--space-6);
}

.share-box__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-text-primary);
  color: #fff;
  font-size: 18px;
  flex-shrink: 0;
}

.share-box__text {
  flex: 1;
  min-width: 0;
}

.share-box__label {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text-primary);
  line-height: 1.2;
}

.share-box__sublabel {
  font-size: 13px;
  color: var(--color-text-tertiary);
  margin-top: 2px;
}

.share-box__buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  flex-shrink: 0;
  align-items: center;
}

.share-box__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--color-border);
  color: var(--color-text-primary);
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s var(--ease-apple);
  padding: 0;
  line-height: 1;
}

.share-box__btn i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: inherit;
}

.share-box__btn:hover {
  background: var(--color-text-primary);
  color: #fff;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.share-box__btn:hover i {
  color: #fff;
}

.share-box__btn--copied { background: #1D9E75 !important; color: #fff !important; border-color: transparent !important; }

/* ── ARTICLE TAGS ── */
.article-tags {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: var(--space-2);
  padding: var(--space-6) 0;
  border-top: 1px solid var(--color-border);
  margin-top: var(--space-8);
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.article-tags::-webkit-scrollbar {
  display: none;
}

.article-tags a {
  font-size: 13px;
  font-weight: 500;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  background: var(--color-surface-secondary);
  color: var(--color-text-secondary);
  transition: background var(--transition-fast), color var(--transition-fast);
  white-space: nowrap;
  flex-shrink: 0;
}

.article-tags a:hover {
  background: var(--color-accent);
  color: #fff;
}

/* ── Share + Save Bar ── */
.ev-share-bar {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: var(--space-5) 0; margin-top: var(--space-4);
  border-top: 1px solid var(--color-border);
}
.ev-share-bar__label {
  font-size: 14px; font-weight: 500; color: var(--color-text-secondary);
}
.ev-share-bar__buttons {
  display: flex; gap: 8px; align-items: center;
}
.ev-share-bar__btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 10px;
  border: 1px solid var(--color-border); background: var(--color-bg, #F8F7F3);
  color: var(--color-text-secondary); font-size: 17px; cursor: pointer;
  transition: all 0.2s; text-decoration: none;
}
.ev-share-bar__btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.ev-share-bar__btn--fb:hover { background: #1877F2; color: #fff; border-color: #1877F2; }
.ev-share-bar__btn--tw:hover { background: #000; color: #fff; border-color: #000; }
.ev-share-bar__btn--wa:hover { background: #25D366; color: #fff; border-color: #25D366; }
.ev-share-bar__btn--li:hover { background: #0A66C2; color: #fff; border-color: #0A66C2; }
.ev-share-bar__btn--copy:hover { background: var(--color-accent); color: #fff; border-color: var(--color-accent); }
.ev-share-bar__save {
  display: inline-flex; align-items: center; gap: 6px; margin-left: auto;
  padding: 10px 20px; border-radius: 10px;
  border: 1px solid var(--color-border); background: var(--color-bg, #F8F7F3);
  color: var(--color-text-secondary); font-size: 14px; font-weight: 500;
  cursor: pointer; font-family: inherit; transition: all 0.2s;
}
.ev-share-bar__save:hover { background: var(--color-accent); color: #fff; border-color: var(--color-accent); }
.ev-share-bar__save--saved { background: var(--green-500, #1D9E75); color: #fff; border-color: var(--green-500); }
.ev-share-bar__save--saved:hover { background: var(--green-500); }
.ev-share-bar__save i { font-size: 16px; }
@media (max-width: 600px) {
  .ev-share-bar { gap: 10px; }
  .ev-share-bar__label { width: 100%; font-size: 13px; }
  .ev-share-bar__btn { width: 36px; height: 36px; font-size: 15px; border-radius: 8px; }
  .ev-share-bar__save { padding: 8px 14px; font-size: 13px; margin-left: 0; }
}

/* Related Posts (used in single.html) */
.related-section {
  padding: var(--space-12) 0;
  background: var(--color-surface-secondary);
  border-radius: var(--radius-2xl);
  margin-bottom: var(--space-12);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
}

/* ---------- CATEGORY / SEARCH / TAG Template ---------- */
.category-header {
  padding: var(--space-14) 0 var(--space-10);
  text-align: left;
  background: var(--color-surface-secondary);
  border-radius: 0 0 var(--radius-2xl) var(--radius-2xl);
}

.category-header__title {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.003em;
  color: var(--color-text-primary);
  margin-bottom: var(--space-4);
}

.category-header__desc {
  font-size: 19px;
  line-height: 1.47;
  color: var(--color-text-secondary);
  max-width: 680px;
  margin-bottom: var(--space-7);
}

.category-header__search {
  position: relative;
  max-width: 440px;
}

.category-header__search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--color-text-tertiary);
  pointer-events: none;
}

.category-header__search-input {
  width: 100%;
  font-family: var(--font-body);
  font-size: 15px;
  padding: 12px 16px 12px 42px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  color: var(--color-text-primary);
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.category-header__search-input::placeholder {
  color: var(--color-text-tertiary);
}

.category-header__search-input:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(26, 95, 164, 0.1);
}

/* Articles section */
.category-articles {
  padding: var(--space-10) 0 var(--space-12);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-bottom: var(--space-10);
}

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
}

.pagination__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text-secondary);
  transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

.pagination__btn:hover {
  background: var(--color-text-primary);
  color: #fff;
  border-color: var(--color-text-primary);
}

.pagination__btn svg {
  width: 18px;
  height: 18px;
}

.pagination__pages {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.pagination__page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: background var(--transition-fast), color var(--transition-fast);
}

.pagination__page:hover {
  background: var(--color-surface-secondary);
  color: var(--color-text-primary);
}

.pagination__page.active {
  background: var(--color-text-primary);
  color: #fff;
  font-weight: 600;
}

.pagination__dots {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 40px;
  font-size: 14px;
  color: var(--color-text-tertiary);
  letter-spacing: 0.1em;
}

/* ---------- PAGE Template ---------- */
.page-header {
  padding: var(--space-14) 0 var(--space-10);
  text-align: left;
  background: var(--color-surface-secondary);
  border-radius: 0 0 var(--radius-2xl) var(--radius-2xl);
}

.page-header__title {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 700;
  line-height: 1.071;
  letter-spacing: -0.005em;
  color: var(--color-text-primary);
  margin-bottom: var(--space-4);
}

.page-header__subtitle {
  font-size: 21px;
  color: var(--color-text-secondary);
  max-width: 700px;
}

.page-content {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--space-12) 0;
  background: var(--color-surface);
  border-radius: var(--radius-2xl);
}

.page-content p {
  font-size: 17px;
  line-height: 1.58824;
  margin-bottom: 1.4em;
  text-align: justify;
}

.page-content h2 {
  font-size: 32px;
  margin: 2em 0 0.8em;
  text-align: left;
}

.page-content h3 {
  font-size: 24px;
  margin: 1.8em 0 0.6em;
  text-align: left;
}

/* ---------- ARTICLE AUTHOR BOX ---------- */
.article-author-box {
  max-width: var(--container-max);
  margin: var(--space-8) auto 0;
  padding: var(--space-8) 0;
  background: var(--color-surface-secondary);
  border-radius: var(--radius-xl);
}

.article-author-box .container {
  display: flex;
  gap: var(--space-6);
  align-items: center;
}

.article-author-box__avatar {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: var(--radius-full);
  overflow: hidden;
}

.article-author-box__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-author-box__info {
  flex: 1;
}

.article-author-box__name {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: var(--space-2);
}

.article-author-box__name a {
  color: inherit;
}

.article-author-box__name a:hover {
  color: var(--color-accent);
}

.article-author-box__bio {
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-3);
}

.article-author-box__social {
  display: flex;
  gap: var(--space-3);
}

.article-author-box__social a {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-link);
  transition: color var(--transition-fast);
}

.article-author-box__social a:hover {
  color: var(--color-link-hover);
}

/* ---------- ARTICLE PREV/NEXT NAVIGATION ---------- */
.article-nav {
  max-width: var(--container-max);
  margin: var(--space-8) auto;
  padding: 0;
}

.article-nav__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.article-nav__link {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  text-decoration: none;
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  min-height: 100px;
}

.article-nav__link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.article-nav__link--empty {
  visibility: hidden;
}

.article-nav__link--next {
  text-align: right;
  justify-content: flex-end;
}

/* Arrow icon */
.article-nav__arrow {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--color-surface-secondary);
  color: var(--color-accent);
  font-size: 16px;
  transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}

.article-nav__link:hover .article-nav__arrow {
  background: var(--color-accent);
  color: #fff;
}

.article-nav__link--prev:hover .article-nav__arrow {
  transform: translateX(-3px);
}

.article-nav__link--next:hover .article-nav__arrow {
  transform: translateX(3px);
}

/* Thumbnail */
.article-nav__thumb {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-surface-secondary);
}

.article-nav__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Text block */
.article-nav__text {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  min-width: 0;
  flex: 1;
}

.article-nav__label {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.article-nav__link--next .article-nav__label {
  justify-content: flex-end;
}

.article-nav__dir {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-tertiary);
}

.article-nav__cat {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: 600;
  background: var(--color-accent);
  color: #fff;
  letter-spacing: 0.02em;
}

.article-nav__title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--color-text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--transition-fast);
}

.article-nav__link:hover .article-nav__title {
  color: var(--color-accent);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .article-nav__inner {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }

  .article-nav__link {
    padding: var(--space-4);
  }

  .article-nav__link--next {
    text-align: left;
    justify-content: flex-start;
    flex-direction: row-reverse;
  }

  .article-nav__link--next .article-nav__label {
    justify-content: flex-start;
  }

  .article-nav__thumb {
    width: 52px;
    height: 52px;
  }

  .article-nav__title {
    font-size: 14px;
    -webkit-line-clamp: 2;
  }

  .article-nav__link--empty {
    display: none;
  }
}

/* ---------- ARTICLE NEWSLETTER ---------- */
.article-newsletter {
  max-width: var(--container-max);
  margin: var(--space-10) auto;
  padding: var(--space-10) var(--space-6);
  background: linear-gradient(145deg, #1A1A19 0%, #1A1A19 50%, #1A1A19 100%);
  border-radius: var(--radius-2xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Subtle decorative glow */
.article-newsletter::before {
  content: '';
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(26, 95, 164, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.article-newsletter .container {
  position: relative;
  z-index: 1;
}

.article-newsletter__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 100px;
  background: rgba(26, 95, 164, 0.15);
  border: 1px solid rgba(26, 95, 164, 0.2);
  color: var(--color-accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: var(--space-5);
}

.article-newsletter__badge i {
  font-size: 14px;
}

.article-newsletter__title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  margin-bottom: var(--space-3);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.article-newsletter__desc {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.55);
  max-width: 500px;
  margin: 0 auto var(--space-7);
  line-height: 1.55;
}

.article-newsletter__form {
  display: flex;
  gap: 0;
  max-width: 480px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.article-newsletter__form:focus-within {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(26, 95, 164, 0.15);
}

.article-newsletter__input {
  flex: 1;
  font-family: var(--font-body);
  font-size: 15px;
  padding: 14px var(--space-5);
  border: none;
  background: transparent;
  color: #fff;
  outline: none;
}

.article-newsletter__input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.article-newsletter__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  padding: 14px var(--space-6);
  background: var(--color-accent);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-fast);
  white-space: nowrap;
}

.article-newsletter__btn:hover {
  background: var(--color-accent-hover);
  transform: translateX(2px);
}

.article-newsletter__btn i {
  font-size: 16px;
  transition: transform 0.2s ease;
}

.article-newsletter__btn:hover i {
  transform: translateX(3px);
}

.article-newsletter__trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.3);
  margin-top: var(--space-4);
}

.article-newsletter__trust i {
  font-size: 13px;
  color: rgba(29, 158, 117, 0.6);
}

/* ---------- COMMENTS SECTION ---------- */
/* ==========================================================================
   COMMENTS SECTION — Apple-Inspired Design
   ========================================================================== */
.comments-section {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--space-10) 0 var(--space-12);
  background: var(--color-surface);
  border-radius: var(--radius-2xl);
}

.comments-section__title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: var(--space-7);
}

.comments-section__count {
  font-weight: 400;
  color: var(--color-text-tertiary);
  font-size: 21px;
}

/* ── Empty State — Inviting CTA ── */
.comments-empty {
  text-align: center;
  padding: var(--space-10) var(--space-6);
  background: linear-gradient(135deg, var(--color-surface-secondary) 0%, rgba(26, 95, 164, 0.03) 100%);
  border-radius: var(--radius-xl);
  border: 1px dashed var(--color-border-strong);
}

.comments-empty__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: var(--radius-full);
  background: rgba(26, 95, 164, 0.08);
  color: var(--color-accent);
  font-size: 28px;
  margin-bottom: var(--space-5);
}

.comments-empty__title {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: var(--space-2);
}

.comments-empty__desc {
  font-size: 15px;
  color: var(--color-text-secondary);
  max-width: 360px;
  margin: 0 auto var(--space-5);
  line-height: 1.47;
}

.comments-empty__arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-accent);
  animation: comments-bounce 2s ease-in-out infinite;
}

@keyframes comments-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* ── Comment Form ── */
.comment-form {
  background: var(--color-surface-secondary);
  border-radius: var(--radius-xl);
  padding: var(--space-7);
  margin-bottom: var(--space-8);
  border: 1px solid transparent;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.comment-form:focus-within {
  border-color: rgba(26, 95, 164, 0.2);
  box-shadow: 0 0 0 4px rgba(26, 95, 164, 0.06);
}

.comment-form__title {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: var(--space-5);
}

.comment-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.comment-form__field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.comment-form__field--full {
  grid-column: 1 / -1;
}

.comment-form__label {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-secondary);
}

.comment-form__input,
.comment-form__textarea {
  font-family: var(--font-body);
  font-size: 15px;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--color-text-primary);
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.comment-form__input:focus,
.comment-form__textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(26, 95, 164, 0.12);
}

.comment-form__input::placeholder,
.comment-form__textarea::placeholder {
  color: var(--color-text-tertiary);
}

.comment-form__textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.5;
}

.comment-form__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--space-5);
}

.comment-form__policy {
  font-size: 12px;
  color: var(--color-text-tertiary);
  max-width: 320px;
  line-height: 1.4;
}

.comment-form__submit {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  padding: var(--space-3) var(--space-7);
  border-radius: var(--radius-full);
  background: var(--color-accent);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.comment-form__submit:hover {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(26, 95, 164, 0.3);
}

/* ── Comment List ── */
.comment-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.comment {
  padding: var(--space-6) 0;
  border-bottom: 1px solid var(--color-border);
}

.comment:last-child {
  border-bottom: none;
}

.comment__header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.comment__avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  overflow: hidden;
  flex-shrink: 0;
}

.comment__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.comment__author-info {
  flex: 1;
}

.comment__author-name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text-primary);
}

.comment__date {
  font-size: 12px;
  color: var(--color-text-tertiary);
}

.comment__body {
  font-size: 15px;
  line-height: 1.53;
  color: var(--color-text-primary);
  margin-bottom: var(--space-3);
}

.comment__body p {
  font-size: inherit;
  line-height: inherit;
  margin-bottom: 0.8em;
  text-align: left;
}

.comment__body p:last-child {
  margin-bottom: 0;
}

.comment__actions {
  display: flex;
  gap: var(--space-5);
}

.comment__action-btn {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-tertiary);
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: var(--space-1);
  transition: color var(--transition-fast);
  padding: 0;
}

.comment__action-btn:hover {
  color: var(--color-accent);
}

.comment__action-btn svg {
  width: 14px;
  height: 14px;
}

/* Nested/reply comments */
.comment--reply {
  margin-left: var(--space-9);
  padding-left: var(--space-6);
  border-left: 2px solid var(--color-border);
}

/* Comment reply form */
.comment__reply-form {
  display: none;
  margin-top: var(--space-4);
  padding: var(--space-5);
  background: var(--color-surface-secondary);
  border-radius: var(--radius-md);
}

.comment__reply-form.active {
  display: block;
}

.comment__reply-form .comment-form__textarea {
  min-height: 80px;
  margin-bottom: var(--space-3);
}

.comment__reply-form .comment-form__actions {
  margin-top: 0;
  justify-content: flex-end;
  gap: var(--space-3);
}

.comment__reply-cancel {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-full);
  background: var(--color-surface-tertiary);
  color: var(--color-text-secondary);
  border: none;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.comment__reply-cancel:hover {
  background: var(--color-border-strong);
}

/* Mobile adjustments for article/page content and comments */
@media (max-width: 600px) {
  .article-content {
    border-radius: var(--radius-lg);
    margin-left: 10px;
    margin-right: 10px;
    padding-left: var(--space-5);
    padding-right: var(--space-5);
  }

  .article-content > .container {
    padding-left: 0;
    padding-right: 0;
  }

  .page-content {
    border-radius: var(--radius-lg);
    margin-left: 10px;
    margin-right: 10px;
  }

  .article-author-box {
    margin-left: 10px;
    margin-right: 10px;
  }

  .article-author-box .container {
    flex-direction: row;
    text-align: left;
    gap: var(--space-4);
  }

  .article-author-box__avatar {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
  }

  .article-author-box__name {
    font-size: 17px;
  }

  .article-author-box__social {
    justify-content: flex-start;
  }

  .article-newsletter {
    border-radius: var(--radius-lg);
    margin-left: 10px;
    margin-right: 10px;
    padding: var(--space-8) var(--space-5);
  }

  .article-newsletter__title {
    font-size: 24px;
  }

  .article-newsletter__desc {
    font-size: 14px;
  }

  .article-newsletter__form {
    flex-direction: column;
    border-radius: var(--radius-md);
  }

  .article-newsletter__btn {
    justify-content: center;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
  }

  .comments-section {
    border-radius: var(--radius-lg);
    margin-left: 10px;
    margin-right: 10px;
  }

  .comments-section__title {
    font-size: 22px;
  }

  .comment-form {
    padding: var(--space-5);
  }

  .comment-form__row {
    grid-template-columns: 1fr;
  }

  .comment-form__actions {
    flex-direction: column;
    gap: var(--space-4);
    align-items: stretch;
    text-align: center;
  }

  .comment-form__policy {
    max-width: 100%;
  }

  .comment--reply {
    margin-left: var(--space-5);
    padding-left: var(--space-4);
  }
}

/* ---------- Apple-Style Section Headlines ---------- */
.section__title--apple {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.003em;
  color: var(--color-text-primary);
}

@media (max-width: 860px) {
  .section__title--apple { font-size: 36px; }
}

@media (max-width: 600px) {
  .section__title--apple { font-size: 28px; }
}

/* ---------- HERO GRID (col-8 + col-4) ---------- */
.hero-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-5);
  align-items: stretch;
}

.hero-grid > .hero-card {
  min-height: 0;
  aspect-ratio: auto;
}

.hero-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.hero-sidebar__item {
  flex: 1;
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--color-dark-bg);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  min-height: 0;
  cursor: pointer;
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
}

.hero-sidebar__item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

.hero-sidebar__item-image {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-sidebar__item-image img {
  width: 100%;
  height: 100%!IMPORTANT;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

.hero-sidebar__item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.8) 0%,
    rgba(0, 0, 0, 0.25) 60%,
    rgba(0, 0, 0, 0.05) 100%
  );
  z-index: 1;
}

.hero-sidebar__item-content {
  position: relative;
  z-index: 2;
  margin-top: auto;
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.hero-sidebar__item-badge .cat-badge {
  background: rgba(255, 255, 255, 0.15);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #fff;
  font-size: 10px;
  padding: 3px 8px;
}

.hero-sidebar__item-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.27;
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

/* Stretched link — entire sidebar item is clickable */
.hero-sidebar__item-title a::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 5;
}

.hero-sidebar__item-title a:hover {
  text-decoration: underline;
}

.hero-sidebar__item-meta {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr;
    height: auto !important; /* Override widget fixed height on mobile */
  }
  .hero-grid > .hero-card {
    aspect-ratio: 16/9;
    min-height: 280px;
  }
  .hero-sidebar {
    flex-direction: row;
    gap: var(--space-4);
  }
  .hero-sidebar__item {
    min-height: 200px;
  }
}

@media (max-width: 600px) {
  .hero-grid > .hero-card {
    aspect-ratio: 4/3;
    min-height: 260px;
  }
  .hero-sidebar {
    flex-direction: column;
  }
  .hero-sidebar__item {
    min-height: 180px;
  }
}

/* ---------- LATEST SECTION Enhanced Container ---------- */
.latest-section .latest-wrapper {
  background: var(--color-surface);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
}

@media (max-width: 600px) {
  .latest-section .latest-wrapper {
    padding: var(--space-5);
    border-radius: var(--radius-lg);
  }
}

/* ---------- SECTION ONE Same-Height Fix ---------- */
.section-one__grid {
  align-items: stretch;
}

.section-one__sidebar {
  height: 100%;
}

.section-one__sidebar .latest-item {
  flex: 1;
}

/* ---------- SECTION CHILD (Apple Apps-style) ---------- */
.section-child {
  padding: var(--space-10) 0 var(--space-12);
  background: var(--color-surface-secondary);
}

/* Filter tabs */
.child-filters {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: var(--space-2);
}

.child-filters::-webkit-scrollbar { display: none; }

.child-filter {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-primary);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: 8px 18px;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

.child-filter:hover {
  background: var(--color-text-primary);
  color: #fff;
  border-color: var(--color-text-primary);
}

.child-filter.active {
  background: var(--color-text-primary);
  color: #fff;
  border-color: var(--color-text-primary);
}

/* Title */
.child-title {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.003em;
  color: var(--color-text-primary);
  margin-bottom: var(--space-8);
}

.child-title span {
  color: var(--color-text-tertiary);
  font-weight: 600;
}

/* Viewport & Track */
.child-viewport {
  overflow: hidden;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  padding: 0;
}

.child-track {
  display: flex;
  gap: var(--space-5);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0 max(var(--space-9), calc((100vw - var(--container-max)) / 2 + var(--space-9)));
  padding-left: max(100px, calc((100vw - var(--container-max)) / 2 + 100px));
  padding-bottom: var(--space-3);
}

.child-track::-webkit-scrollbar { display: none; }

/* Cards */
.child-card {
  flex: 0 0 405px;
  min-height: 560px;
  border-radius: var(--radius-2xl);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  scroll-snap-align: start;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-medium);
}

.child-card:hover {
  transform: translateY(-4px);
}

/* Card color variants */
.child-card--warm {
  background: linear-gradient(160deg, #FAEEDA 0%, #FAEEDA 100%);
}
.child-card--teal {
  background: linear-gradient(160deg, #1A5FA4 0%, #0B3D6B 100%);
}
.child-card--dark {
  background: linear-gradient(160deg, #1A1A19 0%, #1A1A19 100%);
}
.child-card--green {
  background: linear-gradient(160deg, #04342C 0%, #04342C 100%);
}
.child-card--lavender {
  background: linear-gradient(160deg, #EEEDFE 0%, #CECBF6 100%);
}
.child-card--peach {
  background: linear-gradient(160deg, #FAEEDA 0%, #FAEEDA 100%);
}
.child-card--white {
  background: #FFFFFF;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 8px 24px rgba(0,0,0,0.04);
}
.child-card--custom {
  /* background set via Elementor selector */
}

/* Plus icon — Apple circle style */
.child-card__plus-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid rgba(0, 0, 0, 0.15);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--transition-fast), border-color var(--transition-fast);
}
.child-card__plus-icon svg {
  width: 18px;
  height: 18px;
  color: var(--color-text-primary);
  stroke-width: 2;
  transition: color var(--transition-fast);
}
.child-card__plus-icon--dark {
  border-color: rgba(255, 255, 255, 0.25);
}
.child-card__plus-icon--dark svg {
  color: #fff;
}
.child-card:hover .child-card__plus-icon {
  background: var(--color-accent, #1A5FA4);
  border-color: var(--color-accent, #1A5FA4);
}
.child-card:hover .child-card__plus-icon svg {
  color: #fff;
}

/* Card head */
.child-card__head {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.child-card__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.child-card__icon svg {
  width: 22px;
  height: 22px;
  color: var(--color-text-primary);
}

.child-card__icon--dark {
  background: rgba(255, 255, 255, 0.12);
}

.child-card__icon--dark svg {
  color: #fff;
}

.child-card__name {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  color: var(--color-text-primary);
  line-height: 1.2;
  margin: 0;
}

.child-card__name--light {
  color: #fff;
}

/* Card desc */
.child-card__desc {
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-4);
}

.child-card__desc--light {
  color: rgba(255, 255, 255, 0.7);
}

/* Card actions */
.child-card__actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}

.child-card__btn {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-accent);
  background: rgba(26, 95, 164, 0.1);
  border: none;
  border-radius: var(--radius-full);
  padding: 6px 16px;
  cursor: pointer;
  transition: background var(--transition-fast);
  text-decoration: none;
}

.child-card__btn:hover {
  background: rgba(26, 95, 164, 0.2);
}

.child-card__link {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-accent);
  transition: opacity var(--transition-fast);
}

.child-card__link:hover {
  opacity: 0.7;
}

.child-card__link--light {
  color: rgba(255, 255, 255, 0.8);
}

/* Card image */
.child-card__image {
  flex: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: var(--space-4);
  min-height: 0;
}

.child-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

/* Card footer */
.child-card__footer {
  margin-top: auto;
}

.child-card__compat-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--color-text-secondary);
  margin-bottom: 2px;
}

.child-card__compat {
  font-size: 12px;
  color: var(--color-text-tertiary);
}

.child-card__footer--light .child-card__compat-label {
  color: rgba(255, 255, 255, 0.5);
}

.child-card__footer--light .child-card__compat {
  color: rgba(255, 255, 255, 0.4);
}

/* Navigation arrows */
.child-nav {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.child-nav__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

.child-nav__btn:hover:not(:disabled) {
  background: var(--color-text-primary);
  color: #fff;
  border-color: var(--color-text-primary);
}

.child-nav__btn:disabled {
  opacity: 0.3;
  cursor: default;
}

.child-nav__btn svg {
  width: 18px;
  height: 18px;
}

/* Responsive */
@media (max-width: 1080px) {
  .child-card {
    flex: 0 0 340px;
    min-height: 520px;
  }
}

@media (max-width: 860px) {
  .child-title {
    font-size: 36px;
  }
  .child-card {
    flex: 0 0 300px;
    min-height: 480px;
  }
  .child-viewport {
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
  }
  .child-track {
    padding-left: 30px;
    padding-right: var(--space-6);
  }
}

@media (max-width: 600px) {
  .child-title {
    font-size: 28px;
  }
  .child-card {
    flex: 0 0 280px;
    min-height: 460px;
    padding: var(--space-5);
  }
  .child-card__name {
    font-size: 18px;
  }
  .child-card__desc {
    font-size: 13px;
  }
  .child-viewport {
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
  }
  .child-track {
    padding-left: 30px;
    padding-right: 10px;
  }
  .child-nav {
    justify-content: center;
  }
}

/* ---------- SECTION CAROUSEL (Apple "Why Apple" Style) ---------- */
.section-carousel {
  padding: var(--space-14) 0 var(--space-12);
  overflow: hidden;
}

.section-carousel .section__header {
  margin-bottom: var(--space-9);
}

.carousel-viewport {
  overflow: visible;
  position: relative;
}

.carousel-track {
  display: flex;
  gap: var(--space-5);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: var(--space-4);
  cursor: grab;
}

.carousel-track:active {
  cursor: grabbing;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-card {
  flex: 0 0 340px;
  scroll-snap-align: start;
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
  display: flex;
  flex-direction: column;
}

.carousel-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.carousel-card__body {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  flex: 1;
}

.carousel-card__category .cat-badge {
  font-size: 11px;
}

.carousel-card__title {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.21;
  letter-spacing: 0.011em;
  color: var(--color-text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.carousel-card__title a {
  color: inherit;
}

.carousel-card__title a:hover {
  color: var(--color-accent);
}

.carousel-card__excerpt {
  font-size: 14px;
  line-height: 1.43;
  color: var(--color-text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.carousel-card__image {
  overflow: hidden;
  aspect-ratio: 16/10;
  margin-top: auto;
}

.carousel-card__image img {
  width: 100%;
  height: 100%!IMPORTANT;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.carousel-card:hover .carousel-card__image img {
  transform: scale(1.04);
}

/* Carousel navigation */
.carousel-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  margin-top: var(--space-7);
}

.carousel-nav__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--color-surface-secondary);
  color: var(--color-text-primary);
  border: none;
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast), opacity var(--transition-fast);
}

.carousel-nav__btn:hover {
  background: var(--color-surface-tertiary);
}

.carousel-nav__btn:disabled {
  opacity: 0.3;
  cursor: default;
}

.carousel-nav__btn svg {
  width: 18px;
  height: 18px;
}

.carousel-dots {
  display: flex;
  gap: var(--space-2);
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--color-surface-tertiary);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background var(--transition-fast), width var(--transition-fast);
}

.carousel-dot.active {
  width: 24px;
  background: var(--color-text-primary);
}

@media (max-width: 860px) {
  .carousel-card {
    flex: 0 0 290px;
  }
  .carousel-card__title {
    font-size: 19px;
  }
}

@media (max-width: 600px) {
  .carousel-card {
    flex: 0 0 260px;
  }
  .carousel-card__body {
    padding: var(--space-5);
  }
  .carousel-card__title {
    font-size: 17px;
  }
  .carousel-card__excerpt {
    font-size: 13px;
  }
}

/* ---------- SECTION PROMO ---------- */
.section-promo {
  background: var(--color-dark-bg);
  padding: var(--space-13) 0 0;
  color: #fff;
  overflow: hidden;
}

/* Promo Top Area */
.promo-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-10);
  margin-bottom: var(--space-12);
}

.promo-why__title {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.003em;
  color: #fff;
  margin-bottom: var(--space-5);
}

.promo-why__text {
  font-size: 17px;
  line-height: 1.58;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: var(--space-7);
}

.promo-why__social {
  display: flex;
  gap: var(--space-4);
}

.promo-why__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
  transition: background var(--transition-fast), color var(--transition-fast);
}

.promo-why__social a:hover {
  background: var(--color-accent);
  color: #fff;
}

.promo-why__social a svg {
  width: 18px;
  height: 18px;
}

/* Promo Right: Newsletter + Counters */
.promo-right {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.promo-newsletter__title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  margin-bottom: var(--space-3);
}

.promo-newsletter__desc {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: var(--space-5);
  line-height: 1.5;
}

.promo-newsletter__form {
  display: flex;
  gap: var(--space-3);
}

.promo-newsletter__input {
  flex: 1;
  font-family: var(--font-body);
  font-size: 15px;
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  outline: none;
  transition: border-color var(--transition-fast);
}

.promo-newsletter__input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.promo-newsletter__input:focus {
  border-color: var(--color-accent);
}

.promo-newsletter__btn {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-sm);
  background: var(--color-accent);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background var(--transition-fast);
  white-space: nowrap;
}

.promo-newsletter__btn:hover {
  background: var(--color-accent-hover);
}

/* Counters */
.promo-counters {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
}

.promo-counter {
  text-align: center;
  padding: var(--space-5);
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.promo-counter__number {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  margin-bottom: var(--space-2);
}

.promo-counter__label {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Promo CTA Cards */
.promo-cta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  margin-bottom: var(--space-12);
}

.promo-cta-card {
  padding: var(--space-7);
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: background var(--transition-fast), border-color var(--transition-fast);
}

.promo-cta-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.12);
}

.promo-cta-card__icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.08);
  margin-bottom: var(--space-5);
  color: var(--color-accent);
}

.promo-cta-card__icon svg {
  width: 22px;
  height: 22px;
}

.promo-cta-card__title {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  color: #fff;
  margin-bottom: var(--space-2);
}

.promo-cta-card__desc {
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: var(--space-4);
}

.promo-cta-card__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-accent);
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  transition: gap var(--transition-fast);
}

.promo-cta-card__link:hover {
  gap: var(--space-2);
}

.promo-cta-card__link svg {
  width: 14px;
  height: 14px;
}

/* Promo Bottom: Categories + Tags on black */
.promo-bottom {
  background: #000;
  padding: var(--space-10) 0 var(--space-8);
  border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
}

.promo-bottom__title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-6);
}

.promo-categories {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-3) var(--space-5);
  margin-bottom: var(--space-8);
  padding-bottom: var(--space-8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.promo-categories a {
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition-fast);
}

.promo-categories a:hover {
  color: #fff;
}

.promo-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  padding-bottom: var(--space-8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: var(--space-6);
}

.promo-tags a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  transition: color var(--transition-fast);
  white-space: nowrap;
}

.promo-tags a:hover {
  color: var(--color-accent);
}

.promo-tags__sep {
  display: inline-block;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  margin: 0 var(--space-3);
  flex-shrink: 0;
}

.promo-bottom__copy {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.25);
  text-align: center;
}

/* Promo Responsive */
@media (max-width: 860px) {
  .promo-top {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
  .promo-counters {
    grid-template-columns: repeat(2, 1fr);
  }
  .promo-cta-grid {
    grid-template-columns: 1fr;
  }
  .promo-categories {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 600px) {
  .section-promo {
    padding-top: var(--space-10);
  }
  .promo-why__title {
    font-size: 28px;
  }
  .promo-counters {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3);
  }
  .promo-counter__number {
    font-size: 28px;
  }
  .promo-newsletter__form {
    flex-direction: column;
  }
  .promo-categories {
    grid-template-columns: repeat(2, 1fr);
  }
  .promo-cta-card {
    padding: var(--space-5);
  }
}

/* ---------- v3.0.1 Bug Fixes ---------- */

/* FIX: Header sticky — prevent jitter during topbar collapse.
   IMPORTANT: do NOT use will-change:transform on .site-header — it creates a
   new containing block and breaks position:sticky in most browsers.
   GPU-accelerate only the topbar child, not the sticky container itself. */
.header-topbar {
  will-change: max-height, opacity;
  transform: translateZ(0);
  pointer-events: auto;
}
.site-header.scrolled .header-topbar {
  pointer-events: none;
}

/* FIX: WP admin bar + sticky header offset */
body.admin-bar .site-header {
  top: 32px;
}
@media screen and (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }
}

/* FIX: wp_nav_menu <li>/<ul> reset — fallback if walker not used.
   With Evaslui_Nav_Walker, nav outputs only <a> tags (no <li>).
   This ensures compatibility if fallback wp_nav_menu fires. */
.nav-main li {
  list-style: none;
  display: inline-flex;
  margin: 0;
  padding: 0;
}
.nav-main ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: var(--space-1);
}
/* Also handle WP menu classes */
.nav-main .menu-item {
  list-style: none;
  display: inline-flex;
  margin: 0;
  padding: 0;
}
.nav-main .current-menu-item > a,
.nav-main .current_page_item > a {
  opacity: 1;
  font-weight: 500;
}

/* FIX: Footer wp_nav_menu <ul>/<li> reset */
.footer-col__links,
.footer-col__links ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.footer-col__links li {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-col__links li a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition-fast);
}
.footer-col__links li a:hover {
  color: #fff;
}

/* FIX: Footer bottom links row (matching template) */
.footer-bottom__links {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}
.footer-bottom__links a {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  transition: color var(--transition-fast);
}
.footer-bottom__links a:hover {
  color: #fff;
}

/* FIX: Article content images — override WP inline width/height */
.article-content img,
.article-content .wp-block-image img,
.article-content figure img {
  max-width: 100% !important;
  height: auto !important;
  display: block;
  border-radius: var(--radius-lg);
  margin: var(--space-8) auto;
  /* box-shadow: var(--shadow-md);*/
}

/* Ensure image containers respect content width */
.article-content figure,
.article-content .wp-block-image,
.article-content .wp-block-image figure,
.article-content p > img,
.article-content > figure,
.article-content > .wp-block-image {
  max-width: var(--container-content) !important;
  margin-left: auto;
  margin-right: auto;
  overflow: hidden;
}

/* Wide images: explicit opt-in only */
.article-content .alignwide,
.article-content .wp-block-image.alignwide,
.article-content figure.alignwide {
  max-width: var(--container-narrow) !important;
}

/* Full images: explicit opt-in only */
.article-content .alignfull,
.article-content .wp-block-image.alignfull,
.article-content figure.alignfull {
  max-width: 100% !important;
}

/* WP size-full class: constrain to content width (NOT full container) */
.article-content .wp-block-image.size-full,
.article-content .wp-block-image.size-large,
.article-content figure.wp-block-image:not(.alignwide):not(.alignfull) {
  max-width: var(--container-content) !important;
}
/* Lightbox cursor on clickable images */
/* ── Lightbox cursor ── */
.article-content img[data-fr-lightbox],
.article-content img {
  cursor: zoom-in;
}

/* ==========================================================================
   LIGHTBOX — Apple-style fullscreen image viewer
   ========================================================================== */
.fr-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s var(--ease-apple);
}

.fr-lightbox--visible {
  opacity: 1;
}

.fr-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
}

.fr-lightbox__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 92vw;
  max-height: 88vh;
}

.fr-lightbox__img {
  max-width: 90vw;
  max-height: 82vh;
  object-fit: contain;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  transition: opacity 0.2s ease, transform 0.25s var(--ease-apple);
  user-select: none;
  -webkit-user-drag: none;
}

.fr-lightbox__caption {
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
  text-align: center;
  max-width: 600px;
  margin-top: var(--space-4);
  line-height: 1.5;
}

.fr-lightbox__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: background 0.2s, transform 0.2s;
}

.fr-lightbox__close:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.05);
}

.fr-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: background 0.2s, transform 0.2s;
}

.fr-lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-50%) scale(1.08);
}

.fr-lightbox__nav--prev { left: 16px; }
.fr-lightbox__nav--next { right: 16px; }

.fr-lightbox__counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.5);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

@media (max-width: 768px) {
  .fr-lightbox__img { max-width: 96vw; max-height: 75vh; border-radius: var(--radius-md); }
  .fr-lightbox__nav { width: 40px; height: 40px; font-size: 18px; }
  .fr-lightbox__nav--prev { left: 8px; }
  .fr-lightbox__nav--next { right: 8px; }
  .fr-lightbox__close { top: 10px; right: 10px; width: 38px; height: 38px; }
}


/* ==========================================================================
   WORDPRESS GALLERY — Apple-style masonry/grid
   ========================================================================== */

/* ── Block Gallery (Gutenberg) ── */
.article-content .wp-block-gallery {
  display: grid;
  gap: var(--space-3);
  margin: var(--space-8) auto;
  padding: 0;
  list-style: none;
  max-width: var(--container-content) !important;
}

/* Column-based responsive grid */
.article-content .wp-block-gallery.columns-1 { grid-template-columns: 1fr; }
.article-content .wp-block-gallery.columns-2 { grid-template-columns: repeat(2, 1fr); }
.article-content .wp-block-gallery.columns-3 { grid-template-columns: repeat(3, 1fr); }
.article-content .wp-block-gallery.columns-4 { grid-template-columns: repeat(4, 1fr); }
.article-content .wp-block-gallery.columns-5 { grid-template-columns: repeat(5, 1fr); }

/* Default: auto-fit for galleries without explicit column count */
.article-content .wp-block-gallery:not([class*="columns-"]) {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

/* Gallery items */
.article-content .wp-block-gallery .wp-block-image,
.article-content .wp-block-gallery figure {
  margin: 0 !important;
  max-width: 100% !important;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--color-surface-secondary);
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
}

.article-content .wp-block-gallery .wp-block-image:hover,
.article-content .wp-block-gallery figure:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  z-index: 2;
}

.article-content .wp-block-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4/3;
  display: block;
  margin: 0 !important;
  border-radius: var(--radius-md);
  box-shadow: none !important;
  transition: transform var(--transition-slow);
}

.article-content .wp-block-gallery figure:hover img {
  transform: scale(1.03);
}

/* Gallery captions */
/* Gallery captions — hidden for cleaner look */
.article-content .wp-block-gallery figcaption {
  display: none;
}

/* Crop setting — when gallery uses "crop" mode */
.article-content .wp-block-gallery.is-cropped img {
  object-fit: cover;
  aspect-ratio: 1/1;
}

/* ── Classic Gallery (shortcode [gallery]) ── */
.article-content .gallery {
  display: grid;
  gap: var(--space-3);
  margin: var(--space-8) auto;
  max-width: var(--container-content) !important;
}

.article-content .gallery-columns-1 { grid-template-columns: 1fr; }
.article-content .gallery-columns-2 { grid-template-columns: repeat(2, 1fr); }
.article-content .gallery-columns-3 { grid-template-columns: repeat(3, 1fr); }
.article-content .gallery-columns-4 { grid-template-columns: repeat(4, 1fr); }
.article-content .gallery-columns-5 { grid-template-columns: repeat(5, 1fr); }

.article-content .gallery .gallery-item {
  margin: 0 !important;
  padding: 0;
  text-align: center;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--color-surface-secondary);
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
}

.article-content .gallery .gallery-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.article-content .gallery .gallery-item img {
  width: 100%;
  height: auto;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  margin: 0 !important;
  border-radius: var(--radius-md);
  box-shadow: none !important;
  transition: transform var(--transition-slow);
}

.article-content .gallery .gallery-item:hover img {
  transform: scale(1.03);
}

.article-content .gallery .gallery-caption {
  display: none;
}

/* ── Wide gallery variant (alignwide/alignfull) ── */
.article-content .wp-block-gallery.alignwide,
.article-content .gallery.alignwide {
  max-width: var(--container-narrow) !important;
}

.article-content .wp-block-gallery.alignfull,
.article-content .gallery.alignfull {
  max-width: 100% !important;
}

/* ── Gallery: 1 large + rest small grid (special layout) ── */
.article-content .wp-block-gallery.columns-2 .wp-block-image:first-child {
  grid-row: span 2;
}

.article-content .wp-block-gallery.columns-2 .wp-block-image:first-child img {
  aspect-ratio: auto;
  height: 100%;
}

/* ── Responsive gallery ── */
@media (max-width: 768px) {
  .article-content .wp-block-gallery.columns-3,
  .article-content .wp-block-gallery.columns-4,
  .article-content .wp-block-gallery.columns-5,
  .article-content .gallery-columns-3,
  .article-content .gallery-columns-4,
  .article-content .gallery-columns-5 {
    grid-template-columns: repeat(2, 1fr);
  }

  .article-content .wp-block-gallery img,
  .article-content .gallery .gallery-item img {
    aspect-ratio: 1/1;
  }
}

@media (max-width: 480px) {
  .article-content .wp-block-gallery.columns-2,
  .article-content .wp-block-gallery.columns-3,
  .article-content .gallery-columns-2,
  .article-content .gallery-columns-3 {
    grid-template-columns: 1fr;
  }
}

/* FIX: em/i tag — ONLY italic, all decorative styling eliminated */
em, i,
.prose em, .prose i,
.article-content em, .article-content i {
  font-style: italic;
  font-weight: inherit;
  color: inherit;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  text-decoration: none;
  letter-spacing: inherit;
  font-size: inherit;
  line-height: inherit;
}

/* FIX: Complete CSS variable bridge — maps ALL old plugin vars to new theme v3 tokens.
   Covers: widgets.css, cookie-consent, lightbox, single-post components.
   This allows old 37 widgets to render correctly with new theme. */
:root {
  /* ── Font ── */
  --font: var(--font-body);
  --font-serif: Georgia, "Times New Roman", serif;

  /* ── Font Sizes ── */
  --fs-xxs: 11px;
  --fs-xs: 12px;
  --fs-sm: 14px;
  --fs-body: 16px;
  --fs-lg: 18px;
  --fs-h4: 21px;
  --fs-h3: 24px;
  --fs-h2: 32px;
  --fs-h1: 40px;
  --fs-hero: 56px;

  /* ── Line Heights ── */
  --lh-body: 1.59;
  --lh-heading: 1.2;
  --lh-display: 1.06;

  /* ── Letter Spacing ── */
  --ls-body: normal;
  --ls-heading: -0.02em;
  --ls-display: -0.04em;
  --ls-caps: 0.06em;

  /* ── Spacing (--s-* → --space-*) ── */
  --s-2: 2px;
  --s-4: var(--space-1);
  --s-8: var(--space-2);
  --s-12: var(--space-3);
  --s-16: var(--space-4);
  --s-20: var(--space-5);
  --s-24: var(--space-6);
  --s-32: var(--space-7);
  --s-40: var(--space-8);
  --s-48: var(--space-9);
  --s-56: var(--space-10);
  --s-64: var(--space-11);
  --s-80: var(--space-12);
  --s-96: var(--space-13);
  --s-120: var(--space-14);

  /* ── Border Radius ── */
  --r-xs: 4px;
  --r-sm: var(--radius-sm);
  --r-md: var(--radius-md);
  --r-lg: var(--radius-lg);
  --r-widget: var(--radius-xl);
  --r-widget-inner: var(--radius-md);
  --r-full: var(--radius-full);

  /* ── System Colors (--sys-* → theme tokens) ── */
  --sys-bg: var(--color-bg);
  --sys-bg-elevated: var(--color-surface);
  --sys-blue: var(--color-accent);
  --sys-fill: var(--color-surface-secondary);
  --sys-fill-secondary: var(--color-surface-tertiary);
  --sys-label: var(--color-text-primary);
  --sys-label-secondary: var(--color-text-secondary);
  --sys-label-tertiary: var(--color-text-tertiary);
  --sys-label-quaternary: rgba(0, 0, 0, 0.25);
  --sys-separator: var(--color-border);
  --sys-separator-opaque: var(--color-border-strong);

  /* ── Legacy Color Aliases ── */
  --c-accent: var(--color-accent);
  --c-white: #fff;
  --c-surface: var(--color-surface);
  --c-surface-secondary: var(--color-surface-secondary);
  --c-border: var(--color-border);
  --c-heading: var(--color-text-primary);
  --c-text: var(--color-text-secondary);
  --c-muted: var(--color-text-tertiary);
  --article-text: var(--color-text-primary);
  --article-text-secondary: var(--color-text-secondary);

  /* ── Layout ── */
  --article-full-w: var(--container-max);
  --max-w: var(--container-max);
  --gutter: var(--space-6);
  --header-h: 144px;
  --nav-h: 44px;

  /* ── Transitions ── */
  --ease: var(--ease-apple);
  --duration: 0.35s;

  /* ── Shadows ── */
  --shadow-widget: var(--shadow-sm);
  --shadow-widget-hover: var(--shadow-lg);

  /* ── Ticker (marquee widget) ── */
  --ticker-speed: 30s;
  --ticker-pause: running;
}

/* ───────── Single Post — iFrame Wrapper ───────── */
.prose-iframe-wrap {
    position: relative;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16/9;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin: var(--s-24) auto;
}

.prose-iframe-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ───────── Single Post — Sidebar Layout ───────── */
.single-with-sidebar {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: var(--s-48, 48px);
    padding-top: var(--s-48, 48px);
    padding-bottom: var(--s-48, 48px);
}

.single-with-sidebar .article-content {
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.single-sidebar {
    position: sticky;
    top: 120px;
    align-self: start;
}

@media (max-width: 860px) {
    .single-with-sidebar {
        grid-template-columns: 1fr;
        gap: var(--s-32, 32px);
    }
    .single-sidebar {
        position: static;
    }
}

/* ==========================================================================
   SINGLE POST FEED SYSTEM — Desktop/Mobile responsive layout
   ========================================================================== */

/* ── Responsive Visibility ── */
.feed-desktop { display: block; }
.feed-mobile  { display: none; }

@media (max-width: 860px) {
  .feed-desktop { display: none; }
  .feed-mobile  { display: block; }
}

/* ── Desktop: Hero Sticky Section ── */
.feed-hero-section {
  padding: var(--space-12) 0 var(--space-10);
  background: var(--color-surface);
  border-radius: var(--radius-2xl);
  margin-bottom: 0;
}

/* ── Desktop: Latest News Grid ── */
.feed-latest-section {
  padding: var(--space-12) 0;
  background: var(--color-surface-secondary);
}

.feed-latest-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

@media (max-width: 1080px) {
  .feed-latest-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .feed-latest-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Mobile: Infinite Scroll Feed ── */
.infinite-feed {
  padding: var(--space-10) 0 var(--space-8);
  background: var(--color-surface-secondary);
  border-radius: var(--radius-2xl);
}

.infinite-feed .section__subtitle {
  font-size: 15px;
  color: var(--color-text-tertiary);
  margin-top: var(--space-1);
}

.infinite-feed__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
}

@media (max-width: 600px) {
  .infinite-feed__grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
}

.infinite-feed__loader {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  padding: var(--space-8) 0;
  color: var(--color-text-tertiary);
  font-size: 14px;
}

.infinite-feed__spinner {
  width: 24px;
  height: 24px;
  border: 2.5px solid var(--color-border-strong);
  border-top-color: var(--color-accent);
  border-radius: 50%;
  animation: fr-spin 0.7s linear infinite;
}

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

.infinite-feed__end {
  text-align: center;
  padding: var(--space-7) 0;
  color: var(--color-text-tertiary);
  font-size: 15px;
}

/* ── Feed card entrance animation ── */
.infinite-feed__grid .card {
  opacity: 0;
  transform: translateY(24px);
}

.infinite-feed__grid .card.--visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════
   404 PAGE
   ═══════════════════════════════════════════ */

.error404-hero {
    text-align: center;
    padding: var(--space-12, 64px) 0 var(--space-6, 24px);
}

.error404-hero__inner {
    max-width: 600px;
    margin: 0 auto;
}

.error404-hero__code {
    display: block;
    font-size: clamp(80px, 15vw, 140px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.04em;
    color: var(--color-text-tertiary, #B4B2A9);
    margin-bottom: var(--space-4, 16px);
}

.error404-hero__title {
    font-size: clamp(24px, 4vw, 32px);
    font-weight: 700;
    color: var(--text-primary, #1A1A19);
    margin: 0 0 var(--space-3, 12px);
    letter-spacing: -.02em;
}

.error404-hero__desc {
    font-size: 15px;
    color: var(--text-secondary, #888780);
    line-height: 1.6;
    margin: 0;
}

.error404-search {
    padding: var(--space-4, 16px) 0 var(--space-8, 32px);
}

.error404-search__form {
    max-width: 560px;
    margin: 0 auto;
}

.error404-search__wrap {
    display: flex;
    align-items: center;
    background: var(--surface, #fff);
    border: 1px solid var(--border, #D3D1C7);
    border-radius: 12px;
    padding: 4px;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.error404-search__wrap:focus-within {
    border-color: var(--accent, #1A5FA4);
    box-shadow: 0 0 0 3px rgba(0,113,227,.12);
}

.error404-search__icon {
    padding: 0 12px;
    font-size: 18px;
    color: var(--text-secondary, #888780);
    flex-shrink: 0;
}

.error404-search__input {
    flex: 1;
    border: none;
    background: none;
    padding: 10px 4px;
    font-size: 15px;
    color: var(--text-primary, #1A1A19);
    outline: none;
    min-width: 0;
}

.error404-search__input::placeholder {
    color: var(--text-secondary, #888780);
}

.error404-search__btn {
    flex-shrink: 0;
    padding: 10px 24px;
    border: none;
    border-radius: 9px;
    background: #1A1A19;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity .2s ease;
}

.error404-search__btn:hover {
    opacity: .85;
}

.error404-section__title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary, #1A1A19);
    margin: 0 0 var(--space-4, 16px);
    letter-spacing: -.01em;
}

.error404-cats {
    padding: 0 0 var(--space-8, 32px);
}

.error404-cats__list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.error404-cat-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 1px solid var(--border, #B4B2A9);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary, #1A1A19);
    text-decoration: none;
    transition: all .2s ease;
}

.error404-cat-chip:hover {
    background: #1A1A19;
    color: #fff;
    border-color: #1A1A19;
}

.error404-cat-chip:hover .error404-cat-chip__count {
    background: rgba(255,255,255,.2);
    color: #fff;
}

.error404-cat-chip__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 100px;
    background: var(--tag-bg, #F1EFE8);
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary, #888780);
    transition: all .2s ease;
}

.error404-recent {
    padding: 0 0 var(--space-8, 32px);
}

.error404-recent__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 991px) {
    .error404-recent__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .error404-recent__grid {
        grid-template-columns: 1fr;
    }
}

.error404-cta {
    text-align: center;
    padding: var(--space-4, 16px) 0 var(--space-12, 64px);
}

.error404-cta__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border: 2px solid #1A1A19;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #1A1A19;
    text-decoration: none;
    transition: all .2s ease;
}

.error404-cta__btn:hover {
    background: #1A1A19;
    color: #fff;
}

/* ── 404 Quick Navigation Grid ── */
.error404-nav { padding: 0 0 40px; }
.error404-nav__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.error404-nav__card { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 24px 16px; border-radius: 14px; background: var(--color-surface, #fff); border: 1.5px solid var(--color-border, #ddd); text-decoration: none; transition: all 0.2s; gap: 6px; }
.error404-nav__card:hover { border-color: var(--card-accent); transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
.error404-nav__card i { font-size: 28px; color: var(--card-accent); }
.error404-nav__card strong { font-size: 14px; color: var(--color-text-primary, #222); }
.error404-nav__card span { font-size: 12px; color: var(--color-text-tertiary, #888); }

/* ── 404 Content Cards ── */
.error404-card { display: flex; gap: 14px; background: var(--color-surface, #fff); border: 1px solid var(--color-border, #eee); border-radius: 12px; overflow: hidden; transition: border-color 0.2s; }
.error404-card:hover { border-color: var(--color-accent); }
.error404-card__img { flex-shrink: 0; width: 120px; }
.error404-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.error404-card__body { padding: 14px 14px 14px 0; display: flex; flex-direction: column; justify-content: center; }
.error404-card__type { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.error404-card__title { font-size: 14px; font-weight: 600; margin: 4px 0; line-height: 1.35; }
.error404-card__title a { color: var(--color-text-primary, #222); text-decoration: none; }
.error404-card__title a:hover { color: var(--color-accent); }
.error404-card__date { font-size: 12px; color: var(--color-text-tertiary, #888); }

@media (max-width: 768px) {
    .error404-nav__grid { grid-template-columns: repeat(2, 1fr); }
    .error404-card { flex-direction: column; }
    .error404-card__img { width: 100%; height: 140px; }
    .error404-card__body { padding: 12px; }
}
@media (max-width: 480px) {
    .error404-nav__grid { grid-template-columns: 1fr 1fr; gap: 8px; }
    .error404-nav__card { padding: 16px 12px; }
    .error404-nav__card i { font-size: 24px; }
}


/* ═══════════════════════════════════════════
   PORTAL ȘTIRI — page-portal-stiri.php
   ═══════════════════════════════════════════ */
.ev-portal { max-width: var(--container-max, 1440px); margin: 0 auto; }

/* ── Hero Grid ── */
.ev-portal__hero { padding: 20px; }
.ev-portal__hero-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 16px; }

.ev-portal__hero-main { display: block; position: relative; border-radius: 18px; overflow: hidden; text-decoration: none; color: #fff; min-height: 420px; }
.ev-portal__hero-img { position: absolute; inset: 0; }
.ev-portal__hero-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ev-portal__hero-ph { width: 100%; height: 100%; background: linear-gradient(135deg, var(--blue-700, #1A5FA4) 0%, var(--blue-900, #0B3D6B) 100%); }
.ev-portal__hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.5) 40%, rgba(0,0,0,0.15) 70%, rgba(0,0,0,0.05) 100%); }
.ev-portal__hero-content { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; padding: 32px; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,0.4); }
.ev-portal__hero-title { font-size: 32px; font-weight: 700; line-height: 1.2; letter-spacing: -0.5px; margin-bottom: 10px; color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,0.5); }
.ev-portal__hero-excerpt { font-size: 15px; opacity: 0.9; line-height: 1.5; max-width: 500px; margin-bottom: 12px; color: #fff; }
.ev-portal__hero-meta { font-size: 13px; opacity: 0.75; display: flex; gap: 16px; color: #fff; }

.ev-portal__hero-side { display: flex; flex-direction: column; gap: 12px; }
.ev-portal__hero-card { display: flex; gap: 14px; padding: 14px; background: var(--white, #fff); border: 1px solid var(--neutral-200, #D3D1C7); border-radius: 14px; text-decoration: none; color: inherit; transition: all 0.2s; }
.ev-portal__hero-card:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0,0,0,0.06); }
.ev-portal__hero-card-img { width: 90px; height: 72px; border-radius: 10px; overflow: hidden; flex-shrink: 0; }
.ev-portal__hero-card-img img { width: 100%; height: 100%; object-fit: cover; }
.ev-portal__hero-card-body { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.ev-portal__hero-card-body h3 { font-size: 14px; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 0 0 4px; }
.ev-portal__hero-card-body time { font-size: 12px; color: var(--neutral-400); }

/* ── Badge ── */
.ev-portal__badge { display: inline-block; padding: 4px 12px; border-radius: 6px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; background: #fff; color: var(--blue-700, #1A5FA4); margin-bottom: 10px; box-shadow: 0 2px 8px rgba(0,0,0,0.15); align-self: flex-start; width: fit-content; }
.ev-portal__badge--sm { background: var(--neutral-100, #F1EFE8); color: var(--neutral-600, #3C3C3A); box-shadow: none; padding: 3px 8px; font-size: 10px; margin-bottom: 6px; }

/* ── Category Nav ── */
.ev-portal__cat-nav { border-top: 1px solid var(--neutral-200); border-bottom: 1px solid var(--neutral-200); margin: 0 20px; position: sticky; top: 0; z-index: 100; background: var(--white, #fff); border-radius: 0; }
.ev-portal__cat-nav-inner { display: flex; gap: 0; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; max-width: 900px; }
.ev-portal__cat-nav-inner::-webkit-scrollbar { display: none; }
.ev-portal__cat-link { display: inline-flex; align-items: center; gap: 6px; padding: 14px 18px; font-size: 14px; font-weight: 500; color: var(--neutral-500); text-decoration: none; border-bottom: 2px solid transparent; white-space: nowrap; transition: all 0.2s; }
.ev-portal__cat-link:hover { color: var(--neutral-900); }
.ev-portal__cat-link--active { color: var(--color-accent, #1A5FA4); border-bottom-color: var(--color-accent, #1A5FA4); font-weight: 600; }
.ev-portal__cat-count { font-size: 11px; background: var(--neutral-100); color: var(--neutral-500); padding: 1px 6px; border-radius: 10px; }

/* ── Main + Sidebar Layout ── */
.ev-portal__layout { display: grid; grid-template-columns: 1fr 320px; gap: 32px; padding: 24px 20px 40px; }
.ev-portal__main { min-width: 0; }

/* ── Category Sections ── */
.ev-portal__section { margin-bottom: 36px; }
.ev-portal__section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--neutral-200); }
.ev-portal__section-header h2 { font-size: 22px; font-weight: 700; letter-spacing: -0.3px; display: flex; align-items: center; gap: 10px; margin: 0; }
.ev-portal__section-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--color-accent); flex-shrink: 0; }
.ev-portal__section-all { font-size: 14px; font-weight: 500; color: var(--color-accent, #1A5FA4); text-decoration: none; white-space: nowrap; }
.ev-portal__section-all:hover { text-decoration: underline; }

/* Section grid: featured left + list right */
.ev-portal__section-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; }

/* Cards */
.ev-portal__card { display: block; text-decoration: none; color: inherit; transition: all 0.2s; }
.ev-portal__card:hover { transform: translateY(-1px); }
.ev-portal__card--featured { grid-row: 1 / span 3; }
.ev-portal__card--featured .ev-portal__card-img { border-radius: 14px; overflow: hidden; height: 220px; margin-bottom: 14px; }
.ev-portal__card--featured .ev-portal__card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ev-portal__card--featured h3 { font-size: 20px; font-weight: 600; line-height: 1.3; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ev-portal__card--featured p { font-size: 14px; color: var(--neutral-500); line-height: 1.6; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Standard list card */
.ev-portal__card:not(.ev-portal__card--featured) { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--neutral-100); }
.ev-portal__card-img--sm { width: 100px; height: 72px; border-radius: 10px; overflow: hidden; flex-shrink: 0; }
.ev-portal__card-img--sm img { width: 100%; height: 100%; object-fit: cover; }
.ev-portal__card-body { flex: 1; min-width: 0; }
.ev-portal__card-body h3 { font-size: 15px; font-weight: 600; line-height: 1.35; margin: 0 0 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ev-portal__card-body time { font-size: 12px; color: var(--neutral-400); }
.ev-portal__card-meta { font-size: 12px; color: var(--neutral-400); }

/* Latest grid: 2 columns */
.ev-portal__latest-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ev-portal__latest-card { display: block; text-decoration: none; color: inherit; border: 1px solid var(--neutral-200); border-radius: 14px; overflow: hidden; transition: all 0.2s; }
.ev-portal__latest-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.06); }
.ev-portal__latest-img { height: 160px; overflow: hidden; }
.ev-portal__latest-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ev-portal__latest-body { padding: 16px; }
.ev-portal__latest-body h3 { font-size: 16px; font-weight: 600; line-height: 1.35; margin: 0 0 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ev-portal__latest-body p { font-size: 13px; color: var(--neutral-500); line-height: 1.5; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ── Sidebar Widgets ── */
.ev-portal__sidebar { position: sticky; top: 60px; align-self: start; }
.ev-portal__widget { background: var(--white, #fff); border: 1px solid var(--neutral-200); border-radius: 14px; padding: 20px; margin-bottom: 16px; }
.ev-portal__widget-title { font-size: 16px; font-weight: 600; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.ev-portal__widget-title i { color: var(--neutral-400); }

/* Trending */
.ev-portal__trending-item { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--neutral-100); text-decoration: none; color: inherit; transition: all 0.15s; }
.ev-portal__trending-item:last-child { border-bottom: none; }
.ev-portal__trending-item:hover h4 { color: var(--color-accent); }
.ev-portal__trending-rank { width: 28px; height: 28px; border-radius: 8px; background: var(--neutral-100); color: var(--neutral-500); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; flex-shrink: 0; }
.ev-portal__trending-item:nth-child(1) .ev-portal__trending-rank { background: var(--gold-50, #FAEEDA); color: var(--gold-800, #7A5A0A); }
.ev-portal__trending-item:nth-child(2) .ev-portal__trending-rank { background: var(--blue-50, #E6F1FB); color: var(--blue-700, #1A5FA4); }
.ev-portal__trending-item:nth-child(3) .ev-portal__trending-rank { background: var(--coral-50, #FAECE7); color: var(--coral-500, #D85A30); }
.ev-portal__trending-item h4 { font-size: 14px; font-weight: 500; line-height: 1.4; margin: 0 0 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ev-portal__trending-item time { font-size: 11px; color: var(--neutral-400); }

/* Category list */
.ev-portal__cat-list { display: flex; flex-direction: column; gap: 0; }
.ev-portal__cat-item { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--neutral-100); text-decoration: none; color: inherit; font-size: 14px; transition: all 0.15s; }
.ev-portal__cat-item:last-child { border-bottom: none; }
.ev-portal__cat-item:hover { color: var(--color-accent); }
.ev-portal__cat-item-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.ev-portal__cat-item-count { margin-left: auto; font-size: 12px; color: var(--neutral-400); background: var(--neutral-100); padding: 2px 8px; border-radius: 10px; }

/* Tags */
.ev-portal__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.ev-portal__tag { display: inline-block; padding: 6px 14px; background: var(--neutral-50, #F8F7F3); border: 1px solid var(--neutral-200); border-radius: 20px; font-size: 13px; color: var(--neutral-600); text-decoration: none; transition: all 0.15s; }
.ev-portal__tag:hover { background: var(--color-accent, #1A5FA4); color: #fff; border-color: var(--color-accent); }

/* ── Portal Responsive ── */
@media (max-width: 1080px) {
  .ev-portal__hero-grid { grid-template-columns: 1fr; }
  .ev-portal__hero-main { min-height: 320px; }
  .ev-portal__hero-side { flex-direction: row; overflow-x: auto; gap: 10px; padding-bottom: 4px; }
  .ev-portal__hero-card { min-width: 280px; flex-shrink: 0; }
  .ev-portal__hero-title { font-size: 26px; }
}

@media (max-width: 900px) {
  .ev-portal__layout { grid-template-columns: 1fr; gap: 20px; }
  .ev-portal__sidebar { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
}

@media (max-width: 768px) {
  .ev-portal__section-grid { grid-template-columns: 1fr; }
  .ev-portal__card--featured { grid-row: auto; }
  .ev-portal__card--featured .ev-portal__card-img { height: 180px; }
  .ev-portal__latest-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .ev-portal__hero { padding: 12px; }
  .ev-portal__hero-main { min-height: 260px; border-radius: 14px; }
  .ev-portal__hero-content { padding: 20px; }
  .ev-portal__hero-title { font-size: 22px; }
  .ev-portal__hero-excerpt { font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .ev-portal__hero-side { flex-direction: column; }
  .ev-portal__hero-card { min-width: auto; }
  .ev-portal__cat-nav { padding: 0 12px; }
  .ev-portal__cat-link { padding: 12px 14px; font-size: 13px; }
  .ev-portal__layout { padding: 16px 12px 24px; gap: 16px; }
  .ev-portal__section { margin-bottom: 24px; }
  .ev-portal__section-header h2 { font-size: 18px; }
  .ev-portal__card--featured h3 { font-size: 17px; }
  .ev-portal__card--featured .ev-portal__card-img { height: 150px; border-radius: 10px; }
  .ev-portal__latest-body { padding: 12px; }
  .ev-portal__latest-img { height: 130px; }
  .ev-portal__sidebar { grid-template-columns: 1fr; }
  .ev-portal__widget { padding: 16px; }
  .ev-portal__tags { gap: 6px; }
  .ev-portal__tag { padding: 4px 10px; font-size: 12px; }
}



/* ═══════════════════════════════════════════
   NEW ARCHIVE / CATEGORY / TAG / SEARCH
   ═══════════════════════════════════════════ */

/* ── Breadcrumb ── */
.ev-archive-bc { padding: 12px 0; font-size: 13px; color: var(--color-text-tertiary); }
.ev-archive-bc a { color: var(--color-text-tertiary); text-decoration: none; }
.ev-archive-bc a:hover { color: var(--color-accent); text-decoration: underline; }
.ev-archive-bc span { margin: 0 6px; }
.ev-archive-bc__current { color: var(--color-text-secondary); }

/* ── Category Header ── */
.ev-cat-header { padding: 28px 0 24px; background: var(--color-surface-secondary); border-bottom: 1px solid var(--color-border); }
.ev-cat-header__info { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.ev-cat-header__dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.ev-cat-header__icon { font-size: 28px; color: var(--color-text-secondary); flex-shrink: 0; }
.ev-cat-header__icon img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.ev-cat-header__title { font-size: 32px; font-weight: 700; letter-spacing: -0.5px; line-height: 1.2; margin: 0; }
.ev-cat-header__count { font-size: 14px; color: var(--color-text-tertiary); }
.ev-cat-header__desc { font-size: 16px; line-height: 1.6; color: var(--color-text-secondary); max-width: 640px; margin-bottom: 12px; }
.ev-cat-header__subs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.ev-cat-header__sub { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 20px; background: var(--color-surface); border: 1px solid var(--color-border); font-size: 13px; font-weight: 500; color: var(--color-text-secondary); text-decoration: none; transition: all 0.2s; }
.ev-cat-header__sub:hover { border-color: var(--color-accent); color: var(--color-accent); }
.ev-cat-header__sub span { font-size: 11px; color: var(--color-text-tertiary); background: var(--color-surface-secondary); padding: 1px 6px; border-radius: 10px; }

/* ── Featured Post (page 1 hero) ── */
.ev-cat-featured { padding: 20px 0; }
.ev-cat-featured__card { display: block; position: relative; border-radius: 18px; overflow: hidden; min-height: 360px; text-decoration: none; color: #fff; transition: transform 0.3s; }
.ev-cat-featured__card:hover { transform: translateY(-2px); }
.ev-cat-featured__img { position: absolute; inset: 0; }
.ev-cat-featured__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ev-cat-featured__overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.1) 100%); }
.ev-cat-featured__content { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: flex-end; min-height: 360px; padding: 32px; color: #fff; }
.ev-cat-featured__content h2 { font-size: 28px; font-weight: 700; line-height: 1.25; letter-spacing: -0.3px; margin: 8px 0 10px; color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,0.4); }
.ev-cat-featured__content p { font-size: 15px; opacity: 0.9; line-height: 1.5; max-width: 520px; margin-bottom: 12px; color: #fff; }
.ev-cat-featured__meta { font-size: 13px; opacity: 0.75; display: flex; gap: 16px; align-items: center; color: #fff; }
.ev-cat-featured__meta i { font-size: 14px; }

/* ── Main + Sidebar Layout ── */
.ev-cat-layout { padding: 24px 0 40px; }
.ev-cat-layout__inner { display: grid; grid-template-columns: 1fr 300px; gap: 32px; }
.ev-cat-layout__main { min-width: 0; }

/* ── Article Grid ── */
.ev-cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 32px; }
.ev-cat-card { display: block; background: var(--color-surface, #fff); border: 1px solid var(--color-border); border-radius: 14px; overflow: hidden; transition: all 0.2s; }
.ev-cat-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.06); }
.ev-cat-card__img { display: block; height: 180px; overflow: hidden; }
.ev-cat-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s; }
.ev-cat-card:hover .ev-cat-card__img img { transform: scale(1.04); }
.ev-cat-card__body { padding: 16px; }
.ev-cat-card__cats { margin-bottom: 6px; }
.ev-cat-card__title { font-size: 17px; font-weight: 600; line-height: 1.35; margin: 0 0 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ev-cat-card__title a { color: inherit; text-decoration: none; }
.ev-cat-card__title a:hover { color: var(--color-accent); }
.ev-cat-card__excerpt { font-size: 14px; color: var(--color-text-secondary); line-height: 1.5; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ev-cat-card__meta { font-size: 13px; color: var(--color-text-tertiary); display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.ev-cat-card__sep { color: var(--color-border); }
.ev-cat-card__comments { color: var(--color-accent); text-decoration: none; display: inline-flex; align-items: center; gap: 3px; font-weight: 500; }
.ev-cat-card__comments:hover { text-decoration: underline; }

/* ── Sidebar Widgets ── */
.ev-cat-sidebar { position: sticky; top: 60px; align-self: start; }
.ev-cat-widget { background: var(--color-surface, #fff); border: 1px solid var(--color-border); border-radius: 14px; padding: 18px; margin-bottom: 14px; }
.ev-cat-widget__title { font-size: 15px; font-weight: 600; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.ev-cat-widget__title i { color: var(--color-text-tertiary); }

/* Search widget */
.ev-cat-widget__search { position: relative; display: flex; align-items: center; }
.ev-cat-widget__search i { position: absolute; left: 12px; color: var(--color-text-tertiary); font-size: 14px; pointer-events: none; }
.ev-cat-widget__search input { width: 100%; padding: 10px 14px 10px 36px; border: 1px solid var(--color-border); border-radius: 10px; font-size: 14px; font-family: inherit; background: var(--color-surface-secondary); outline: none; transition: all 0.2s; }
.ev-cat-widget__search input:focus { border-color: var(--color-accent); background: var(--color-surface); }

/* Category list */
.ev-cat-widget__list { display: flex; flex-direction: column; gap: 0; }
.ev-cat-widget__item { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--color-surface-secondary); text-decoration: none; color: var(--color-text-primary); font-size: 14px; transition: color 0.15s; }
.ev-cat-widget__item:last-child { border-bottom: none; }
.ev-cat-widget__item:hover { color: var(--color-accent); }
.ev-cat-widget__item--active { font-weight: 600; color: var(--color-accent); }
.ev-cat-widget__item-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.ev-cat-widget__item-count { margin-left: auto; font-size: 11px; color: var(--color-text-tertiary); background: var(--color-surface-secondary); padding: 2px 8px; border-radius: 10px; }

/* Tags */
.ev-cat-widget__tags { display: flex; flex-wrap: wrap; gap: 6px; }

/* Popular list */
.ev-cat-widget__pop-item { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--color-surface-secondary); text-decoration: none; color: inherit; transition: all 0.15s; }
.ev-cat-widget__pop-item:last-child { border-bottom: none; }
.ev-cat-widget__pop-item:hover h4 { color: var(--color-accent); }
.ev-cat-widget__pop-rank { width: 26px; height: 26px; border-radius: 7px; background: var(--color-surface-secondary); color: var(--color-text-tertiary); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex-shrink: 0; }
.ev-cat-widget__pop-item:nth-child(1) .ev-cat-widget__pop-rank { background: var(--gold-50, #FAEEDA); color: var(--gold-800, #7A5A0A); }
.ev-cat-widget__pop-item:nth-child(2) .ev-cat-widget__pop-rank { background: var(--blue-50, #E6F1FB); color: var(--blue-700, #1A5FA4); }
.ev-cat-widget__pop-item:nth-child(3) .ev-cat-widget__pop-rank { background: var(--coral-50, #FAECE7); color: var(--coral-500, #D85A30); }
.ev-cat-widget__pop-item h4 { font-size: 14px; font-weight: 500; line-height: 1.4; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ev-cat-widget__pop-meta { font-size: 11px; color: var(--color-text-tertiary); }

/* ── Empty state ── */
.ev-cat-empty { text-align: center; padding: 64px 24px; color: var(--color-text-tertiary); }
.ev-cat-empty h2 { font-size: 20px; margin: 16px 0 8px; color: var(--color-text-secondary); }
.ev-cat-empty p { font-size: 15px; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .ev-cat-layout__inner { grid-template-columns: 1fr; }
  .ev-cat-sidebar { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .ev-cat-header__title { font-size: 26px; }
  .ev-cat-featured__content { padding: 24px; }
  .ev-cat-featured__content h2 { font-size: 22px; }
}

@media (max-width: 600px) {
  .ev-cat-header { padding: 20px 0 16px; }
  .ev-cat-header__title { font-size: 22px; }
  .ev-cat-header__subs { gap: 6px; }
  .ev-cat-header__sub { padding: 4px 10px; font-size: 12px; }
  .ev-cat-featured__card { min-height: 260px; border-radius: 14px; }
  .ev-cat-featured__content { min-height: 260px; padding: 20px; }
  .ev-cat-featured__content h2 { font-size: 20px; }
  .ev-cat-featured__content p { display: none; }
  .ev-cat-grid { grid-template-columns: 1fr; gap: 12px; }
  .ev-cat-card__img { height: 160px; }
  .ev-cat-card__body { padding: 12px; }
  .ev-cat-card__title { font-size: 15px; }
  .ev-cat-sidebar { grid-template-columns: 1fr; }
  .ev-cat-widget { padding: 14px; }
  .ev-archive-bc { padding: 8px 0; font-size: 12px; }
}

/* ── CPT Type Badge (search results) ── */
.ev-cat-card__type-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 5px;
  font-size: 11px; font-weight: 600; color: #fff;
  text-transform: uppercase; letter-spacing: 0.3px;
}
.ev-cat-card__type-badge i { font-size: 12px; }

/* ── Search Tabs ── */
.ev-search-tabs { border-bottom: 1px solid var(--color-border); background: var(--color-surface, #fff); position: sticky; top: 0; z-index: 100; }
.ev-search-tabs__nav { display: flex; gap: 0; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; }
.ev-search-tabs__nav::-webkit-scrollbar { display: none; }
.ev-search-tabs__tab { display: inline-flex; align-items: center; gap: 7px; padding: 14px 20px; background: none; border: none; border-bottom: 3px solid transparent; font-size: 14px; font-weight: 500; color: var(--color-text-secondary); cursor: pointer; font-family: inherit; white-space: nowrap; transition: all 0.2s; }
.ev-search-tabs__tab:hover { color: var(--color-text-primary); background: var(--color-surface-secondary); }
.ev-search-tabs__tab--active { color: var(--color-accent, #1A5FA4); border-bottom-color: var(--color-accent, #1A5FA4); font-weight: 600; }
.ev-search-tabs__tab i { font-size: 16px; }
.ev-search-tabs__count { font-size: 11px; background: var(--color-surface-secondary); color: var(--color-text-tertiary); padding: 2px 8px; border-radius: 10px; font-weight: 600; }
.ev-search-tabs__tab--active .ev-search-tabs__count { background: var(--color-accent); color: #fff; }

/* Tab panels */
.ev-search-tabs__panel { display: none; }
.ev-search-tabs__panel--active { display: block; }
.ev-search-tabs__loading { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 60px 0; color: var(--color-text-tertiary); font-size: 14px; }

/* Load more */
.ev-search-tab__pagination { text-align: center; padding: 20px 0; }
.ev-search-tab__load-more { display: inline-flex; align-items: center; gap: 6px; padding: 12px 32px; border: 1px solid var(--color-border); border-radius: 10px; background: var(--color-surface); color: var(--color-text-secondary); font-size: 14px; font-weight: 500; cursor: pointer; font-family: inherit; transition: all 0.2s; }
.ev-search-tab__load-more:hover { border-color: var(--color-accent); color: var(--color-accent); }
.ev-search-tab__load-more:disabled { opacity: 0.5; cursor: not-allowed; }

/* Refine search */
.ev-search-refine { margin-top: 16px; max-width: 500px; }
.ev-search-refine__form { display: flex; align-items: center; gap: 0; position: relative; }
.ev-search-refine__form i { position: absolute; left: 14px; color: var(--color-text-tertiary); font-size: 14px; pointer-events: none; }
.ev-search-refine__form input { flex: 1; padding: 10px 14px 10px 38px; border: 1px solid var(--color-border); border-radius: 10px 0 0 10px; font-size: 14px; font-family: inherit; background: var(--color-surface); outline: none; transition: border-color 0.2s; }
.ev-search-refine__form input:focus { border-color: var(--color-accent); }
.ev-search-refine__form button { padding: 10px 20px; background: var(--color-accent, #1A5FA4); color: #fff; border: 1px solid var(--color-accent); border-radius: 0 10px 10px 0; font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit; transition: background 0.2s; white-space: nowrap; }
.ev-search-refine__form button:hover { background: var(--blue-900, #0B3D6B); }

@media (max-width: 600px) {
  .ev-search-tabs__tab { padding: 12px 14px; font-size: 13px; gap: 5px; }
  .ev-search-tabs__tab i { font-size: 14px; }
  .ev-search-refine__form { flex-wrap: wrap; }
  .ev-search-refine__form input { border-radius: 10px; width: 100%; }
  .ev-search-refine__form button { border-radius: 10px; width: 100%; margin-top: 8px; }
}
