/* ==========================================================================
   اليوم الوطني للذكاء الاصطناعي - Libyan AI National Day
   الهوية البصرية الزجاجية الفضائية (Glassmorphism / Deep Space Blue)
   الألوان المعتمدة:
   - Deep Space Base: #05070F / #0A0F1E
   - Signal Blue: #3B82F6 / Glow Blue: #60A5FA
   - Sovereign Gold (لمسة ثانوية): #B08D57
   - Font Family: Tajawal
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800;900&family=Tajawal:wght@300;400;500;700;800;900&display=swap');

:root {
  /* قاعدة الفضاء الداكنة */
  --primary-dark: #0A0F1E;
  --primary-dark-rgb: 10, 15, 30;
  --primary-darker: #060911;
  --primary-darkest: #03050A;
  --primary-light: #131B33;

  /* الأزرق الإشاري - الأساس البصري الجديد */
  --blue: #3B82F6;
  --blue-rgb: 59, 130, 246;
  --blue-glow: #60A5FA;
  --blue-glow-rgb: 96, 165, 250;
  --blue-deep: #1D4ED8;
  --blue-subtle: rgba(59, 130, 246, 0.12);
  --blue-border: rgba(96, 165, 250, 0.3);

  /* الذهبي - لمسة ثانوية خفيفة فقط */
  --gold: #B08D57;
  --gold-rgb: 176, 141, 87;
  --gold-hover: #C5A069;
  --gold-light: #F6EFE6;
  --gold-subtle: rgba(176, 141, 87, 0.12);
  --gold-border: rgba(176, 141, 87, 0.35);
  --bronze-dark: #7A5C36;

  --state-green: #34D399;
  --state-red: #F87171;
  --state-blue: #3B82F6;

  /* الأسطح الزجاجية (Glass Surfaces) */
  --bg-main: #05070F;
  --bg-alt: #080B15;
  --glass-fill: rgba(255, 255, 255, 0.09);
  --glass-fill-strong: rgba(255, 255, 255, 0.15);
  --glass-border: rgba(255, 255, 255, 0.22);
  --glass-blur: blur(26px) saturate(160%);

  --surface: rgba(255, 255, 255, 0.045);
  --surface-raised: rgba(255, 255, 255, 0.07);
  --surface-border: rgba(255, 255, 255, 0.1);

  --text-main: #F1F5F9;
  --text-muted: #94A3B8;
  --text-light: #64748B;
  --text-inverse: #05070F;

  /* الظلال والتوهج */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.45);
  --shadow-gold: 0 8px 24px rgba(176, 141, 87, 0.22);
  --shadow-glow: 0 8px 32px rgba(59, 130, 246, 0.35);
  --shadow-modal: 0 24px 70px rgba(0, 0, 0, 0.6);
  --inner-glass-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.12);

  /* الحواف والخطوط */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 9999px;

  --font-family: 'Univers Next Arabic', 'Univers Next', 'DIN Next LT Arabic', 'Tajawal', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --container-max: 1360px;
}

/* إعادة التعيين العام وضمان التجاوب */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  font-size: 14px;
  overflow-x: hidden;
  width: 100%;
  background-color: #05070C;
  height: 100%;
}

body {
  direction: rtl;
  text-align: right;
  font-family: var(--font-family);
  background-color: transparent;
  color: var(--text-main);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  width: 100%;
  min-height: 100%;
  position: relative;
}

/* الخلفية المتدرجة الهادئة - أسود تقني عميق يقترب من الأفق السفلي */
.site-bg-fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -3;
  background: linear-gradient(180deg,
    #030407 0%,
    #04060B 20%,
    #05070D 40%,
    #060910 60%,
    #080B14 80%,
    #0A0E18 100%
  );
}

.site-bg-fixed::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 900px 600px at 15% 5%, rgba(59, 130, 246, 0.05) 0%, transparent 55%),
    radial-gradient(ellipse 800px 500px at 100% 30%, rgba(96, 165, 250, 0.04) 0%, transparent 55%);
}

/* لوحة الأمواج المضيئة الحية (Canvas) */
#liveWavesCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  pointer-events: none;
}

/* دائرة زجاجية ديكورية عائمة مستوحاة من مرجع التصميم */
.site-bg-orb {
  position: fixed;
  top: 32%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(420px, 60vw);
  height: min(420px, 60vw);
  border-radius: 50%;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.02) 40%, transparent 70%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    inset 0 2px 24px rgba(255, 255, 255, 0.08),
    inset 0 -20px 40px rgba(0, 0, 0, 0.2),
    0 0 80px rgba(96, 165, 250, 0.06);
  opacity: 0.55;
  animation: orbFloat 18s ease-in-out infinite;
}

@keyframes orbFloat {
  0%   { transform: translate(-50%, -50%) scale(1); }
  25%  { transform: translate(calc(-50% + 22px), calc(-50% - 14px)) scale(1.03); }
  50%  { transform: translate(calc(-50% - 16px), calc(-50% + 10px)) scale(0.98); }
  75%  { transform: translate(calc(-50% + 10px), calc(-50% + 20px)) scale(1.02); }
  100% { transform: translate(-50%, -50%) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .site-bg-orb {
    animation: none !important;
  }
}

body.mobile-menu-active {
  overflow: hidden !important;
  touch-action: none;
}

img, video, iframe, canvas {
  max-width: 100%;
  height: auto;
}

/* الحاوية الأساسية */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1rem, 3vw, 1.5rem);
  padding-right: clamp(1rem, 3vw, 1.5rem);
}

