/*
 Theme Name:   MoveKH
 Theme URI:    https://movekh.com
 Description:  MoveKH — The definitive 100% custom living & relocations guide platform for Cambodia expats, digital nomads, and entrepreneurs.
 Author:       MoveKH
 Author URI:   https://movekh.com
 Version:      3.0.0
 Text Domain:  movekh
 Requires at least: 6.0
 Requires PHP: 7.4
*/

/* ============================================================
   MoveKH Brand Variables & Apple Glassmorphism Design Tokens
   ============================================================ */
:root {
  --brand-blue: #0099FF;
  --brand-blue-light: #38BDF8;
  --brand-blue-dark: #0070BA;
  --brand-green: #00875A;
  --brand-mint: #2ECC71;
  --brand-surface: #0B0F17;
  --brand-surface-elevated: #111726;
  --brand-surface-card: #161F33;
  --radius: 1.25rem;

  --bg: #ffffff;
  --fg: #0f172a;
  --muted: #64748b;
  --border: rgba(226, 232, 240, 0.85);
  --card-bg: #ffffff;
  --card-glass: rgba(255, 255, 255, 0.82);
  --nav-hover: #f1f5f9;
  --prose-fg: #334155;
  --prose-heading: #0f172a;
  --glass-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
}

html.dark-mode, body.dark-mode {
  --bg: #090C10 !important;
  --fg: #f8fafc !important;
  --muted: #94a3b8 !important;
  --border: rgba(255, 255, 255, 0.09) !important;
  --card-bg: #111726 !important;
  --card-glass: rgba(17, 23, 38, 0.82) !important;
  --nav-hover: rgba(255, 255, 255, 0.06) !important;
  --prose-fg: #cbd5e1 !important;
  --prose-heading: #ffffff !important;
  --glass-shadow: 0 12px 35px -10px rgba(0, 0, 0, 0.5) !important;
}

/* ============================================================
   Base Reset & Typography
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; background: var(--bg); color: var(--fg); }

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg) !important;
  color: var(--fg) !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  transition: background 0.2s ease, color 0.2s ease;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* Custom Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(148,163,184,0.25); border-radius: 9999px; }
::-webkit-scrollbar-thumb:hover { background: rgba(148,163,184,0.45); }

/* ============================================================
   Gradient Utilities
   ============================================================ */
.text-gradient-brand {
  background: linear-gradient(135deg, #0099FF 0%, #00875A 50%, #2ECC71 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-blue {
  background: linear-gradient(135deg, #38BDF8 0%, #0099FF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

/* ============================================================
   HEADER (Frosted Glass)
   ============================================================ */
#movekh-header {
  position: sticky;
  top: 0;
  z-index: 9999;
  width: 100%;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  transition: background 0.2s ease;
}

html.dark-mode #movekh-header, body.dark-mode #movekh-header {
  background: rgba(11, 15, 23, 0.88);
}

.movekh-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.movekh-header-left { display: flex; align-items: center; gap: 2rem; }
.movekh-header-right { display: flex; align-items: center; gap: 10px; }

/* Logo */
.movekh-logo { display: flex; align-items: center; gap: 10px; }
.movekh-logo img {
  width: 32px; height: 32px;
  border-radius: 10px;
  object-fit: contain;
  transition: transform 0.2s ease;
}
.movekh-logo:hover img { transform: scale(1.06); }
.movekh-logo-wordmark { display: flex; align-items: baseline; gap: 4px; }
.movekh-logo-name {
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--fg);
  letter-spacing: -0.025em;
}
.movekh-logo-name .kh { color: var(--brand-blue); }

/* Nav */
.movekh-nav { display: flex; align-items: center; gap: 4px; }
.movekh-nav a {
  padding: 6px 13px;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  transition: all 0.15s ease;
}
.movekh-nav a:hover { color: var(--fg); background: var(--nav-hover); }

/* Quick Search Button */
.movekh-search-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(245,245,245,0.7);
  color: var(--muted);
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}
.movekh-search-btn:hover { border-color: rgba(0,153,255,0.5); color: var(--brand-blue); }
html.dark-mode .movekh-search-btn, body.dark-mode .movekh-search-btn { background: rgba(255,255,255,0.04); }
.movekh-search-btn kbd {
  font-size: 10px;
  background: rgba(0,0,0,0.06);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
}
html.dark-mode .movekh-search-btn kbd, body.dark-mode .movekh-search-btn kbd { background: rgba(255,255,255,0.08); }

/* ============================================================
   GLASSMORPHIC LANGUAGE ORB & MULTILINGUAL SWITCHER
   ============================================================ */
.movekh-lang-orb-wrapper { position: relative; display: inline-block; }

.movekh-lang-orb {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 9999px;
  border: 1px solid rgba(0, 153, 255, 0.35);
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--fg);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 15px -2px rgba(0, 153, 255, 0.12);
}
.movekh-lang-orb:hover {
  border-color: var(--brand-blue);
  box-shadow: 0 6px 20px -2px rgba(0, 153, 255, 0.25);
  transform: translateY(-1px);
}
html.dark-mode .movekh-lang-orb, body.dark-mode .movekh-lang-orb {
  background: rgba(17, 23, 38, 0.85);
  border-color: rgba(0, 153, 255, 0.3);
}

