/* ═══════════ CUSTOM FONTS ═══════════ */
/* 1. تعريف الخط العادي (Regular) */
@font-face {
  font-family: 'Thmanyah';
  src: url('assets/fonts/thmanyahsans-Regular.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
}

/* 2. تعريف الخط الغليظ (Bold) */
@font-face {
  font-family: 'Thmanyah';
  src: url('assets/fonts/thmanyahsans-Bold.woff2') format('woff2');
  font-weight: bold;
  font-style: normal;
}

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

:root {
  --gold: #C9A84C;
  --gold-light: #E8D48B;
  --gold-dark: #8B6914;
  --navy: #0A1628;
  --navy-light: #0E1E38;
  --navy-mid: #162E54;
  --white: #FFFFFF;
  --text-light: #CBD5E1;
  --text-muted: #64748B;
  --glass-bg: rgba(10, 22, 40, 0.65);
  --glass-border: rgba(201, 168, 76, 0.2);
  --gold-glow: rgba(201, 168, 76, 0.35);
  --section-gap: 100px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Thmanyah', 'Cairo', sans-serif;
  background: var(--navy);
  color: var(--white);
  direction: rtl;
  overflow-x: hidden;
  line-height: 1.7;
}

.section-title,
.hero-main-title,
.header-name {
  font-family: 'Thmanyah', 'Amiri', serif;
}

/* ═══════════ HEADER ═══════════ */
.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1000;
  padding: 24px 48px;

  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;

  /* 👈 التعديل السحري: جعلنا الخط موجوداً مسبقاً بحجم 1px ولكنه شفاف تماماً (0) لمنع الومضة */
  border-bottom: 1px solid rgba(255, 255, 255, 0) !important;

  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* 👈 تأثير الزجاج الأبيض (White Frosted Glass) */
.site-header.scrolled {
  padding: 14px 48px;

  /* 1. خلفية بيضاء شفافة جداً (0.08) تعطي تأثير الجليد الأبيض */
  background: rgba(255, 255, 255, 0.08) !important;

  /* 2. زدنا في الضبابية (25px) باش الزجاج يبان سميك وفخم */
  backdrop-filter: blur(25px) !important;
  -webkit-backdrop-filter: blur(25px) !important;

  /* 3. لمعة بيضاء أقوى في الحافة التحتانية (0.15) باش تحدد شكل الزجاج */
  border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;

  /* 4. ظل ناعم باش القطعة البيضاء تبان طافية فوق الخلفية الغامقة */
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4) !important;
}

.header-name {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--white);
  background: none;
  -webkit-background-clip: initial;
  -webkit-text-fill-color: initial;
  letter-spacing: 0.5px;
}

/* Hamburger Dropdown Navigation */
.menu-container {
  position: relative;
}

.hamburger-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 18px;
  padding: 0;
  z-index: 1001;
}

.hamburger-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--white);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.hamburger-btn.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger-btn.active span:nth-child(2) {
  opacity: 0;
}

