/* ══ Global overflow fix — prevent horizontal scroll ══ */
html {
  overflow-x: clip; /* clip لا ينشئ scroll container فلا يكسر position:fixed */
  max-width: 100%;
}
body {
  overflow-x: hidden;
  max-width: 100%;
  font-family: "Tajawal", sans-serif;
  /* النمط الدافئ (warm) — القيم الافتراضية */
  --color-primary: #ea580c;
  --color-primary-dark: #c2410c;
  --color-primary-soft: #fff7ed;
  --color-primary-border: #fed7aa;
  --color-accent: #f59e0b;
  --color-accent-soft: #fef3c7;
  --color-title: #7c2d12;
  --soft-section-bg: radial-gradient(
      circle at 15% 20%,
      rgba(255, 237, 213, 0.55),
      transparent 30%
    ),
    radial-gradient(
      circle at 85% 15%,
      rgba(224, 242, 254, 0.85),
      transparent 34%
    ),
    linear-gradient(120deg, #ffffff 0%, #f8fafc 46%, #eef6fb 100%);
}

body[data-theme="blue"],
html[data-pre-theme="blue"] body {
  --color-primary: #2563eb;
  --color-primary-dark: #1d4ed8;
  --color-primary-soft: #eff6ff;
  --color-primary-border: #bfdbfe;
  --color-accent: #06b6d4;
  --color-accent-soft: #dbeafe;
  --color-title: #1e3a8a;
  --soft-section-bg: radial-gradient(
      circle at 15% 20%,
      rgba(219, 234, 254, 0.76),
      transparent 32%
    ),
    radial-gradient(
      circle at 85% 15%,
      rgba(207, 250, 254, 0.85),
      transparent 34%
    ),
    linear-gradient(120deg, #ffffff 0%, #f8fafc 46%, #eef6ff 100%);
}

body[data-theme="green"],
html[data-pre-theme="green"] body {
  --color-primary: #059669;
  --color-primary-dark: #047857;
  --color-primary-soft: #ecfdf5;
  --color-primary-border: #a7f3d0;
  --color-accent: #84cc16;
  --color-accent-soft: #dcfce7;
  --color-title: #065f46;
  --soft-section-bg: radial-gradient(
      circle at 15% 20%,
      rgba(220, 252, 231, 0.82),
      transparent 32%
    ),
    radial-gradient(
      circle at 85% 15%,
      rgba(236, 253, 245, 0.9),
      transparent 34%
    ),
    linear-gradient(120deg, #ffffff 0%, #f8fafc 46%, #f0fdf4 100%);
}

body[data-theme="violet"],
html[data-pre-theme="violet"] body {
  --color-primary: #7c3aed;
  --color-primary-dark: #6d28d9;
  --color-primary-soft: #f5f3ff;
  --color-primary-border: #ddd6fe;
  --color-accent: #db2777;
  --color-accent-soft: #ede9fe;
  --color-title: #4c1d95;
  --soft-section-bg: radial-gradient(
      circle at 15% 20%,
      rgba(237, 233, 254, 0.82),
      transparent 32%
    ),
    radial-gradient(
      circle at 85% 15%,
      rgba(252, 231, 243, 0.75),
      transparent 34%
    ),
    linear-gradient(120deg, #ffffff 0%, #f8fafc 46%, #f5f3ff 100%);
}

/* تخصيص شريط التمرير (Custom Scrollbar) */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: var(--color-primary);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary-dark);
}

/* زر الواتساب العائم */
.whatsapp-float {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 999px;
  background: #25d366;
  color: #ffffff;
  font-size: 1.75rem;
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.45);
  transition:
    transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.3s ease;
  animation: wa-enter 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 1s both;
}

.whatsapp-float:hover {
  transform: scale(1.12) translateY(-3px);
  box-shadow: 0 14px 40px rgba(37, 211, 102, 0.55);
}

/* فقاعة النص عند hover */
.whatsapp-float::before {
  content: "تواصل عبر واتساب";
  position: absolute;
  right: calc(100% + 0.75rem);
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  white-space: nowrap;
  border-radius: 0.65rem;
  background: #111827;
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 0.45rem 0.85rem;
  pointer-events: none;
  opacity: 0;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.whatsapp-float::after {
  content: "";
  position: absolute;
  right: calc(100% + 0.35rem);
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left-color: #111827;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.whatsapp-float:hover::before,
.whatsapp-float:hover::after {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* نبضة خضراء */
.whatsapp-pulse {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #25d366;
  animation: wa-pulse 2.5s ease-out infinite;
  pointer-events: none;
}

@keyframes wa-pulse {
  0% { transform: scale(1); opacity: 0.6; }
  70% { transform: scale(1.65); opacity: 0; }
  100% { transform: scale(1.65); opacity: 0; }
}

@keyframes wa-enter {
  from { transform: scale(0) translateY(20px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}

/* ── WhatsApp Widget ──────────────────────────────── */
.wa-widget {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
}

.wa-widget .whatsapp-float {
  position: static;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}

.wa-widget .whatsapp-float .wa-x {
  display: none;
  font-size: 1.1rem;
  position: absolute;
}

.wa-widget.wa-open .whatsapp-float .wa-x { display: block; }
.wa-widget.wa-open .whatsapp-float > svg:first-of-type { display: none; }
.wa-widget.wa-open .whatsapp-float::before,
.wa-widget.wa-open .whatsapp-float::after { display: none; }

/* Popup */
.wa-popup {
  display: none;
  width: 300px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,.22);
  background: #fff;
  z-index: 10000;
  position: relative;
}

.wa-popup.wa-popup--open {
  display: block;
  animation: wa-popup-in .25s cubic-bezier(.34,1.56,.64,1) both;
}

.wa-popup-head {
  background: #25d366;
  padding: .85rem 1rem;
  display: flex;
  align-items: center;
  gap: .65rem;
  color: #fff;
}

.wa-popup-avatar {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: rgba(255,255,255,.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wa-popup-name { font-weight: 800; font-size: .95rem; }
.wa-popup-status { font-size: .75rem; opacity: .85; }

.wa-popup-close {
  margin-right: auto;
  background: none;
  border: none;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  opacity: .8;
  padding: .2rem .4rem;
}
.wa-popup-close:hover { opacity: 1; }

.wa-popup-body {
  padding: .9rem 1rem;
  background: #ece5dd;
}

.wa-bubble {
  background: #fff;
  border-radius: 0 14px 14px 14px;
  padding: .7rem .9rem;
  font-size: .88rem;
  color: #374151;
  line-height: 1.6;
  box-shadow: 0 1px 3px rgba(0,0,0,.1);
  max-width: 240px;
}

.wa-popup-foot {
  display: flex;
  align-items: flex-end;
  gap: .5rem;
  padding: .75rem .85rem;
  background: #f0f0f0;
  border-top: 1px solid #e5e7eb;
}

.wa-input {
  flex: 1;
  border: 1.5px solid #e2e8f0;
  border-radius: 22px;
  padding: .55rem .9rem;
  font-size: .88rem;
  resize: none;
  outline: none;
  font-family: inherit;
  background: #fff;
  color: #1f2937;
  transition: border-color .15s;
  line-height: 1.5;
  max-height: 100px;
}

.wa-input:focus { border-color: #25d366; }

.wa-send {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  border: none;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background .15s, transform .15s;
}
.wa-send:hover { background: #20b858; transform: scale(1.08); }

@keyframes wa-popup-in {
  from { transform: scale(.85) translateY(20px); opacity: 0; }
  to   { transform: scale(1) translateY(0);      opacity: 1; }
}

/* زر الصعود للأعلى */
.back-to-top {
  position: fixed;
  bottom: 1.75rem;
  left: 1.75rem;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  background: var(--color-primary);
  color: #ffffff;
  font-size: 1.35rem;
  box-shadow: 0 8px 24px color-mix(in srgb, var(--color-primary) 40%, transparent);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px) scale(0.88);
  transition:
    opacity 0.3s ease,
    transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.back-to-top:hover {
  background: var(--color-primary-dark);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 32px color-mix(in srgb, var(--color-primary) 50%, transparent);
}

.back-to-top i {
  transition: transform 0.25s ease;
}

.back-to-top:hover i {
  transform: translateY(-2px);
}

.theme-picker {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid var(--color-primary-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  padding: 0.28rem;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.mobile-theme-picker {
  justify-content: center;
  margin: 0.35rem 0;
  padding: 0.5rem;
}

.theme-swatch {
  width: 1.35rem;
  height: 1.35rem;
  border: 2px solid #ffffff;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--swatch-primary), var(--swatch-accent));
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.12);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.theme-swatch:hover,
.theme-swatch.is-active {
  transform: scale(1.18);
  box-shadow: 0 0 0 2px var(--swatch-primary);
}

.theme-swatch[data-theme-choice="warm"] {
  --swatch-primary: #ea580c;
  --swatch-accent: #f59e0b;
}

.theme-swatch[data-theme-choice="blue"] {
  --swatch-primary: #2563eb;
  --swatch-accent: #06b6d4;
}

.theme-swatch[data-theme-choice="green"] {
  --swatch-primary: #059669;
  --swatch-accent: #84cc16;
}

.theme-swatch[data-theme-choice="violet"] {
  --swatch-primary: #7c3aed;
  --swatch-accent: #db2777;
}

.bg-orange-600,
.hover\:bg-orange-600:hover {
  background-color: var(--color-primary) !important;
}

.hover\:bg-orange-700:hover,
.hover\:bg-orange-800:hover {
  background-color: var(--color-primary-dark) !important;
}

.text-orange-400,
.text-orange-500,
.text-orange-600,
.text-orange-700,
.hover\:text-orange-600:hover,
.hover\:text-orange-400:hover,
.hover\:text-orange-800:hover {
  color: var(--color-primary) !important;
}

.text-orange-900 {
  color: var(--color-title) !important;
}

.bg-orange-50,
.bg-orange-100,
.hover\:bg-orange-50:hover {
  background-color: var(--color-primary-soft) !important;
}

.border-orange-50,
.border-orange-100,
.border-orange-200\/50,
.border-orange-100\/70,
.border-orange-100\/40,
.border-orange-200\/60,
.border-orange-500,
.border-orange-500\/30,
.hover\:border-orange-500:hover {
  border-color: var(--color-primary-border) !important;
}

.shadow-orange-900\/5,
.shadow-orange-100\/50,
.hover\:shadow-orange-500\/30:hover {
  --tw-shadow-color: color-mix(in srgb, var(--color-primary) 22%, transparent) !important;
}

.bg-amber-50\/50,
.bg-amber-100,
.bg-amber-500\/10 {
  background-color: var(--color-accent-soft) !important;
}

.text-amber-400,
.text-amber-500,
.text-amber-600 {
  color: var(--color-accent) !important;
}

.from-orange-500,
.from-orange-600 {
  --tw-gradient-from: var(--color-primary) var(--tw-gradient-from-position) !important;
  --tw-gradient-to: color-mix(in srgb, var(--color-primary) 0%, transparent)
    var(--tw-gradient-to-position) !important;
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to) !important;
}

.to-amber-300,
.to-amber-500 {
  --tw-gradient-to: var(--color-accent) var(--tw-gradient-to-position) !important;
}

.via-orange-50\/30 {
  --tw-gradient-to: color-mix(in srgb, var(--color-primary-soft) 0%, transparent)
    var(--tw-gradient-to-position) !important;
  --tw-gradient-stops: var(--tw-gradient-from), color-mix(in srgb, var(--color-primary-soft) 55%, transparent)
    var(--tw-gradient-via-position), var(--tw-gradient-to) !important;
}

/* حركة الشكل العضوي (Blob) */
.blob-shape {
  border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  animation: morph 8s ease-in-out infinite;
}
@keyframes morph {
  0%,
  100% {
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  }
  34% {
    border-radius: 70% 30% 50% 50% / 30% 30% 70% 70%;
  }
  67% {
    border-radius: 100% 60% 60% 100% / 100% 100% 60% 60%;
  }
}

/* حركة العناصر العائمة */
@keyframes float {
  0% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(10deg);
  }
  100% {
    transform: translateY(0px) rotate(0deg);
  }
}
.animate-float {
  animation: float 6s ease-in-out infinite;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* تنسيقات للأسئلة المتكررة */
.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}
.faq-content.active {
  max-height: 300px;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
  border-top-width: 1px;
  border-color: var(--color-accent-soft);
}
.faq-icon {
  transition: transform 0.3s ease;
}
.faq-icon.active {
  transform: rotate(180deg);
  color: var(--color-primary);
}

/* Typed JS cursor color */
.typed-cursor {
  color: var(--color-primary);
}

.mobile-menu a {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  border-radius: 0.85rem;
  padding: 0.65rem 1rem;
  color: #374151;
  font-weight: 800;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.mobile-menu a:hover {
  background: var(--color-primary-soft);
  color: var(--color-primary);
}

.mobile-menu .mobile-menu-cta {
  margin-top: 0.25rem;
  justify-content: center;
  background: var(--color-primary);
  color: #ffffff;
}

.mobile-menu .mobile-menu-cta:hover {
  background: var(--color-primary-dark);
  color: #ffffff;
}

.hero-carousel {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 0;
  padding-left: 1rem;
  padding-right: 0;
}

.hero-main {
  flex: 1;
  min-width: 0;
}

.hero-carousel .swiper-slide {
  height: auto;
}

.hero-slide {
  display: grid;
  min-height: 560px;
  align-items: center;
  gap: 3rem;
}

.hero-carousel .hero-slide {
  padding-left: calc(1.5rem + 0.5cm) !important;
  padding-right: calc(1.5rem + 0.5cm) !important;
}

@media (min-width: 1024px) {
  .hero-slide {
    grid-template-columns: minmax(0, 1fr) minmax(380px, 0.9fr);
  }

  /* الشريحة المعكوسة: الصورة أولاً (يمين) ثم النص (يسار) */
  .hero-slide--reverse {
    grid-template-columns: minmax(380px, 0.9fr) minmax(0, 1fr);
  }
}


.hero-float-themed {
  color: var(--color-accent) !important;
  opacity: 0.3;
}

.hero-badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(254, 215, 170, 0.7);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  padding: 0.65rem 1.25rem;
  color: var(--color-primary-dark);
  font-size: 0.875rem;
  font-weight: 800;
  box-shadow: 0 10px 30px rgba(124, 45, 18, 0.07);
  backdrop-filter: blur(14px);
}

.hero-title {
  color: #111827;
  font-size: clamp(1.75rem, 3.2vw, 3.1rem);
  font-weight: 900;
  line-height: 1.22;
  letter-spacing: 0;
}

.hero-title span {
  display: block;
  width: fit-content;
  background: linear-gradient(270deg, var(--color-primary), var(--color-accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy {
  max-width: 34rem;
  color: #4b5563;
  font-size: 1.25rem;
  line-height: 1.9;
}

.hero-primary-btn,
.hero-secondary-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 1rem 2rem;
  font-size: 1.125rem;
  font-weight: 800;
  transition:
    transform 0.25s ease,
    background-color 0.25s ease,
    box-shadow 0.25s ease;
}

.hero-primary-btn {
  background: var(--color-primary);
  color: #ffffff;
  box-shadow: 0 18px 34px rgba(251, 146, 60, 0.35);
}

.hero-primary-btn:hover,
.hero-secondary-btn:hover {
  transform: translateY(-4px);
}

.hero-primary-btn:hover {
  background: var(--color-primary-dark);
}

.hero-secondary-btn {
  border: 1px solid var(--color-accent-soft);
  background: rgba(255, 255, 255, 0.82);
  color: var(--color-primary);
  box-shadow: 0 12px 28px rgba(124, 45, 18, 0.08);
  backdrop-filter: blur(12px);
}

.hero-media {
  position: relative;
  justify-self: center;
  width: min(100%, 450px);
  aspect-ratio: 1;
}

.hero-glow {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.08);
  filter: blur(80px);
  transform: scale(1.08);
}

.hero-image-frame {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: linear-gradient(45deg, var(--color-primary), var(--color-accent));
  padding: 0.5rem;
}

.hero-float-card {
  position: absolute;
  right: -1.5rem;
  bottom: -1.5rem;
  z-index: 2;
  max-width: calc(100% + 1.5rem);
  display: flex;
  align-items: center;
  gap: 1rem;
  border: 1px solid #f3f4f6;
  border-radius: 1rem;
  background: #ffffff;
  padding: 1rem;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.14);
  animation: float 4s ease-in-out infinite;
}

.hero-media-card {
  aspect-ratio: 0.92;
  overflow: hidden;
  border: 8px solid rgba(255, 255, 255, 0.9);
  border-radius: 2rem;
}

.hero-media-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-media-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(15, 23, 42, 0.72));
}

.hero-media-caption {
  position: absolute;
  right: 1.25rem;
  bottom: 1.25rem;
  left: 1.25rem;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 1rem;
  color: #ffffff;
}

.hero-media-caption span {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
}

.hero-media-caption p {
  max-width: 16rem;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.6;
}

.hero-controls {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: -1.5rem;
  padding-left: calc(1.5rem + 0.5cm) !important;
  padding-right: calc(1.5rem + 0.5cm) !important;
}

/* بانر: أين تجدنا؟ */
/* ── بانر دوّار جانبي ── */
.ad-rotator {
  display: none;
  width: 185px;
  min-width: 170px;
  max-width: 195px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  background: #0f172a;
  border-right: 2px solid var(--color-primary-border);
  border-radius: 0 0 0 1rem;
}

@media (min-width: 1024px) {
  .ad-rotator { display: block; }
}

.ad-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
}

.ad-slide.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.ad-slide__img-wrap {
  position: absolute;
  inset: 0;
}

.ad-slide__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 6s ease;
}

.ad-slide.is-active .ad-slide__img {
  transform: scale(1.07);
}

/* ── محتوى البانر المنظم ── */
.ad-slide__top {
  padding: 0.7rem 0.85rem 0.45rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  flex-shrink: 0;
}

.ad-slide__badge {
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent, #f59e0b);
}

.ad-slide__headline {
  font-size: 0.68rem;
  color: #94a3b8;
  margin: 0;
  font-weight: 500;
}

.ad-slide__storename {
  display: flex;
  align-items: center;
  gap: 0.38rem;
  font-size: 1.05rem;
  font-weight: 900;
  color: #ffffff;
  margin-top: 0.08rem;
}

.ad-slide__storename i { font-size: 1.1rem; flex-shrink: 0; }
.ad-slide__storename--orange i { color: #fb923c; }
.ad-slide__storename--blue   i { color: #60a5fa; }
.ad-slide__storename--green  i { color: #34d399; }
.ad-slide__storename--violet i { color: #a78bfa; }

.ad-rotator__dots {
  display: flex;
  gap: 4px;
  margin-top: 0.5rem;
}

.ad-rotator__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  cursor: pointer;
  transition: background 0.3s, width 0.3s;
  flex-shrink: 0;
}

.ad-rotator__dot.is-active {
  background: var(--color-accent, #f59e0b);
  width: 14px;
  border-radius: 999px;
}

.ad-slide__sep {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.85rem;
  flex-shrink: 0;
}

.ad-slide__sep span {
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.12);
}

.ad-slide__sep i {
  font-size: 0.6rem;
  color: var(--color-accent, #f59e0b);
  opacity: 0.6;
}

.ad-slide__cover {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 0;
  padding: 0.4rem 0.5rem 0.6rem;
  position: relative;
}

/* Overlay لوني */
.ad-slide__cover::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  mix-blend-mode: color;
  opacity: 0;
}

.ad-slide--orange .ad-slide__cover::after { background: #fb923c; }
.ad-slide--blue   .ad-slide__cover::after { background: #60a5fa; }
.ad-slide--green  .ad-slide__cover::after { background: #34d399; }
.ad-slide--violet .ad-slide__cover::after { background: #a78bfa; }

/* Shimmer sweep */
.ad-slide__cover::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(
    120deg,
    transparent 20%,
    rgba(255,255,255,0.18) 50%,
    transparent 80%
  );
  background-size: 250% 100%;
  background-position: 200% center;
}

/* Animations */
@keyframes ad-overlay-flash {
  0%   { opacity: 0.9; }
  100% { opacity: 0.55; }
}

@keyframes ad-shimmer-sweep {
  0%   { opacity: 1; background-position: 200% center; }
  60%  { opacity: 1; background-position: -50% center; }
  100% { opacity: 0; background-position: -50% center; }
}

/* flash disabled */

.ad-slide.is-active .ad-slide__cover::before {
  animation: ad-shimmer-sweep 1s ease-out 0.15s forwards;
}

/* Glow على البانر يتغير مع اللون */
.ad-rotator {
  transition: box-shadow 0.6s ease, border-right-color 0.6s ease;
}

.ad-rotator--orange {
  border-right-color: rgba(251,146,60,0.7) !important;
  box-shadow: inset -4px 0 12px rgba(251,146,60,0.2);
}
.ad-rotator--blue {
  border-right-color: rgba(96,165,250,0.7) !important;
  box-shadow: inset -4px 0 12px rgba(96,165,250,0.2);
}
.ad-rotator--green {
  border-right-color: rgba(52,211,153,0.7) !important;
  box-shadow: inset -4px 0 12px rgba(52,211,153,0.2);
}
.ad-rotator--violet {
  border-right-color: rgba(167,139,250,0.7) !important;
  box-shadow: inset -4px 0 12px rgba(167,139,250,0.2);
}

.ad-slide__cover img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  transition: transform 6s ease;
}

/* اسم الموقع يطفو فوق صورة الرواية */
.ad-slide__cover-label {
  position: absolute;
  bottom: 0.7rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.12);
  white-space: nowrap;
  font-size: 0.8rem;
  font-weight: 900;
  color: #fff;
  z-index: 3;
  letter-spacing: 0.01em;
  pointer-events: none;
}

.ad-slide--orange .ad-slide__cover-label { border-color: rgba(251,146,60,0.55); }
.ad-slide--blue   .ad-slide__cover-label { border-color: rgba(96,165,250,0.55); }
.ad-slide--green  .ad-slide__cover-label { border-color: rgba(52,211,153,0.55); }
.ad-slide--violet .ad-slide__cover-label { border-color: rgba(167,139,250,0.55); }

.ad-slide--orange .ad-slide__cover-label i { color: #fb923c; }
.ad-slide--blue   .ad-slide__cover-label i { color: #60a5fa; }
.ad-slide--green  .ad-slide__cover-label i { color: #34d399; }
.ad-slide--violet .ad-slide__cover-label i { color: #a78bfa; }

.ad-slide.is-active .ad-slide__cover img {
  transform: scale(1.03);
}

/* ── بطاقة مرفوعة وسط الفاصل (قديم — محتفظ به) ── */
.hero-strip {
  position: relative;
  padding: 1.5rem 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  background: transparent;
}

.hero-strip::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1.5px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--color-primary-border) 12%,
    var(--color-primary-border) 88%,
    transparent 100%);
  transform: translateY(-50%);
  pointer-events: none;
}

.hero-strip__card {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  justify-content: center;
  padding: 0.6rem 1.6rem;
  background: #ffffff;
  border: 1.5px solid var(--color-primary-border);
  border-radius: 999px;
  box-shadow:
    0 4px 20px rgba(0,0,0,0.07),
    0 1px 6px rgba(0,0,0,0.04);
}

.hero-strip__label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--color-primary);
  white-space: nowrap;
  flex-shrink: 0;
}

.hero-strip__sep {
  width: 1px;
  height: 1.2rem;
  background: var(--color-primary-border);
  flex-shrink: 0;
}

.hero-strip__stores {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-strip__store {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.28rem 0.8rem;
  background: transparent;
  border: 1.5px solid var(--color-primary-border);
  border-radius: 999px;
  text-decoration: none;
  color: #4b5563;
  font-size: 0.76rem;
  font-weight: 700;
  transition: all 0.2s ease;
}

.hero-strip__store:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  color: white;
}

.hero-strip__store--orange:hover { background: #ea580c; border-color: #ea580c; }
.hero-strip__store--blue:hover   { background: #2563eb; border-color: #2563eb; }
.hero-strip__store--green:hover  { background: #059669; border-color: #059669; }
.hero-strip__store--violet:hover { background: #7c3aed; border-color: #7c3aed; }

.hero-strip__store--orange i { color: #ea580c; }
.hero-strip__store--blue i   { color: #2563eb; }
.hero-strip__store--green i  { color: #059669; }
.hero-strip__store--violet i { color: #7c3aed; }

.hero-strip__store:hover i { color: white; }

/* ── البانر الجانبي القديم (مخفي) ── */
.hero-ad-banner {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 0;
  width: 17%;
  min-width: 160px;
  max-width: 220px;
  flex-shrink: 0;
  padding: 1.25rem 0.85rem;
  background: linear-gradient(160deg, var(--color-primary-soft, #fff7ed) 0%, rgba(255,255,255,0.5) 100%);
  border-right: 2px solid var(--color-primary-border, #fed7aa);
  position: relative;
}

.hero-ad-banner::before {
  content: '';
  position: absolute;
  top: 15%;
  bottom: 15%;
  right: -2px;
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--color-primary, #ea580c) 40%, var(--color-accent, #f59e0b) 60%, transparent);
  border-radius: 2px;
}

/* ── Stacked Cards ── */
.had-title {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding-bottom: 0.4rem;
  border-bottom: 1.5px solid var(--color-primary-border);
  width: 100%;
  white-space: nowrap;
}

.had-sub {
  font-size: 0.65rem;
  font-weight: 700;
  color: #9ca3af;
  margin-top: 0.3rem;
  margin-bottom: 0.6rem;
}

.had-cards {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  width: 100%;
}

.had-card {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.55rem;
  background: rgba(255,255,255,0.9);
  border: 1px solid var(--color-primary-border);
  border-radius: 0.6rem;
  text-decoration: none;
  color: #374151;
  font-size: 0.76rem;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.had-card:hover {
  background: var(--color-primary-soft);
  border-color: var(--color-primary);
  transform: translateX(-4px);
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.had-card__icon {
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 0.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  flex-shrink: 0;
}

.had-card__icon--orange { background: #fff7ed; color: #ea580c; }
.had-card__icon--blue   { background: #eff6ff; color: #2563eb; }
.had-card__icon--green  { background: #ecfdf5; color: #059669; }
.had-card__icon--violet { background: #f5f3ff; color: #7c3aed; }

.had-card__name { flex: 1; }

.had-card__arrow {
  font-size: 0.7rem;
  opacity: 0.3;
  transition: opacity 0.2s, transform 0.2s;
}

.had-card:hover .had-card__arrow {
  opacity: 0.8;
  transform: translateX(-3px);
}

@media (min-width: 1024px) {
  .hero-ad-banner { display: flex; }
}

.hero-ad-banner__title {
  font-size: 0.72rem;
  font-weight: 700;
  color: #f97316;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  border-bottom: 1px solid #fed7aa;
  padding-bottom: 0.4rem;
  width: 100%;
  white-space: nowrap;
}

.hero-ad-banner__body {
  position: relative;
  min-height: 2rem;
  width: 100%;
}

.hero-ad-banner__link {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #374151;
  text-decoration: none;
  position: absolute;
  top: 0; left: 0; right: 0;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 0.45s ease, transform 0.45s ease;
  pointer-events: none;
  white-space: nowrap;
}

.hero-ad-banner__link.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.hero-ad-banner__link:hover { color: #f97316; }

.hero-ad-banner__icon { font-size: 1rem; line-height: 1; }

.hero-ad-banner__dots {
  display: flex;
  gap: 4px;
  margin-top: 2px;
}

.hero-ad-banner__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #e5e7eb;
  transition: background 0.3s, transform 0.3s;
}

.hero-ad-banner__dot.is-active {
  background: #f97316;
  transform: scale(1.3);
}

.hero-ad-banner__compact {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
}

.hero-ad-banner--full-image .hero-ad-banner__compact {
  display: none;
}

.hero-ad-banner__image-slide {
  display: none;
  border-radius: 0.6rem;
  overflow: hidden;
  width: 100%;
  box-shadow: 0 3px 12px rgba(0,0,0,0.15);
  transition: transform 0.2s;
}

.hero-ad-banner--full-image .hero-ad-banner__image-slide {
  display: block;
}

.hero-ad-banner__image-slide:hover {
  transform: scale(1.02);
}

.hero-ad-banner__image-slide img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-swiper-pagination {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-swiper-pagination .swiper-pagination-bullet {
  width: 0.7rem;
  height: 0.7rem;
  margin: 0;
  background: var(--color-primary-border);
  opacity: 1;
}

.hero-swiper-pagination .swiper-pagination-bullet-active {
  width: 2rem;
  border-radius: 999px;
  background: var(--color-primary);
}

@media (max-width: 767px) {
  .hero-slide {
    min-height: auto;
    padding-top: 1rem;
    padding-bottom: 2.5rem;
  }

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

  .hero-copy {
    font-size: 1.05rem;
  }

  .hero-media {
    width: min(88vw, 340px);
  }

  .hero-float-card {
    right: 0;
    bottom: -1rem;
  }

  .hero-controls {
    margin-top: 0;
  }
}

.soft-section-bg {
  background: var(--soft-section-bg);
}

/* ── Section spacing override ───────────────────────── */
section.py-20,
.soft-section-bg.py-20 {
  padding-top: 2.5rem !important;
  padding-bottom: 1.25rem !important;
}
div.text-center.mb-16 {
  margin-bottom: 0.75rem !important;
}
/* ────────────────────────────────────────────────────── */

/* ── Section title brush-stroke underline ────────────── */
div.text-center.mb-16::after {
  content: '';
  display: block;
  width: 300px;
  height: 40px;
  margin: 0.1rem auto 0;
  background-color: var(--color-primary);
  filter: brightness(0.82);
  -webkit-mask-image: url('../images/brush-stroke.svg');
  mask-image: url('../images/brush-stroke.svg');
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-mode: luminance;
  mask-mode: luminance;
}
/* ────────────────────────────────────────────────────── */

/* ── Section Divider ────────────────────────────────── */
.section-sep {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  position: relative;
  z-index: 2;
  color: var(--color-primary);
  overflow: visible;
}

.section-sep__svg {
  flex: 1;
  height: 28px;
  display: block;
  overflow: visible;
}

.section-sep__gem {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 12px;
}

.section-sep__gem-center {
  width: 16px;
  height: 16px;
  background: var(--color-primary);
  transform: rotate(45deg);
  border-radius: 3px;
  box-shadow: 0 0 0 3px var(--color-primary-soft), 0 0 0 5px var(--color-primary-border);
  flex-shrink: 0;
}

.section-sep__gem-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
  opacity: 0.45;
  flex-shrink: 0;
}

.section-sep__gem-dot--sm {
  width: 4px;
  height: 4px;
  opacity: 0.25;
}
/* ────────────────────────────────────────────────────── */

.course-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  border-top: 1px solid var(--color-accent-soft);
  padding-top: 1rem;
  color: #64748b;
  font-size: 0.92rem;
  font-weight: 800;
}

.course-meta-row span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: var(--color-primary-soft);
  padding: 0.35rem 0.75rem;
  color: var(--color-primary-dark);
}

.course-meta-row strong {
  color: #111827;
  font-size: 1.1rem;
  font-weight: 900;
}

.articles-carousel-wrap {
  position: relative;
}

.articlesSwiper {
  padding: 0.25rem 0.25rem 1rem;
}

.articlesSwiper .swiper-slide {
  height: auto;
}

.article-card {
  display: flex;
  min-height: 260px;
  height: 100%;
  flex-direction: column;
  border: 1px solid #e2e8f0;
  border-radius: 1.25rem;
  background: #ffffff;
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.05);
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.article-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-primary-border);
  box-shadow: 0 20px 44px rgba(124, 45, 18, 0.09);
}

.article-card-img {
  position: relative;
  height: 180px;
  overflow: hidden;
  flex-shrink: 0;
  background: #f1f5f9;
}

.article-card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.4s ease;
}

.article-card--story .article-card-img {
  height: 240px;
}

.article-card--story .article-card-img img,
.article-card-img--story img {
  object-fit: cover;
}

.article-card-story-overlay {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1rem 1rem 1.1rem;
}

.article-card-story-overlay span {
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-primary-dark);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

.article-card-story-overlay h3 {
  margin: 0;
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 900;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.article-card:hover .article-card-img img {
  transform: scale(1.08);
}

.article-card-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(15, 23, 42, 0.25));
}

.article-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.1rem;
}

.article-card-body--story {
  padding-top: 1rem;
}

.article-card-story-summary {
  margin-top: 0;
  color: #64748b;
  line-height: 1.75;
  font-size: 0.92rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card-story-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid #f1f5f9;
}

.article-card-story-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease;
}

.article-card--story:hover .article-card-story-arrow {
  background: var(--color-primary);
  color: #ffffff;
  transform: translateX(-2px);
}

.article-card span {
  width: fit-content;
  border-radius: 999px;
  background: var(--color-primary-soft);
  padding: 0.35rem 0.75rem;
  color: var(--color-primary-dark);
  font-size: 0.82rem;
  font-weight: 900;
}

.article-card h3 {
  margin-top: 0.75rem;
  color: #111827;
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1.5;
}

.article-card p {
  margin-top: 0.5rem;
  color: #64748b;
  line-height: 1.75;
  font-size: 0.9rem;
}

.article-card div {
  margin-top: auto;
  padding-top: 1.1rem;
}

.article-card small {
  color: #94a3b8;
  font-weight: 800;
}

.article-card a {
  margin-top: 1rem;
  color: var(--color-primary);
  font-weight: 900;
}

.articles-carousel-controls {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.articles-carousel-controls button {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border: 1px solid var(--color-primary-border);
  border-radius: 999px;
  background: #ffffff;
  color: var(--color-primary-dark);
  box-shadow: 0 12px 28px rgba(124, 45, 18, 0.08);
  transition:
    transform 0.25s ease,
    background-color 0.25s ease,
    color 0.25s ease;
}

.articles-carousel-controls button:hover {
  transform: translateY(-2px);
  background: var(--color-primary);
  color: #ffffff;
}
.media-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .media-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Stories section — 4 columns with smaller cards */
@media (min-width: 768px) {
  #stories .media-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ── Articles cards — rounded aesthetic ─────────────── */
#articles .media-card {
  display: block !important;
  border-radius: 2.5rem !important;
  overflow: hidden !important;
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.12),
              0 0 0 2px rgba(15, 23, 42, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  /* Fixed height for equal cards */
  height: 360px;
  min-height: 0;
}
#articles .media-card img {
  border-radius: 0 !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
  object-fit: cover;
}
#articles .media-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.18),
              0 0 0 2.5px var(--color-primary);
}
/* ────────────────────────────────────────────────────── */

#stories .media-card {
  min-height: 220px;
}

#stories .media-card img {
  min-height: 220px;
  max-height: 220px;
}

#stories .media-card h3 {
  font-size: 1rem;
  margin-top: 0.3rem;
}

#stories .media-card > span {
  width: 2.25rem;
  height: 2.25rem;
  font-size: 1.25rem;
}

/* ── Story animated frame ───────────────────────────── */
.story-frame {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  padding: 5px;
  border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  animation: morph 8s ease-in-out infinite;
  overflow: hidden;
  display: block;
  height: 340px;
  /* GPU compositing — fixes Android overflow clip bug */
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  isolation: isolate;
  will-change: border-radius;
}

.story-card-wrap {
  position: relative;
  /* Ensure nothing escapes the frame */
  isolation: isolate;
}

.story-frame > .media-card {
  border-radius: inherit !important;
  box-shadow: none !important;
  height: 100%;
  min-height: 0;
  overflow: hidden !important;
  /* Follow parent border-radius animation smoothly */
  transition: border-radius 0.05s linear !important;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

.story-frame > .media-card img {
  min-height: 0 !important;
  max-height: none !important;
  height: 100%;
  transition: transform 0.45s ease !important;
  will-change: transform;
}

/* Scale inside the frame — clipped by overflow:hidden on story-frame */
.story-frame:hover > .media-card img {
  transform: scale(1.07) !important;
}
/* ── Story card: outer wrapper & info below frame ───── */
.story-card-wrap {
  position: relative;
}

/* Hide default media-card gradient inside story-media */
.story-media::after {
  display: none !important;
}

/* Reading time badge — top-right inside frame */
.story-badge {
  position: absolute;
  z-index: 10;
  padding: 0.22rem 0.6rem;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  pointer-events: none;
}
.story-badge--time {
  top: 0.65rem;
  right: 0.65rem;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
}

/* Category badge — above frame top-left, theme color (like heart btn) */
.story-cat-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 999;
  padding: 0.3rem 0.78rem;
  border-radius: 100px;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
  pointer-events: none;
}

/* Title + button row below the blob frame */
.story-info {
  padding: 0.7rem 0.25rem 0.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  direction: rtl;
  text-align: center;
}
.story-info__title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--color-primary);
  margin: 0;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 55%;
  text-decoration: none;
  transition: color 0.2s;
}
.story-info__title:hover {
  color: var(--color-accent);
}
.story-info__btn {
  flex-shrink: 0;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-size: 1.05rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
  margin-right: 1.5rem;
}
.story-info__btn:hover {
  background: var(--color-accent);
  transform: scale(1.12);
}
/* ────────────────────────────────────────────────────── */

/* ── Book flip card ─────────────────────────────────── */
.book-flip {
  perspective: 1200px;
  height: 720px;
  cursor: pointer;
  will-change: transform;
  border-radius: 1.35rem;
  box-shadow: 0 0 0 3px var(--color-primary);
}

.book-flip__inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  transition: transform 0.65s cubic-bezier(.4,0,.2,1);
  -webkit-transition: -webkit-transform 0.65s cubic-bezier(.4,0,.2,1);
}

.book-flip:hover .book-flip__inner {
  transform: rotateY(180deg);
  -webkit-transform: rotateY(180deg);
}

.book-flip__front,
.book-flip__back {
  position: absolute;
  inset: 0;
  border-radius: 1.35rem;
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

.book-flip__front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.book-flip__front::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,23,42,.05), rgba(15,23,42,.72));
}

.book-flip__front-info {
  position: absolute;
  bottom: 1.25rem;
  right: 1.25rem;
  left: 1.25rem;
  z-index: 1;
  color: #fff;
}

.book-flip__front-info small {
  display: block;
  font-size: .78rem;
  font-weight: 900;
  color: #fbbf24;
  letter-spacing: .04em;
}

.book-flip__front-info h3 {
  margin: .3rem 0 .25rem;
  font-size: 1.2rem;
  font-weight: 900;
  line-height: 1.35;
}

.book-flip__front-info .book-price {
  display: inline-block;
  background: rgba(255,255,255,.18);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.3);
  padding: .2rem .75rem;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 800;
  color: #fff;
}

.book-flip__front-icon {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 1;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  color: var(--color-primary);
}

.book-flip__back {
  transform: rotateY(180deg);
  background: linear-gradient(145deg, #1e1b4b 0%, #3b0764 50%, #581c87 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.75rem 1.5rem;
  text-align: center;
  gap: .75rem;
}

.book-flip__back::before {
  content: '"';
  position: absolute;
  top: .5rem;
  right: 1rem;
  font-size: 6rem;
  line-height: 1;
  color: rgba(255,255,255,.08);
  font-family: Georgia, serif;
  pointer-events: none;
}

.book-flip__back-icon {
  font-size: 2rem;
  background: rgba(255,255,255,.12);
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #e9d5ff;
  border: 1px solid rgba(255,255,255,.2);
}

.book-flip__back h3 {
  font-size: 1.05rem;
  font-weight: 900;
  color: #fff;
  line-height: 1.4;
  margin: 0;
}

.book-flip__back p {
  font-size: .85rem;
  color: #d8b4fe;
  line-height: 1.7;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.book-flip__back-price {
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  color: #fde68a;
  padding: .25rem .9rem;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 800;
}

.book-flip__back-btn {
  display: inline-block;
  background: #fff;
  color: #581c87;
  padding: .55rem 1.5rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: .88rem;
  text-decoration: none;
  transition: background .2s, color .2s;
  margin-top: .25rem;
}

.book-flip__back-btn:hover {
  background: #fde68a;
  color: #3b0764;
}
/* ────────────────────────────────────────────────────── */

.media-card {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  border-radius: 1.35rem;
  box-shadow: 0 24px 54px rgba(15, 23, 42, 0.13);
}

.media-card img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.media-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0.08),
    rgba(15, 23, 42, 0.78)
  );
  pointer-events: none;
}

.media-card > span {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 1;
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-primary);
  font-size: 1.75rem;
}

.media-card div {
  position: absolute;
  right: 1.25rem;
  bottom: 1.25rem;
  left: 1.25rem;
  z-index: 1;
  color: #ffffff;
}

.media-card small {
  color: var(--color-primary-border);
  font-weight: 900;
}

.media-card h3 {
  margin-top: 0.45rem;
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1.45;
}

.media-card p {
  margin-top: 0.35rem;
  color: #e2e8f0;
  font-weight: 800;
}

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

/* Like button */
.like-btn {
  position: absolute;
  top: .75rem;
  right: .75rem;
  z-index: 20;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.92);
  color: #94a3b8;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s, color .2s, transform .15s;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
  pointer-events: all;
}

.like-btn:hover {
  background: #fff;
  color: #f43f5e;
  transform: scale(1.12);
}

.like-btn.liked {
  background: #fff;
  color: #f43f5e;
}

.detail-page {
  min-height: 100vh;
  background:
    radial-gradient(
      circle at 15% 10%,
      rgba(255, 237, 213, 0.65),
      transparent 30%
    ),
    radial-gradient(
      circle at 86% 18%,
      rgba(224, 242, 254, 0.85),
      transparent 32%
    ),
    linear-gradient(135deg, #ffffff, #f8fafc 48%, #eef6fb);
}

.detail-back {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
  color: var(--color-primary-dark);
  font-weight: 900;
}

.detail-shell {
  display: grid;
  align-items: center;
  gap: 2.5rem;
  overflow: hidden;
  border: 1px solid rgba(254, 215, 170, 0.72);
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.82);
  padding: 1.25rem;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.1);
  backdrop-filter: blur(16px);
}

@media (min-width: 1024px) {
  .detail-shell {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.82fr);
    padding: 2rem;
  }
}

.detail-hero-copy {
  padding: 1rem;
}

.detail-kicker {
  display: inline-flex;
  border-radius: 999px;
  background: var(--color-primary-soft);
  padding: 0.45rem 0.9rem;
  color: var(--color-primary-dark);
  font-size: 0.9rem;
  font-weight: 900;
}

.detail-hero-copy h1 {
  margin-top: 1.1rem;
  color: #111827;
  font-size: clamp(2.25rem, 5vw, 4.2rem);
  font-weight: 900;
  line-height: 1.22;
  letter-spacing: 0;
}

.detail-hero-copy p {
  margin-top: 1.1rem;
  max-width: 42rem;
  color: #4b5563;
  font-size: 1.18rem;
  line-height: 1.9;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.5rem;
}

.detail-meta span {
  border: 1px solid var(--color-primary-border);
  border-radius: 999px;
  background: #ffffff;
  padding: 0.5rem 0.85rem;
  color: #475569;
  font-size: 0.9rem;
  font-weight: 800;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.detail-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.9rem 1.35rem;
  font-weight: 900;
}

.detail-actions a:first-child {
  background: var(--color-primary);
  color: #ffffff;
}

.detail-actions a:last-child {
  border: 1px solid var(--color-primary-border);
  background: #ffffff;
  color: var(--color-primary-dark);
}

.detail-media {
  position: relative;
  overflow: hidden;
  border-radius: 1.25rem;
  min-height: 320px;
}

.detail-media img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

.detail-content-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

@media (min-width: 900px) {
  .detail-content-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  }
}

