/* ==========================================================================
   PCLab.ro Theme — PC Building & Hardware Platform
   Version: 1.0
   Typography: Apple SF Pro System
   ========================================================================== */

/* ---------- CSS Custom Properties (Design Tokens) ---------- */
:root {
  /* Font Stack */
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: "SF Mono", SFMono-Regular, ui-monospace, Menlo, Consolas, monospace;

  /* PCLab Color Palette */
  --color-bg: #f8fafc;
  --color-surface: #ffffff;
  --color-surface-secondary: #f1f5f9;
  --color-surface-tertiary: #e2e8f0;
  --color-border: rgba(44, 62, 80, 0.08);
  --color-border-strong: rgba(44, 62, 80, 0.15);

  --color-text-primary: #2C3E50;
  --color-text-secondary: #64748b;
  --color-text-tertiary: #94A3B8;
  --color-text-inverse: #f1f5f9;

  --color-link: #2B7BBF;
  --color-link-hover: #1e6aab;
  --color-accent: #2B7BBF;
  --color-accent-hover: #1e6aab;
  --color-accent-active: #185a96;

  --color-dark-bg: #2C3E50;
  --color-dark-surface: #34495e;
  --color-dark-surface-light: #415b76;
  --color-dark-border: rgba(255, 255, 255, 0.1);

  /* Category Colors */
  --color-cat-gadgets: #2B7BBF;
  --color-cat-software: #27ae60;
  --color-cat-ai: #8e44ad;
  --color-cat-security: #e74c3c;
  --color-cat-reviews: #f39c12;
  --color-cat-video: #e91e63;
  --color-cat-pc-builds: #2B7BBF;
  --color-cat-hardware: #2C3E50;
  --color-cat-componente: #16a085;

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

  /* Border Radius (Apple style) */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --radius-full: 9999px;

  /* Shadows (Apple depth system) */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06), 0 2px 4px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 8px 28px rgba(0, 0, 0, 0.08), 0 4px 10px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.1), 0 8px 16px rgba(0, 0, 0, 0.06);

  /* Transitions */
  --ease-apple: cubic-bezier(0.25, 0.1, 0.25, 1);
  --transition-fast: 0.2s var(--ease-apple);
  --transition-medium: 0.35s var(--ease-apple);
  --transition-slow: 0.5s var(--ease-apple);

  /* Layout */
  --container-max: 1440px;
  --container-wide: 1080px;
  --container-narrow: 860px;
  --container-content: 680px;
  --sidebar-width: 300px;
  --header-height: 48px;
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  overflow-x: hidden; /* Moved from body — prevents body scroll container which breaks position:sticky */
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.47059;
  letter-spacing: -0.022em;
  color: var(--color-text-primary);
  background-color: var(--color-bg);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--color-link);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-link-hover);
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ---------- Apple Typography System ---------- */

/* Display Headlines */
h1, .h1 {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 700;
  line-height: 1.07143;
  letter-spacing: -0.005em;
  color: var(--color-text-primary);
}

h2, .h2 {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 700;
  line-height: 1.08349;
  letter-spacing: -0.003em;
  color: var(--color-text-primary);
}

h3, .h3 {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.125;
  letter-spacing: 0.004em;
  color: var(--color-text-primary);
}

h4, .h4 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.16667;
  letter-spacing: 0.009em;
  color: var(--color-text-primary);
}

h5, .h5 {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.19048;
  letter-spacing: 0.011em;
  color: var(--color-text-primary);
}

h6, .h6 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.23536;
  letter-spacing: -0.022em;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

p {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.47059;
  letter-spacing: -0.022em;
  color: var(--color-text-primary);
  margin-bottom: 1em;
}

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

span {
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  color: inherit;
}

small {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.33337;
  letter-spacing: -0.01em;
  color: var(--color-text-tertiary);
}

strong, b {
  font-weight: 600;
}

em, i {
  font-style: italic;
}

blockquote {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.33;
  letter-spacing: 0.009em;
  color: var(--color-text-primary);
  border-left: 3px solid var(--color-accent);
  padding: var(--space-6) var(--space-7);
  margin: var(--space-8) 0;
  background: var(--color-surface-secondary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

blockquote p {
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  margin-bottom: 0;
}

code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  font-weight: 400;
  background: var(--color-surface-secondary);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--color-text-primary);
}

pre {
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.5;
  background: var(--color-dark-bg);
  color: var(--color-text-inverse);
  padding: var(--space-6);
  border-radius: var(--radius-md);
  overflow-x: auto;
  margin: var(--space-7) 0;
}