.hamburger-btn.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.dropdown-nav {
  position: absolute;
  top: calc(100% + 20px);
  left: 0;
  width: 250px;
  background: rgba(10, 22, 40, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transform: translateY(-20px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  z-index: 999;
}

.dropdown-nav.active {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.dropdown-nav a {
  color: var(--text-light);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 6px;
  transition: all 0.3s;
  border-right: 3px solid transparent;
}

.dropdown-nav a:hover {
  color: var(--gold);
  background: rgba(201, 168, 76, 0.1);
  border-right-color: var(--gold);
  padding-right: 18px;
}

/* ═══════════ HERO ═══════════ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  /* باش الصورة تلصق ديما في التحت */
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 100px 48px 0;
  background-image: url('assets/images/1.jfif');
  background-size: cover;

  /* 👈 حل مشكل الخلفية: هذا السطر يخلي العلم (جهة اليسار) ديما باين وما يتخباش أبدا */
  background-position: left center;

  border-bottom: none !important;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, transparent 60%, var(--navy) 100%),
    linear-gradient(135deg, rgba(10, 22, 40, 0.8) 0%, rgba(10, 22, 40, 0.85) 100%),
    radial-gradient(ellipse at 30% 50%, rgba(201, 168, 76, 0.15) 0%, transparent 60%);
  z-index: 1;
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0L60 30L30 60L0 30Z' fill='none' stroke='%23C9A84C' stroke-width='0.5'/%3E%3C/svg%3E");
  z-index: 1;
}

.hero-content {
  display: flex;
  align-items: center;
  /* 👈 يخلي الكتيبة متمركزة في الوسط عموديا */
  justify-content: space-between;
  width: 100%;
  max-width: 1400px;
  position: relative;
  z-index: 2;
}

/* 👈 تقسيم 50% للصورة (النصف الأيمن) */
.hero-image-wrapper {
  flex: 0 0 50%;
  max-width: 50%;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  position: relative;

  /* 🛠️ هنا تتحكم في مكان الصورة: */
  bottom: 80px;
  /* 👈 كبر الرقم (مثلا 30px) باش تطلع الصورة للفوق */
  right: 55px;
  /* 👈 دير رقم بالسالب (مثلا -40px) باش تديها لليسار، ورقم عادي باش تديها لليمين */
}

.hero-image-wrapper img {
  width: auto;
  max-width: 100%;
  height: 110vh;
  /* 👈 السر هنا: الصورة تدي 88% من طول الشاشة (كبيرة وفخمة بلا ما تفيض) */
  object-fit: contain;
  object-position: bottom center;
  /* تلصق في التحت */
  display: block;
  filter: drop-shadow(0 20px 60px rgba(0, 0, 0, 0.5));

  -webkit-mask-image: radial-gradient(ellipse 100% 100% at 50% 10%, black 60%, transparent 95%);
  mask-image: radial-gradient(ellipse 100% 100% at 50% 10%, black 60%, transparent 95%);

  animation: portraitReveal 6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  will-change: transform, opacity;
}

/* 👈 تقسيم 50% للكتيبة (النصف الأيسر) */
.hero-text {
  flex: 0 0 50%;
  max-width: 50%;
  text-align: right;
  padding-bottom: 0;
  padding-right: 40px;
  position: relative;

  /* 🛠️ هنا تتحكم في مكان الكتيبة: */
  bottom: 100px;
  /* 👈 كبر الرقم (مثلا 50px) باش تطلع الكتيبة للفوق */
  right: 50px;
  /* 👈 كبر الرقم (مثلا 30px) باش تجبد الكتيبة لليمين */
}

@keyframes portraitReveal {
  0% {
    opacity: 0;
    transform: translateY(50px) scale(0.96);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ═══════════ PREMIUM TYPOGRAPHY ANIMATIONS ═══════════ */
.hero-main-title {
  font-size: 3.2rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1.4;
  margin-bottom: 16px;
  overflow: hidden;
  /* 👈 هذا هو القناع لي يخلي الكتيبة تخرج من العدم */
}

/* حركة السطر الأول */
.hero-main-title .title-line-1 {
  display: block;
  opacity: 0;
  transform: translateY(100%);
  /* يبدأ هابط ومخفي تحت القناع */
  animation: titleMaskReveal 3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.2s;
  /* انطلاق سريع */
}

/* 👈 1. تلوين اسم الدكتور بتدرج ذهبي فخم يكسر البياض */
.hero-main-title .title-line-2 {
  font-size: 3.2rem;
  font-weight: 900;
  margin-top: 4px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
  /* 👈 هاهي الحركة رجعناها */
  opacity: 0;
  transform: translateY(100%);
  animation: titleMaskReveal 3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.3s;
}

/* كود الحركة الخاص بالعناوين */
@keyframes titleMaskReveal {
  0% {
    opacity: 0;
    transform: translateY(100%);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 👈 2. تلوين العنوان الفرعي بالذهبي الفاتح */
.hero-main-subtitle .sub-line-1,
.hero-main-subtitle .sub-line-2 {
  color: var(--gold-light) !important;
  display: block;
  opacity: 0;
  transform: translateY(20px);
  animation: subtitleFadeUp 3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-main-subtitle .sub-line-1 {
  animation-delay: 0.4s;
}

.hero-main-subtitle .sub-line-2 {
  animation-delay: 0.5s;
}

@keyframes subtitleFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


.hero-mp-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 24px;
}

.hero-text .tagline {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 500px;
  margin-bottom: 32px;
}

/* زر النبذة في القسم الرئيسي - معدل */
/* زر النبذة في القسم الرئيسي - معدل */
.hero-bio-btn-wrapper {
  margin-top: 32px;
  text-align: right;
  opacity: 0;
  transform: translateY(20px);
  animation: subtitleFadeUp 3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.7s;
}

.hero-bio-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
  border: none;
  color: var(--navy);
  padding: 14px 36px;
  border-radius: 30px;
  font-family: inherit;
  font-size: 1.15rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(201, 168, 76, 0.3);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.hero-bio-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(201, 168, 76, 0.5);
}

/* ═══════════ SECTION COMMON ═══════════ */
.section {
  padding: var(--section-gap) 48px;
  position: relative;
}

.section-title {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--white);
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 40px;
}

.section-divider {
  width: 80px;
  height: 3px;
  margin: 0 auto 24px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* ═══════════ REVEAL ON SCROLL (SLIDE UP ANIMATION) ═══════════ */
/* 1. حالة البداية: العنصر مخفي وهابط لتحت بـ 50 بكسل */
.reveal {
  opacity: 0;
  transform: translateY(70px);
  transition: all 1.7s cubic-bezier(0.25, 0.8, 0.25, 1);
  will-change: transform, opacity;
}

/* 2. حالة الظهور: كي يوصل ليه الزائر، يطلع لبلاصتو ويبان */
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════ VIDEO SUMMARY ═══════════ */
#summary {
  padding-top: 0 !important;
}

.video-section {
  background: linear-gradient(to bottom, var(--navy) 0%, var(--navy-light) 100%);
  padding-top: 0px;
  padding-bottom: 60px;

  /* 👈 هذا السطر يقتل أي خط أو حافة صفراء من الفوق نهائياً */
  border-top: none !important;
  box-shadow: none !important;
}

.video-container {
  max-width: 900px;
  margin: 0 auto 40px auto;
  /* 👈 الفراغ العلوي رجعناه 0 في بلاصة 20px */
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 16/9;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), inset 0 1px 2px rgba(255, 255, 255, 0.2);
}

.video-container.reveal {
  opacity: 0;
  transform: translateY(25px) scale(0.96);
  /* 👈 نقصنا مسافة الصعود لـ 25px في بلاصة 60px عشان يستقر الفوق بسرعة وبقرب */
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  transition:
    transform 1.4s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 1.4s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 1.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
  will-change: transform, opacity, box-shadow;
}

/* 2. الحالة السحرية: أول ما يلحق الزائر للفيديو (يشتغل مع كلاس active أو visible لي يضيفه السيستم) */
.video-container.reveal.active,
.video-container.reveal.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  /* يرجع لحجمه ومكانه الطبيعي بسلاسة */

  /* يظهر الظل الـ 3D الفخم كامل وعميق كأنه المقطع طاف فوق الشاشة */
  box-shadow:
    0 35px 80px rgba(0, 0, 0, 0.5),
    inset 0 1px 2px rgba(255, 255, 255, 0.2) !important;
}

.video-container img,
.video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ═══════════ 3D GLASS PLAY BUTTON ═══════════ */
.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 85px;
  height: 85px;
  border-radius: 50%;

  /* 👈 تأثير الزجاج الأبيض المضبب (Frosted Glass) في بلاصة اللون الأصفر */
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  /* 👈 إطار زجاجي 3D كأنه عدسة كاميرا */
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-top: 1px solid rgba(255, 255, 255, 0.6);

  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;

  /* 👈 ظل خارجي ناعم ولمعة داخلية قوية */
  box-shadow:
    0 15px 35px rgba(0, 0, 0, 0.3),
    inset 0 2px 6px rgba(255, 255, 255, 0.4);

  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* حركة الماوس (Hover) - الزر يضوي كثر ويكبر شويا */
.video-play-btn:hover {
  transform: translate(-50%, -50%) scale(1.1);
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.4),
    inset 0 2px 10px rgba(255, 255, 255, 0.5);
}

