/* =====================================================
   Birlik Yoli (راه وحدت) — Modern Glass v5
   Compact hero with flag background + slogan ticker
   Theme-driven via CSS variables
   ===================================================== */

:root {
  /* Brand palette — overridden inline from admin settings */
  --primary:        #0b4f78;
  --primary-dark:   #042138;
  --primary-light:  #1e9bd7;
  --accent:         #f0b90b;
  --accent-light:   #fed766;
  --bg:             #eef4fb;
  --bg-2:           #ffffff;
  --text:           #0f1f33;
  --text-soft:      #4b5e75;
  --muted:          #64748b;

  /* Flag-blue hero palette */
  --hero-from:      #021a30;
  --hero-via:       #073661;
  --hero-to:        #1e9bd7;

  /* Glass system */
  --glass-bg:       rgba(255,255,255,0.55);
  --glass-bg-dark:  rgba(16,30,52,0.45);
  --glass-border:   rgba(255,255,255,0.35);
  --glass-blur:     18px;
  --shadow-sm:      0 4px 16px rgba(11,79,120,.08);
  --shadow-md:      0 10px 30px rgba(11,79,120,.14);
  --shadow-lg:      0 18px 50px rgba(11,79,120,.22);

  --radius-sm: 10px;
  --radius:    16px;
  --radius-lg: 22px;

  --ease: cubic-bezier(.4,.0,.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  /* `height:100%` was forcing html to exactly 100vh, which combined with the
     flex body underneath was creating an extra "blue strip" below the footer
     on short pages. Use min-height instead so html can grow with body. */
  min-height: 100%;
  scroll-behavior: smooth;
  background: #02101f;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Vazirmatn', 'Plus Jakarta Sans', 'Tahoma', 'Segoe UI', sans-serif;
  color: var(--text);
  background: #02101f;
  line-height: 1.75;
  /* Sticky-footer layout: body is at least full viewport tall, the page-wrap
     grows to fill the gap, footer sits flush at the bottom. */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  width: 100%;
  margin: 0;
  padding: 0;
  position: relative;
  overflow-x: hidden;
}
.page-wrap {
  background: var(--bg);
  width: 100%;
  max-width: 100%;
  /* Grow to fill all available space above the footer. Min-height is now
     handled by flex:1 so we never get a "short page" gap. */
}

/* Defensive: no element should be wider than the viewport */
img, video, iframe, table { max-width: 100%; }
.page-wrap {
  min-width: 0;
  width: 100%;
  /* Hold horizontal clipping here so position:fixed elements stay free of it */
  overflow-x: hidden;
}

/* The main wrapper grows to push the footer down — kills the dead white space below the footer */
.page-wrap {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* Animated decorative background blob — ONLY in the top-left of the page.
   The bottom-right blob was creating what looked like a "blue empty space"
   under the footer, so it has been removed. */
body::before {
  content: "";
  position: fixed;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  filter: blur(110px);
  opacity: .22;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(circle, var(--primary-light), transparent 65%);
  top: -200px;
  left: -200px;
  animation: floatBlob 18s ease-in-out infinite;
}
body::after { content: none; }    /* explicitly removed */
@keyframes floatBlob {
  0%, 100% { transform: translate(0,0) scale(1); }
  50%      { transform: translate(60px,-40px) scale(1.1); }
}

a { color: var(--primary-light); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }
button, input, textarea, select { font-family: inherit; }

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 22px;
  position: relative;
  z-index: 1;
}

/* ===== TOP BAR ===== */
.topbar {
  background: linear-gradient(90deg, var(--primary-dark), var(--primary));
  color: #fff;
  padding: 8px 0;
  font-size: 13px;
  width: 100%;
  position: relative;
  z-index: 10;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;       /* single row on every viewport */
  overflow-x: auto;        /* if too tight, allow horizontal scroll within the topbar */
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.topbar .container::-webkit-scrollbar { display: none; }
.topbar-left,
.topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;        /* no wrapping */
  flex-shrink: 0;
}
@media (max-width: 700px) {
  /* Compact pills on tight screens */
  .topbar-pill { padding: 4px 8px; font-size: 11.5px; }
  .topbar-pill span { display: none; }     /* show only icon on phones */
  .lang-switcher a { padding: 3px 9px; font-size: 11.5px; }
}
.topbar a { color: #fff; }
.topbar a:hover { color: var(--accent); }
.topbar-left { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.topbar-right { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }

/* Pill-style contact buttons in the topbar */
.topbar-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 24px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  font-size: 12.5px;
  color: #fff;
  transition: all .2s var(--ease);
  white-space: nowrap;
}
.topbar-pill i { font-size: 12.5px; color: var(--accent); }
.topbar-pill:hover {
  background: var(--accent);
  color: var(--primary-dark);
  border-color: var(--accent);
  transform: translateY(-1px);
}
.topbar-pill:hover i { color: var(--primary-dark); }
.topbar-pill-wa { background: rgba(37,211,102,.18); border-color: rgba(37,211,102,.35); }
.topbar-pill-wa i { color: #25D366; }
.topbar-pill-wa:hover { background: #25D366; color: #fff; border-color: #25D366; }
.topbar-pill-wa:hover i { color: #fff; }

.topbar-social { display: flex; gap: 8px; }
.topbar-social a {
  width: 28px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  font-size: 13px;
  transition: all .25s var(--ease);
}
.topbar-social a:hover {
  background: var(--accent);
  color: var(--primary-dark);
  transform: translateY(-2px);
}

/* Member login / Join buttons in topbar — high contrast for readability */
.topbar-member { display: flex; gap: 6px; align-items: center; }
.member-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: #062742 !important;     /* deep navy for max contrast */
  font-size: 12.5px;
  font-weight: 800;
  border: 1px solid var(--accent);
  transition: all .2s var(--ease);
  white-space: nowrap;
  text-shadow: none;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
}
.member-btn i { color: #062742; }
.member-btn:hover {
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  color: #062742 !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.16);
}
.member-btn-outline {
  background: rgba(255,255,255,.08);
  color: #ffffff !important;
  border-color: rgba(255,255,255,.55);
  font-weight: 700;
  box-shadow: none;
}
.member-btn-outline i { color: #fff; }
.member-btn-outline:hover {
  background: #ffffff;
  color: #062742 !important;
  border-color: #ffffff;
  box-shadow: 0 4px 14px rgba(0,0,0,.2);
}
.member-btn-outline:hover i { color: #062742; }
.lang-switcher { display: flex; gap: 5px; }
.lang-switcher a {
  padding: 4px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.22);
  font-size: 12px;
  font-weight: 600;
  transition: all .2s var(--ease);
}
.lang-switcher a.active, .lang-switcher a:hover {
  background: var(--accent);
  color: var(--primary-dark);
  border-color: var(--accent);
}

/* ===== NEWS TICKER (top, news headlines) ===== */
.news-ticker {
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  color: #fff;
  padding: 9px 0;
  overflow: hidden;
  position: relative;
  z-index: 5;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
}
.news-ticker .ticker-label {
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  height: 100%;
  background: var(--accent);
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  padding: 0 18px;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .5px;
  text-transform: uppercase;
  z-index: 2;
  gap: 8px;
}
.news-ticker .ticker-label::after {
  content: "";
  position: absolute;
  inset-inline-end: -14px;
  top: 0; bottom: 0;
  width: 14px;
  background: var(--accent);
  clip-path: polygon(0 0, 0 100%, 100% 50%);
}
body[dir="rtl"] .news-ticker .ticker-label::after {
  clip-path: polygon(100% 0, 100% 100%, 0 50%);
}
.news-ticker .ticker-track {
  display: flex;
  gap: 60px;
  white-space: nowrap;
  padding-inline-start: 160px;
  animation: tickerScroll var(--ticker-speed, 45s) linear infinite;
  font-weight: 500;
  font-size: 14.5px;
}
/* On mobile the ticker is harder to read — speed it up so each item passes faster */
@media (max-width: 720px) {
  .news-ticker .ticker-track {
    animation-duration: calc(var(--ticker-speed, 45s) * 0.45);
  }
}
body[dir="rtl"] .news-ticker .ticker-track { animation-name: tickerScrollRtl; }
.news-ticker .ticker-track:hover { animation-play-state: paused; }
.news-ticker .ticker-track span {
  display: inline-flex; align-items: center; gap: 8px;
}
.news-ticker .ticker-track span::before {
  content: "●"; color: var(--accent); font-size: 8px;
}
@keyframes tickerScroll    { from { transform: translateX(0); }    to { transform: translateX(-50%); } }
@keyframes tickerScrollRtl { from { transform: translateX(0); }    to { transform: translateX(50%); } }

/* ===== HEADER ===== */
.site-header {
  background: rgba(255,255,255,0.62);
  backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  border-bottom: 1px solid rgba(255,255,255,0.4);
  box-shadow: 0 4px 24px rgba(11,79,120,.06);
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  transition: all .3s var(--ease);
}
.site-header.scrolled {
  background: rgba(255,255,255,0.88);
  box-shadow: 0 8px 32px rgba(11,79,120,.10);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 22px;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand img {
  height: 58px; width: 58px;
  /* No white box behind the logo — keep transparent with a brightness boost */
  border-radius: 0;
  background: transparent;
  padding: 0;
  object-fit: contain;
  filter:
    brightness(1.08) contrast(1.06)
    drop-shadow(0 0 12px rgba(30,155,215,.4))
    drop-shadow(0 4px 10px rgba(0,0,0,.25));
  transition: transform .35s var(--ease), filter .35s var(--ease);
}
.brand:hover img {
  transform: rotate(-4deg) scale(1.08);
  filter:
    brightness(1.12) contrast(1.08)
    drop-shadow(0 0 18px rgba(240,185,11,.6))
    drop-shadow(0 6px 14px rgba(0,0,0,.3));
}
.brand-name { font-size: 17.5px; font-weight: 800; color: var(--primary-dark); line-height: 1.2; }
.brand-tag  { font-size: 12px; color: var(--muted); margin-top: 2px; }

nav.main-nav { display: flex; }
nav.main-nav ul { display: flex; list-style: none; gap: 2px; flex-wrap: wrap; }
nav.main-nav a {
  display: block;
  padding: 10px 16px;
  color: var(--text);
  font-weight: 600;
  font-size: 14.5px;
  border-radius: 10px;
  transition: all .25s var(--ease);
  position: relative;
}
nav.main-nav a::after {
  content: "";
  position: absolute;
  inset-inline-start: 50%;
  bottom: 4px;
  transform: translateX(-50%);
  width: 0; height: 2px;
  background: var(--accent);
  transition: width .25s var(--ease);
  border-radius: 2px;
}
nav.main-nav a:hover {
  color: var(--primary-dark);
  background: rgba(30,155,215,.10);
}
nav.main-nav a:hover::after,
nav.main-nav a.active::after { width: 60%; }

/* ===== DROPDOWN SUBMENU (desktop) ===== */
nav.main-nav li.has-children { position: relative; }
nav.main-nav li.has-children > a,
nav.main-nav li.has-children > .menu-parent { display: inline-flex; align-items: center; gap: 6px; }

/* Synthetic parent (URL starts with '#') — looks like a nav link but is not clickable */
nav.main-nav .menu-parent {
  padding: 10px 16px;
  color: var(--text);
  font-weight: 600;
  font-size: 14.5px;
  border-radius: 10px;
  transition: all .25s var(--ease);
  cursor: pointer;
  user-select: none;
  position: relative;
}
nav.main-nav .menu-parent:hover,
nav.main-nav li.has-children:hover > .menu-parent,
nav.main-nav li.has-children:focus-within > .menu-parent {
  color: var(--primary-dark);
  background: rgba(30,155,215,.10);
}
nav.main-nav .menu-parent::after { display: none; }
nav.main-nav .menu-caret {
  font-size: 10px;
  margin-inline-start: 2px;
  transition: transform .2s var(--ease);
  opacity: .75;
}
nav.main-nav li.has-children:hover .menu-caret,
nav.main-nav li.has-children:focus-within .menu-caret { transform: rotate(180deg); opacity: 1; }

nav.main-nav ul.dropdown {
  position: absolute;
  top: calc(100% + 6px);
  inset-inline-start: 0;
  inset-inline-end: auto;
  min-width: 210px;
  background: #fff;
  list-style: none;
  margin: 0;
  padding: 8px;
  border-radius: 12px;
  box-shadow: 0 14px 32px rgba(11,79,120,.16), 0 0 0 1px rgba(11,79,120,.04);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s var(--ease);
  z-index: 120;
  display: block;          /* override flex from parent ul */
  flex-direction: initial;
  gap: 0;
}
body[dir="rtl"] nav.main-nav ul.dropdown { inset-inline-start: auto; inset-inline-end: 0; }

nav.main-nav li.has-children:hover > .dropdown,
nav.main-nav li.has-children:focus-within > .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
nav.main-nav .dropdown li { display: block; width: 100%; }
nav.main-nav .dropdown a {
  display: block;
  padding: 9px 14px;
  border-radius: 8px;
  color: var(--text);
  font-size: 14px;
  white-space: nowrap;
  font-weight: 500;
}
nav.main-nav .dropdown a::after { display: none; }   /* no underline animation in submenu */
nav.main-nav .dropdown a:hover {
  background: rgba(30,155,215,.10);
  color: var(--primary-dark);
}

.mobile-toggle {
  display: none;
  background: rgba(30,155,215,.08);
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--primary-dark);
  padding: 6px 10px;
  border-radius: 10px;
}

/* ===== HERO — SPLIT LAYOUT (text + slideshow side by side) ===== */
.hero-section {
  width: 100%;
  padding: 50px 0 40px;
  background:
    radial-gradient(circle at 30% 0%, rgba(30,155,215,.08), transparent 60%),
    radial-gradient(circle at 90% 80%, rgba(240,185,11,.05), transparent 50%),
    linear-gradient(180deg, var(--bg) 0%, rgba(238,244,251,.5) 100%);
  position: relative;
  overflow: hidden;
}
.hero-split {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 48px;
  align-items: center;
  min-height: 480px;
}
@media (max-width: 880px) {
  .hero-split { grid-template-columns: 1fr; gap: 32px; }
}

/* === TEXT COLUMN === */
.hero-text {
  text-align: start;
  position: relative;
}
.hero-text .hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(30,155,215,.10);
  color: var(--primary-dark);
  border: 1px solid rgba(30,155,215,.20);
  padding: 6px 14px;
  border-radius: 24px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .4px;
  margin-bottom: 18px;
  max-width: 100%;
  white-space: normal;
  line-height: 1.45;
}
.hero-text h1 {
  font-size: clamp(28px, 4.6vw, 54px);
  font-weight: 800;
  margin-bottom: 18px;
  line-height: 1.15;
  color: var(--primary-dark);
  letter-spacing: -.5px;
  text-wrap: balance;
  overflow-wrap: break-word;
}
.hero-text .subtitle {
  font-size: clamp(15px, 1.7vw, 19px);
  margin-bottom: 30px;
  color: var(--text-soft);
  font-weight: 500;
  line-height: 1.7;
  max-width: 480px;
}
body[dir="rtl"] .hero-text .subtitle { max-width: 100%; }
.hero-text .hero-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

/* Dark outline button — works on the light hero text column */
.btn-outline-dark {
  background: transparent;
  color: var(--primary-dark);
  border: 2px solid var(--primary-dark);
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 14.5px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: all .25s var(--ease);
}
.btn-outline-dark:hover {
  background: var(--primary-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,.18);
}

/* === VISUAL COLUMN: slideshow card === */
.hero-visual {
  position: relative;
  min-height: 380px;
}
.hero-card {
  /* NO frame at all — the flag floats freely with a soft halo behind it. */
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;       /* let the halo bleed past the card edges */
  padding: 0;
}
/* Soft blue ambient halo BEHIND the flag — looks like mist around the image */
.hero-card::before {
  content: "";
  position: absolute;
  inset: -20px;
  background:
    radial-gradient(ellipse at center,
      rgba(30, 155, 215, .22) 0%,
      rgba(30, 155, 215, .10) 35%,
      transparent 70%);
  filter: blur(28px);
  z-index: 0;
  pointer-events: none;
  animation: heroHaloPulse 8s ease-in-out infinite;
}
@keyframes heroHaloPulse {
  0%, 100% { opacity: .85; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.04); }
}

/* Each slide layered — no card, just the image with its own halo */
.hero-card .hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s var(--ease);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  background: transparent;
  overflow: visible;
}
.hero-card .hero-slide.active { opacity: 1; }
.hero-card .hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 0;
  /* MISTY HALO directly on the image — multiple drop-shadows give a soft
     glowing surround without any visible rectangular frame. */
  filter:
    drop-shadow(0 0 24px rgba(30, 155, 215, .38))
    drop-shadow(0 0 60px rgba(30, 155, 215, .22))
    drop-shadow(0 14px 32px rgba(2, 21, 48, .25))
    saturate(118%)
    brightness(1.04);
}
/* Slide dots indicator: sit above slides, lifted below the image */
.hero-card .hero-dots {
  z-index: 3;
  bottom: -22px;
}
.hero-dots span {
  background: rgba(11, 79, 120, .28);   /* visible on the light page bg */
}

/* Slide dots indicator */
.hero-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 3;
}
.hero-dots span {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.45);
  transition: all .3s var(--ease);
}
.hero-dots span.active {
  background: var(--accent);
  width: 22px;
  border-radius: 4px;
}