pre code {
  background: none;
  padding: 0;
  border-radius: 0;
  color: inherit;
}

figcaption {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.33337;
  color: var(--color-text-tertiary);
  text-align: center;
  margin-top: var(--space-2);
}

/* ---------- Layout Containers ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-9);
}

.container--wide {
  max-width: var(--container-wide);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.container--content {
  max-width: var(--container-content);
}

/* ---------- Section Spacing ---------- */
.section {
  padding: var(--space-12) 0;
}

.section + .section {
  padding-top: 0;
}

.section__header {
  margin-bottom: var(--space-8);
}

.section__title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.125;
  letter-spacing: 0.004em;
  color: var(--color-text-primary);
}

.section__subtitle {
  font-family: var(--font-body);
  font-size: 17px;
  color: var(--color-text-secondary);
  margin-top: var(--space-2);
}

/* ---------- Utility: Category Badge ---------- */
.cat-badge {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  line-height: 1.3;
}

.cat-badge--gadgets {
  background: rgba(0, 113, 227, 0.1);
  color: var(--color-cat-gadgets);
}
.cat-badge--software {
  background: rgba(52, 199, 89, 0.1);
  color: var(--color-cat-software);
}
.cat-badge--ai {
  background: rgba(175, 82, 222, 0.1);
  color: var(--color-cat-ai);
}
.cat-badge--security {
  background: rgba(255, 59, 48, 0.1);
  color: var(--color-cat-security);
}
.cat-badge--reviews {
  background: rgba(255, 149, 0, 0.1);
  color: var(--color-cat-reviews);
}
.cat-badge--video {
  background: rgba(255, 45, 85, 0.1);
  color: var(--color-cat-video);
}

/* ---------- Card Base (Apple white rounded card) ---------- */
.card {
  position: relative;
  background: var(--color-surface);
  border: none;
  border-radius: var(--radius-xl);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
  box-shadow: var(--shadow-sm);
}

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

.card__image {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

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

.card:hover .card__image img {
  transform: scale(1.03);
}

.card__body {
  padding: var(--space-6);
}

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

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

.card__title a {
  color: inherit;
}

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

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

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

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

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

/* ---------- Header / Navigation (3-zone) ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(251, 251, 253, 0.95);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow var(--transition-medium);
}

.site-header.scrolled {
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.08);
}

/* Zone 1: Top bar */
.header-topbar {
  height: 44px;
  max-height: 44px;
  background: var(--color-dark-bg);
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
}

.site-header.scrolled .header-topbar {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
  pointer-events: none;
}

.header-topbar .container {
  display: flex;
  align-items: center;
  height: 100%;
}

.header-topbar__tags {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  overflow-x: auto;
  scrollbar-width: none;
}

.header-topbar__tags::-webkit-scrollbar {
  display: none;
}

.header-topbar__tags a {
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
  white-space: nowrap;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  transition: color var(--transition-fast), background var(--transition-fast);
}

.header-topbar__tags a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

/* Zone 2: Logo + Search + Social */
.header-main {
  height: 56px;
  border-bottom: 1px solid var(--color-border);
}

.header-main .container {
  display: flex;
  align-items: center;
  height: 100%;
  gap: var(--space-5);
}

.header-search {
  flex: 1;
  max-width: 480px;
  position: relative;
  display: flex;
  align-items: center;
}

.header-search__icon {
  position: absolute;
  left: 12px;
  width: 16px;
  height: 16px;
  color: var(--color-text-tertiary);
  pointer-events: none;
}

.header-search__input {
  width: 100%;
  font-family: var(--font-body);
  font-size: 14px;
  padding: 8px 12px 8px 36px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface-secondary);
  color: var(--color-text-primary);
  outline: none;
  transition: border-color var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast);
}

.header-search__input::placeholder {
  color: var(--color-text-tertiary);
}

.header-search__input:focus {
  border-color: var(--color-accent);
  background: var(--color-surface);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.1);
}

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

.header-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  color: var(--color-text-secondary);
  transition: color var(--transition-fast), background var(--transition-fast);
}

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

.header-social a svg {
  width: 15px;
  height: 15px;
}