/* 👈 تأثير الضغطة (Click) - يصغار كأنه زر حقيقي */
.video-play-btn:active {
  transform: translate(-50%, -50%) scale(0.95);
  background: rgba(255, 255, 255, 0.1);
}

.video-play-btn svg {
  width: 32px;
  height: 32px;
  fill: var(--white);
  margin-right: -4px;
  /* لضبط توسيط أيقونة التشغيل بصرياً */
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
  /* ظل خفيف للمثلث باش يبان واضح */
}

/* ═══════════ STATS COUNTER (SEAMLESS 3D GLASS) ═══════════ */
.stats-strip {
  /* 👈 السر الأول: يكمل تدرج لون الفيديو تماماً ويذوب ببطء للأسفل بلا ما يكون غامق بزاف */
  background: linear-gradient(to bottom, var(--navy-light) 0%, var(--navy) 100%) !important;

  /* 👈 السر الثاني: قضينا على الحدود القاطعة والخطوط تماماً باش تذوب الأقسام في بعضها */
  border-top: none !important;
  border-bottom: none !important;

  padding-top: 30px;
  padding-bottom: 15px;
}

/* 1. الكبسولة الزجاجية العائمة (3D Glass Capsule) */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 1150px;
  margin: 0 auto;

  /* زجاج شفاف فخم وخفيف مريح جداً للعين */
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  /* لمعة علوية ناعمة تعطي حجم للزجاج */
  border-radius: 24px;

  /* ظل خارجي عميق وناعم للطفو */
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), inset 0 1px 2px rgba(255, 255, 255, 0.15);
  overflow: hidden;
}

/* 2. بطاقات الأرقام من الداخل */
.stat-card {
  text-align: center;
  padding: 40px 20px;
  position: relative;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  cursor: default;
}

/* الحركة التفاعلية عند تمرير الماوس */
.stat-card:hover {
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-5px);
}

/* الخطوط الزجاجية الشفافة الفاصلة بين الأرقام */
.stat-card:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 0;
  top: 25%;
  height: 50%;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.15), transparent);
}

/* 3. الأرقام الذهبية المضيئة */
.stat-number {
  font-size: 3.8rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 10px 15px rgba(201, 168, 76, 0.35));
  display: inline-block;
  line-height: 1.2;
}

/* 4. عناوين الأرقام */
.stat-label {
  color: #E2E8F0;
  font-size: 1.1rem;
  margin-top: 8px;
  font-weight: 700;
}


/* ═══════════ TABS SYSTEM (3D GLASS PILLS) ═══════════ */
.tabs-header {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

/* 1. الكبسولة الزجاجية في حالتها العادية (قبل الضغط) */
.tab-btn {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  /* لمعة زجاجية من الفوق */

  color: var(--text-light);
  padding: 12px 32px;
  border-radius: 30px;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* حركة الماوس الفوقية (Hover) */
.tab-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--white);
  transform: translateY(-3px);
}

/* 2. حالة الزر النشط (المضغوط) - يتحول لذهبي زجاجي يلمع */
.tab-btn.active {
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.85) 0%, rgba(139, 105, 20, 0.85) 100%);
  color: var(--navy);
  font-weight: 800;
  border-color: rgba(255, 255, 255, 0.6);

  /* ظل خارجي ذهبي + لمعة داخلية بيضاء قوية */
  box-shadow: 0 12px 30px rgba(201, 168, 76, 0.4), inset 0 2px 6px rgba(255, 255, 255, 0.6);
  transform: translateY(0) scale(1.05);
  /* يكبر شويا باش يبان هو لي راه خدام */
}

/* 3. حركة ظهور المحتوى (الأسئلة أو القوانين) عند التبديل */
.tab-content {
  display: none;
  opacity: 0;
  transform: translateY(20px);
  /* يبدأ هابط شويا */
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.tab-content.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
  /* يطلع لبلاصتو بنعومة */
}



/* ═══════════ CAROUSEL COMMON & COVERFLOW ═══════════ */
.carousel-wrapper {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  overflow: hidden;
}

.coverflow-carousel-wrapper {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  overflow: hidden;
  padding: 40px 0;
}

/* 👈 هاهو الكود لي طارلك بالغلط (هو لي يحكم في التوزيع الأفقي) */
.coverflow-track {
  display: flex;
  gap: 32px;
  align-items: center;
  transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
  width: max-content;
  padding: 20px 0;
}

/* 1. حالة كل البطاقات (صغيرة، مضببة، وممنوع الضغط عليها) */
.coverflow-track>div {
  transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
  opacity: 0.4 !important;
  transform: scale(0.85) !important;
  filter: blur(4px) !important;
  pointer-events: none !important;
  will-change: transform, opacity, filter;
}

/* 2. حالة البطاقة المركزية (كبيرة، صافية، وتلمع زجاجيا) */
.coverflow-track>div.active-card {
  opacity: 1 !important;
  transform: scale(1.15) !important;
  filter: blur(0) !important;
  z-index: 10 !important;
  pointer-events: auto !important;

  /* 👈 تأثير الزجاج 3D: إطار أبيض لامع من الفوق وخفيف من التحت */
  border-top: 1px solid rgba(255, 255, 255, 0.6) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-left: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-right: 1px solid rgba(255, 255, 255, 0.2) !important;

  /* 👈 توحيد الظل باش مايبانش مقطوع: ظل أسود للعمق + إشعاع ذهبي ناعم + لمعة زجاجية داخلية */
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.5),
    0 0 50px rgba(201, 168, 76, 0.15),
    inset 0 2px 4px rgba(255, 255, 255, 0.4) !important;
}