/* Decorative accents removed for a more formal/clean look */

@media (max-width: 880px) {
  .hero-text { text-align: center; }
  .hero-text .subtitle { max-width: 100%; margin-inline: auto; }
  .hero-text .hero-buttons { justify-content: center; }
  .hero-card { transform: rotate(0deg); aspect-ratio: 16 / 9; }
}

/* The "slide frame" — a centered card that contains the flag + content */
.hero-frame {
  position: relative;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow:
    0 30px 80px rgba(11,79,120,.25),
    0 0 0 1px rgba(255,255,255,.5) inset;
  isolation: isolate;
  /* Maintain a nice aspect — like a banner slide */
  min-height: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--hero-from) 0%, var(--hero-via) 55%, var(--hero-to) 100%);
}

/* Slideshow: each .hero-slide layers on top of the others; only .active is visible */
.hero-flag {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s var(--ease);
  display: flex;
  align-items: center;
  justify-content: center;
  /* Background-image is a fallback when the <img> hasn't loaded yet; it
     covers the whole slide so the flag colour fills any gap created by
     object-fit:contain. */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: var(--hero-via, #0b4f78);
}
.hero-slide.active { opacity: 1; }
.hero-slide img {
  /* 'contain' keeps the whole flag visible without cropping */
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  filter: saturate(118%) brightness(1.04);
  /* The bg-image gives ambient colour; the <img> shows the full flag */
  padding: 8px;
  /* Soft pulse so the flag feels alive */
  animation: flagDrift 14s ease-in-out infinite;
}
@keyframes flagDrift {
  0%, 100% { transform: scale(1) translateY(0); }
  50%      { transform: scale(1.02) translateY(-6px); }
}
.hero-flag-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 30%, rgba(240,185,11,.10), transparent 55%),
    radial-gradient(circle at 82% 75%, rgba(30,155,215,.12), transparent 55%),
    linear-gradient(180deg, rgba(2,26,48,.10), rgba(2,26,48,.22));
  pointer-events: none;
}