.lang-orb-glow {
  position: absolute;
  inset: -1px;
  border-radius: 9999px;
  background: radial-gradient(circle at 50% 0%, rgba(0,153,255,0.25), transparent 70%);
  pointer-events: none;
  opacity: 0.6;
}
.lang-flag { font-size: 1rem; line-height: 1; }
.lang-code { font-size: 0.72rem; letter-spacing: 0.05em; }

/* Language Dropdown */
.movekh-lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 190px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 6px;
  box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.18);
  display: none;
  flex-direction: column;
  gap: 2px;
  z-index: 99999;
}
html.dark-mode .movekh-lang-dropdown, body.dark-mode .movekh-lang-dropdown {
  background: rgba(11, 15, 23, 0.95);
}
.movekh-lang-dropdown.open { display: flex; animation: orbDrop 0.2s cubic-bezier(0.16, 1, 0.3, 1); }

@keyframes orbDrop {
  from { opacity: 0; transform: translateY(-6px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.lang-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 8px 12px;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: var(--fg);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.12s ease;
  text-align: left;
  font-family: inherit;
}
.lang-option:hover { background: var(--nav-hover); color: var(--brand-blue); }
.lang-option.active { background: rgba(0, 153, 255, 0.1); color: var(--brand-blue); }
.lang-option .flag { font-size: 1.1rem; margin-right: 8px; }
.lang-option .name { flex: 1; }
.lang-option .check { font-size: 0.85rem; opacity: 0; }
.lang-option.active .check { opacity: 1; font-weight: 800; }

/* In-Article Multilingual Translation Tabs */
.movekh-article-lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  background: var(--nav-hover);
  border: 1px solid var(--border);
}
.article-lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}
.article-lang-btn:hover { color: var(--fg); }
.article-lang-btn.active {
  background: var(--card-bg);
  color: var(--brand-blue);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Theme Toggle */
.movekh-theme-toggle {
  width: 36px; height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  color: var(--fg);
  transition: all 0.15s ease;
}
.movekh-theme-toggle:hover { background: var(--nav-hover); }

/* Mobile Hamburger */
.movekh-hamburger {
  display: none;
  width: 36px; height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: transparent;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--muted);
}

.movekh-mobile-nav {
  display: none;
  border-top: 1px solid var(--border);
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(20px);
  padding: 0.75rem 1.5rem 1.25rem;
}
html.dark-mode .movekh-mobile-nav, body.dark-mode .movekh-mobile-nav { background: rgba(11,15,23,0.98); }
.movekh-mobile-nav.open { display: block; }
.movekh-mobile-nav a {
  display: flex;
  align-items: center;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--fg);
  margin-bottom: 4px;
}
.movekh-mobile-nav a:hover { background: var(--nav-hover); }

/* ============================================================
   HERO SECTION
   ============================================================ */
.movekh-hero {
  position: relative;
  padding: 4rem 1.5rem 4.5rem;
  overflow: hidden;
  text-align: center;
}
@media (min-width: 1024px) { .movekh-hero { padding: 6rem 1.5rem 5rem; } }

.movekh-hero-glow {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 850px;
  height: 450px;
  background: radial-gradient(ellipse, rgba(0,153,255,0.20) 0%, rgba(0,135,90,0.12) 50%, rgba(46,204,113,0.20) 100%);
  filter: blur(140px);
  pointer-events: none;
  border-radius: 9999px;
}

.movekh-hero-inner {
  max-width: 920px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.movekh-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  border-radius: 9999px;
  border: 1px solid rgba(0,153,255,0.3);
  background: rgba(0,153,255,0.06);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--brand-blue);
  margin-bottom: 1.5rem;
  backdrop-filter: blur(10px);
}

.movekh-hero h1 {
  font-size: clamp(2.1rem, 5.5vw, 4.1rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.14;
  color: var(--fg);
  margin-bottom: 1.25rem;
}

.movekh-hero p.subhead {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 680px;
  margin: 0 auto 2.25rem;
  line-height: 1.7;
}

/* Hero Search Bar */
.movekh-hero-search { max-width: 640px; margin: 0 auto 1.5rem; }
.movekh-hero-search form {
  display: flex;
  align-items: center;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px);
  padding: 8px;
  box-shadow: 0 8px 30px -4px rgba(0,0,0,0.06);
  transition: all 0.2s ease;
}
.movekh-hero-search form:focus-within {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 4px rgba(0,153,255,0.18);
}
html.dark-mode .movekh-hero-search form, body.dark-mode .movekh-hero-search form {
  border-color: rgba(255,255,255,0.12);
  background: rgba(17,23,38,0.92);
}
.movekh-hero-search .search-icon { margin-left: 12px; margin-right: 4px; color: var(--brand-blue); flex-shrink: 0; }
.movekh-hero-search input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 8px 12px;
  font-size: 0.95rem;
  color: var(--fg);
  outline: none;
  font-family: inherit;
}
.movekh-hero-search input::placeholder { color: #94a3b8; }
.movekh-hero-search button[type="submit"] {
  padding: 10px 22px;
  border-radius: 12px;
  background: var(--brand-blue);
  color: white;
  font-weight: 700;
  font-size: 0.85rem;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease;
  font-family: inherit;
}
.movekh-hero-search button[type="submit"]:hover { background: var(--brand-blue-dark); }

/* Trending Pills */
.movekh-trending {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 3.5rem;
}
.movekh-trending-label { font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; font-size: 10px; color: #94a3b8; }
.movekh-trending a {
  padding: 6px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.6);
  color: var(--muted);
  transition: all 0.15s ease;
  backdrop-filter: blur(8px);
}
.movekh-trending a:hover { border-color: rgba(0,153,255,0.5); color: var(--brand-blue); }
html.dark-mode .movekh-trending a, body.dark-mode .movekh-trending a { background: rgba(255,255,255,0.03); }

/* Stat Badges */
.movekh-stats-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; text-align: left; }
@media (min-width: 640px) { .movekh-stats-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .movekh-stats-grid { grid-template-columns: repeat(4, 1fr); } }