/* 3. حركة تمرير الماوس على البطاقة المركزية فقط */
.coverflow-track>div.active-card:hover {
  transform: scale(1.2) translateY(-10px) !important;
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.6),
    0 0 60px rgba(201, 168, 76, 0.25),
    inset 0 2px 5px rgba(255, 255, 255, 0.6) !important;
}

/* ═══════════ 3D GLASS CAROUSEL ARROWS ═══════════ */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;

  /* تأثير الزجاج 3D للأسهم */
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.02) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-top: 1px solid rgba(255, 255, 255, 0.5);

  color: var(--white) !important;
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3), inset 0 1px 2px rgba(255, 255, 255, 0.4);
}

.carousel-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: var(--gold) !important;
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-50%) scale(1.05);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), inset 0 2px 4px rgba(255, 255, 255, 0.6);
}

.carousel-btn.prev {
  right: 16px;
}

.carousel-btn.next {
  left: 16px;
}



/* ═══════════ LEGISLATIVE WORK (3D Video Carousel) ═══════════ */
.legislative-section {
  /* 👈 السر هنا: تدرج لوني يربط القسم الفوقاني بالتحتاني بنعومة مطلقة */
  background: linear-gradient(to bottom, var(--navy) 0%, var(--navy-light) 100%) !important;

  /* قضينا على أي حدود أو خطوط قاطعة */
  border-top: none !important;
  border-bottom: none !important;

  padding-top: 40px;
  padding-bottom: 60px;
}

.video-carousel-track {
  display: flex;
  gap: 24px;
  padding: 40px 0;
  align-items: center;
  justify-content: center;
}

.video-card-3d {
  flex: 0 0 280px;
  height: 180px;
  /* 👈 التعديل 1: كبرنا التدوير من 16 لـ 20 باش يتماشى مع التصميم الجديد */
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  cursor: pointer;

  /* 👈 التعديل 2: نحينا الخط القديم ودرنا تأثير الزجاج (أبيض خفيف + لمعة من الفوق) */
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top: 1px solid rgba(255, 255, 255, 0.3);

  transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
  transform: perspective(800px) rotateY(0deg) scale(0.9);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.video-card-3d:hover {
  transform: perspective(800px) rotateY(0deg) scale(1.05) translateY(-20px);
  box-shadow: 0 30px 60px rgba(201, 168, 76, 0.2), 0 15px 40px rgba(0, 0, 0, 0.4);
  border-color: var(--gold);
  z-index: 5;
}

.video-card-3d img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-card-3d .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(10, 22, 40, 0.85));
  display: flex;
  align-items: flex-end;
  padding: 16px;
}

.video-card-3d .overlay span {
  font-size: 0.85rem;
  font-weight: 600;
}

/* ═══════════ COMMUNITY WORK OVERLAYS ═══════════ */
.community-section {
  background: var(--navy-light);
}

.community-card-overlay {
  flex: 0 0 320px;
  height: 240px;

  /* 👈 التعديل 1: تدوير 20 */
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  cursor: pointer;

  /* 👈 التعديل 2: الإطار الزجاجي 3D */
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top: 1px solid rgba(255, 255, 255, 0.3);

  transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.community-card-overlay img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.community-card-overlay .card-overlay-content {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(10, 22, 40, 0.95));
  display: flex;
  align-items: flex-end;
  padding: 24px;
  transition: all 0.4s;
}

.community-card-overlay:hover {
  transform: translateY(-10px);
  border-color: var(--gold);
  box-shadow: 0 20px 50px rgba(201, 168, 76, 0.25);
}

.community-card-overlay:hover img {
  transform: scale(1.1);
}

.community-card-overlay h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

/* ═══════════ KEY FILES / LEGISLATIVE TOPICS ═══════════ */
.files-section {
  background: linear-gradient(to bottom, var(--navy-light) 0%, var(--navy) 100%) !important;
  border-top: none !important;
  border-bottom: none !important;
}

.file-card {
  flex: 0 0 280px;
  padding: 36px 28px;
  border-radius: 20px;
  /* تدوير عصري */
  text-align: center;

  /* 👈 خلفية زجاجية نقية ومضببة */
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);

  /* 👈 حواف زجاجية */
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top: 1px solid rgba(255, 255, 255, 0.3);

  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.file-card:hover {
  transform: translateY(-10px);
  border-color: var(--gold);
  box-shadow: 0 20px 50px rgba(201, 168, 76, 0.15);
}

.file-card .file-icon {
  font-size: 2.8rem;
  margin-bottom: 16px;
}

.file-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--white);
}

.file-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ═══════════ CUSTOM GLASS SELECT (REPLACES NATIVE SELECT) ═══════════ */
/* 👈 هذا هو الحل السحري باش القائمة تخرج فوق البطاقات */
.filter-container {
  position: relative;
  z-index: 999;
}

.custom-glass-select {
  position: relative;
  width: 280px;
  margin: 0 auto;
  text-align: right;
  z-index: 100;
}