.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}
.hero-particles span {
  position: absolute;
  width: 8px; height: 8px;
  background: rgba(255,255,255,0.6);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(240,185,11,.7);
  animation: particleFloat linear infinite;
}
.hero-particles span:nth-child(1){ left:10%;  width:6px;  height:6px;  animation-duration: 18s; animation-delay: 0s; }
.hero-particles span:nth-child(2){ left:25%;  width:10px; height:10px; animation-duration: 22s; animation-delay: -3s; }
.hero-particles span:nth-child(3){ left:40%;  width:5px;  height:5px;  animation-duration: 16s; animation-delay: -7s; }
.hero-particles span:nth-child(4){ left:55%;  width:12px; height:12px; animation-duration: 26s; animation-delay: -10s; }
.hero-particles span:nth-child(5){ left:70%;  width:7px;  height:7px;  animation-duration: 20s; animation-delay: -4s; }
.hero-particles span:nth-child(6){ left:80%;  width:9px;  height:9px;  animation-duration: 24s; animation-delay: -2s; }
.hero-particles span:nth-child(7){ left:90%;  width:6px;  height:6px;  animation-duration: 19s; animation-delay: -12s; }
.hero-particles span:nth-child(8){ left:60%;  width:4px;  height:4px;  animation-duration: 14s; animation-delay: -6s; }
@keyframes particleFloat {
  0%   { transform: translateY(110vh) scale(0.6); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translateY(-110vh) scale(1); opacity: 0; }
}

.hero-content {
  position: relative;
  z-index: 4;
  max-width: 720px;
  width: 100%;
  padding: 32px 26px;
  text-align: center;
  color: #fff;
  animation: heroIn 1s var(--ease) both;
  /* Very translucent so the flag bleeds through behind the text */
  background: rgba(6, 28, 50, 0.22);
  backdrop-filter: blur(3px) saturate(120%);
  -webkit-backdrop-filter: blur(3px) saturate(120%);
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 18px 40px rgba(0,0,0,.18);
  /* Strong text shadows on the inside text so it stays readable */
}
.hero-content h1, .hero-content .subtitle, .hero-content .hero-eyebrow {
  text-shadow: 0 2px 8px rgba(0,0,0,.55), 0 0 24px rgba(0,0,0,.4);
}
@keyframes heroIn {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-logo-wrap { display: inline-block; margin-bottom: 18px; }
.hero-center-logo {
  width: 100px; height: 100px;
  object-fit: contain;
  filter:
    drop-shadow(0 10px 24px rgba(0,0,0,.5))
    drop-shadow(0 0 40px rgba(240,185,11,.4));
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.14);
  color: #fff;
  border: 1px solid rgba(255,255,255,.3);
  padding: 6px 14px;
  border-radius: 24px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .8px;
  margin-bottom: 14px;
  backdrop-filter: blur(6px);
  max-width: 100%;
  /* Allow eyebrow text to wrap on tight viewports instead of overflowing */
  white-space: normal;
  text-align: center;
  line-height: 1.4;
}