.movekh-stat-badge {
  padding: 1.25rem 1.35rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--card-glass);
  backdrop-filter: blur(14px);
  box-shadow: var(--glass-shadow);
}
.movekh-stat-badge .stat-label { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: #94a3b8; margin-bottom: 6px; }
.movekh-stat-badge .stat-value { font-size: 1.65rem; font-weight: 800; color: var(--brand-blue); line-height: 1; }
.movekh-stat-badge .stat-desc { font-size: 0.75rem; color: var(--muted); margin-top: 5px; }

/* Section Headers */
.movekh-section-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 1.5rem; gap: 1rem; }
.movekh-section-title { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.025em; color: var(--fg); }
.movekh-view-all { font-size: 0.85rem; font-weight: 600; color: var(--brand-blue); }

/* ============================================================
   GUIDE CARDS (Apple Grid)
   ============================================================ */
.movekh-guide-grid { display: grid; grid-template-columns: 1fr; gap: 1.35rem; }
@media (min-width: 768px) { .movekh-guide-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .movekh-guide-grid { grid-template-columns: repeat(3, 1fr); } }

.movekh-guide-card {
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--card-glass);
  backdrop-filter: blur(16px);
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  box-shadow: var(--glass-shadow);
}
.movekh-guide-card:hover {
  border-color: rgba(0,153,255,0.45);
  box-shadow: 0 16px 36px -10px rgba(0,153,255,0.2);
  transform: translateY(-4px);
}
.movekh-guide-card-thumb { width: 100%; height: 210px; object-fit: cover; flex-shrink: 0; }
.movekh-guide-card-thumb-placeholder {
  width: 100%; height: 210px;
  background: linear-gradient(135deg, rgba(0,153,255,0.08) 0%, rgba(0,135,90,0.08) 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem; flex-shrink: 0;
}
.movekh-guide-card-body { padding: 1.4rem; flex: 1; display: flex; flex-direction: column; }
.movekh-category-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(0,153,255,0.1);
  color: var(--brand-blue);
  margin-bottom: 0.75rem;
}
.movekh-guide-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--fg);
  line-height: 1.4;
  margin-bottom: 0.5rem;
}
.movekh-guide-card .excerpt {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.movekh-guide-card .guide-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 1.15rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  color: #94a3b8;
}

/* Category Grid */
.movekh-category-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (min-width: 768px) { .movekh-category-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .movekh-category-grid { grid-template-columns: repeat(5, 1fr); } }

.movekh-category-card {
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--card-glass);
  backdrop-filter: blur(14px);
  padding: 1.35rem 1rem;
  text-align: center;
  transition: all 0.2s ease;
  display: block;
  box-shadow: var(--glass-shadow);
}
.movekh-category-card:hover {
  border-color: rgba(0,153,255,0.45);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px -4px rgba(0,153,255,0.15);
}
.movekh-category-card .cat-icon { font-size: 2rem; margin-bottom: 0.5rem; display: block; }
.movekh-category-card .cat-name { font-size: 0.85rem; font-weight: 700; color: var(--fg); margin-bottom: 4px; }
.movekh-category-card .cat-count { font-size: 0.72rem; color: var(--muted); }

/* ============================================================
   ULTRA-PREMIUM SPONSORED BANNER CARD (AD EXPERIENCE)
   ============================================================ */
.movekh-premium-ad-card {
  position: relative;
  border-radius: 22px;
  border: 1px solid rgba(0, 153, 255, 0.35);
  background: linear-gradient(135deg, rgba(0,153,255,0.07) 0%, rgba(46,204,113,0.07) 100%);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 1.75rem;
  margin: 3rem 0;
  overflow: hidden;
  box-shadow: 0 14px 40px -10px rgba(0, 153, 255, 0.18);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.movekh-premium-ad-card:hover {
  border-color: rgba(0, 153, 255, 0.65);
  box-shadow: 0 20px 50px -10px rgba(0, 153, 255, 0.28);
  transform: translateY(-2px);
}

.ad-mesh-glow {
  position: absolute;
  top: -80px; right: -80px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(0,153,255,0.22) 0%, rgba(46,204,113,0.12) 50%, transparent 75%);
  filter: blur(50px);
  pointer-events: none;
}

.ad-wide .ad-card-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  position: relative;
  z-index: 1;
}
@media (max-width: 850px) {
  .ad-wide .ad-card-inner { flex-direction: column; align-items: stretch; }
}