.glass-select-header {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--white);
  padding: 14px 24px;
  border-radius: 30px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.glass-select-header:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.glass-select-header svg {
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* حالة فتح القائمة */
.custom-glass-select.open .glass-select-header {
  border-radius: 20px 20px 0 0;
  border-bottom-color: transparent;
  background: rgba(255, 255, 255, 0.08);
}

.custom-glass-select.open .glass-select-header svg {
  transform: rotate(180deg);
}

.glass-select-options {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(14, 30, 56, 0.95);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-top: none;
  border-radius: 0 0 20px 20px;
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 0;

  /* 👈 التعديلات الأساسية لضمان عمل التمرير (Scrolling) */
  overflow-y: auto !important;
  pointer-events: none;
  /* باش القائمة ما تحبسش الكليكات وهي مغلقة */
  overscroll-behavior: contain;
  /* 👈 تمنع الصفحة كامل من النزول كي تكون تسكرولي داخل القائمة */

  opacity: 0;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);

  /* دعم التمرير لمتصفحات Firefox */
  scrollbar-width: thin;
  scrollbar-color: var(--gold) transparent;
}

/* حالة فتح القائمة */
.custom-glass-select.open .glass-select-options {
  max-height: 300px !important;
  /* 👈 كبرناها شويا باش ترفد وزارات أكثر في الشوفة وحدة */
  opacity: 1;
  padding: 10px 0;
  pointer-events: auto;
  /* 👈 السماح بالضغط والتمرير كي تكون مفتوحة */
}

/* 👈 تصميم شريط تمرير (Scrollbar) زجاجي وذهبي لمتصفحات Chrome و Safari و Edge */
.glass-select-options::-webkit-scrollbar {
  width: 6px;
  /* عرض شريط التمرير */
}

.glass-select-options::-webkit-scrollbar-track {
  background: transparent;
  /* خلفية الشريط شفافة */
}

.glass-select-options::-webkit-scrollbar-thumb {
  background: rgba(201, 168, 76, 0.4);
  /* لون ذهبي خفيف */
  border-radius: 10px;
  /* حواف دائرية أنيقة */
}

.glass-select-options::-webkit-scrollbar-thumb:hover {
  background: var(--gold);
  /* يولي ذهبي قاطع كي تحط عليه الماوس */
}

.glass-select-options li {
  padding: 14px 24px;
  color: var(--text-light);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border-right: 3px solid transparent;
}

/* 👈 اللمسة السحرية: فوت الماوس يولي ذهبي وأبيض ماشي أزرق بارد */
.glass-select-options li:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border-right-color: var(--gold-light);
}

.glass-select-options li.selected {
  background: linear-gradient(90deg, rgba(201, 168, 76, 0.15), transparent);
  color: var(--gold);
  border-right-color: var(--gold);
  font-weight: 800;
}

/* ═══════════ DYNAMIC VIDEO MODAL (3D GLASS) ═══════════ */
.video-modal {
  z-index: 2000;
  /* الخلفية المضببة راه يديها من كلاس lightbox */
}

.video-modal-content {
  width: 100%;
  max-width: 900px;
  aspect-ratio: 16/9;

  /* تأثير الزجاج 3D كأنه إطار تلفزيون فخم */
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.02) 100%);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-top: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 24px;

  padding: 16px;
  /* الإطار الزجاجي الداير بالفيديو */
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), inset 0 1px 3px rgba(255, 255, 255, 0.4);
  position: relative;
  animation: modalSlide 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.video-modal-content iframe {
  position: absolute;
  top: 16px;
  left: 16px;
  width: calc(100% - 32px);
  height: calc(100% - 32px);
  border: none;
  border-radius: 12px;
  background: #000;
}

.play-icon-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: rgba(201, 168, 76, 0.85);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  font-size: 24px;
  box-shadow: 0 0 20px rgba(201, 168, 76, 0.5);
  z-index: 2;
  pointer-events: none;
}

/* ═══════════ HERO TEXT ZOOM IN ANIMATION ═══════════ */
@keyframes premiumZoomIn {
  0% {
    opacity: 0;
    transform: scale(0.88) translateY(15px);
    /* يبدأ أصغر شويا ونازل لتحت شويا */
  }

  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
    /* يرجع لحجمه الطبيعي ومكانه الأصلي بسلاسة */
  }
}

/* ═══════════ BIO MODAL DESIGN (3D GLASS) ═══════════ */
.bio-modal-custom {
  /* 1. تأثير الزجاج الـ 3D (نحينا الكحلي الصلب) */
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.02) 100%);
  backdrop-filter: blur(90px);
  -webkit-backdrop-filter: blur(90px);

  /* 2. إطار زجاجي أبيض يلمع من الفوق */
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-top: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 24px;

  max-width: 800px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 48px 56px;

  /* 3. ظل عميق باش النافذة تبان طافية الفوق */
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), inset 0 1px 3px rgba(255, 255, 255, 0.4);
  animation: modalSlide 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);

  /* 4. برمجة التمرير (للمتصفحات الحديثة) */
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

/* 👈 تصميم شريط التمرير الزجاجي (Scrollbar) الجديد */
.bio-modal-custom::-webkit-scrollbar {
  width: 6px;
}

.bio-modal-custom::-webkit-scrollbar-track {
  background: transparent;
}

.bio-modal-custom::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 10px;
}

.bio-modal-custom::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.6);
}

/* 5. تصغير العناوين باش تبان أنيقة وعصرية */
.bio-modal-title {
  font-size: 1.6rem;
  /* 👈 صغرناها من 2.2rem */
  font-weight: 800;
  color: var(--white);
  text-align: center;
  margin-bottom: 24px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* 6. تصغير حجم خط الفقرات */
.bio-modal-body p {
  font-size: 1.05rem;
  /* 👈 صغرناها من 1.15rem */
  line-height: 2.1;
  color: #E2E8F0;
  /* لون أبيض مريح للعين */
  margin-bottom: 24px;
  text-align: right;
}

.bio-modal-body p span {
  color: var(--gold-light);
  font-weight: 800;
  font-size: 1.1rem;
  /* 👈 صغرناها من 1.25rem */
  display: inline-block;
  margin-left: 8px;
}

/* ═══════════ MEDIA PRESENCE ═══════════ */
.media-section {
  background: linear-gradient(to bottom, var(--navy) 0%, var(--navy-light) 100%) !important;
  border-top: none !important;
  border-bottom: none !important;
}

.channels-strip {
  overflow: hidden;
  position: relative;
  background: transparent !important;
  padding: 32px 0;
  margin: 30px 0;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  border: none !important;
  box-shadow: none !important;
}

.channels-strip::before,
.channels-strip::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 150px;
  z-index: 2;
  pointer-events: none;
}