/* ==========================================================================
   الترويسة والشريط الحكومي العلوي (Top Gov Bar)
   ========================================================================== */
.gov-header {
  background: rgba(4, 6, 12, 0.72);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  color: #CBD5E1;
  font-size: 0.722rem;
  font-weight: 500;
  border-bottom: 1px solid var(--glass-border);
  padding: 0.5rem 0;
}

.gov-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.gov-affiliation {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.722rem;
  white-space: nowrap;
}

.gov-flag-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.012rem;
  line-height: 1;
  font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif;
  margin-left: 0.25rem;
  flex-shrink: 0;
}

.gov-links-quick {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.gov-link-item {
  color: #94A3B8;
  text-decoration: none;
  transition: var(--transition);
  font-size: 0.722rem;
}

.gov-link-item:hover {
  color: var(--gold);
}

.lang-switch-btn {
  background: rgba(176, 141, 87, 0.15);
  border: 1px solid var(--gold-border);
  color: var(--gold);
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.686rem;
  font-family: inherit;
  cursor: pointer;
  font-weight: 700;
  transition: var(--transition);
}

.lang-switch-btn:hover {
  background: var(--gold);
  color: var(--primary-darkest);
}

/* ==========================================================================
   شريط الملاحة الرئيسي (Main Navigation)
   ========================================================================== */
.main-navbar {
  background: linear-gradient(180deg, rgba(20, 28, 50, 0.4) 0%, rgba(10, 15, 30, 0.32) 100%);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid var(--glass-border);
  position: sticky;
  top: 0;
  z-index: 999;
  transition: var(--transition);
}

.navbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
  gap: 1rem;
}

.brand-identity {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
  min-width: max-content;
}

.brand-logo-img {
  height: 52px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.05));
  flex-shrink: 0;
  display: block;
}

.brand-text-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex-shrink: 0;
}

.brand-title {
  font-size: 1.012rem;
  font-weight: 800;
  color: #F1F5F9;
  line-height: 1.25;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.brand-sub {
  font-size: 0.66rem;
  font-weight: 600;
  color: var(--blue-glow);
  line-height: 1.2;
  white-space: nowrap;
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 0.75rem;
  margin: 0 0.5rem;
  flex-shrink: 1;
}

.nav-link {
  text-decoration: none;
  color: #CBD5E1;
  font-size: 0.722rem;
  font-weight: 600;
  padding: 0.45rem 0.5rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  position: relative;
  white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
  color: #FFFFFF;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0.5rem;
  right: 0.5rem;
  height: 2px;
  background-color: var(--blue-glow);
  border-radius: 2px;
  box-shadow: 0 0 8px var(--blue-glow);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* زر الهاتف المحمول (Hamburger Button) */
.mobile-toggle-btn {
  display: none;
  background: var(--glass-fill);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  color: #F1F5F9;
  cursor: pointer;
  font-size: 1.188rem;
  line-height: 1;
  min-height: 44px;
  min-width: 44px;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.mobile-toggle-btn:hover {
  background: var(--blue-subtle);
  border-color: var(--blue-glow);
  color: var(--blue-glow);
}

/* ==========================================================================
   قائمة الهاتف المحمول الجانبية التفاعلية (Mobile Drawer Navigation)
   ========================================================================== */
.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(13, 22, 40, 0.75);
  backdrop-filter: blur(4px);
  z-index: 1998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-nav-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  width: min(340px, 86vw);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.16) 0%, rgba(96, 165, 250, 0.08) 45%, rgba(10, 15, 30, 0.28) 100%);
  backdrop-filter: blur(28px) saturate(150%);
  -webkit-backdrop-filter: blur(28px) saturate(150%);
  color: #FFFFFF;
  z-index: 1999;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow:
    10px 0 40px rgba(0, 0, 0, 0.35),
    inset -1px 0 0 rgba(255, 255, 255, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  border-right: 1px solid rgba(255, 255, 255, 0.35);
}

.mobile-nav-drawer.is-open {
  transform: translateX(0);
}

.mobile-drawer-header {
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-drawer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.mobile-drawer-logo {
  height: 42px;
  width: auto;
}

.mobile-drawer-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.2;
}

.mobile-drawer-sub {
  font-size: 0.616rem;
  color: var(--blue-glow);
}

.mobile-drawer-close {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.mobile-drawer-close:hover {
  background: var(--gold);
  color: var(--primary-darkest);
}

.mobile-drawer-links {
  list-style: none;
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex-grow: 1;
}

.mobile-drawer-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 1rem;
  color: #CBD5E1;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.836rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.mobile-drawer-link:hover, .mobile-drawer-link.active {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(96, 165, 250, 0.12));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #FFFFFF;
  border-right: 3px solid var(--blue-glow);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.mobile-drawer-footer {
  padding: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.04);
}

/* ==========================================================================
   الأزرار الرسمية (Buttons)
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  font-family: inherit;
  font-size: 0.748rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  line-height: 1.4;
  white-space: nowrap;
  min-height: 44px;
}

.btn-gold {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.06) 50%, rgba(96, 165, 250, 0.1) 100%);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 -10px 16px rgba(59, 130, 246, 0.08),
    0 4px 16px rgba(0, 0, 0, 0.2);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.btn-gold:hover {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.1) 50%, rgba(96, 165, 250, 0.16) 100%);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    inset 0 -6px 14px rgba(59, 130, 246, 0.2),
    0 8px 26px rgba(59, 130, 246, 0.35);
}

.btn-primary-dark {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.04) 50%, rgba(255, 255, 255, 0.02) 100%);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    0 4px 14px rgba(0, 0, 0, 0.15);
}

.btn-primary-dark:hover {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.08) 50%, rgba(255, 255, 255, 0.04) 100%);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

.btn-outline-gold {
  background: rgba(176, 141, 87, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--gold-hover);
  border: 1px solid rgba(176, 141, 87, 0.45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-outline-gold:hover {
  background: rgba(176, 141, 87, 0.2);
  color: #F6EFE6;
  border-color: rgba(176, 141, 87, 0.7);
}

.btn-outline-white {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.06) 100%);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.btn-outline-white:hover {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0.1) 100%);
  border-color: rgba(255, 255, 255, 0.6);
}

.btn-sm {
  padding: 0.45rem 1rem;
  font-size: 0.748rem;
  min-height: 38px;
}

.btn-lg {
  padding: 0.85rem 2rem;
  font-size: 0.898rem;
  min-height: 48px;
}

/* ==========================================================================
   أيقونات الفيكتور الحكومية المذهبة والداكنة الرسمية (Professional Sovereign Icons)
   ========================================================================== */
.icon-svg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  flex-shrink: 0;
  width: 1.25em;
  height: 1.25em;
  line-height: 1;
}