.hero-content h1 {
  font-size: clamp(20px, 4.4vw, 48px);
  font-weight: 800;
  margin-bottom: 14px;
  text-shadow: 0 4px 24px rgba(0,0,0,.55);
  line-height: 1.25;
  color: #fff;
  letter-spacing: -.2px;
  /* Modern browsers will balance line breaks across lines */
  text-wrap: balance;
  /* Don't crash long unbreakable strings */
  overflow-wrap: break-word;
  hyphens: auto;
  max-width: 100%;
}
.hero-content .subtitle {
  font-size: clamp(15px, 1.7vw, 19px);
  margin-bottom: 26px;
  text-shadow: 0 2px 14px rgba(0,0,0,.5);
  color: #fff;
  opacity: 0.96;
  font-weight: 500;
}
.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ===== HERO SLOGAN STRIP — runs UNDER the framed slide ===== */
.hero-slogan-strip {
  margin-top: 18px;
  border-radius: var(--radius);
  background: linear-gradient(90deg, var(--primary-dark), var(--primary));
  color: #fff;
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 10px 24px rgba(11,79,120,.18);
  overflow: hidden;
  padding: 12px 0;
}
.hero-slogan-strip .strip-track {
  display: flex;
  gap: 64px;
  white-space: nowrap;
  animation: stripScroll var(--banner-speed, 30s) linear infinite;
  font-size: clamp(13px, 1.4vw, 16px);
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fff;
}
body[dir="rtl"] .hero-slogan-strip .strip-track {
  letter-spacing: 1px;
  text-transform: none;
  animation-name: stripScrollRtl;
}
.hero-slogan-strip .strip-track:hover { animation-play-state: paused; }
.hero-slogan-strip .strip-track > span {
  display: inline-flex;
  align-items: center;
  gap: 16px;
}
.hero-slogan-strip .strip-track > span::after {
  content: "★";
  color: var(--accent);
  margin: 0 12px;
  text-shadow: 0 0 12px rgba(240,185,11,.7);
  font-size: 14px;
}
@keyframes stripScroll    { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes stripScrollRtl { from { transform: translateX(0); } to { transform: translateX(50%); } }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 700;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 14.5px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.4), transparent);
  transform: translateX(-100%);
  transition: transform .6s var(--ease);
}
.btn:hover::before { transform: translateX(100%); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: var(--primary-dark);
  border-color: transparent;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.14);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  color: var(--primary-dark);
}
.btn-outline {
  background: rgba(255,255,255,.14);
  color: #fff;
  border-color: rgba(255,255,255,.65);
  backdrop-filter: blur(6px);
}
.btn-outline:hover {
  background: #fff;
  color: var(--primary-dark);
  transform: translateY(-3px);
  border-color: #fff;
}

/* ===== SECTIONS ===== */
.section {
  padding: 64px 0;
  width: 100%;
  position: relative;
}
.section-title {
  text-align: center;
  margin-bottom: 42px;
}
.section-title .eyebrow {
  display: inline-block;
  padding: 5px 16px;
  background: rgba(30,155,215,.12);
  color: var(--primary-light);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
  text-transform: uppercase;
  border: 1px solid rgba(30,155,215,.18);
}
.section-title h2 {
  font-size: clamp(24px, 3.6vw, 38px);
  color: var(--primary-dark);
  position: relative;
  padding-bottom: 14px;
  display: inline-block;
  font-weight: 800;
  letter-spacing: -.2px;
}
.section-title h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 64px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  border-radius: 4px;
}
.section-title p {
  color: var(--muted);
  margin-top: 12px;
  font-size: 15.5px;
  max-width: 680px;
  margin-inline: auto;
}
.section-alt {
  background: linear-gradient(180deg, rgba(255,255,255,.7), rgba(255,255,255,.4));
  backdrop-filter: blur(10px);
}

/* ===== GRID ===== */
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; }
.grid-4 { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 22px; }
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ===== GLASS CARD (feature) ===== */
.feature-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  border: 1px solid var(--glass-border);
  padding: 30px 24px;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .4s var(--ease);
}
.feature-card:hover::before { transform: scaleX(1); }
.feature-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow-lg);
}
.feature-icon {
  width: 68px; height: 68px;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: var(--primary-dark);
  border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  font-size: 30px;
  box-shadow: 0 10px 22px rgba(240,185,11,.35);
  transition: transform .35s var(--ease);
}
.feature-card:hover .feature-icon { transform: scale(1.08) rotate(-6deg); }
.feature-card h3 { font-size: 20px; margin-bottom: 10px; color: var(--primary-dark); font-weight: 800; }
.feature-card p  { color: var(--text-soft); font-size: 14.5px; line-height: 1.75; }

/* ===== CONTENT CARD (news/video) ===== */
.card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card-image {
  /* Use aspect-ratio so every card image has identical proportions on every
     screen size — height adapts to card width, but the SHAPE stays uniform. */
  aspect-ratio: 16 / 10;
  height: auto;
  width: 100%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;     /* keep the focal point dead-center */
  transition: transform .5s var(--ease);
  display: block;
}
.card:hover .card-image img { transform: scale(1.06); }
.card-image > div { width:100%; height:100%; display:flex; align-items:center; justify-content:center; color:#fff; font-size:44px; }

/* Older browsers without aspect-ratio support: fallback fixed height */
@supports not (aspect-ratio: 16/10) {
  .card-image { height: 200px; }
}
.card-play {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, rgba(10,46,68,.2), rgba(10,46,68,.6));
  color: #fff; font-size: 56px; opacity: 0;
  transition: opacity .3s var(--ease);
}
.card:hover .card-play { opacity: 1; }
.card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.card-title { font-size: 17.5px; font-weight: 800; margin-bottom: 10px; color: var(--primary-dark); line-height: 1.4; }
.card-title a { color: inherit; }
.card-title a:hover { color: var(--primary-light); }
.card-meta { font-size: 12.5px; color: var(--muted); margin-bottom: 10px; display: inline-flex; align-items: center; gap: 6px; }
.card-excerpt { color: var(--text-soft); font-size: 14.5px; margin-bottom: 14px; flex: 1; line-height: 1.75; }
.card-link {
  color: var(--primary-light); font-weight: 700; font-size: 14px;
  display: inline-flex; align-items: center; gap: 6px;
  transition: gap .2s var(--ease);
}
.card-link:hover { color: var(--accent); gap: 10px; }

/* ===== GALLERY ===== */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }

.gallery-item {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
  position: relative;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--glass-border);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.gallery-item:hover { transform: translateY(-4px) scale(1.02); box-shadow: var(--shadow-md); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s var(--ease); }