.channels-strip::before {
  right: 0;
  background: linear-gradient(to left, var(--navy-light) 0%, rgba(10, 22, 40, 0) 100%);
}

.channels-strip::after {
  left: 0;
  background: linear-gradient(to right, var(--navy-light) 0%, rgba(10, 22, 40, 0) 100%);
}



.channels-marquee {
  display: flex;
  width: max-content;
  /* 👈 نحينا direction: ltr باش نخلوه يخدم مع طبيعة موقعك العربية */
  animation: scrollMarquee 20s linear infinite;
}

/* 👈 السر السحري هنا: 50% بالموجب. 
   يعني الشعارات راح تدخل من اليسار وتمشي لليمين. 
   بهذي الطريقة الشريط الثاني يتبع الأول مباشرة بلا أي انقطاع أو فراغ! */
@keyframes scrollMarquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(50%);
  }
}

.channels-track {
  display: flex;
  align-items: center;
  width: max-content;
}

/* ═════ 🛠️ لوحة التحكم في الشعارات 🛠️ ═════ */
.channels-track img {

  /* 1️⃣ كـيـفـاش تـكـبـر الـشـعـار؟ */
  height: 100px;
  /* 👈 بدل هذا الرقم (مثلا ديرو 100px باش يزيد يكبر) */
  max-width: 200px;

  /* 2️⃣ كـيـفـاش تـبـعـد بـيـنـاتـهـم؟ */
  margin: 0 45px;
  /* 👈 هذا الرقم (45px) هو لي يخلي المسافة متساوية ومستحيل يصرى انقطاع */

  object-fit: contain;
  opacity: 0.95;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* 3️⃣ كـيـفـاش تـتـحـكـم فـي تـأثـيـر الـمـاوس؟ */
.channels-track img:hover {
  opacity: 1;
  transform: scale(1.15);
  /* 👈 بدل 1.15 لـ 1.25 إذا بغيتو يكبر كثر كي تقيسو بالماوس */
}

/* ═══════════ MISCELLANY (متفرقات) ═══════════ */
.miscellany-section {
  background: linear-gradient(to bottom, var(--navy-light) 0%, var(--navy) 100%) !important;
  border-top: none !important;
  border-bottom: none !important;
}

.miscellany-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto;
}

.article-blog-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 32px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.article-blog-card:hover {
  transform: translateY(-8px);
  border-color: var(--gold);
  box-shadow: 0 20px 50px rgba(201, 168, 76, 0.15);
}

.article-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.article-blog-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
  transition: color 0.3s;
}

.article-blog-card:hover h3 {
  color: var(--text-light);
}

.article-excerpt {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

.read-more {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gold);
  transition: all 0.3s;
}

.article-blog-card:hover .read-more {
  transform: translateX(-8px);
}

/* ═══════════ ARTICLE READER MODAL ═══════════ */
/* ═══════════ ARTICLE READER MODAL (3D GLASS & CAROUSEL) ═══════════ */
.article-modal-content {
  /* 👈 1. تأثير الزجاج 3D كأنه نافذة فخمة */
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.02) 100%);
  backdrop-filter: blur(90px);
  -webkit-backdrop-filter: blur(90px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-top: 1px solid rgba(255, 255, 255, 0.5);

  border-radius: 24px;
  max-width: 800px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 48px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), inset 0 1px 3px rgba(255, 255, 255, 0.4);
  animation: modalSlide 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);

  /* 👈 2. شريط التمرير الزجاجي */
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

.article-modal-content::-webkit-scrollbar {
  width: 6px;
}

.article-modal-content::-webkit-scrollbar-track {
  background: transparent;
}

.article-modal-content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 10px;
}

.article-modal-content::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.6);
}

.article-modal-content h2 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 12px;
  line-height: 1.4;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.article-modal-body p {
  font-size: 1.05rem;
  line-height: 2.1;
  color: #E2E8F0;
  margin-bottom: 20px;
}

/* 👈 3. تصميم الكاروسيل داخل النافذة */
.article-slider-container {
  position: relative;
  width: 100%;
  height: 380px;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 30px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.article-slider-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease;
}

.article-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all 0.3s;
}

.article-slider-btn:hover {
  background: var(--gold);
  color: var(--navy);
  transform: translateY(-50%) scale(1.1);
}

.article-slider-btn.prev {
  right: 16px;
}

.article-slider-btn.next {
  left: 16px;
}

/* ═══════════ LIGHTBOX ═══════════ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;

  /* 👈 السر هنا: خلفية شفافة جداً (0.4) مع ضبابية قوية (25px) باش يبان الموقع لور */
  background: rgba(10, 22, 40, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 40px;
}