.icon-svg svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-gold {
  color: var(--blue-glow);
}

.icon-dark {
  color: var(--primary-dark);
}

.icon-white {
  color: #FFFFFF;
}

.pillar-icon-box svg {
  width: 26px;
  height: 26px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.reg-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  background: var(--gold-subtle);
  border: 1px solid var(--gold-border);
  color: var(--gold);
  flex-shrink: 0;
  margin-bottom: 0.85rem;
}

.reg-icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.meta-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
}

.meta-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-badge-wrap .icon-svg,
.hero-badge-wrap svg {
  width: 18px;
  height: 18px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 2;
}

.mobile-drawer-link .icon-svg {
  width: 22px;
  height: 22px;
  color: var(--gold);
}

.mobile-drawer-link .icon-glass {
  filter: drop-shadow(0 0 6px rgba(176, 141, 87, 0.4));
}

.icon-glass {
  filter: drop-shadow(0 0 6px rgba(96, 165, 250, 0.35));
}

.icon-glass svg {
  stroke: none;
}

.agenda-hall .icon-svg {
  width: 16px;
  height: 16px;
  color: var(--gold);
  margin-left: 4px;
}

/* ==========================================================================
   قسم البطولة الرئيسي (Hero Section)
   ========================================================================== */
.hero-section {
  position: relative;
  background: linear-gradient(180deg, rgba(5, 7, 12, 0.15) 0%, rgba(10, 15, 30, 0.08) 55%, rgba(11, 20, 43, 0.12) 100%);
  color: #FFFFFF;
  padding: clamp(3rem, 6vw, 4.5rem) 0 clamp(4rem, 7vw, 5.5rem);
  overflow: hidden;
  border-bottom: 1px solid var(--glass-border);
}

.hero-horizon-line {
  position: absolute;
  left: 50%;
  bottom: -60%;
  transform: translateX(-50%);
  width: 170%;
  max-width: 1600px;
  aspect-ratio: 2.2 / 1;
  border-radius: 50%;
  border-top: 2px solid rgba(219, 234, 254, 0.9);
  box-shadow:
    0 -3px 16px rgba(147, 197, 253, 0.85),
    0 -24px 70px rgba(96, 165, 250, 0.5),
    0 -60px 160px rgba(59, 130, 246, 0.3),
    0 -130px 320px rgba(29, 78, 216, 0.16);
  z-index: 2;
  pointer-events: none;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 78% 15%, rgba(96, 165, 250, 0.22) 0%, transparent 55%),
                    radial-gradient(circle at 15% 75%, rgba(59, 130, 246, 0.14) 0%, transparent 60%);
  pointer-events: none;
}

/* منحنى الأفق المتوهج - العنصر المميز المستوحى من الريفرنس، بتدرج ناعم بلا حواف حادة */
.hero-section::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -40px;
  transform: translateX(-50%);
  width: 80%;
  max-width: 900px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center,
    rgba(147, 197, 253, 0.6) 0%,
    rgba(96, 165, 250, 0.4) 25%,
    rgba(59, 130, 246, 0.22) 45%,
    rgba(59, 130, 246, 0.08) 65%,
    transparent 78%
  );
  pointer-events: none;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 780px;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
  position: relative;
  z-index: 3;
}

.hero-badge-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--glass-fill-strong);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--blue-border);
  padding: 0.4rem 1.1rem;
  border-radius: var(--radius-pill);
  color: var(--blue-glow);
  font-size: 0.748rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  box-shadow: var(--inner-glass-highlight);
}

.hero-title {
  font-size: clamp(1.232rem, 3.4vw, 1.892rem);
  font-weight: 900;
  line-height: 1.28;
  color: #FFFFFF;
  margin-bottom: 1.1rem;
  letter-spacing: -0.02em;
}