.gallery-item:hover img { transform: scale(1.12); }
.gallery-item-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(8,50,82,.92), transparent 60%);
  display: flex; align-items: flex-end;
  padding: 14px;
  color: #fff;
  opacity: 0;
  transition: opacity .3s var(--ease);
  font-size: 13.5px; font-weight: 600;
}
.gallery-item:hover .gallery-item-overlay { opacity: 1; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(6,28,46,.92);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center; justify-content: center;
  z-index: 2000;
  padding: 20px;
  animation: fadeIn .3s var(--ease);
}
.lightbox.active { display: flex; }
.lightbox img {
  max-width: 92vw; max-height: 88vh;
  border-radius: var(--radius);
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
}
.lightbox-close {
  position: absolute; top: 22px; inset-inline-end: 26px;
  color: #fff;
  font-size: 30px;
  cursor: pointer;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  width: 46px; height: 46px;
  border-radius: 50%;
  line-height: 1;
  transition: all .25s var(--ease);
}
.lightbox-close:hover { background: var(--accent); color: var(--primary-dark); transform: rotate(90deg); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ===== VIDEO ===== */
.video-wrap {
  position: relative;
  padding-top: 56.25%;
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.video-wrap iframe, .video-wrap video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}

/* ===== LEADERS ===== */
.leader-card {
  text-align: center;
  padding: 28px 20px;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.leader-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.leader-photo {
  width: 130px; height: 130px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 14px;
  border: 4px solid transparent;
  padding: 4px;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, var(--accent), var(--primary-light)) border-box;
  box-shadow: 0 10px 24px rgba(11,79,120,.18);
  transition: transform .35s var(--ease);
}
.leader-card:hover .leader-photo { transform: scale(1.06) rotate(2deg); }
.leader-name { font-size: 17.5px; font-weight: 800; color: var(--primary-dark); }
.leader-position { color: var(--primary-light); font-size: 13px; margin-top: 4px; font-weight: 600; }

/* ===== PAGE HEADER (inner pages) ===== */
.page-header {
  background: linear-gradient(135deg, var(--hero-from), var(--hero-via), var(--hero-to));
  color: #fff;
  padding: 64px 0 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('../images/flag.png') center/cover no-repeat;
  opacity: .14;
  pointer-events: none;
}
.page-header h1 { font-size: clamp(26px, 4vw, 40px); font-weight: 800; position: relative; z-index: 1; }
.breadcrumb {
  font-size: 14px;
  margin-top: 10px;
  opacity: 0.92;
  position: relative;
  z-index: 1;
}
.breadcrumb a { color: var(--accent); }

/* ===== ARTICLE ===== */
.article {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  padding: 36px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  line-height: 1.9;
}
.article h1, .article h2, .article h3 { margin: 22px 0 12px; color: var(--primary-dark); font-weight: 800; }
.article h2 { font-size: 25px; }
.article h3 { font-size: 20px; }
.article p { margin-bottom: 14px; font-size: 15.5px; }
.article ul, .article ol { margin: 14px 0 14px 28px; }
body[dir="rtl"] .article ul, body[dir="rtl"] .article ol { margin: 14px 28px 14px 0; }
.article li { margin-bottom: 6px; }

/* ===== FORMS ===== */
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: var(--primary-dark);
  font-size: 13.5px;
}
.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid rgba(30,155,215,.18);
  border-radius: 12px;
  font-size: 15px;
  background: rgba(255,255,255,.7);
  color: var(--text);
  transition: all .25s var(--ease);
  backdrop-filter: blur(6px);
}
.form-control:focus {
  outline: none;
  border-color: var(--primary-light);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(30,155,215,.15);
}
textarea.form-control { min-height: 140px; resize: vertical; }

.alert {
  padding: 14px 18px;
  border-radius: 12px;
  margin-bottom: 18px;
  border-inline-start: 4px solid;
  backdrop-filter: blur(8px);
}
.alert-success { background: rgba(39,174,96,.12); color: #0b7335; border-color: #27ae60; }
.alert-error, .alert-danger { background: rgba(231,76,60,.12); color: #a93327; border-color: #e74c3c; }
.alert-info    { background: rgba(30,155,215,.12); color: #0b5f93; border-color: var(--primary-light); }

/* ===== PAGINATION ===== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 36px;
  flex-wrap: wrap;
}
.pagination a {
  padding: 9px 16px;
  border: 1.5px solid rgba(30,155,215,.2);
  border-radius: 10px;
  color: var(--primary-dark);
  font-weight: 600;
  background: rgba(255,255,255,.5);
  backdrop-filter: blur(8px);
  transition: all .25s var(--ease);
}
.pagination a:hover, .pagination a.active {
  background: var(--primary-light);
  color: #fff;
  border-color: var(--primary-light);
  transform: translateY(-2px);
}

/* ===== FOOTER ===== */
/* ===== WhatsApp CTA card (Contact page) =====
   Replaces the old floating WhatsApp button — sits at the top of the
   contact-info column for clear, intentional contact. */
.wa-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #fff;
  border-radius: var(--radius);
  box-shadow:
    0 14px 36px rgba(37, 211, 102, .30),
    inset 0 1px 0 rgba(255,255,255,.25);
  text-decoration: none;
  margin-bottom: 18px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
  position: relative;
  overflow: hidden;
}
.wa-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 0%, rgba(255,255,255,.18), transparent 55%);
  pointer-events: none;
}
.wa-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 44px rgba(37, 211, 102, .42);
  color: #fff;
}
.wa-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(255,255,255,.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.wa-card__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
  position: relative;
  z-index: 1;
}
.wa-card__title {
  font-weight: 700;
  font-size: 15.5px;
  letter-spacing: .2px;
}
.wa-card__phone {
  font-size: 14px;
  opacity: .92;
  font-weight: 600;
}
.wa-card__arrow {
  font-size: 28px;
  opacity: .85;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  transition: transform .25s var(--ease);
}
.wa-card:hover .wa-card__arrow { transform: translateX(4px); }
body[dir="rtl"] .wa-card:hover .wa-card__arrow { transform: translateX(-4px); }

.site-footer {
  background: linear-gradient(180deg, var(--primary-dark), #02101f);
  color: #cbd5e1;
  margin-top: auto;
  padding: 56px 0 24px;          /* small bottom padding for breathing room */
  width: 100%;
  border-top: 4px solid var(--accent);
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  margin-bottom: 0 !important;
}
.site-footer:last-of-type { margin-bottom: 0 !important; }

/* =====================================================================
   DEFENSIVE: anything that appears in the markup AFTER the footer
   (popup, cookie banner, floating button, lightbox) must NEVER take
   normal flow space — otherwise it shows up as a blue empty strip below
   the visible footer copyright row.
   ===================================================================== */
body > .float-up,
body > .cookie-banner,
body > .bk-popup,
body > .lightbox {
  position: fixed !important;
}
/* Hide the lightbox container completely when not active so it doesn't
   contribute even an invisible 1px of layout. */
body > .lightbox:not(.active) {
  display: none !important;
}
/* The decorative body::before / body::after blobs must stay fixed and
   never contribute to scrollable height. */
body::before,
body::after {
  position: fixed !important;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr 1.2fr;
  gap: 36px;
  padding-bottom: 32px;
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}
.footer-col h4 {
  color: #fff;
  margin-bottom: 18px;
  font-size: 15px;
  font-weight: 700;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}
.footer-col a {
  color: #cbd5e1;
  display: block;
  padding: 4px 0;
  font-size: 14px;
  transition: all .2s var(--ease);
}
.footer-col a:hover { color: var(--accent); padding-inline-start: 5px; }
.footer-about { line-height: 1.8; font-size: 14px; margin-bottom: 16px; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-brand img {
  height: 48px; width: 48px;
  background: transparent;
  border-radius: 0;
  padding: 0;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(240,185,11,.35));
}
.footer-brand span { font-weight: 800; color: #fff; font-size: 15px; line-height: 1.3; }

/* ===== SOCIAL ICONS (footer + page-level) ===== */
.social-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 14px;
}
.social-grid a {
  height: 42px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.10);
  color: #fff;
  font-size: 17px;
  padding: 0;
  transition: all .3s var(--ease);
  position: relative;
  overflow: hidden;
}
.social-grid a::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  opacity: 0;
  transition: opacity .3s var(--ease);
  z-index: 0;
}
.social-grid a i { position: relative; z-index: 1; }
.social-grid a:hover { transform: translateY(-3px); color: var(--primary-dark); }
.social-grid a:hover::before { opacity: 1; }