/* CTA Button (Customizer-controlled) */
.header-cta {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.3s, color 0.3s, opacity 0.3s;
  white-space: nowrap;
  /* Defaults overridden by Customizer inline CSS */
  background: var(--color-accent, #2B7BBF);
  color: #fff;
  border-radius: 980px;
}

.header-cta:hover {
  opacity: 0.85;
}

/* Zone 3: Nav */
.header-nav {
  height: 44px;
}

.header-nav .container {
  display: flex;
  align-items: center;
  height: 100%;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  color: var(--color-text-primary);
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.site-logo .custom-logo-link {
  display: inline-flex;
  align-items: center;
}

.site-logo .custom-logo,
.site-logo img {
  height: 28px;
  width: auto;
  max-height: 28px;
  object-fit: contain;
}

.site-logo span {
  color: var(--color-accent);
}

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

.nav-main a {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  color: var(--color-text-primary);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-full);
  transition: background var(--transition-fast), color var(--transition-fast);
  white-space: nowrap;
  opacity: 0.8;
}

.nav-main a:hover {
  opacity: 1;
  background: var(--color-surface-secondary);
  color: var(--color-text-primary);
}

.nav-main a.active {
  opacity: 1;
  font-weight: 500;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.btn-search {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  color: var(--color-text-primary);
  transition: background var(--transition-fast);
}

.btn-search:hover {
  background: var(--color-surface-secondary);
}

.btn-search svg {
  width: 16px;
  height: 16px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: var(--space-2);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--color-text-primary);
  border-radius: 2px;
  transition: var(--transition-fast);
}

/* Search toggle (mobile only) */
.search-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--color-text-primary);
  cursor: pointer;
  transition: background var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
}

.search-toggle:hover,
.search-toggle:active {
  background: var(--color-surface-secondary);
}

.search-toggle svg {
  width: 18px;
  height: 18px;
}

.search-toggle.active {
  color: var(--color-accent);
}

/* Mobile search dropdown — hidden by default on desktop */
.header-search-mobile {
  display: none;
}

/* ---------- 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;
}

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--color-dark-bg);
  color: var(--color-text-inverse);
  padding: var(--space-12) 0 var(--space-8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: var(--space-10);
  padding-bottom: var(--space-10);
  border-bottom: 1px solid var(--color-dark-border);
}

/* Footer column variants */
.footer-grid--2col { grid-template-columns: 1.5fr 1fr; }
.footer-grid--3col { grid-template-columns: 1.4fr 1fr 1.2fr; }
.footer-grid--4col { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; }

.footer-col__logo {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  margin-bottom: var(--space-4);
}

.footer-col__logo span {
  color: var(--color-accent);
}

.footer-col__desc {
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: var(--space-5);
}

.footer-col__contact {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
}

.footer-col__contact-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a.footer-col__contact-item:hover {
  color: var(--color-accent);
}

.footer-col__contact-item i {
  font-size: 14px;
  opacity: 0.7;
  width: 16px;
  text-align: center;
  flex-shrink: 0;
}

.footer-social {
  display: flex;
  gap: var(--space-3);
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--color-dark-surface);
  color: rgba(255, 255, 255, 0.7);
  transition: background var(--transition-fast), color var(--transition-fast);
}

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

.footer-social svg {
  width: 16px;
  height: 16px;
}

.footer-col__title {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: var(--space-5);
}

.footer-col__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-col__links a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition-fast);
}

.footer-col__links a:hover {
  color: #fff;
}

/* Newsletter */
.footer-newsletter {
  margin-top: var(--space-4);
}

.footer-newsletter__input-group {
  display: flex;
  gap: var(--space-2);
}

.footer-newsletter__input {
  flex: 1;
  font-family: var(--font-body);
  font-size: 14px;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-dark-border);
  background: var(--color-dark-surface);
  color: #fff;
  outline: none;
  transition: border-color var(--transition-fast);
}

.footer-newsletter__input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

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

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

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

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-6);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom a:hover {
  color: #fff;
}

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

.footer-scroll-top {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
  flex-shrink: 0;
}

.footer-scroll-top svg {
  width: 18px;
  height: 18px;
}

.footer-scroll-top:hover {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
  transform: translateY(-2px);
}