.detail-card {
  border: 1px solid #e2e8f0;
  border-radius: 1.25rem;
  background: #ffffff;
  padding: 1.5rem;
  box-shadow: 0 14px 38px rgba(15, 23, 42, 0.06);
}

.detail-card h2 {
  margin-bottom: 1rem;
  color: #111827;
  font-size: 1.35rem;
  font-weight: 900;
}

.detail-card ul {
  display: grid;
  gap: 0.85rem;
}

.detail-card li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  color: #475569;
  font-weight: 700;
  line-height: 1.8;
}

.detail-card li i {
  margin-top: 0.25rem;
  color: var(--color-primary);
  font-size: 1.25rem;
}

.detail-card dl {
  display: grid;
  gap: 0.75rem;
}

.detail-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 0.75rem;
}

.detail-card dt {
  color: #64748b;
  font-weight: 800;
}

.detail-card dd {
  color: #111827;
  font-weight: 900;
}

.stat-card {
  position: relative;
  display: flex;
  min-height: 180px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: none;
  border-radius: 1.5rem;
  background: #ffffff;
  padding: 2rem 1.25rem 1.75rem;
  text-align: center;
  box-shadow:
    0 1px 3px rgba(15, 23, 42, 0.04),
    0 8px 32px rgba(15, 23, 42, 0.06);
  transition:
    transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.3s ease;
}