.hero-title .gold-text {
  background: linear-gradient(90deg,
    rgba(255, 255, 255, 0.35) 0%,
    #FFFFFF 18%,
    #FFFFFF 82%,
    rgba(255, 255, 255, 0.35) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #FFFFFF;
  text-shadow: 0 0 30px rgba(255, 255, 255, 0.25);
}

.hero-desc {
  font-size: clamp(0.774rem, 1.6vw, 0.88rem);
  line-height: 1.8;
  color: #CBD5E1;
  margin-bottom: 1.75rem;
  max-width: 600px;
}

.hero-meta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 0.9rem 1.1rem;
  background: var(--glass-fill);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  box-shadow: var(--inner-glass-highlight);
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.792rem;
  color: #E2E8F0;
}

.meta-icon {
  color: var(--blue-glow);
  font-size: 0.968rem;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* صورة قسم Hero */
.hero-visual-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-modal), 0 0 60px rgba(59, 130, 246, 0.15);
  border: 1px solid var(--glass-border);
  z-index: 2;
}

.hero-visual-img {
  width: 100%;
  height: 220px;
  max-height: 26vw;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-visual-card:hover .hero-visual-img {
  transform: scale(1.03);
}

.hero-visual-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(13, 22, 40, 0.95) 0%, rgba(13, 22, 40, 0.4) 60%, transparent 100%);
  padding: 1.25rem;
  color: #FFFFFF;
}

.hero-visual-caption {
  font-size: 0.774rem;
  font-weight: 700;
  color: var(--blue-glow);
  margin-bottom: 0.2rem;
}

.hero-visual-sub {
  font-size: 0.686rem;
  color: #CBD5E1;
}

/* ==========================================================================
   شريط العداد التنازلي والمؤشرات (Countdown & Stats Bar)
   ========================================================================== */
.stats-strip {
  background: var(--glass-fill-strong);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-lg), var(--inner-glass-highlight);
  margin-top: 1.5rem;
  position: relative;
  z-index: 10;
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 1.5rem;
  align-items: center;
}

.countdown-box {
  border-left: 1px solid var(--glass-border);
  padding-left: 1.25rem;
}

.countdown-label {
  font-size: 0.722rem;
  font-weight: 700;
  color: #F1F5F9;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.countdown-timer-units {
  display: flex;
  flex-direction: row-reverse;
  gap: 0.5rem;
}

.time-unit {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.24) 0%, rgba(96, 165, 250, 0.18) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #FFFFFF;
  padding: 0.35rem 0.55rem;
  border-radius: var(--radius-sm);
  text-align: center;
  min-width: 44px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.time-val {
  font-size: 1.012rem;
  font-weight: 800;
  line-height: 1;
  color: #FFFFFF;
  font-variant-numeric: tabular-nums;
}

.time-txt {
  font-size: 0.572rem;
  color: #94A3B8;
  margin-top: 2px;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 1.628rem;
  font-weight: 900;
  color: #F1F5F9;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.stat-number .accent {
  color: var(--blue-glow);
}

.stat-label {
  font-size: 0.722rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* ==========================================================================
   أقسام المحتوى والعناوين (Sections)
   ========================================================================== */
.section {
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.section-alt {
  background-color: rgba(8, 11, 21, 0.32);
}

.section-dark {
  background-color: rgba(10, 15, 30, 0.4);
  color: #FFFFFF;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto clamp(2rem, 4vw, 3.5rem);
}

.section-kicker {
  display: inline-block;
  font-size: 0.748rem;
  font-weight: 800;
  color: var(--blue-glow);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}

.section-title {
  font-size: clamp(1.1rem, 2.8vw, 1.496rem);
  font-weight: 800;
  color: #F1F5F9;
  line-height: 1.3;
  margin-bottom: 0.85rem;
}

.section-dark .section-title {
  color: #FFFFFF;
}

.section-desc {
  font-size: clamp(0.81rem, 2vw, 0.924rem);
  color: var(--text-muted);
  line-height: 1.8;
}

.section-dark .section-desc {
  color: #CBD5E1;
}

/* ==========================================================================
   بطاقات المحاور الستة الرئيسية (Core Pillars)
   ========================================================================== */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.75rem;
}

.pillars-grid-single {
  grid-template-columns: minmax(300px, 480px);
  justify-content: center;
}

.pillar-card {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.05) 40%, rgba(255, 255, 255, 0.02) 100%);
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 0 40px rgba(255, 255, 255, 0.03);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

/* توهج نيون أسفل البطاقة فقط - أزرق وذهبي، محصور بالكامل داخل حدود البطاقة */
.pillar-card::after {
  content: '';
  position: absolute;
  left: 5%;
  right: 5%;
  bottom: 0;
  height: 45%;
  background: radial-gradient(ellipse at 30% 100%, rgba(59, 130, 246, 0.5) 0%, transparent 70%),
              radial-gradient(ellipse at 75% 100%, rgba(176, 141, 87, 0.32) 0%, transparent 65%);
  filter: blur(20px);
  pointer-events: none;
  z-index: 0;
  transition: var(--transition);
}

.pillar-card:hover::after {
  height: 55%;
  filter: blur(24px);
}

.pillar-header-group,
.pillar-desc,
.pillar-features,
.pillar-actions {
  position: relative;
  z-index: 1;
}