/* ---------- 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;
}

/* ── 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(0, 113, 227, 0.08) 0%, rgba(0, 113, 227, 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: #e83e8c;
  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: #e5e5e7;
  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: #5856d6;
  text-decoration-color: rgba(88, 86, 214, 0.3);
}

.article-content a:visited:hover {
  text-decoration-color: #5856d6;
}

.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(0, 113, 227, 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(0, 113, 227, 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: #ff3b30;
  box-shadow: 0 0 0 3px rgba(255, 59, 48, 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: #34C759 !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;
}

/* 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(3, 1fr);
  gap: var(--space-6);
}

/* ---------- 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(0, 113, 227, 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;
}

/* ---------- BUTTON COMPONENTS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.17648;
  letter-spacing: -0.022em;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-full);
  transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}

.btn--primary {
  background: var(--color-accent);
  color: #fff;
}

.btn--primary:hover {
  background: var(--color-accent-hover);
  color: #fff;
}

.btn--secondary {
  background: transparent;
  color: var(--color-link);
}

.btn--secondary:hover {
  color: var(--color-link-hover);
}

.btn--link {
  font-size: 17px;
  color: var(--color-link);
  padding: 0;
}

.btn--link:hover {
  text-decoration: underline;
}

.btn--link::after {
  content: " ›";
  transition: transform var(--transition-fast);
}

/* ---------- SCROLL ANIMATIONS ---------- */
.animate-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease-apple), transform 0.6s var(--ease-apple);
  pointer-events: auto; /* clickable even before visible */
  animation: frames-animate-fallback 0s 0.3s forwards; /* fast fallback if JS is slow */
}

.animate-in.visible {
  opacity: 1;
  transform: translateY(0);
  animation: none;
}

/* Fallback keyframe */
@keyframes frames-animate-fallback {
  to { opacity: 1; transform: translateY(0); }
}

/* Elementor editor — always visible */
.elementor-editor-active .animate-in,
.elementor-editor-preview .animate-in {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
}

/* stagger delays */
.animate-in[data-delay="1"] { transition-delay: 0.1s; }
.animate-in[data-delay="2"] { transition-delay: 0.2s; }
.animate-in[data-delay="3"] { transition-delay: 0.3s; }
.animate-in[data-delay="4"] { transition-delay: 0.4s; }

/* ---------- RESPONSIVE: 1080px ---------- */
@media (max-width: 1080px) {
  :root {
    --container-max: 1080px;
  }

  h1, .h1 { font-size: 44px; }
  h2, .h2 { font-size: 38px; }
  h3, .h3 { font-size: 28px; }

  .hero-card__title { font-size: 36px; }
  .hero-card__content { padding: var(--space-8); }

  .section-one__grid { gap: var(--space-5); }
  .section-one__featured .card__title { font-size: 24px; }

  .tabs-grid { grid-template-columns: repeat(3, 1fr); }

  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr 1.2fr; gap: var(--space-7); }

  .single-header__title { font-size: 40px; }
}

/* Nav sheet (created by JS, hidden on desktop) */
.nav-sheet-overlay,
.nav-sheet {
  display: none;
}