.lightbox.active {
  display: flex;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  left: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.lightbox-close:hover {
  background: var(--gold);
  color: var(--navy);
}

.lightbox-img {
  max-width: 90vw;
  max-height: 75vh;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-nav {
  display: flex;
  gap: 16px;
  margin-top: 20px;
}

.lightbox-nav button {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s;
}

.lightbox-nav button:hover {
  background: var(--gold);
  color: var(--navy);
}

.lightbox-caption {
  margin-top: 16px;
  text-align: center;
  color: var(--text-light);
  font-size: 0.95rem;
  max-width: 600px;
}

/* ═══════════ 3D GLASS CHATBOT BUBBLE ═══════════ */
.chat-bubble {
  position: fixed;
  bottom: 30px;
  left: 30px;
  z-index: 9999;

  /* 👈 3. حركة دخول الصندوق كامل بسلاسة من برا الشاشة على اليسار */
  animation: chatbotEntry 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* كود دخول الزر */
@keyframes chatbotEntry {
  0% {
    opacity: 0;
    transform: translateX(-100px);
    /* يبدأ من برا الشاشة يساراً */
  }

  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* 1. الرسالة الترحيبية (فقاعة زجاجية 3D) */
/* 1. الرسالة الترحيبية (تكون مخفية ومستعدة) */
.chat-welcome {
  position: absolute;
  bottom: 85px;
  left: 0;

  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-top: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 20px 20px 20px 4px;
  padding: 16px 24px;
  min-width: 280px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), inset 0 1px 3px rgba(255, 255, 255, 0.4);

  opacity: 0;
  pointer-events: none;
  transform: scale(0);
  /* تبدأ مجهرية داخل الزر */
  transform-origin: bottom left;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
}

/* 👈 هنا السحر: الأنيميشن تشتغل فقط كي يضيف السيستم كلاس .show عند التمرير */
.chat-welcome.show {
  animation: smoothGlassFade 8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  pointer-events: auto;
}

/* مسحنا المثلث القديم */
.chat-welcome::after {
  display: none;
}

/* 👈 كود حركة الفقاعة المحدث: تخرج وتتوسع من الزر مباشرة */
@keyframes smoothGlassFade {
  0% {
    opacity: 0;
    transform: scale(0);
    /* تبدأ مجهرية داخل الزر */
  }

  12% {
    opacity: 1;
    transform: scale(1);
    /* تفتح كأنها بلونة زجاجية */
  }

  85% {
    opacity: 1;
    transform: scale(1);
  }

  100% {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
    /* تذوب بهدوء عند الاختفاء */
  }
}

/* بقية أكواد الزر والأيقونة (chat-bubble-btn) خليهم كيما راهم راهم صحاح */
.chat-bubble-btn {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-top: 1px solid rgba(255, 255, 255, 0.5);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3), inset 0 2px 5px rgba(255, 255, 255, 0.3);
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  animation: glassPulse 4s infinite cubic-bezier(0.25, 0.8, 0.25, 1);
}

.chat-bubble-btn:hover {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.6);
  animation: none;
}

.chat-bubble-btn:active {
  transform: scale(0.92);
  background: rgba(255, 255, 255, 0.05);
}

.chat-bubble-btn svg {
  width: 32px;
  height: 32px;
  stroke: var(--white);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

@keyframes glassPulse {

  0%,
  100% {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3), inset 0 2px 5px rgba(255, 255, 255, 0.3);
    transform: scale(1);
  }

  50% {
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4), inset 0 2px 8px rgba(255, 255, 255, 0.5), 0 0 20px rgba(255, 255, 255, 0.15);
    transform: scale(1.05);
  }
}


/* ═══════════ APPLE iOS 3D GLASS BUTTONS ═══════════ */
.ios-glass-btn {
  /* 1. التدرج اللوني الزجاجي (يعطي حجم 3D للزر) */
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.02) 100%);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);

  /* 2. الإطار الأبيض النقي (نحينا أي لون أصفر) */
  border: 1px solid rgba(255, 255, 255, 0.15);

  /* 3. الشكل العام */
  border-radius: 30px;
  color: var(--white);
  padding: 14px 32px;
  font-family: inherit;
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;

  /* 4. 💥 السر تاع الـ 3D: ظل خارجي للطيران + لمعة داخلية بيضاء من الفوق تعطي حجم للزجاج */
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.2),
    inset 0 1px 2px rgba(255, 255, 255, 0.5),
    /* اللمعة العلوية */
    inset 0 -1px 2px rgba(255, 255, 255, 0.05);
  /* الظل السفلي الخفيف */

  /* 5. سلاسة الحركة */
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

/* حركة الماوس (Hover) - نقاء زجاجي أبيض بدون أصفر */
.ios-glass-btn:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.05) 100%);
  border-color: rgba(255, 255, 255, 0.4);
  /* الإطار يولي أبيض يلمع ماشي أصفر */
  transform: translateY(-3px);
  box-shadow:
    0 15px 35px rgba(0, 0, 0, 0.3),
    inset 0 2px 3px rgba(255, 255, 255, 0.6);
  /* لمعة أقوى كي تفوت الماوس */
}

/* الضغطة (Click) - زر يصغار كيما الأيفون */
.ios-glass-btn:active {
  transform: scale(0.94) translateY(0);
  background: rgba(255, 255, 255, 0.1);
  box-shadow:
    0 5px 15px rgba(0, 0, 0, 0.2),
    inset 0 1px 1px rgba(255, 255, 255, 0.3);
}

/* ═══════════ 3D GLASS CARD ACTION BUTTONS ═══════════ */
.card-action-btn {
  /* 1. التدرج اللوني الزجاجي (يعطي إحساس بالحجم والانحناء) */
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);

  /* 2. إطار 3D: لمعة بيضاء قوية من الفوق وخفيفة من الجوانب */
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-top: 1px solid rgba(255, 255, 255, 0.45);

  color: var(--white);
  padding: 10px 16px;
  /* كبرناهم شويا باش يبانو فخمين ويعمرو العين */
  border-radius: 20px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  flex: 1;

  /* 3. السر تاع الـ 3D: ظل سفلي للطيران + لمعة زجاجية داخلية من الفوق + ظل داخلي من التحت */
  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.2),
    inset 0 1px 2px rgba(255, 255, 255, 0.5),
    inset 0 -1px 2px rgba(255, 255, 255, 0.05);
}

/* حركة الماوس (Hover) - الزر يضوي ويطلع للفوق */
.card-action-btn:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.08) 100%);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-3px);
  box-shadow:
    0 12px 25px rgba(0, 0, 0, 0.3),
    inset 0 2px 4px rgba(255, 255, 255, 0.7);
}