.ad-sidebar .ad-card-inner {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Showcase Media Box */
.ad-visual-showcase {
  position: relative;
  width: 180px;
  height: 120px;
  border-radius: 16px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  border: 1px solid rgba(255,255,255,0.15);
}
@media (max-width: 850px) {
  .ad-visual-showcase { width: 100%; height: 180px; }
}
.ad-media-cover { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.movekh-premium-ad-card:hover .ad-media-cover { transform: scale(1.04); }
.ad-media-badge {
  position: absolute;
  bottom: 8px; left: 8px;
  background: rgba(11,15,23,0.85);
  backdrop-filter: blur(8px);
  color: #38BDF8;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid rgba(56,189,248,0.3);
  letter-spacing: 0.05em;
}

.ad-copy-column { flex: 1; }
.ad-meta-header { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.ad-verified-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #059669;
  background: rgba(46,204,113,0.14);
  padding: 3px 10px;
  border-radius: 9999px;
}
.ad-sponsor-label { font-size: 0.78rem; font-weight: 700; color: var(--muted); }
.ad-headline { font-size: 1.25rem; font-weight: 800; color: var(--fg); margin-bottom: 4px; line-height: 1.3; }
.ad-subtext { font-size: 0.92rem; color: var(--muted); line-height: 1.55; margin-bottom: 10px; }

.ad-perks-row { display: flex; flex-wrap: wrap; gap: 6px; }
.ad-perk-pill {
  font-size: 0.72rem;
  font-weight: 600;
  background: rgba(0,153,255,0.08);
  color: var(--brand-blue);
  padding: 3px 10px;
  border-radius: 6px;
}

.ad-glow-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand-blue) 0%, #0070BA 100%);
  color: white !important;
  font-weight: 700;
  font-size: 0.92rem;
  transition: all 0.2s ease;
  white-space: nowrap;
  box-shadow: 0 8px 25px -4px rgba(0,153,255,0.45);
}
.ad-glow-cta:hover { transform: scale(1.03); box-shadow: 0 12px 30px -4px rgba(0,153,255,0.6); }

/* ============================================================
   SINGLE ARTICLE / GUIDE PAGE (APPLE GLASSMORPHISM UI)
   ============================================================ */
.movekh-progress-bar {
  position: fixed;
  top: 64px; left: 0;
  height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-mint));
  z-index: 9998;
  transition: width 0.1s ease;
}

.movekh-article-wrapper {
  max-width: 1280px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
}
@media (min-width: 1024px) {
  .movekh-article-wrapper { grid-template-columns: minmax(0, 1fr) 310px; }
}

.movekh-breadcrumb {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.movekh-breadcrumb a { color: var(--brand-blue); }
.movekh-breadcrumb a:hover { text-decoration: underline; }
.movekh-breadcrumb span { color: #94a3b8; }

.movekh-article-title {
  font-size: clamp(2.1rem, 4.5vw, 3.1rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.035em;
  color: var(--fg);
  margin-bottom: 1.35rem;
}

/* Meta Bar */
.movekh-article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 2.25rem;
}

.movekh-meta-author { display: flex; align-items: center; gap: 12px; }
.movekh-author-avatar-sm { width: 44px; height: 44px; border-radius: 9999px; object-fit: cover; }
.movekh-meta-author .author-name { font-size: 0.88rem; color: var(--fg); display: block; }
.movekh-meta-author .pub-date { font-size: 0.75rem; color: var(--muted); }

.movekh-meta-badges { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.movekh-meta-pill {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  background: var(--nav-hover);
  padding: 5px 12px;
  border-radius: 8px;
}
.movekh-verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 8px;
  background: rgba(46,204,113,0.12);
  color: #059669;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Featured Image */
.movekh-featured-image-wrap { margin-bottom: 2.5rem; }
.movekh-featured-image {
  width: 100%;
  border-radius: 20px;
  object-fit: cover;
  max-height: 500px;
  box-shadow: 0 12px 35px -10px rgba(0,0,0,0.12);
}
.movekh-image-caption { font-size: 0.8rem; color: var(--muted); text-align: center; margin-top: 8px; font-style: italic; }

/* Key Takeaways Glass Card */
.movekh-key-takeaways {
  border-radius: 18px;
  border: 1px solid rgba(0, 153, 255, 0.25);
  background: linear-gradient(135deg, rgba(0,153,255,0.05) 0%, rgba(46,204,113,0.05) 100%);
  backdrop-filter: blur(16px);
  padding: 1.5rem 1.75rem;
  margin-bottom: 2.5rem;
  box-shadow: var(--glass-shadow);
}
.takeaways-header { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.takeaways-icon { font-size: 1.3rem; }
.takeaways-header h4 { font-size: 1.05rem; font-weight: 800; color: var(--fg); margin: 0; }
.movekh-key-takeaways ul { list-style: none; padding: 0; margin: 0; }
.movekh-key-takeaways li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 8px;
  font-size: 0.95rem;
  color: var(--prose-fg);
  line-height: 1.55;
}
.movekh-key-takeaways li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--brand-blue);
  font-weight: 800;
}

/* Next.js / Vercel Glass Callout Box */
.movekh-callout {
  border-radius: 16px;
  border: 1px solid var(--border);
  padding: 1.35rem 1.6rem;
  margin: 2.25rem 0;
  display: flex;
  gap: 1.15rem;
  backdrop-filter: blur(16px);
  box-shadow: var(--glass-shadow);
}
.movekh-callout.info {
  border-color: rgba(0, 153, 255, 0.35);
  background: rgba(0, 153, 255, 0.05);
}
.movekh-callout.warning {
  border-color: rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.06);
}
.movekh-callout.success {
  border-color: rgba(46, 204, 113, 0.35);
  background: rgba(46, 204, 113, 0.06);
}
.callout-icon { font-size: 1.3rem; flex-shrink: 0; margin-top: 2px; }
.callout-body strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
  color: var(--fg);
}
.callout-body p, .callout-body div {
  font-size: 0.95rem;
  color: var(--prose-fg);
  line-height: 1.65;
  margin: 0;
}