.social-grid a[data-net="whatsapp"]:hover  { background: #25D366; color:#fff; }
.social-grid a[data-net="whatsapp"]:hover::before { opacity: 0; }
.social-grid a[data-net="telegram"]:hover  { background: #229ED9; color:#fff; }
.social-grid a[data-net="telegram"]:hover::before { opacity: 0; }
.social-grid a[data-net="facebook"]:hover  { background: #1877F2; color:#fff; }
.social-grid a[data-net="facebook"]:hover::before { opacity: 0; }
.social-grid a[data-net="instagram"]:hover { background: linear-gradient(135deg,#f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%); color:#fff; }
.social-grid a[data-net="instagram"]:hover::before { opacity: 0; }
.social-grid a[data-net="youtube"]:hover   { background: #FF0000; color:#fff; }
.social-grid a[data-net="youtube"]:hover::before { opacity: 0; }
.social-grid a[data-net="twitter"]:hover   { background: #000; color:#fff; }
.social-grid a[data-net="twitter"]:hover::before { opacity: 0; }
.social-grid a[data-net="tiktok"]:hover    { background: #000; color:#fff; }
.social-grid a[data-net="tiktok"]:hover::before { opacity: 0; }
.social-grid a[data-net="linkedin"]:hover  { background: #0A66C2; color:#fff; }
.social-grid a[data-net="linkedin"]:hover::before { opacity: 0; }

/* Compact social row (topbar / page-level) */
.social-links { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.social-links a {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  padding: 0;
  font-size: 15px;
  transition: all .3s var(--ease);
}
.social-links a:hover { background: var(--accent); color: var(--primary-dark); border-color: var(--accent); transform: translateY(-3px) rotate(-4deg); }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 14px;
}
.footer-contact-item i { color: var(--accent); flex-shrink: 0; margin-top: 4px; }
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 22px;
  padding: 16px 0;
  border-top: 1px solid rgba(255,255,255,.08);
  font-size: 13.5px;
}
.footer-legal a {
  color: #cbd5e1;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all .2s var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.footer-legal a:hover { color: var(--accent); background: rgba(240,185,11,.08); }
.footer-legal a + a {
  position: relative;
}
.footer-legal a + a::before {
  content: "·";
  position: absolute;
  inset-inline-start: -14px;
  top: 4px;
  color: rgba(255,255,255,.3);
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 18px 0;
  text-align: center;
  font-size: 13px;
  opacity: .85;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
}
.footer-credit { opacity: .7; font-size: 12.5px; }
@media (max-width: 700px) {
  .footer-bottom { justify-content: center; text-align: center; flex-direction: column; }
}

/* ===== Committee cards (public on home) ===== */
.committees-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}
.committee-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  color: var(--text);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
}
.committee-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .4s var(--ease);
}
.committee-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  color: var(--primary-dark);
}
.committee-card:hover::before { transform: scaleX(1); }
.committee-icon {
  width: 72px; height: 72px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: 0 10px 22px rgba(11,79,120,.25);
  transition: transform .35s var(--ease);
}
.committee-card:hover .committee-icon {
  transform: scale(1.08) rotate(-6deg);
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: var(--primary-dark);
}
.committee-card h3 {
  font-size: 16px;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1.35;
  margin: 4px 0 0;
}
.committee-meta {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
}
.committee-meta .bi-lock-fill { color: var(--accent); }

/* ===== Org chart tree ===== */
.org-chart {
  overflow-x: auto;
  padding: 20px 4px 40px;
}
.org-chart ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 30px;
  position: relative;
  flex-wrap: wrap;
}
.org-chart > ul {
  flex-wrap: nowrap;
}
.org-chart .org-node {
  position: relative;
  padding: 28px 12px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}
/* Vertical line from parent down to this node */
.org-chart ul ul > .org-node::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 28px;
  background: rgba(11,79,120,.25);
  transform: translateX(-50%);
}
/* Horizontal line connecting siblings (skip if only one child) */
.org-chart ul ul > .org-node:not(:only-child)::after {
  content: "";
  position: absolute;
  top: 0;
  height: 2px;
  background: rgba(11,79,120,.25);
  width: calc(50% + 15px);
}
.org-chart ul ul > .org-node:not(:only-child):first-child::after { left: 50%; }
.org-chart ul ul > .org-node:not(:only-child):last-child::after  { right: 50%; left: auto; }
.org-chart ul ul > .org-node:not(:only-child):not(:first-child):not(:last-child)::after {
  left: 0;
  width: 100%;
}
.org-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 14px 16px;
  text-align: center;
  min-width: 180px;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  position: relative;
  z-index: 1;
}
.org-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.org-photo {
  width: 70px; height: 70px;
  margin: 0 auto 8px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, var(--accent), var(--primary-light));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 28px;
  border: 3px solid rgba(255,255,255,.7);
  box-shadow: 0 6px 16px rgba(11,79,120,.18);
}
.org-photo img { width: 100%; height: 100%; object-fit: cover; }
.org-name { font-weight: 800; font-size: 14.5px; color: var(--primary-dark); line-height: 1.3; }
.org-position { font-size: 12.5px; color: var(--primary-light); margin-top: 4px; font-weight: 600; }
@media (max-width: 720px) {
  .org-chart > ul { flex-wrap: wrap; gap: 14px; }
  .org-card { min-width: 150px; padding: 12px 14px; }
}

/* ===== Leader's Message ===== */
.leader-message {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  align-items: center;
  background: linear-gradient(135deg, rgba(255,255,255,.7), rgba(255,255,255,.55));
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 36px 36px 36px 24px;
  position: relative;
  overflow: hidden;
}
.leader-message::before {
  content: "";
  position: absolute;
  inset-inline-end: -60px;
  top: -60px;
  width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(240,185,11,.18), transparent 70%);
  filter: blur(30px);
  pointer-events: none;
}
.leader-portrait {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border: 4px solid transparent;
  padding: 4px;
  background-clip: padding-box;
  position: relative;
  box-shadow: 0 14px 30px rgba(11,79,120,.25);
}
.leader-portrait::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(135deg, var(--accent), var(--primary-light));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
          mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}
.leader-portrait img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.leader-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.85);
  font-size: 96px;
  border-radius: 50%;
}
.leader-body { position: relative; }
.leader-quote-mark {
  font-size: 60px;
  color: var(--accent);
  opacity: .35;
  line-height: 1;
  position: absolute;
  inset-inline-start: -14px;
  top: -16px;
}
.leader-text {
  font-size: clamp(15px, 1.6vw, 18px);
  color: var(--text);
  line-height: 1.9;
  font-style: italic;
  margin: 0 0 22px;
}
.leader-sig { display: flex; flex-direction: column; gap: 2px; }
.leader-sig .leader-name {
  font-size: 17px;
  font-weight: 800;
  color: var(--primary-dark);
}
.leader-sig .leader-position {
  font-size: 14px;
  color: var(--primary-light);
  font-weight: 600;
}
@media (max-width: 720px) {
  .leader-message {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 32px 22px;
  }
  .leader-portrait { width: 160px; height: 160px; margin: 0 auto; }
  .leader-quote-mark { position: static; }
  .leader-sig { align-items: center; }
}