.pillar-card:hover {
  transform: translateY(-5px);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.07) 40%, rgba(255, 255, 255, 0.03) 100%);
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    0 0 50px rgba(59, 130, 246, 0.2);
  border-color: rgba(255, 255, 255, 0.35);
}

.pillar-header-group {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.1rem;
}

.pillar-icon-box {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--blue-subtle);
  border: 1px solid var(--blue-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.32rem;
  color: var(--blue-glow);
  flex-shrink: 0;
}

.pillar-title {
  font-size: 0.968rem;
  font-weight: 800;
  color: #F1F5F9;
  line-height: 1.3;
}

.pillar-badge {
  font-size: 0.634rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  display: inline-block;
  margin-top: 3px;
}

.pillar-desc {
  font-size: 0.81rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.pillar-features {
  list-style: none;
  margin-bottom: 1.5rem;
  border-top: 1px dashed var(--glass-border);
  padding-top: 0.85rem;
}

.pillar-features li {
  font-size: 0.748rem;
  color: var(--text-main);
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pillar-features li::before {
  content: '✓';
  color: var(--blue-glow);
  font-weight: 900;
}

.pillar-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  align-items: stretch;
  width: 100%;
  margin-top: auto;
}

.pillar-actions .btn {
  flex: 1 1 0%;
  min-width: 0;
  padding: 0.45rem 0.4rem;
  font-size: 0.76rem;
  text-align: center;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  letter-spacing: -0.01em;
}

/* ==========================================================================
   معرض الفنون بالذكاء الاصطناعي (AI Art Gallery)
   ========================================================================== */
.art-themes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.75rem;
  margin-bottom: 2.5rem;
}

.art-themes-grid-single {
  grid-template-columns: minmax(290px, 480px);
  justify-content: center;
}

.art-card {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.13) 0%, rgba(255, 255, 255, 0.04) 45%, rgba(255, 255, 255, 0.02) 100%);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: var(--transition);
  position: relative;
}

.art-card::after {
  content: '';
  position: absolute;
  left: 4%;
  right: 4%;
  bottom: 0;
  height: 40%;
  background: radial-gradient(ellipse at 25% 100%, rgba(59, 130, 246, 0.45) 0%, transparent 70%),
              radial-gradient(ellipse at 80% 100%, rgba(176, 141, 87, 0.3) 0%, transparent 65%);
  filter: blur(18px);
  pointer-events: none;
  z-index: 0;
}

.art-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 0 40px rgba(59, 130, 246, 0.18);
  border-color: rgba(255, 255, 255, 0.32);
}

.art-img-wrap {
  position: relative;
  height: clamp(200px, 25vw, 250px);
  overflow: hidden;
}

.art-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.art-card:hover .art-img {
  transform: scale(1.06);
}

.art-theme-tag {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  background: rgba(10, 15, 30, 0.75);
  backdrop-filter: blur(4px);
  color: var(--blue-glow);
  font-size: 0.66rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--blue-border);
}

.art-body {
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  position: relative;
  z-index: 1;
}

.art-title {
  font-size: 1.038rem;
  font-weight: 800;
  color: #F1F5F9;
  margin-bottom: 0.5rem;
}

.art-desc {
  font-size: 0.774rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.1rem;
}

/* ==========================================================================
   الأجندة والبرنامج الزمني التفاعلي (Interactive Agenda)
   ========================================================================== */
.agenda-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
  background: var(--glass-fill);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm), var(--inner-glass-highlight);
  border: 1px solid var(--glass-border);
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-btn {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.05) 100%);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #F1F5F9;
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 0.748rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  min-height: 40px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.filter-btn:hover, .filter-btn.active {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.32) 0%, rgba(96, 165, 250, 0.25) 100%);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.55);
}

.agenda-timeline {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: relative;
  padding-right: 2.25rem;
}

/* الخط الأساسي الخافت للـ Timeline */
.agenda-timeline::before {
  content: '';
  position: absolute;
  top: 6px;
  bottom: 6px;
  right: 5px;
  width: 2px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.06) 100%);
  border-radius: 2px;
}

/* الخط المضيء الذي يمتلئ تدريجياً أثناء التمرير */
.agenda-timeline::after {
  content: '';
  position: absolute;
  top: 6px;
  right: 5px;
  width: 2px;
  height: var(--timeline-fill, 0%);
  max-height: calc(100% - 12px);
  background: linear-gradient(180deg, var(--blue-glow) 0%, var(--blue) 70%, var(--blue-deep) 100%);
  border-radius: 2px;
  box-shadow: 0 0 12px 2px rgba(96, 165, 250, 0.75), 0 0 28px 6px rgba(59, 130, 246, 0.4);
  transition: height 0.15s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.agenda-card {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.04) 45%, rgba(255, 255, 255, 0.02) 100%);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.75rem;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1.75rem;
  align-items: center;
  transition: background 0.5s ease, border-color 0.5s ease, box-shadow 0.5s ease, transform 0.3s ease, opacity 0.6s ease-out;
  position: relative;
  overflow: hidden;
}