/* ---------- RESPONSIVE: 860px ---------- */
@media (max-width: 860px) {
  .container {
    padding: 0 var(--space-6);
  }

  h1, .h1 { font-size: 36px; }
  h2, .h2 { font-size: 32px; }
  h3, .h3 { font-size: 24px; }

  .section { padding: var(--space-10) 0; }
  .section__title { font-size: 28px; }

  .hero-card {
    aspect-ratio: 16/9;
  }
  .hero-card__title { font-size: 28px; }
  .hero-card__content { padding: var(--space-6); }
  .hero-card__excerpt { font-size: 15px; }

  .latest-item__image { width: 200px; height: 130px; }
  .latest-item__title { font-size: 17px; }

  .section-one__grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
    max-height: none;
  }
  .section-one__featured { aspect-ratio: 16/9; }

  .video-showcase__list {
    grid-template-columns: repeat(2, 1fr);
  }
  .video-showcase__item:nth-child(2) { border-right: none; }
  .video-showcase__title { font-size: 24px; }

  .tabs-grid { grid-template-columns: repeat(2, 1fr); }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-7); }

  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .category-header__title { font-size: 36px; }

  .single-header__title { font-size: 32px; }
  .single-header__excerpt { font-size: 17px; }
  .page-header__title { font-size: 40px; }

  /* Show mobile nav toggle + search toggle, hide desktop-only elements */
  .header-topbar { display: none; }
  .header-social { display: none; }
  .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .search-toggle { display: flex; }

  /* Mobile header: logo LEFT, [search icon] [menu] RIGHT */
  .header-main {
    height: 48px;
    padding: 0;
  }

  .header-main .container {
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: var(--space-2);
    position: relative;
  }

  .site-logo {
    font-size: 22px;
    order: 1;
    margin-bottom: 0;
    flex: 1;
    min-width: 0;
  }

  /* Hide inline search on mobile — replaced by search toggle */
  .header-search {
    display: none;
  }

  .search-toggle {
    order: 2;
  }

  .nav-toggle {
    position: static;
    order: 3;
  }

  /* Mobile search dropdown — slides down */
  .header-search-mobile {
    display: block;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    opacity: 0;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
  }

  .header-search-mobile.open {
    max-height: 60px;
    opacity: 1;
  }

  .header-search-mobile__form {
    position: relative;
    display: flex;
    align-items: center;
    padding: var(--space-2) 0 var(--space-3);
  }

  .header-search-mobile__form .header-search__input {
    width: 100%;
    font-size: 15px;
    padding: 10px 12px 10px 38px;
    border-radius: var(--radius-md);
  }

  .header-search-mobile__form .header-search__icon {
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
  }

  /* Show header-nav on mobile with horizontal scroll */
  .header-nav {
    display: block;
    height: 40px;
    border-bottom: 1px solid var(--color-border);
    overflow: hidden;
  }

  .header-nav .container {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0;
    padding-right: var(--space-8); /* fade space */
  }

  .header-nav .container::-webkit-scrollbar {
    display: none;
  }

  .nav-main {
    flex-wrap: nowrap;
    gap: 0;
  }

  .nav-main a {
    font-size: 13px;
    padding: var(--space-2) var(--space-3);
    white-space: nowrap;
  }

  /* ===== iOS Bottom Sheet ===== */
  .nav-sheet-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    z-index: 9998;
    pointer-events: none;
    transition: background 0.35s ease;
  }

  .nav-sheet-overlay.active {
    background: rgba(0, 0, 0, 0.35);
    pointer-events: auto;
  }

  .nav-sheet {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.12);
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1);
    max-height: 80vh;
    overflow-y: auto;
    padding: 0 var(--space-5);
    padding-bottom: max(var(--space-7), env(safe-area-inset-bottom));
  }

  .nav-sheet.open {
    transform: translateY(0);
  }

  .nav-sheet__handle {
    width: 36px;
    height: 5px;
    border-radius: 3px;
    background: rgba(0, 0, 0, 0.15);
    margin: 12px auto 20px;
  }

  .nav-sheet__list {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .nav-sheet__list li {
    border-bottom: 1px solid var(--color-border);
  }

  .nav-sheet__list li:last-child {
    border-bottom: none;
  }

  .nav-sheet__list a {
    display: block;
    font-family: var(--font-body);
    font-size: 17px;
    font-weight: 500;
    color: var(--color-text-primary);
    padding: 16px var(--space-3);
    transition: background var(--transition-fast);
    text-decoration: none;
  }

  .nav-sheet__list a:active {
    background: var(--color-surface-secondary);
  }

  .nav-sheet__list a.active {
    color: var(--color-accent);
  }
}