/* شريط لوني علوي عريض */
.stat-card::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
}

/* دائرة زخرفية خلفية */
.stat-card::after {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  bottom: -30px;
  left: -30px;
  border-radius: 999px;
  background: var(--color-primary-soft);
  opacity: 0.5;
  z-index: 0;
  transition: transform 0.4s ease, opacity 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-8px);
  box-shadow:
    0 4px 12px rgba(15, 23, 42, 0.06),
    0 20px 48px color-mix(in srgb, var(--color-primary) 10%, rgba(15, 23, 42, 0.1));
}

.stat-card:hover::after {
  transform: scale(1.4);
  opacity: 0.7;
}

.stat-icon {
  position: relative;
  z-index: 1;
  display: grid;
  width: 3.25rem;
  height: 3.25rem;
  margin-bottom: 1rem;
  place-items: center;
  border-radius: 1rem;
  background: linear-gradient(135deg, var(--color-primary-soft), var(--color-accent-soft));
  color: var(--color-primary);
  font-size: 1.4rem;
  transition:
    transform 0.3s ease,
    background-color 0.3s ease;
}

.stat-card:hover .stat-icon {
  transform: scale(1.1) rotate(-4deg);
}

.stat-number {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.1em;
  direction: ltr;
  color: #0f172a;
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.stat-suffix {
  font-size: 0.5em;
  font-weight: 900;
  line-height: 1;
  color: var(--color-primary);
}

.stat-label {
  position: relative;
  z-index: 1;
  margin-top: 0.6rem;
  color: #94a3b8;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.01em;
}

.float-delay-0 {
  animation-delay: 0s;
}

.float-delay-2 {
  animation-delay: 2s;
}

.float-delay-4 {
  animation-delay: 4s;
}

.soft-bounce {
  animation-duration: 3s;
}

.book-stage {
  transform-style: preserve-3d;
}

.book-shadow-layer {
  transform: translateZ(-20px);
}

.book-cover {
  transform: translateZ(20px);
}

.book-year {
  transform: translateZ(30px);
}

.hover\:text-white:hover { color: #ffffff !important; }

@media (max-width: 767px) { .whatsapp-float, .back-to-top { bottom: 6.5rem !important; } }

/* ═══════════════════════════════════════════════════════
   MOBILE RESPONSIVE FIXES
   ═══════════════════════════════════════════════════════ */

/* ── Section title underline — responsive width ── */
@media (max-width: 640px) {
  div.text-center.mb-16::after {
    width: 160px !important;
    height: 22px !important;
  }
}

/* ── Media cards — reduce min-height on mobile ── */
@media (max-width: 640px) {
  .media-card { min-height: 220px; }
  .media-card img { min-height: 220px; }
  .media-card > span {
    width: 2.25rem; height: 2.25rem; font-size: 1.25rem;
  }
  .media-card div {
    right: 0.75rem; bottom: 0.75rem; left: 0.75rem;
  }
  .media-card h3 { font-size: 1.05rem; }
}

/* ── Story frame — adaptive height ── */
@media (max-width: 640px) {
  .story-frame { height: 280px; }
}
@media (max-width: 480px) {
  .story-frame { height: 240px; }
}

/* ── Story card info — prevent overflow ── */
@media (max-width: 480px) {
  .story-info { flex-wrap: wrap; gap: 0.3rem; }
  .story-info__title { max-width: 100%; font-size: 1rem; }
  .story-info__btn { margin-right: 0; }
}

/* ── Stories grid — 2 columns on mobile ── */
@media (max-width: 640px) {
  #stories .media-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 380px) {
  #stories .media-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ── Books grid — 1 column on mobile ── */
@media (max-width: 640px) {
  #books .media-grid {
    grid-template-columns: 1fr !important;
  }
  .book-flip { height: 480px !important; }
}

/* ── Hero float card — prevent off-screen ── */
@media (max-width: 480px) {
  .hero-float-card { right: 0; bottom: -0.5rem; }
}

/* ── FAB buttons spacing on mobile ── */
@media (max-width: 640px) {
  .whatsapp-float, .back-to-top { bottom: 5rem !important; right: 0.75rem !important; }
}

/* ── Section spacing on mobile ── */
@media (max-width: 640px) {
  section.py-20, .soft-section-bg.py-20 {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
  }
  div.text-center.mb-16 { margin-bottom: 1rem !important; }
}

/* ── Mobile image display fixes ── */

/* Fallback for browsers not supporting aspect-ratio (old iOS Safari) */
@supports not (aspect-ratio: 1) {
  .hero-media { min-height: 300px; }
  .hero-media-card { min-height: 260px; }
}

/* Ensure media card images have explicit height on mobile */
@media (max-width: 767px) {
  .hero-media { min-height: 260px; }
  .hero-media-card { min-height: 240px; }

  /* Fix height: 100% dependency on min-height-only parents */
  .media-card { height: auto; }
  .media-card img {
    width: 100%;
    height: 220px !important;
    min-height: 0 !important;
    object-fit: cover;
    display: block;
  }
  /* Story frame image override */
  .story-frame > .media-card img {
    height: 100% !important;
  }
  /* Book flip image */
  .book-flip__front img {
    height: 100% !important;
  }
}

/* Book flip on mobile: click-based, no hover */
@media (max-width: 767px) {
  /* Front face — always visible on mobile until flipped */
  .book-flip__front {
    backface-visibility: visible !important;
    -webkit-backface-visibility: visible !important;
  }
  .book-flip__back {
    backface-visibility: visible !important;
    -webkit-backface-visibility: visible !important;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.65s cubic-bezier(.4,0,.2,1) !important;
    pointer-events: none;
  }
  /* When flipped via JS class */
  .book-flip.is-flipped .book-flip__inner {
    transform: rotateY(180deg) !important;
    -webkit-transform: rotateY(180deg) !important;
  }
  .book-flip.is-flipped .book-flip__back {
    opacity: 1;
    pointer-events: all;
  }
  .book-flip.is-flipped .book-flip__front {
    opacity: 0;
  }
  /* Disable CSS hover on touch */
  .book-flip:hover .book-flip__inner {
    transform: none !important;
    -webkit-transform: none !important;
  }
}

/* Swiper hero images on mobile */
.heroSwiper .swiper-slide img,
.heroSwiper .hero-slide img {
  width: 100%;
  display: block;
}

/* ── Disable AOS on mobile to prevent hidden images ── */
@media (max-width: 768px) {
  [data-aos] {
    opacity: 1 !important;
    transform: none !important;
    transition-duration: 0s !important;
    transition-delay: 0s !important;
    pointer-events: auto !important;
  }
  [data-aos].aos-animate {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ══ Navbar alignment fix on mobile ══════════════════ */
@media (max-width: 640px) {
  #nav-wrapper {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  #navbar {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
}

/* ══ Page loading spinner ════════════════════════════ */
#page-loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #fffbf5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  transition: opacity 0.45s ease;
}
#page-loader.loader-hide {
  opacity: 0;
  pointer-events: none;
}
.loader-ring {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 4px solid #fde8cc;
  border-top-color: var(--color-primary, #b45309);
  animation: loader-spin 0.75s linear infinite;
}
.loader-text {
  font-size: 0.9rem;
  font-weight: 700;
  color: #b45309;
  opacity: 0.7;
}
@keyframes loader-spin { to { transform: rotate(360deg); } }

/* ══ Mobile overflow & layout fixes ═════════════════ */
@media (max-width: 767px) {
  /* Hero float card — don't go outside frame on mobile */
  .hero-float-card {
    right: 0 !important;
    bottom: -0.5rem !important;
    font-size: 0.78rem;
    padding: 0.65rem !important;
    gap: 0.55rem !important;
    max-width: 85% !important;
  }

  /* Hero media — contain within viewport */
  .hero-media {
    overflow: hidden !important;
  }

  /* Hero image frame — no negative overflow */
  .hero-image-frame {
    overflow: hidden !important;
    max-width: 100% !important;
  }

  /* Any absolute blobs — stay contained */
  .absolute.rounded-full {
    overflow: hidden !important;
  }

  /* Ensure Swiper hero doesn't overflow */
  .heroSwiper {
    overflow: hidden !important;
  }

  /* Fix media-grid for mobile */
  .media-grid {
    overflow: hidden !important;
  }

  /* Sections — enforce no overflow */
  section > div,
  header > div {
    max-width: 100% !important;
  }
}

/* ── YouTube Player Modal ── */
#yt-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0);
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease;
}

#yt-modal.is-open {
  display: flex;
  background: rgba(0, 0, 0, 0.88);
}

.yt-modal__wrap {
  position: relative;
  width: 92%;
  max-width: 900px;
  animation: yt-modal-in 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes yt-modal-in {
  from { opacity: 0; transform: scale(0.92) translateY(20px); }
  to   { opacity: 1; transform: scale(1)    translateY(0); }
}

.yt-modal__close {
  position: absolute;
  top: -2.75rem;
  left: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.yt-modal__close:hover { background: rgba(255,255,255,0.22); }

.yt-modal__player {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}

.yt-modal__player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.yt-modal__title {
  color: rgba(255,255,255,0.85);
  font-weight: 700;
  font-size: 0.95rem;
  text-align: center;
  margin-top: 0.85rem;
  direction: rtl;
}