/* توهج كامل للبطاقة عند وصول التمرير إليها */
.agenda-card.timeline-lit {
  background: linear-gradient(160deg, rgba(96, 165, 250, 0.22) 0%, rgba(59, 130, 246, 0.09) 45%, rgba(255, 255, 255, 0.03) 100%);
  border-color: rgba(148, 197, 255, 0.55);
  box-shadow:
    0 10px 32px rgba(0, 0, 0, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    0 0 30px rgba(59, 130, 246, 0.28),
    0 0 60px rgba(59, 130, 246, 0.12);
}

/* نقطة الموعد على خط الـ Timeline */
.agenda-card::before {
  content: '';
  position: absolute;
  top: 50%;
  right: -2.25rem;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary-darkest);
  border: 2px solid rgba(148, 197, 255, 0.55);
  z-index: 2;
  transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.agenda-card.timeline-lit::before {
  background: var(--blue-glow);
  border-color: var(--blue-glow);
  box-shadow: 0 0 10px 3px rgba(96, 165, 250, 0.85), 0 0 22px 8px rgba(59, 130, 246, 0.45);
}

.agenda-card::after {
  content: '';
  position: absolute;
  left: 2%;
  right: 2%;
  bottom: 0;
  height: 70%;
  background: radial-gradient(ellipse at 20% 100%, rgba(59, 130, 246, 0.32) 0%, transparent 65%),
              radial-gradient(ellipse at 85% 100%, rgba(176, 141, 87, 0.22) 0%, transparent 60%);
  filter: blur(18px);
  pointer-events: none;
  z-index: 0;
}

.agenda-card:hover {
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.38), 0 0 34px rgba(59, 130, 246, 0.16);
  border-color: rgba(255, 255, 255, 0.32);
  transform: translateX(-3px);
}

.agenda-time-col, .agenda-title, .agenda-speaker, .agenda-summary, .track-tag {
  position: relative;
  z-index: 1;
}

.agenda-time-col {
  border-left: 2px solid var(--blue-border);
  padding-left: 1rem;
  transition: border-color 0.5s ease;
}

.agenda-card.timeline-lit .agenda-time-col {
  border-left-color: rgba(148, 197, 255, 0.7);
}

.agenda-time {
  font-size: 0.968rem;
  font-weight: 800;
  color: var(--blue-glow);
  font-variant-numeric: tabular-nums;
  transition: color 0.5s ease;
}

.agenda-card.timeline-lit .agenda-time {
  color: #EFF6FF;
}

.agenda-hall {
  font-size: 0.686rem;
  color: var(--text-muted);
  margin-top: 2px;
  transition: color 0.5s ease;
}

.agenda-card.timeline-lit .agenda-hall {
  color: #DBEAFE;
}

.agenda-title {
  font-size: 1.012rem;
  font-weight: 800;
  color: #F1F5F9;
  margin-bottom: 0.35rem;
  transition: color 0.5s ease;
}

.agenda-card.timeline-lit .agenda-title {
  color: #FFFFFF;
}