/* ============================================================
   VIBE-CODED UI COMPONENTS (Timeline, Pros/Cons, FAQ, Tables)
   ============================================================ */

/* Numbered Step Timeline */
.movekh-timeline {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin: 2.5rem 0;
}
.timeline-step {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.35rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--card-glass);
  backdrop-filter: blur(14px);
  box-shadow: var(--glass-shadow);
}
.step-num {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand-blue), #0070BA);
  color: white;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.95rem;
}
.step-content h4 { font-size: 1.05rem; font-weight: 800; color: var(--fg); margin-bottom: 4px; }
.step-content p { font-size: 0.92rem; color: var(--prose-fg); margin: 0; line-height: 1.55; }

/* Pros & Cons Dual Glass Card */
.movekh-pros-cons {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin: 2.5rem 0;
}
@media (min-width: 640px) { .movekh-pros-cons { grid-template-columns: 1fr 1fr; align-items: stretch; } }
.pro-card, .con-card {
  padding: 1.5rem;
  border-radius: 18px;
  backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  box-shadow: var(--glass-shadow);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.pro-card { background: rgba(46,204,113,0.06); border-color: rgba(46,204,113,0.3); }
.con-card { background: rgba(239,68,68,0.06); border-color: rgba(239,68,68,0.3); }
.pro-card h4 { color: #059669; font-weight: 800; margin-bottom: 10px; font-size: 1rem; }
.con-card h4 { color: #dc2626; font-weight: 800; margin-bottom: 10px; font-size: 1rem; }
.pro-card ul, .con-card ul { list-style: none; padding: 0; margin: 0; }
.pro-card li, .con-card li { font-size: 0.9rem; color: var(--prose-fg); margin-bottom: 6px; line-height: 1.5; }

/* Expandable FAQ */
.movekh-faq { margin: 2.5rem 0; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card-glass);
  margin-bottom: 10px;
  overflow: hidden;
  backdrop-filter: blur(12px);
}
.faq-item summary {
  padding: 1.15rem 1.35rem;
  font-weight: 700;
  font-size: 1rem;
  color: var(--fg);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.25rem; color: var(--brand-blue); }
.faq-item[open] summary::after { content: "−"; }
.faq-content { padding: 0 1.35rem 1.25rem; font-size: 0.95rem; color: var(--prose-fg); line-height: 1.6; }

/* Prose Typography */
.movekh-prose {
  font-size: 1.12rem;
  line-height: 1.9;
  color: var(--prose-fg);
}
.movekh-prose p { margin-top: 1.45rem; margin-bottom: 1.45rem; }
.movekh-prose h2 {
  font-size: 1.75rem;
  font-weight: 800;
  margin: 3.25rem 0 1.25rem;
  color: var(--prose-heading);
  letter-spacing: -0.03em;
  scroll-margin-top: 90px;
}
.movekh-prose h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 2.35rem 0 0.95rem;
  color: var(--prose-heading);
  scroll-margin-top: 90px;
}
.movekh-prose a { color: var(--brand-blue); text-decoration: underline; text-underline-offset: 4px; font-weight: 500; }
.movekh-prose a:hover { color: var(--brand-blue-dark); }
.movekh-prose strong { font-weight: 700; color: var(--prose-heading); }
.movekh-prose ul, .movekh-prose ol { padding-left: 1.75rem; margin: 1.35rem 0; }
.movekh-prose li { margin: 0.65rem 0; }
.movekh-prose blockquote {
  border-left: 4px solid var(--brand-blue);
  padding: 1rem 0 1rem 1.75rem;
  margin: 2.25rem 0;
  color: var(--fg);
  font-style: italic;
  background: rgba(0,153,255,0.03);
  border-radius: 0 14px 14px 0;
}
.movekh-prose img { border-radius: 16px; margin: 2.25rem 0; box-shadow: var(--glass-shadow); }
/* ── Tables: Responsive, Apple-Quality ───────────────────────────────────
   All tables in the article body are wrapped in .movekh-table-scroll or .table-wrap
   so wide tables smoothly scroll horizontally without clipping or blowing out grid. */
.movekh-table-scroll,
.movekh-prose .table-wrap {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;
  margin: 2.25rem 0 !important;
  border-radius: 14px !important;
  border: 1px solid var(--border) !important;
  background: var(--bg);
  box-shadow: 0 4px 20px -8px rgba(0,0,0,0.05) !important;
}

.movekh-prose .movekh-table-scroll table,
.movekh-prose .table-wrap table,
.movekh-prose table {
  width: 100% !important;
  min-width: 550px !important; /* ensures columns never get squished */
  border-collapse: collapse !important;
  font-size: 0.92rem !important;
  margin: 0 !important;
  border: none !important;
}

.movekh-prose th {
  background: rgba(0, 153, 255, 0.08) !important;
  color: #0f172a !important; /* Crisp high contrast light text */
  font-weight: 700 !important;
  text-align: left !important;
  padding: 14px 18px !important;
  border-bottom: 2px solid rgba(0, 153, 255, 0.2) !important;
  white-space: nowrap !important;
  letter-spacing: 0.01em !important;
  font-size: 0.88rem !important;
}

html.dark-mode .movekh-prose th,
body.dark-mode .movekh-prose th {
  background: rgba(0, 153, 255, 0.14) !important;
  color: #f8fafc !important; /* High contrast dark mode text */
  border-bottom-color: rgba(0, 153, 255, 0.3) !important;
}

.movekh-prose td {
  padding: 13px 18px !important;
  border-bottom: 1px solid var(--border) !important;
  vertical-align: top !important;
  line-height: 1.6 !important;
  color: var(--fg) !important;
}

.movekh-prose tr:last-child td { border-bottom: none !important; }

.movekh-prose tr:nth-child(even) td { background: rgba(0,0,0,0.015) !important; }
html.dark-mode .movekh-prose tr:nth-child(even) td,
body.dark-mode .movekh-prose tr:nth-child(even) td { background: rgba(255,255,255,0.02) !important; }

/* ============================================================
   CAMBODIA PUBLIC HOLIDAYS PAGE STYLING
   ============================================================ */
.movekh-next-holiday-card {
  margin: 2.5rem auto 0;
  max-width: 650px;
  border-radius: 20px;
  border: 1px solid rgba(0,153,255,0.35);
  background: linear-gradient(135deg, rgba(0,153,255,0.08) 0%, rgba(46,204,113,0.08) 100%);
  backdrop-filter: blur(20px);
  padding: 1.5rem 1.75rem;
  box-shadow: 0 15px 35px -10px rgba(0,153,255,0.2);
}
.next-badge { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.08em; color: var(--brand-blue); text-transform: uppercase; margin-bottom: 8px; text-align: left; }
.next-content { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.next-icon { font-size: 2.5rem; flex-shrink: 0; }
.next-info { text-align: left; flex: 1; }
.next-info h3 { font-size: 1.25rem; font-weight: 800; color: var(--fg); margin: 0 0 4px; }
.next-info p { font-size: 0.88rem; color: var(--muted); margin: 0; }
.next-countdown { text-align: center; padding: 8px 16px; border-radius: 12px; background: var(--brand-blue); color: white; flex-shrink: 0; }
.next-countdown .days-num { font-size: 1.5rem; font-weight: 900; display: block; line-height: 1; }
.next-countdown .days-label { font-size: 0.65rem; text-transform: uppercase; font-weight: 700; }

.movekh-holiday-intel-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 768px) { .movekh-holiday-intel-grid { grid-template-columns: repeat(3, 1fr); } }
.intel-card {
  padding: 1.5rem;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--card-glass);
  backdrop-filter: blur(14px);
  box-shadow: var(--glass-shadow);
}
.intel-icon { font-size: 2rem; margin-bottom: 8px; }
.intel-card h4 { font-size: 1.05rem; font-weight: 800; color: var(--fg); margin-bottom: 6px; }
.intel-card p { font-size: 0.88rem; color: var(--muted); line-height: 1.55; }