/* الضغطة (Active) - الزر يدخل للداخل كأنه زر حقيقي */
.card-action-btn:active {
  transform: translateY(0) scale(0.95);
  background: rgba(255, 255, 255, 0.1);
  box-shadow:
    0 4px 10px rgba(0, 0, 0, 0.2),
    inset 0 2px 5px rgba(0, 0, 0, 0.5);
}

/* ═══════════ VERTICAL FILE CARD (PERFECT FADE & BLUR) ═══════════ */
/* 1. حاوية البطاقة */
.file-card.file-card-vertical {
  flex: 0 0 320px !important;
  height: 460px;
  /* 👈 نقصنا الطول من 520px لـ 460px باش نحيو الفراغ التحتاني الزايد */
  padding: 0 !important;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  background: var(--navy-light);
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

/* 2. القسم العلوي (الصورة) */
.vertical-top-section {
  position: relative;
  width: 100%;
  height: 82%;
  background: var(--navy-light);
  overflow: hidden;
  /* ضروري باش الضبابية ما تخرجش برا */
}

.vertical-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  object-position: center 120%;
  /* 👈 السحر هنا: ضبابية عامة + تخفيض خفيف للإضاءة باش العنوان يبرز */
  filter: blur(2px) brightness(0.80);
  /* 👈 تكبير خفيف للصورة (1.05) باش حواف الضبابية ما تبانش بيضاء ومقطعة */
  transform: scale(1.05);
}

/* 3. تأثير الضبابية الزرقاء التحتانية (الذوبان) */
.vertical-fade-blur {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 35%;

  /* تدرج لوني كحلي يذوب للفوق */
  background: linear-gradient(to top, var(--navy-light) 5%, rgba(14, 30, 56, 0.5) 50%, transparent 100%);

  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);

  -webkit-mask-image: linear-gradient(to top, black 20%, transparent 100%);
  mask-image: linear-gradient(to top, black 20%, transparent 100%);
}

/* 4. تمركز العنوان والوصف */
.vertical-text-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 10px 20px 5px;
  text-align: center;
  z-index: 3;
}

.vertical-text-content h3 {
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.9);
}

.vertical-text-content p {
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9);
}

/* 5. القسم السفلي (مساحة الأزرار) */
.vertical-bottom-section {
  height: 18%;
  width: 100%;
  display: flex;
  align-items: center;
  /* 👈 رجعناها center باش يجيو الأزرار بالضبط في وسط المساحة المتبقية */
  justify-content: center;
  gap: 12px;
  padding: 0 20px;
  /* 👈 نحينا الفراغ العلوي باش نربحو المساحة */
  background: var(--navy-light);
  position: relative;
  z-index: 4;
}

/* ═══════════ RESPONSIVE (SIDE-BY-SIDE MOBILE STYLE) ═══════════ */
@media (max-width: 900px) {
  
  .site-header, .site-header.scrolled { padding: 12px 20px !important; }
  .header-name { font-size: 1.05rem !important; }

  /* 1. إعداد الشاشة كحاوية أفقية */
  .hero {
    height: 100vh !important;
    min-height: 100vh !important;
    padding: 70px 0 0 !important; /* فراغ علوي للهيدر باش ما يغطيش الكتيبة */
    overflow: hidden !important;
  }

  .hero-content {
    display: flex !important;
    flex-direction: row !important; /* 👈 السر هنا: وضع العناصر جنب لجنب أفقياً */
    height: calc(100vh - 70px) !important;
    width: 100% !important;
    align-items: center !important;
    position: relative !important;
  }

  /* 👈 2. الصورة في اليمين (تأخذ 50% من عرض الشاشة) */
  .hero-image-wrapper {
    flex: 0 0 50% !important; 
    height: 100% !important;
    display: flex !important;
    align-items: flex-end !important; /* تلصق لتحت */
    justify-content: flex-start !important; /* تلصق في أقصى اليمين */
    position: static !important;
    transform: none !important;
    order: 1 !important; /* العنصر الأول (يمين) */
    margin: 0 !important;
  }

  .hero-image-wrapper img {
    height: 120% !important; /* طول مناسب باش تبان البدلة */
    width: auto !important;
    max-width: 150% !important; /* كسرنا قيود العرض باش تكبر براحتها */
    object-fit: contain !important;
    object-position: bottom right !important; /* محاذاة الصورة لأسفل اليمين */
    transform: scale(1.5) translateX(15px) !important; /* تكبيرها ودفعها لليمين باش تعمر البلاصة */
    transform-origin: bottom right !important;
    filter: drop-shadow(0 15px 35px rgba(0,0,0,0.6));
  }

  /* 👈 3. الكتيبة في اليسار (تأخذ 50% من عرض الشاشة) */
  .hero-text {
    flex: 0 0 50% !important; 
    position: static !important;
    text-align: right !important; /* الكتيبة تبدا من جهة الصورة */
    padding: 0 10px 0 20px !important;
    margin: 0 !important;
    order: 2 !important; /* العنصر الثاني (يسار) */
    z-index: 10 !important;
  }

  /* 👈 4. تصغير الخطوط باش تكفي في مساحة الـ 50% اليسرى بلا ما تخرج على الشاشة */
  .hero-main-title {
    font-size: 1.45rem !important; 
    line-height: 1.35 !important;
    margin-bottom: 8px !important;
  }
  
  .hero-main-title .title-line-2 {
    font-size: 1.45rem !important;
  }

  .hero-main-subtitle .sub-line-1,
  .hero-main-subtitle .sub-line-2 {
    font-size: 0.75rem !important;
    line-height: 1.6 !important;
  }

  .hero-bio-btn-wrapper {
    text-align: right !important;
    margin-top: 14px !important;
  }
  
  .ios-glass-btn {
    padding: 8px 18px !important;
    font-size: 0.85rem !important;
  }
}