.agenda-speaker {
  font-size: 0.748rem;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.agenda-summary {
  font-size: 0.748rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.track-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.66rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.tag-general { background: rgba(56, 189, 248, 0.15); color: #7DD3FC; }
.tag-codathon { background: rgba(52, 211, 153, 0.15); color: #6EE7B7; }
.tag-art { background: rgba(244, 114, 182, 0.15); color: #F9A8D4; }
.tag-roundtable { background: rgba(251, 191, 36, 0.15); color: #FCD34D; }
.tag-samsung { background: rgba(167, 139, 250, 0.15); color: #C4B5FD; }
.tag-robotics { background: rgba(251, 146, 60, 0.15); color: #FDBA74; }

/* ==========================================================================
   بوابة التسجيل الإلكتروني واستمارات Google Forms
   ========================================================================== */
.register-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.5rem;
}

.reg-card {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.13) 0%, rgba(255, 255, 255, 0.04) 45%, rgba(255, 255, 255, 0.02) 100%);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.reg-card::after {
  content: '';
  position: absolute;
  left: 4%;
  right: 4%;
  bottom: 0;
  height: 42%;
  background: radial-gradient(ellipse at 30% 100%, rgba(59, 130, 246, 0.45) 0%, transparent 70%),
              radial-gradient(ellipse at 75% 100%, rgba(176, 141, 87, 0.3) 0%, transparent 65%);
  filter: blur(18px);
  pointer-events: none;
  z-index: 0;
}

.reg-card:hover {
  border-color: rgba(255, 255, 255, 0.32);
  transform: translateY(-4px);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 0 40px rgba(59, 130, 246, 0.18);
}

.reg-card-head, .reg-card p, .reg-card > .btn {
  position: relative;
  z-index: 1;
}

.reg-card-head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}

.reg-icon {
  font-size: 1.628rem;
}

.reg-card h3 {
  font-size: 1.038rem;
  font-weight: 800;
  color: #F1F5F9;
}

.reg-card p {
  font-size: 0.774rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

/* ==========================================================================
   أداة منشئ بطاقات الحضور الرقمية (Badge Generator Canvas)
   ========================================================================== */
.badge-generator-box {
  background: var(--glass-fill-strong);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  color: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid var(--blue-border);
  box-shadow: var(--shadow-lg), var(--inner-glass-highlight);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: center;
}

.badge-form-group {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.form-field label {
  display: block;
  font-size: 0.774rem;
  font-weight: 700;
  color: var(--blue-glow);
  margin-bottom: 0.35rem;
}

.form-field input, .form-field select {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  font-family: inherit;
  font-size: 16px; /* يمنع التكبير التلقائي على هواتف iOS */
  min-height: 46px;
}

.form-field input:focus, .form-field select:focus {
  outline: none;
  border-color: var(--blue-glow);
  background: rgba(255, 255, 255, 0.12);
}

.badge-preview-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  width: 100%;
}

#badgeCanvas {
  width: 100%;
  max-width: 380px;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
  border: 1px solid var(--blue-border);
  display: block;
}

/* ==========================================================================
   النوافذ المنبثقة (Modals & Google Forms Container)
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 5, 10, 0.85);
  backdrop-filter: blur(6px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  padding: clamp(0.5rem, 2vw, 1.5rem);
}

.modal-content-box {
  background: rgba(10, 15, 30, 0.92);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 860px;
  height: 88vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-modal);
  border: 1px solid var(--blue-border);
  animation: modalPop 0.25s ease-out;
}

@keyframes modalPop {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.modal-bar {
  background: rgba(255, 255, 255, 0.04);
  color: #FFFFFF;
  padding: 0.85rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--glass-border);
}

.modal-title {
  font-size: clamp(0.836rem, 2vw, 1.012rem);
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: #CBD5E1;
  font-size: 1.408rem;
  cursor: pointer;
  line-height: 1;
  transition: var(--transition);
  padding: 4px 8px;
}

.modal-close-btn:hover {
  color: var(--blue-glow);
}

.modal-iframe-frame {
  flex-grow: 1;
  width: 100%;
  border: none;
  background: #FFFFFF;
}

/* ==========================================================================
   التذييل الحكومي الرسمي (Footer)
   ========================================================================== */
.gov-footer {
  background: linear-gradient(180deg, rgba(20, 28, 38, 0.25) 0%, rgba(15, 22, 30, 0.4) 100%);
  color: #B8C4CC;
  padding: clamp(3rem, 6vw, 4.5rem) 0 2rem;
  border-top: 1px solid var(--glass-border);
  position: relative;
}

.gov-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(600px, 80%);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--blue-glow), transparent);
  box-shadow: 0 0 20px rgba(96, 165, 250, 0.6);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(2, 1fr);
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-brand-desc {
  font-size: 0.792rem;
  line-height: 1.8;
  color: #94A3B8;
  margin-top: 0.85rem;
}

.footer-heading {
  font-size: 0.88rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 1.1rem;
  position: relative;
  padding-bottom: 0.4rem;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 28px;
  height: 2px;
  background-color: var(--blue-glow);
  box-shadow: 0 0 8px var(--blue-glow);
}

.footer-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer-nav-list a {
  color: #94A3B8;
  text-decoration: none;
  font-size: 0.774rem;
  transition: var(--transition);
  padding: 2px 0;
}

.footer-nav-list a:hover {
  color: var(--blue-glow);
  padding-right: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.722rem;
}

/* ==========================================================================
   التوافق التام مع الشاشات والأجهزة اللوحية والهواتف (Responsive Breakpoints)
   ========================================================================== */

/* شاشات اللابتوب والشاشات المتوسطة (1025px - 1260px) */
@media (max-width: 1260px) {
  .nav-menu {
    gap: 0.4rem;
    margin: 0 0.25rem;
  }

  .nav-link {
    font-size: 0.722rem;
    padding: 0.35rem 0.4rem;
  }

  .brand-title {
    font-size: 0.924rem;
  }

  .brand-sub {
    font-size: 0.616rem;
  }

  .brand-logo-img {
    height: 46px;
  }

  .nav-actions .btn {
    padding: 0.4rem 0.85rem;
    font-size: 0.722rem;
  }
}

/* أجهزة التابلت والشاشات المتوسطة (<= 1024px) */
@media (max-width: 1024px) {
  .navbar-inner {
    height: 74px;
  }

  .nav-menu {
    display: none;
  }

  .mobile-toggle-btn {
    display: flex;
  }

  .brand-identity {
    gap: 0.75rem;
  }

  .brand-logo-img {
    height: 46px;
  }

  .brand-title {
    font-size: 0.924rem;
  }

  .brand-sub {
    font-size: 0.634rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }
  
  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-meta-strip {
    justify-content: center;
  }

  .hero-buttons {
    justify-content: center;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }

  .countdown-box {
    grid-column: span 2;
    border-left: none;
    border-bottom: 2px solid var(--gold-border);
    padding-left: 0;
    padding-bottom: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .agenda-card {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .agenda-time-col {
    border-left: none;
    border-bottom: 2px solid var(--gold-border);
    padding-left: 0;
    padding-bottom: 0.6rem;
  }

  .badge-generator-box {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

/* هواتف المحمول (<= 768px) */
@media (max-width: 768px) {
  .gov-header {
    font-size: 0.669rem;
  }

  .gov-header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }

  .gov-links-quick {
    width: 100%;
    justify-content: space-between;
  }

  .navbar-inner {
    height: 68px;
  }

  .nav-actions .btn {
    display: none; /* يتم نقله داخل قائمة الهاتف الجانبية */
  }

  .brand-logo-img {
    height: 42px;
  }

  .brand-title {
    font-size: 0.862rem;
  }

  .brand-sub {
    font-size: 0.598rem;
  }

  .hero-section {
    padding: 2.5rem 0 3.5rem;
  }

  .hero-title {
    font-size: 1.628rem;
  }

  .hero-meta-strip {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .stats-strip {
    margin-top: -1.25rem;
    padding: 1rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .countdown-box {
    grid-column: span 1;
  }

  .countdown-timer-units {
    justify-content: center;
    width: 100%;
  }

  .pillars-grid {
    grid-template-columns: 1fr;
  }

  .pillar-actions {
    flex-direction: row;
    gap: 0.45rem;
  }

  .agenda-controls {
    flex-direction: column;
    align-items: stretch;
  }

  /* سحب أفقي ناعم لأزرار الفلترة على الهواتف */
  .filter-group {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .filter-group::-webkit-scrollbar {
    display: none;
  }

  .filter-btn {
    flex-shrink: 0;
  }

  .agenda-controls .btn {
    width: 100%;
  }

  .register-cards-grid {
    grid-template-columns: 1fr;
  }

  .reg-card .btn {
    width: 100%;
  }

  /* النوافذ المنبثقة بحجم الشاشة الكامل على الهواتف */
  .modal-backdrop {
    padding: 0;
  }

  .modal-content-box {
    height: 100%;
    max-height: 100vh;
    border-radius: 0;
    border: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* هواتف الشاشات الصغيرة (<= 440px) */
@media (max-width: 440px) {
  .navbar-inner {
    height: 62px;
  }

  .brand-identity {
    gap: 0.5rem;
  }

  .brand-logo-img {
    height: 36px;
  }

  .brand-title {
    font-size: 0.757rem;
  }

  .brand-sub {
    font-size: 0.546rem;
  }

  .mobile-toggle-btn {
    padding: 6px 10px;
    min-height: 38px;
    min-width: 38px;
    font-size: 1.056rem;
  }
}

/* هواتف الشاشات الصغيرة جداً (<= 360px) */
@media (max-width: 360px) {
  .brand-title {
    font-size: 0.704rem;
  }

  .brand-sub {
    display: none;
  }

  .brand-logo-img {
    height: 32px;
  }

  .time-unit {
    min-width: 38px;
    padding: 0.3rem 0.4rem;
  }

  .time-val {
    font-size: 0.88rem;
  }
}

/* ==========================================================================
   انيميشن ظهور العناصر عند التمرير (Scroll Reveal)
   ========================================================================== */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.65, 0.3, 1), transform 0.7s cubic-bezier(0.2, 0.65, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ==========================================================================
   زر تبديل اللغة (Language Switcher)
   ========================================================================== */
.lang-switch-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.95rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #F1F5F9;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
  white-space: nowrap;
}

.lang-switch-btn:hover {
  background: rgba(96, 165, 250, 0.22);
  border-color: var(--blue-glow);
  color: #FFFFFF;
  box-shadow: 0 0 14px rgba(59, 130, 246, 0.4);
  transform: translateY(-1px);
}

.lang-switch-btn svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.lang-switch-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 0.75rem;
  transition: var(--transition);
}

.lang-switch-link:hover {
  background: rgba(96, 165, 250, 0.2);
  border-color: var(--blue-glow);
}

.lang-switch-link svg {
  width: 16px;
  height: 16px;
}

/* ==========================================================================
   قواعد الدعم الكامل للغة الإنجليزية والاتجاه من اليسار إلى اليمين (LTR / English)
   ========================================================================== */
html[dir="ltr"] body,
html[lang="en"] body {
  direction: ltr;
  text-align: left;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

html[dir="ltr"] .mobile-nav-drawer,
html[lang="en"] .mobile-nav-drawer {
  left: auto;
  right: 0;
  transform: translateX(100%);
  border-right: none;
  border-left: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow:
    -10px 0 40px rgba(0, 0, 0, 0.35),
    inset 1px 0 0 rgba(255, 255, 255, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

html[dir="ltr"] .mobile-nav-drawer.is-open,
html[lang="en"] .mobile-nav-drawer.is-open {
  transform: translateX(0);
}

html[dir="ltr"] .mobile-drawer-link:hover,
html[dir="ltr"] .mobile-drawer-link.active {
  border-right: none;
  border-left: 3px solid var(--blue-glow);
}

html[dir="ltr"] .countdown-timer-units {
  flex-direction: row;
}

html[dir="ltr"] .countdown-box {
  border-left: none;
  border-right: 1px solid var(--glass-border);
  padding-left: 0;
  padding-right: 1.25rem;
}

html[dir="ltr"] .agenda-timeline {
  padding-right: 0;
  padding-left: 2.25rem;
}

html[dir="ltr"] .agenda-timeline::before,
html[dir="ltr"] .agenda-timeline::after {
  right: auto;
  left: 5px;
}

html[dir="ltr"] .agenda-card::before {
  right: auto;
  left: -2.25rem;
}

html[dir="ltr"] .agenda-time-col {
  border-left: none;
  border-right: 2px solid var(--blue-border);
  padding-left: 0;
  padding-right: 1rem;
}

html[dir="ltr"] .agenda-card.timeline-lit .agenda-time-col {
  border-right-color: rgba(148, 197, 255, 0.7);
  border-left-color: transparent;
}

html[dir="ltr"] .agenda-card:hover {
  transform: translateX(3px);
}

@media (max-width: 1024px) {
  html[dir="ltr"] .countdown-box {
    border-right: none;
    border-bottom: 2px solid var(--gold-border);
    padding-right: 0;
  }

  html[dir="ltr"] .agenda-time-col {
    border-right: none;
    border-bottom: 2px solid var(--gold-border);
    padding-right: 0;
  }
}