.movekh-holidays-table-wrap {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--card-glass);
  backdrop-filter: blur(16px);
  box-shadow: var(--glass-shadow);
}
.movekh-holidays-table { width: 100%; border-collapse: collapse; text-align: left; }
.movekh-holidays-table th { background: rgba(0,153,255,0.08); padding: 14px 18px; font-size: 0.85rem; font-weight: 800; color: var(--fg); border-bottom: 1px solid var(--border); }
.movekh-holidays-table td { padding: 14px 18px; border-bottom: 1px solid var(--border); font-size: 0.92rem; vertical-align: middle; }
.holiday-name-cell { display: flex; align-items: center; gap: 10px; }
.holiday-emoji { font-size: 1.35rem; }
.major-pill { background: rgba(239,68,68,0.12); color: #dc2626; font-size: 0.65rem; font-weight: 800; padding: 2px 8px; border-radius: 6px; text-transform: uppercase; margin-left: 6px; }
.type-pill { font-size: 0.7rem; font-weight: 700; padding: 3px 10px; border-radius: 6px; text-transform: uppercase; }
.type-pill.national { background: rgba(0,153,255,0.1); color: var(--brand-blue); }
.type-pill.traditional { background: rgba(245,158,11,0.1); color: #d97706; }
.type-pill.royal { background: rgba(147,51,234,0.1); color: #9333ea; }
.type-pill.buddhist { background: rgba(46,204,113,0.1); color: #059669; }
.holiday-past { opacity: 0.55; }

/* ============================================================
   SIDEBAR & TOC (Apple Glass Widget)
   ============================================================ */
.movekh-sidebar { display: flex; flex-direction: column; gap: 1.75rem; }

.movekh-toc {
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--card-glass);
  backdrop-filter: blur(20px);
  padding: 1.5rem;
  position: sticky;
  top: 80px;
  box-shadow: var(--glass-shadow);
}
.movekh-toc-title { font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; color: #94a3b8; margin-bottom: 0.95rem; }
.movekh-toc ul { list-style: none; }
.movekh-toc li a {
  display: block;
  padding: 7px 12px;
  border-radius: 10px;
  font-size: 0.84rem;
  color: var(--muted);
  transition: all 0.12s ease;
  line-height: 1.4;
}
.movekh-toc li a:hover { background: var(--nav-hover); color: var(--brand-blue); }
.movekh-toc li.toc-h3 a { padding-left: 1.5rem; font-size: 0.8rem; }
.movekh-toc li.toc-active a { background: rgba(0,153,255,0.08); color: var(--brand-blue); font-weight: 700; }

/* Sidebar Community Card */
.movekh-sidebar-community {
  border-radius: 18px;
  border: 1px solid rgba(0,153,255,0.25);
  background: linear-gradient(135deg, rgba(0,153,255,0.06) 0%, rgba(46,204,113,0.06) 100%);
  backdrop-filter: blur(16px);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--glass-shadow);
}
.movekh-sidebar-community .community-icon { font-size: 2.2rem; margin-bottom: 0.5rem; }
.movekh-sidebar-community h4 { font-size: 1.05rem; font-weight: 800; color: var(--fg); margin-bottom: 6px; }
.movekh-sidebar-community p { font-size: 0.84rem; color: var(--muted); line-height: 1.5; margin-bottom: 1.25rem; }

/* ============================================================
   SEARCH MODAL
   ============================================================ */
.movekh-search-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(10px);
  padding: 5vh 1rem;
  align-items: flex-start;
  justify-content: center;
}
.movekh-search-overlay.open { display: flex; }
.movekh-search-modal {
  width: 100%;
  max-width: 640px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--bg);
  overflow: hidden;
  box-shadow: 0 25px 60px -15px rgba(0,0,0,0.45);
}
.movekh-search-modal-bar { display: flex; align-items: center; padding: 0 1.25rem; border-bottom: 1px solid var(--border); gap: 12px; }
.movekh-search-modal-bar input {
  flex: 1;
  padding: 1.15rem 0;
  font-size: 1.05rem;
  border: none;
  background: transparent;
  color: var(--fg);
  outline: none;
  font-family: inherit;
}
.movekh-search-modal-bar input::placeholder { color: #94a3b8; }
.movekh-search-close { background: none; border: none; cursor: pointer; color: #94a3b8; font-size: 18px; padding: 4px; }
.movekh-search-results-list { max-height: 420px; overflow-y: auto; padding: 0.5rem; }
.movekh-search-result-item {
  display: block;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  transition: background 0.12s ease;
  margin-bottom: 3px;
}
.movekh-search-result-item:hover { background: var(--nav-hover); }
.movekh-search-result-item .result-title { font-size: 0.95rem; font-weight: 600; color: var(--fg); margin-bottom: 3px; }
.movekh-search-result-item .result-cat { font-size: 0.72rem; color: var(--brand-blue); font-weight: 600; }
.movekh-search-empty { padding: 2.25rem; text-align: center; font-size: 0.9rem; color: var(--muted); }

/* ============================================================
   FOOTER
   ============================================================ */
#movekh-footer {
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(-50vw + 50%) !important;
  margin-right: calc(-50vw + 50%) !important;
  box-sizing: border-box !important;
  position: relative !important;
  left: 0 !important;
  clear: both !important;
  display: block !important;
  border-top: 1px solid var(--border);
  background: rgba(248,250,252,0.7);
  margin-top: 5rem;
}
html.dark-mode #movekh-footer, body.dark-mode #movekh-footer { background: #0B0F17; }

.movekh-footer-inner {
  max-width: 1280px !important;
  margin: 0 auto !important;
  padding: 3.5rem 1.5rem !important;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  box-sizing: border-box !important;
}
@media (min-width: 768px) { .movekh-footer-inner { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .movekh-footer-inner { grid-template-columns: 2fr 1fr 1fr 1fr; } }

.movekh-footer-brand p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 340px;
  margin: 0.85rem 0 1.35rem;
}
.movekh-footer-col h4 {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg);
  margin-bottom: 0.85rem;
}
.movekh-footer-col ul { list-style: none; }
.movekh-footer-col li { margin-bottom: 9px; }
.movekh-footer-col a {
  font-size: 0.88rem;
  color: var(--muted);
  transition: color 0.15s ease;
}
.movekh-footer-col a:hover { color: var(--brand-blue); }

.movekh-footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  color: #94a3b8;
}
.movekh-footer-bottom-inner {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
@media (min-width: 640px) {
  .movekh-footer-bottom-inner { flex-direction: row; justify-content: space-between; align-items: center; }
}
.movekh-footer-disclaimer {
  font-size: 0.75rem;
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 0.85rem;
}

/* ============================================================
   RESPONSIVE OVERRIDES
   ============================================================ */
@media (max-width: 767px) {
  .movekh-nav { display: none !important; }
  .movekh-hamburger { display: flex !important; }
  .movekh-search-btn span, .movekh-search-btn kbd { display: none; }
  .movekh-article-meta { flex-direction: column; align-items: flex-start; }
}

/* Force dark mode text colors against AI inline styles */
html.dark-mode .movekh-prose p, 
html.dark-mode .movekh-prose li,
html.dark-mode .movekh-prose span,
html.dark-mode .movekh-prose div {
    color: var(--prose-fg) !important;
}
html.dark-mode .movekh-prose h1, 
html.dark-mode .movekh-prose h2, 
html.dark-mode .movekh-prose h3, 
html.dark-mode .movekh-prose h4,
html.dark-mode .movekh-prose strong {
    color: var(--prose-heading) !important;
}

/* ================================================================
   APPLE-GRADE: TAGS · SHARE BAR · BOTTOM SECTION
   ================================================================ */

/* ── Tags Section ───────────────────────────────────────────────── */
.movekh-tags-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 2.75rem 0 0;
  padding: 0;
  list-style: none;
}