/* ===== Member dashboard ===== */
.member-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
}
@media (max-width: 800px) {
  .member-layout { grid-template-columns: 1fr; }
  .member-info-grid { grid-template-columns: 1fr !important; }
}
.member-side .member-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  padding: 24px 20px;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-sm);
  margin-bottom: 14px;
}
.member-avatar {
  width: 110px; height: 110px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 50px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(11,79,120,.25);
}
.member-avatar img { width: 100%; height: 100%; object-fit: cover; }
.member-name { font-weight: 800; font-size: 17px; color: var(--primary-dark); line-height: 1.35; }
.member-meta { font-size: 13px; color: var(--muted); margin-top: 4px; word-break: break-all; }
.member-status {
  display: inline-block;
  margin-top: 12px;
  padding: 4px 14px;
  border-radius: 16px;
  font-size: 12.5px;
  font-weight: 700;
}
.status-active    { background: rgba(34,197,94,.15);  color: #15803d; }
.status-pending   { background: rgba(234,179,8,.15);  color: #a16207; }
.status-suspended { background: rgba(239,68,68,.15);  color: #b91c1c; }

.member-nav {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 10px;
  display: flex; flex-direction: column; gap: 4px;
}
.member-nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px;
  border-radius: 10px;
  font-weight: 600;
  color: var(--text);
  font-size: 14px;
  transition: all .2s var(--ease);
}
.member-nav a:hover { background: rgba(30,155,215,.08); color: var(--primary-dark); }
.member-nav a.active { background: var(--primary-light); color: #fff; }
.member-nav a i { width: 18px; text-align: center; }

.info-tile {
  background: rgba(30,155,215,.06);
  border: 1px solid rgba(30,155,215,.15);
  padding: 14px;
  border-radius: 12px;
  text-align: center;
}
.info-label { font-size: 12px; color: var(--muted); font-weight: 600; margin-bottom: 4px; }
.info-value { font-weight: 700; color: var(--primary-dark); }

.member-table { width: 100%; border-collapse: collapse; }
.member-table th, .member-table td {
  padding: 11px 14px;
  border-bottom: 1px solid rgba(11,79,120,.08);
  text-align: start;
  vertical-align: top;
}
.member-table th { color: var(--muted); font-weight: 600; width: 35%; font-size: 14px; }
.member-table td { color: var(--text); font-size: 14.5px; word-break: break-word; }

/* ===== Footer CTA (Register / My Account) — high contrast on dark footer ===== */
.footer-cta {
  padding: 10px 22px !important;
  font-size: 14px !important;
  background: linear-gradient(135deg, var(--accent), var(--accent-light)) !important;
  color: #062742 !important;
  border-color: var(--accent) !important;
  font-weight: 800 !important;
  text-shadow: none !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22) !important;
}
.footer-cta i { color: #062742 !important; }
.footer-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28) !important;
}

/* ===== MODERN FLOATING "BACK TO TOP" BUTTON =====
   Only one floating action remains — a clean, rounded arrow with a soft
   animated ring. WhatsApp now lives on the Contact page where it belongs. */
body > .float-up {
  position: fixed !important;
  bottom: 26px !important;
  right: 22px !important;
  left: auto !important;
  top: auto !important;
  width: 52px;
  height: 52px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  color: #fff;
  border: none;
  font-size: 20px;
  cursor: pointer;
  box-shadow:
    0 10px 28px rgba(11, 79, 120, .35),
    inset 0 1px 0 rgba(255,255,255,.25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) translateZ(0);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s var(--ease), box-shadow .25s var(--ease);
  z-index: 2147483000;
  will-change: transform, opacity;
}
body > .float-up.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) translateZ(0);
}
body > .float-up:hover {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: var(--primary-dark);
  box-shadow: 0 14px 32px rgba(240,185,11,.40);
  transform: translateY(-2px) translateZ(0);
}
body > .float-up:active { transform: translateY(0) scale(.96) translateZ(0); }
body > .float-up i { position: relative; z-index: 2; }
/* Soft animated ring around the button */
body > .float-up .float-up__ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(30,155,215,.35);
  animation: floatUpPulse 2.4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes floatUpPulse {
  0%, 100% { transform: scale(1);   opacity: .55; }
  50%      { transform: scale(1.15); opacity: 0; }
}
/* RTL: anchor on the left instead */
body[dir="rtl"] > .float-up {
  right: auto !important;
  left: 22px !important;
}
/* Hide the floating button while the mobile drawer is open */
body.nav-open > .float-up {
  opacity: 0 !important;
  pointer-events: none;
  transform: translateY(20px) translateZ(0);
}
/* Body-scroll lock while the mobile drawer is open */
body.nav-open { overflow: hidden; }

/* Mobile sizing for the back-to-top button */
@media (max-width: 560px) {
  body > .float-up {
    bottom: 18px !important;
    right: 18px !important;
    width: 48px;
    height: 48px;
    font-size: 18px;
  }
  body[dir="rtl"] > .float-up {
    right: auto !important;
    left: 18px !important;
  }
}