/* ---------- RESPONSIVE: Mobile ---------- */
@media (max-width: 600px) {
  .container {
    padding: 0 10px;
  }

  h1, .h1 { font-size: 28px; }
  h2, .h2 { font-size: 24px; }
  h3, .h3 { font-size: 21px; }
  h4, .h4 { font-size: 19px; }

  body { font-size: 16px; }
  p { font-size: 16px; }

  .section { padding: var(--space-8) 0; }
  .section__title { font-size: 24px; }

  .hero-card {
    aspect-ratio: 4/3;
    border-radius: var(--radius-lg);
  }
  .hero-card__title {
    font-size: 22px;
  }
  .hero-card__content { padding: var(--space-5); }
  .hero-card__excerpt { display: none; }

  .latest-item {
    flex-direction: column;
    padding: 0;
    gap: 0;
  }
  .latest-item__image {
    width: 100%;
    height: 180px;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  }
  .latest-item__content {
    padding: var(--space-5);
  }

  .section-one__grid { max-height: none; }
  .section-one__featured .card__body { padding: var(--space-5); }
  .section-one__featured .card__title { font-size: 21px; }
  .section-one__sidebar .latest-item { padding: 0; flex-direction: column; }
  .section-one__sidebar .latest-item__image { width: 100%; height: 120px; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
  .section-one__sidebar .latest-item__content { padding: var(--space-4); }
  .section-one__sidebar .latest-item__title { font-size: 15px; }

  .video-showcase__list {
    grid-template-columns: 1fr;
  }
  .video-showcase__item { border-right: none; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
  .video-showcase__item:last-child { border-bottom: none; }
  .video-showcase__title { font-size: 21px; }
  .video-showcase__content { padding: var(--space-5); }

  .tabs-grid { grid-template-columns: 1fr; }
  .tabs-nav { gap: 0; }
  .tabs-nav__item { padding: var(--space-3); font-size: 13px; }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-7);
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-3);
    text-align: center;
  }

  .related-grid { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: 1fr; }
  .category-header { padding: var(--space-8) 0 var(--space-7); }
  .category-header__title { font-size: 28px; }
  .category-header__desc { font-size: 16px; }
  .category-header__search { max-width: 100%; }

  .single-header { padding: var(--space-7) 0 var(--space-5); }
  .single-header__title { font-size: 26px; }
  .single-header__excerpt { font-size: 16px; }
  .single-hero-image { border-radius: var(--radius-lg); max-height: 400px; }
  .single-hero-image--contain { min-height: 200px; max-height: 400px; }
  .single-hero-image--contain .single-hero-image__img { max-height: 400px; }
  .single-hero-image--wide .single-hero-image__img { max-height: 400px; }
  .article-content p { font-size: 17px; }
  .article-content h2 {
	font-size: 21px;
	line-height: 1.19048;
	font-weight: 600;
	letter-spacing: 0.011em;
  }
  .article-content h3 { font-size: 21px; }
  .article-content h4 { font-size: 19px; }
  .article-content h5 { font-size: 15px; }
  .article-content pre { font-size: 13px; padding: var(--space-4); }
  .article-content blockquote { padding: var(--space-6) var(--space-5) var(--space-5); max-width: 100%; }
  .article-content blockquote::before { font-size: 56px; top: -4px; left: 16px; }
  .article-content blockquote p { font-size: 17px; }
  .article-content table { font-size: 14px; display: block; overflow-x: auto; }
  .article-content th, .article-content td { padding: var(--space-2) var(--space-3); }
  .share-box { flex-direction: column; align-items: center; gap: var(--space-4); text-align: center; }
  .share-box__buttons { width: 100%; justify-content: center; }
  .comments-empty { padding: var(--space-7) var(--space-4); }
  .breadcrumbs__current { max-width: 160px; }

  /* Mobile safety: images and iframes must never exceed viewport */
  .article-content img,
  .article-content figure,
  .article-content .wp-block-image,
  .article-content video,
  .prose-iframe-wrap,
  .prose-iframe-wrap iframe {
    max-width: 100% !important;
    width: auto;
    height: auto;
  }
  .article-content iframe {
    max-width: 100% !important;
  }

  .page-header { padding: var(--space-10) 0 var(--space-7); }
  .page-header__title { font-size: 28px; }
  .page-content p { font-size: 16px; }
}

/* ---------- 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, #0a0a0a 0%, #1a1a2e 50%, #16213e 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(0, 113, 227, 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(0, 113, 227, 0.15);
  border: 1px solid rgba(0, 113, 227, 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(0, 113, 227, 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(52, 199, 89, 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(0, 113, 227, 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(0, 113, 227, 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(0, 113, 227, 0.2);
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 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(0, 113, 227, 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(0, 113, 227, 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, #f5e6dc 0%, #f0d5c4 100%);
}
.child-card--teal {
  background: linear-gradient(160deg, #3a7c8c 0%, #2a5c6c 100%);
}
.child-card--dark {
  background: linear-gradient(160deg, #2c3e50 0%, #1a252f 100%);
}
.child-card--green {
  background: linear-gradient(160deg, #1b4332 0%, #0d2818 100%);
}
.child-card--lavender {
  background: linear-gradient(160deg, #e8dff5 0%, #d4c5f0 100%);
}
.child-card--peach {
  background: linear-gradient(160deg, #fce4d6 0%, #f5d0b8 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, #2B7BBF);
  border-color: var(--color-accent, #2B7BBF);
}
.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(0, 113, 227, 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(0, 113, 227, 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 Pclab_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, #d1d1d6);
    margin-bottom: var(--space-4, 16px);
}

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

.error404-hero__desc {
    font-size: 15px;
    color: var(--text-secondary, #94A3B8);
    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, #e5e5e7);
    border-radius: 12px;
    padding: 4px;
    transition: border-color .2s ease, box-shadow .2s ease;
}

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

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

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

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

.error404-search__btn {
    flex-shrink: 0;
    padding: 10px 24px;
    border: none;
    border-radius: 9px;
    background: #2C3E50;
    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, #2C3E50);
    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, #d1d1d6);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary, #2C3E50);
    text-decoration: none;
    transition: all .2s ease;
}

.error404-cat-chip:hover {
    background: #2C3E50;
    color: #fff;
    border-color: #2C3E50;
}

.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, #f1f5f9);
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary, #94A3B8);
    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 #2C3E50;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #2C3E50;
    text-decoration: none;
    transition: all .2s ease;
}

.error404-cta__btn:hover {
    background: #2C3E50;
    color: #fff;
}


/* ---------- Print ---------- */
@media print {
  .site-header,
  .site-footer,
  .section-video,
  .section-tabs,
  .tabs-nav {
    display: none !important;
  }
  body { background: #fff; }
  .card { box-shadow: none; break-inside: avoid; }
}


/* ==========================================================================
   REVIEW SCORE — Minimalist vertical layout (below hero image)
   ========================================================================== */
.review-score {
  max-width: var(--container-wide);
  margin: calc(var(--space-6) * -1) auto var(--space-4);
  position: relative;
  z-index: 2;
}

/* ── Header: score circle + info + buy button ── */
.review-score__header {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  padding: var(--space-5) var(--space-6);
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.review-score__circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a1a2e, #0f3460);
  border: 2px solid var(--rv-color, var(--color-accent));
  flex-shrink: 0;
}

.review-score__num {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  letter-spacing: -0.03em;
}

.review-score__of {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 500;
  margin-top: -1px;
}

.review-score__info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-3);
}