.movekh-tags-list .tag-title {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  flex-shrink: 0;
  margin-right: 6px;
  align-self: center;
}

.movekh-tag-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  border-radius: 99px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  line-height: 1.2;
  letter-spacing: 0.01em;
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease, transform 0.18s ease;
  white-space: nowrap;
}

.movekh-tag-pill:hover {
  border-color: var(--brand-blue);
  color: var(--brand-blue);
  background: rgba(0, 153, 255, 0.07);
  text-decoration: none;
  transform: translateY(-1px);
}

html.dark-mode .movekh-tag-pill {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.09);
  color: rgba(255,255,255,0.45);
}
html.dark-mode .movekh-tag-pill:hover {
  border-color: var(--brand-blue);
  color: var(--brand-blue);
  background: rgba(0,153,255,0.09);
}

/* ── Share Bar ──────────────────────────────────────────────────── */
.movekh-share-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 1.5rem 0 2.5rem;
  padding: 1.1rem 1.4rem;
  background: rgba(0,0,0,0.025);
  border: 1px solid var(--border);
  border-radius: 16px;
  clear: both;
}

html.dark-mode .movekh-share-bar {
  background: rgba(255,255,255,0.025);
  border-color: rgba(255,255,255,0.07);
}

.movekh-share-bar .share-label {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  flex-shrink: 0;
  margin-right: 4px;
  align-self: center;
}