/* ===== Announcement Popup ===== */
.bk-popup {
  position: fixed;
  inset: 0;
  background: rgba(2, 22, 42, .65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2200;
  padding: 24px;
  animation: bkPopupIn .35s var(--ease) both;
}
.bk-popup-card {
  background: rgba(255, 255, 255, .96);
  border: 1px solid rgba(255, 255, 255, .6);
  border-radius: var(--radius-lg);
  max-width: 540px;
  width: 100%;
  position: relative;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
  overflow: hidden;
  animation: bkPopupScale .4s var(--ease) both;
}
.bk-popup-close {
  position: absolute;
  top: 10px;
  inset-inline-end: 12px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .9);
  border: 1px solid rgba(11, 79, 120, .15);
  font-size: 22px; line-height: 1;
  cursor: pointer;
  color: var(--primary-dark);
  z-index: 2;
  transition: all .2s var(--ease);
}
.bk-popup-close:hover {
  background: var(--accent);
  color: var(--primary-dark);
  transform: rotate(90deg);
}
.bk-popup-image { width: 100%; max-height: 240px; overflow: hidden; }
.bk-popup-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bk-popup-body { padding: 28px 28px 30px; }
.bk-popup-body h3 {
  color: var(--primary-dark);
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 12px;
  line-height: 1.3;
}
.bk-popup-text { color: var(--text-soft); font-size: 15px; line-height: 1.75; }
@keyframes bkPopupIn    { from { opacity: 0; } to { opacity: 1; } }
@keyframes bkPopupScale {
  from { opacity: 0; transform: scale(0.92) translateY(20px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
@media (max-width: 560px) {
  .bk-popup { padding: 14px; }
  .bk-popup-body { padding: 22px 22px 24px; }
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  z-index: 1500;
  background: rgba(2,26,48,.94);
  color: #fff;
  border: 1px solid rgba(255,255,255,.15);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(0,0,0,.4);
  animation: slideUp .55s var(--ease) both;
}
.cookie-banner .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 22px;
  flex-wrap: wrap;
}
.cookie-text { display: flex; align-items: center; gap: 10px; font-size: 13.5px; flex: 1; min-width: 240px; }
.cookie-text i { color: var(--accent); font-size: 18px; flex-shrink: 0; }
.cookie-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.cookie-link { color: var(--accent); font-size: 13px; }
.cookie-link:hover { color: #fff; }
.cookie-accept {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: var(--primary-dark);
  border: none;
  padding: 8px 22px;
  border-radius: 30px;
  font-weight: 700;
  cursor: pointer;
  font-size: 13.5px;
  transition: transform .2s var(--ease);
}
.cookie-accept:hover { transform: translateY(-1px); }
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== MOBILE NAV — modern glass drawer ===== */
.nav-close,
.nav-brand,
.nav-footer,
.nav-scrim { display: none; }   /* desktop default */

@media (max-width: 900px) {
  .mobile-toggle { display: inline-flex; }

  /* Backdrop / scrim behind the drawer */
  .nav-scrim {
    position: fixed;
    inset: 0;
    background: rgba(2,22,42,.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 98;
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s var(--ease), visibility .35s var(--ease);
    display: block;
  }
  body.nav-open .nav-scrim { opacity: 1; visibility: visible; }

  /* ===== Drawer — bulletproof LTR/RTL ===== */
  nav.main-nav {
    position: fixed;
    top: 0;
    right: 0;          /* LTR default: drawer on right edge */
    left: auto;
    height: 100dvh;
    width: 320px;
    max-width: 88vw;
    background: linear-gradient(165deg, #042138 0%, #073661 55%, #1e9bd7 130%);
    color: #fff;
    flex-direction: column;
    box-shadow: -20px 0 60px rgba(0,0,0,.5);
    /* Closed state: fully off-screen AND invisible. visibility+pointer-events
       guarantee the drawer can never "leak through" even if a transform
       rule gets overridden somewhere. */
    transform: translate3d(110%, 0, 0);              /* off-screen right */
    visibility: hidden;
    pointer-events: none;
    transition: transform .42s var(--ease), visibility 0s linear .42s;
    padding: 0;
    z-index: 99;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    will-change: transform;
  }
  /* RTL: drawer on left edge, off-screen left when closed */
  body[dir="rtl"] nav.main-nav {
    right: auto;
    left: 0;
    box-shadow: 20px 0 60px rgba(0,0,0,.5);
    transform: translate3d(-110%, 0, 0);             /* off-screen left */
  }
  /* OPEN state — visible AND interactive */
  nav.main-nav.open,
  body[dir="rtl"] nav.main-nav.open {
    transform: translate3d(0, 0, 0) !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transition: transform .42s var(--ease), visibility 0s linear 0s;
  }

  /* Decorative blob in the drawer */
  nav.main-nav::before {
    content: "";
    position: absolute;
    inset-inline-end: -80px;
    top: -80px;
    width: 220px; height: 220px;
    background: radial-gradient(circle, rgba(240,185,11,.4), transparent 65%);
    filter: blur(40px);
    pointer-events: none;
  }
  nav.main-nav::after {
    content: "";
    position: absolute;
    inset-inline-start: -80px;
    bottom: -80px;
    width: 240px; height: 240px;
    background: radial-gradient(circle, rgba(30,155,215,.45), transparent 65%);
    filter: blur(50px);
    pointer-events: none;
  }

  /* Drawer head: logo + close in a single flex row (no overlap) */
  .nav-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid rgba(255,255,255,.10);
    margin-bottom: 4px;
    position: relative;
    z-index: 1;
  }
  /* Close button — now part of the flex row, no overlap */
  .nav-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,.14);
    color: #fff;
    border: 1px solid rgba(255,255,255,.28);
    font-size: 17px;
    cursor: pointer;
    z-index: 2;
    flex-shrink: 0;
    transition: all .25s var(--ease);
  }
  .nav-close:hover {
    background: var(--accent);
    color: var(--primary-dark);
    border-color: var(--accent);
    transform: rotate(90deg);
  }

  /* Brand block inside the drawer header */
  .nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0;
    min-width: 0;
    flex: 1;
  }
  .nav-brand img {
    width: 40px; height: 40px; object-fit: contain;
    filter: brightness(1.1) drop-shadow(0 4px 10px rgba(0,0,0,.4));
    flex-shrink: 0;
  }
  .nav-brand span {
    font-weight: 800;
    font-size: 14px;
    line-height: 1.3;
    color: #fff;
    overflow: hidden;
    text-overflow: ellipsis;
    /* Long titles like "جریان سیاسی بیرلیک یولی (راه وحدت)" get clipped cleanly */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  nav.main-nav ul {
    flex-direction: column;
    width: 100%;
    gap: 2px;
    padding: 4px 14px;
    position: relative;
    z-index: 1;
    list-style: none;
  }
  nav.main-nav a {
    width: 100%;
    padding: 13px 16px;
    color: #ffffff;
    font-weight: 600;
    font-size: 15px;
    border-radius: 12px;
    transition: all .25s var(--ease);
    display: flex;
    align-items: center;
    gap: 10px;
  }
  nav.main-nav a::after {
    display: none;        /* hide the underline marker inside the drawer */
  }
  nav.main-nav a:hover,
  nav.main-nav a.active {
    background: rgba(255,255,255,.12);
    color: var(--accent);
    transform: translateX(4px);
  }
  body[dir="rtl"] nav.main-nav a:hover,
  body[dir="rtl"] nav.main-nav a.active {
    transform: translateX(-4px);
  }

  /* Drawer footer (WhatsApp + email + social row) */
  .nav-footer {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 18px 22px 24px;
    margin-top: auto;
    border-top: 1px solid rgba(255,255,255,.10);
    position: relative;
    z-index: 1;
  }
  .nav-wa, .nav-email {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 12px;
    color: #fff;
    text-decoration: none;
    transition: all .25s var(--ease);
    font-size: 14px;
    font-weight: 600;
  }
  .nav-wa {
    background: linear-gradient(135deg, #25D366, #128C7E);
    box-shadow: 0 6px 16px rgba(37,211,102,.35);
  }
  .nav-wa span { direction: ltr; }
  .nav-wa:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37,211,102,.5);
    color: #fff;
  }
  .nav-email {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
  }
  .nav-email span { direction: ltr; font-size: 13px; word-break: break-all; }
  .nav-email:hover {
    background: rgba(255,255,255,.16);
    color: var(--accent);
  }
  .nav-socials {
    display: flex;
    gap: 8px;
    margin-top: 4px;
    flex-wrap: wrap;
  }
  .nav-socials a {
    width: 38px; height: 38px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.10);
    border-radius: 50%;
    color: #fff;
    transition: all .25s var(--ease);
  }
  .nav-socials a:hover {
    background: var(--accent);
    color: var(--primary-dark);
    transform: translateY(-2px);
  }

  /* Drawer: children shown inline + indented (no hover possible on touch) */
  nav.main-nav ul.dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: rgba(255,255,255,.04);
    padding: 4px 0 8px 0;
    margin: 4px 0 6px;
    border-inline-start: 2px solid rgba(240,185,11,.35);
    margin-inline-start: 18px;
    border-radius: 0;
    min-width: 0;
    display: block;
  }
  nav.main-nav ul.dropdown a {
    color: rgba(255,255,255,.86);
    white-space: normal;
    padding: 10px 14px;
    font-size: 14.5px;
    font-weight: 500;
  }
  nav.main-nav ul.dropdown a:hover {
    background: rgba(255,255,255,.10);
    color: #fff;
  }
  nav.main-nav li.has-children > a .menu-caret { display: none; }

  .hero-section { padding: 24px 0 20px; }
  .hero-frame { min-height: 380px; }
  .hero-content { padding: 36px 22px; }
  .section { padding: 48px 0; }
  .article { padding: 22px; }
  .brand-tag { display: none; }
  .topbar { font-size: 12px; }
  .topbar .container { justify-content: center; }
  .topbar-pill span { display: none; }
  .topbar-pill { padding: 4px 8px; }
  .news-ticker .ticker-label { font-size: 12px; padding: 0 12px; }
  .news-ticker .ticker-track { padding-inline-start: 130px; font-size: 13.5px; }
  .social-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 560px) {
  .brand img { height: 44px; width: 44px; }
  .brand-name { font-size: 14.5px; }
  .btn { padding: 11px 20px; font-size: 13.5px; }
  .feature-card { padding: 24px 18px; }
  .hero-content { padding: 24px 18px; max-width: 100%; }
  .hero-content h1 { font-size: 20px; line-height: 1.3; }
  .hero-content .subtitle { font-size: 14px; }
  .hero-eyebrow { font-size: 11px; padding: 5px 12px; letter-spacing: .4px; }
  .hero-frame { min-height: 360px; }
  .hero-buttons .btn { padding: 10px 18px; font-size: 13px; }
  .section-title h2 { font-size: 22px; }
  .article { padding: 18px; }
  .hero-slogan-strip { padding: 8px 0; }
  .hero-slogan-strip .strip-track { letter-spacing: 1px; font-size: 12px; }
  .topbar-member .member-btn { padding: 4px 10px; font-size: 11.5px; }
  /* Hero text container narrower so titles wrap on natural word breaks */
  .hero-content { max-width: 94%; }
}

/* ===== Utility ===== */
.text-center { text-align: center; }
.mt-4 { margin-top: 32px; }
.mb-4 { margin-bottom: 32px; }

/* ===== Reveal animations ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: translateY(0); }

.reveal-left  { opacity: 0; transform: translateX(-40px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal-right { opacity: 0; transform: translateX(40px);  transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal-left.in, .reveal-right.in { opacity: 1; transform: translateX(0); }
.reveal-zoom { opacity: 0; transform: scale(0.92); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal-zoom.in { opacity: 1; transform: scale(1); }

/* ===== Page transition ===== */
.page-enter { animation: pageEnter .55s var(--ease) both; }
@keyframes pageEnter {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== Scrollbar polish ===== */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: rgba(11,79,120,.05); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--primary-light), var(--primary));
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover { background: var(--accent); }