.review-score__verdict {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.review-score__stars {
  display: flex;
  gap: 2px;
}

.review-score__stars .star {
  width: 16px;
  height: 16px;
}

.review-score__product {
  width: 100%;
  font-size: 13px;
  color: var(--color-text-tertiary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.review-score__buy {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 10px 20px;
  background: var(--color-accent);
  color: #fff;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.review-score__buy:hover {
  background: var(--color-accent-hover, #1e6aaa);
  transform: translateY(-1px);
}

.review-score__buy span {
  font-size: 12px;
  font-weight: 500;
  opacity: 0.8;
}

/* ── Criteria: horizontal scroll strip ── */
.review-score__criteria-wrap {
  margin-top: var(--space-3);
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.review-score__criteria-wrap::-webkit-scrollbar {
  display: none;
}

.review-score__criteria {
  display: flex;
  gap: var(--space-2);
  padding: 2px 0;
  width: max-content;
  min-width: 100%;
}

.review-score__pill {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 8px 14px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  white-space: nowrap;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.review-score__pill:hover {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 1px var(--color-accent);
}

.review-score__pill i {
  font-size: 14px;
  color: var(--color-text-tertiary);
}

.review-score__pill-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-secondary);
}

.review-score__pill-val {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
}

/* ── Pros / Cons: inline tags ── */
.review-score__proscons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-3);
}

.review-score__col {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
}

.review-score__tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
}

.review-score__tag i {
  font-size: 11px;
}

.review-score__tag--pro {
  background: rgba(34, 197, 94, 0.08);
  color: #16a34a;
}

.review-score__tag--con {
  background: rgba(239, 68, 68, 0.08);
  color: #dc2626;
}

/* ── Summary ── */
.review-score__summary {
  margin: var(--space-3) 0 0;
  padding: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text-tertiary);
  font-style: italic;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .review-score__header {
    flex-wrap: wrap;
    padding: var(--space-4);
    gap: var(--space-3);
  }

  .review-score__circle {
    width: 60px;
    height: 60px;
  }

  .review-score__num {
    font-size: 22px;
  }

  .review-score__buy {
    width: 100%;
    justify-content: center;
    order: 10;
  }

  .review-score__pill {
    padding: 6px 10px;
  }

  .review-score__pill-label {
    font-size: 12px;
  }
}

/* ── Compact review badge (for cards/widgets) ── */
.review-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: var(--color-surface-secondary);
  font-size: 12px;
}

.review-badge__stars {
  display: flex;
  gap: 1px;
}

.review-badge__stars .star {
  width: 12px;
  height: 12px;
}

.review-badge__score {
  font-weight: 700;
  color: var(--color-text-primary);
}

.review-badge__verdict {
  font-weight: 600;
  color: var(--badge-color, var(--color-accent));
  font-size: 11px;
}

/* ── Inline stars (generic) ── */
.pclab-stars-inline {
  display: inline-flex;
  gap: 2px;
  vertical-align: middle;
}

.pclab-stars-inline .star {
  width: 16px;
  height: 16px;
}


/* ==========================================================================
   COMMENT STAR RATING — Form input stars
   ========================================================================== */
.pclab-stars {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 2px;
  border: 0;
  padding: 0;
  margin: 4px 0 0;
}

.pclab-stars__input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.pclab-stars__label {
  cursor: pointer;
  color: var(--color-text-tertiary);
  transition: color 0.15s;
}