.movekh-share-bar .share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 15px;
  border-radius: 99px;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--fg);
  cursor: pointer;
  line-height: 1.2;
  transition: all 0.18s ease;
  white-space: nowrap;
  letter-spacing: 0.01em;
  -webkit-appearance: none;
}

.share-btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.share-btn.telegram:hover  { background: rgba(41,182,246,0.09); border-color: #29b6f6; color: #29b6f6; }
.share-btn.twitter:hover   { background: rgba(0,0,0,0.05); border-color: #333; color: #111; }
.share-btn.whatsapp:hover  { background: rgba(37,211,102,0.09); border-color: #25d366; color: #1a9e4d; }
.share-btn.copy:hover      { background: rgba(0,153,255,0.07); border-color: var(--brand-blue); color: var(--brand-blue); }

html.dark-mode .share-btn {
  border-color: rgba(255,255,255,0.09);
  color: rgba(255,255,255,0.65);
  background: rgba(255,255,255,0.03);
}
html.dark-mode .share-btn.twitter:hover  { background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.3); color: #fff; }
html.dark-mode .share-btn.whatsapp:hover { color: #4ade80; border-color: #4ade80; }

/* ── Prev / Next Navigation ─────────────────────────────────────── */
.movekh-post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 2.5rem 0 3.5rem;
}

.movekh-post-nav .nav-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  display: flex;
  min-height: 76px;
}

.movekh-post-nav .nav-card a {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1rem 1.25rem;
  width: 100%;
  text-decoration: none;
  gap: 4px;
  transition: background 0.18s ease;
}

.movekh-post-nav .nav-card:hover {
  border-color: var(--brand-blue);
  box-shadow: 0 6px 24px -6px rgba(0,153,255,0.14);
  transform: translateY(-2px);
}

.movekh-post-nav .nav-card a:hover {
  background: rgba(0,153,255,0.03);
  text-decoration: none;
}

.movekh-post-nav .prev-card a { align-items: flex-start; }
.movekh-post-nav .next-card a { align-items: flex-end; text-align: right; }

.movekh-post-nav .nav-dir {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-blue);
  line-height: 1;
}

.movekh-post-nav .nav-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--fg);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

html.dark-mode .movekh-post-nav .nav-card {
  background: rgba(255,255,255,0.02);
  border-color: rgba(255,255,255,0.07);
}

html.dark-mode .movekh-post-nav .nav-card:hover {
  background: rgba(0,153,255,0.04);
}

@media (max-width: 600px) {
  .movekh-post-nav { grid-template-columns: 1fr; }
  .movekh-post-nav .next-card a { align-items: flex-start; text-align: left; }
}

/* Ensure nothing bleeds out of the article wrapper */
.movekh-article-content { overflow: visible !important; }
.movekh-prose { overflow: visible !important; }