.pclab-stars__label svg {
  display: block;
  transition: transform 0.15s;
}

.pclab-stars__label:hover svg {
  transform: scale(1.15);
}

.pclab-stars__label:hover,
.pclab-stars__label:hover ~ .pclab-stars__label {
  color: #f59e0b;
}

.pclab-stars__label:hover svg,
.pclab-stars__label:hover ~ .pclab-stars__label svg {
  fill: #f59e0b;
}

.pclab-stars.rated .pclab-stars__label.active,
.pclab-stars.rated .pclab-stars__label.active ~ .pclab-stars__label {
  color: #f59e0b;
}

.pclab-stars.rated .pclab-stars__label.active svg,
.pclab-stars.rated .pclab-stars__label.active ~ .pclab-stars__label svg {
  fill: #f59e0b;
}

/* Comment rating display */
.comment-rating {
  display: flex;
  gap: 2px;
  margin-bottom: var(--space-2);
}


/* ==========================================================================
   READING PROGRESS BAR — Fixed under header
   ========================================================================== */
.reading-progress {
  position: fixed;
  top: var(--header-height, 48px);
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 9998;
  background: transparent;
  pointer-events: none;
}

.reading-progress__bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--color-accent) 0%, #34C759 100%);
  border-radius: 0 2px 2px 0;
  transition: width 0.1s linear;
  will-change: width;
}




/* ==========================================================================
   FLOATING SCROLL-TO-TOP — Appears after 500px scroll
   ========================================================================== */
.floating-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9990;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  border: none;
  background: var(--color-text-primary);
  color: var(--color-surface);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: translateY(20px) scale(0.8);
  visibility: hidden;
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), visibility 0.3s, background 0.2s;
}

.floating-top.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  visibility: visible;
}

.floating-top:hover {
  background: var(--color-accent);
  transform: translateY(-2px) scale(1.05);
}

.floating-top:active {
  transform: translateY(0) scale(0.95);
}

.floating-top svg {
  width: 22px;
  height: 22px;
}

@media (max-width: 768px) {
  .floating-top {
    bottom: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
  }
}


/* ==========================================================================
   PWA ZONE — App promo + Save offline (inline in article)
   ========================================================================== */
.pwa-zone {
  margin: var(--space-6) 0;
}

.pwa-zone__card {
  padding: var(--space-5);
  background: var(--color-surface);
  border-radius: var(--radius-xl, 20px);
  border: 1px solid var(--color-border);
  box-shadow: 0 1px 8px rgba(0,0,0,0.04);
  transition: box-shadow 0.3s, transform 0.3s;
}

.pwa-zone__card:hover {
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  transform: translateY(-1px);
}

/* ── Row: icon + info + save btn ── */
.pwa-zone__app {
  display: flex;
  align-items: center;
  gap: var(--space-4, 16px);
}

.pwa-zone__icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: 14px;
  overflow: hidden;
  flex-shrink: 0;
  transition: transform 0.2s, box-shadow 0.2s;
}

.pwa-zone__icon-btn:hover {
  transform: scale(1.06);
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.pwa-zone__icon-btn:active {
  transform: scale(0.97);
}

.pwa-zone__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.pwa-zone__icon--fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-text-primary, #1d1d1f);
  color: #fff;
}

.pwa-zone__app-info {
  flex: 1;
  min-width: 0;
}

.pwa-zone__app-name {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text-primary);
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.pwa-zone__app-desc {
  display: block;
  font-size: 12px;
  color: var(--color-text-tertiary);
  line-height: 1.3;
  margin-top: 2px;
}

/* ── Save button ── */
.pwa-zone__save {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border, #e5e5e5);
  background: var(--color-surface, #fff);
  color: var(--color-text-primary);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s;
}

.pwa-zone__save:hover {
  background: var(--color-text-primary, #1d1d1f);
  color: #fff;
  border-color: var(--color-text-primary, #1d1d1f);
}

.pwa-zone__save:active {
  transform: scale(0.97);
}

.pwa-zone__save:disabled {
  opacity: 0.5;
  pointer-events: none;
}

/* ── Install button ── */
.pwa-zone__install {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: var(--space-4, 16px);
  padding: 12px 20px;
  border-radius: var(--radius-full, 980px);
  border: none;
  background: var(--color-text-primary, #1d1d1f);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  letter-spacing: -0.01em;
  transition: all 0.25s;
}

.pwa-zone__install:hover {
  background: var(--color-accent, #2B7BBF);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(43,123,191,0.25);
}

.pwa-zone__install:active {
  transform: scale(0.98);
}
