@charset "UTF-8";
/* Ultra Minimal — like your refs */
/* Fonts */
/* Colors */
/* Spacing (8px grid) */
/* Radius + transition (خفيفين) */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* =========================
   GLOBAL BASE — Ultra Minimal
   ========================= */
html, body {
  min-height: 100vh;
  margin: 0;
  padding: 0;
  background: repeating-linear-gradient(135deg, rgba(0, 0, 0, 0.015) 0px, rgba(0, 0, 0, 0.015) 1px, transparent 1px, transparent 22px), radial-gradient(circle at 20% 20%, #f4f4f9 0%, #ffffff 65%);
  background-size: cover;
  background-attachment: fixed;
  color: #111827;
  font-family: "Cairo", sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

/* عناوين الصفحة */
h1 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

h2 {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 8px;
}

h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 6px;
}

p {
  font-size: 1rem;
  opacity: 0.9;
  margin-bottom: 16px;
}

/* الروابط */
a {
  color: #0f172a;
  text-decoration: none;
  transition: 0.2s ease;
}

a:hover {
  opacity: 0.7;
}

/* حاوية عامة */
.container {
  width: 100%;
  max-width: 1040px;
  margin-inline: auto;
  padding: 32px 24px;
}

h1 {
  font-size: 2.1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h2 {
  font-size: 1.4rem;
  font-weight: 500;
  margin-bottom: 8px;
}

p {
  font-size: 0.98rem;
  color: #111827;
  margin-bottom: 16px;
}

a {
  color: #0c3470;
  text-decoration: none;
  transition: opacity 0.2s ease;
}
a:hover {
  opacity: 0.6;
}

.flex {
  display: flex;
}

.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.space-between {
  display: flex;
  justify-content: space-between;
}

.mt-1 {
  margin-top: 8px;
}

.mt-2 {
  margin-top: 16px;
}

.mt-3 {
  margin-top: 24px;
}

.p-1 {
  padding: 8px;
}

.p-2 {
  padding: 16px;
}

[dir=rtl] {
  font-family: "Cairo", sans-serif;
  direction: rtl;
  text-align: right;
}

[dir=ltr] {
  font-family: "Inter", sans-serif;
  direction: ltr;
  text-align: left;
}

/* ============================================
   🎨 VARIABLES — ألوان وبارامترات التصميم
   ============================================ */
:root {
  --gate-bg: #f4f4f9; /* لون إطار القلعة والخلفية */
  --wood-main: #ffffff; /* لون الخشب الأساسي */
  --wood-dark: #f4f4f9; /* خطوط خشب خفيفة */
  --metal: #9ca3af; /* معدن أساسي */
  --metal-light: rgba(156,163,175,0.35); /* معدن فاتح */
}

/* ============================================
   🧱 خلفية الصفحة + تمركز عنصر البوابة
   ============================================ */
.castle-gate-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

/* ============================================
   🏰 إطار البوابة (المستطيل المنحني)
   perspective → مهم للـ 3D
   ============================================ */
.castle-gate {
  position: relative;
  width: min(420px, 80vw);
  height: 520px;
  border-radius: 90px 90px 18px 18px;
  background: var(--gate-bg);
  padding: 8px;
  box-shadow: 0 0 0 1px rgba(156, 163, 175, 0.35), 0 12px 24px rgba(156, 163, 175, 0.25);
  display: flex;
  overflow: hidden;
  /* 🔥 إضافة منظور ثلاثي الأبعاد */
  perspective: 1200px;
}

/* ============================================
   🚪 تصميم البابين (قبل الحركة)
   ============================================ */
.castle-gate__door {
  position: relative;
  flex: 1;
  height: 100%;
  background: linear-gradient(90deg, rgba(156, 163, 175, 0.08) 0, transparent 14%, transparent 86%, rgba(156, 163, 175, 0.08) 100%), repeating-linear-gradient(90deg, var(--wood-main) 0, var(--wood-main) 18px, var(--wood-dark) 18px, var(--wood-dark) 36px);
  box-shadow: inset 0 0 12px rgba(156, 163, 175, 0.25);
  transition: transform 0.6s ease; /* للهوفر */
}

/* الفاصل بين البابين + نقطة الدوران 3D */
.castle-gate__door--left {
  border-right: 1px solid rgba(156, 163, 175, 0.4);
  transform-origin: left center; /* مهم للحركة 3D */
}

.castle-gate__door--right {
  border-left: 1px solid rgba(156, 163, 175, 0.25);
  transform-origin: right center; /* مهم للحركة 3D */
}

/* ============================================
   ✨ صقل حواف الأبواب
   ============================================ */
.castle-gate__door::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 80px 80px 12px 12px;
  box-shadow: inset 0 10px 20px rgba(156, 163, 175, 0.18), inset 0 -10px 20px rgba(156, 163, 175, 0.18);
}

/* ============================================
   ⚙️ قطع الحديد داخل الباب
   ============================================ */
.castle-gate__hardware {
  position: absolute;
  inset: 0;
  padding: 40px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hardware-right {
  align-items: flex-end;
}

/* المفصلات */
.castle-gate__hinge {
  display: block;
  width: 46px;
  height: 10px;
  background: linear-gradient(90deg, var(--metal), var(--metal-light));
  border-radius: 999px;
  box-shadow: 0 1px 3px rgba(156, 163, 175, 0.2), inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}

/* الصف الحديدي */
.castle-gate__studs {
  display: block;
  width: 100%;
  height: 16px;
  border-radius: 999px;
  background: radial-gradient(circle, var(--metal-light) 18%, transparent 18%) 0 50%/16px 16px repeat-x;
  box-shadow: inset 0 0 0 1px rgba(156, 163, 175, 0.4);
}

/* المقبض */
.castle-gate__handle {
  position: relative;
  display: block;
  align-self: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--metal-light), 0 0 0 4px var(--metal), 0 6px 12px rgba(156, 163, 175, 0.25);
}

/* داخل المقبض */
.castle-gate__handle::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: 3px solid var(--metal-light);
  box-shadow: inset 0 0 6px rgba(156, 163, 175, 0.25);
}

/* القطعة العلوية للمقبض */
.castle-gate__handle::after {
  content: "";
  position: absolute;
  top: -10px;
  left: 50%;
  width: 10px;
  height: 12px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: linear-gradient(180deg, var(--metal-light), var(--metal));
}

/* ============================================
   🖱️ حركة بسيطة بالماوس (يمكن إلغاؤها)
   ============================================ */
.castle-gate:hover .castle-gate__door--left {
  transform: rotateY(5deg);
}

.castle-gate:hover .castle-gate__door--right {
  transform: rotateY(-5deg);
}

/* منع الهوفر أثناء الفتح الحقيقي */
.castle-gate:hover .castle-gate__door--left,
.castle-gate:hover .castle-gate__door--right {
  transform: none;
}

/* ============================================
   📌 النص داخل البوابة
   ============================================ */
.castle-gate__center {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  text-align: center;
  z-index: 0;
}

.castle-gate__title {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--metal);
  font-weight: 500;
}

/* ============================================
   🎬 أنيميشن فتح الأبواب — 3D حقيقي
   ============================================ */
/* الفاصل بين البابين + نقطة الدوران 3D من مركز البابين */
.castle-gate__door--left {
  border-right: 1px solid rgba(156, 163, 175, 0.4);
  transform-origin: right center; /* ✅ المفصلة في الحافة الوسطى */
}

.castle-gate__door--right {
  border-left: 1px solid rgba(156, 163, 175, 0.25);
  transform-origin: left center; /* ✅ المفصلة في الحافة الوسطى */
}

/* أنيميشن فتح الأبواب من المركز */
@keyframes openLeft {
  from {
    transform: rotateY(0deg);
  }
  to {
    transform: rotateY(-85deg);
  } /* الباب الأيسر يفتح من المركز */
}
@keyframes openRight {
  from {
    transform: rotateY(0deg);
  }
  to {
    transform: rotateY(85deg);
  } /* الباب الأيمن يفتح من المركز */
}
.castle-gate__percent {
  margin-top: 8px;
  font-size: 1rem;
  color: var(--metal);
  font-weight: 600;
}

.ip-landing {
  position: relative;
  width: 100%;
  height: 100vh;
  margin-inline: auto;
  display: flex;
  gap: 1rem;
  padding: 16px;
}
.ip-landing .ip-landing-menu {
  position: relative;
  width: 100%;
  height: calc(100vh - 100px);
  transition: width 0.25s ease-out;
  display: flex;
  justify-content: center;
  align-items: center;
}
.ip-landing .ip-landing-menu .ip-menu-header {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.ip-landing .ip-landing-menu .ip-menu-header .ip-logo {
  width: 100%;
  max-width: 150px;
  height: auto;
  border-radius: 50%;
  background: #ffffff;
  padding: 28px;
}
@media (min-width: 768px) {
  .ip-landing .ip-landing-menu .ip-menu-header .ip-logo {
    max-width: 200px;
  }
}
@media (min-width: 1024px) {
  .ip-landing .ip-landing-menu .ip-menu-header .ip-logo {
    max-width: 230px;
  }
}
.ip-landing .ip-landing-menu .ip-menu-list {
  width: 100%;
  height: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.ip-landing .ip-landing-menu .ip-menu-list .ip-menu-btn {
  flex: 1 1 33.333%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  cursor: pointer;
  border-radius: 15px;
  transition: all 0.22s ease-out;
}
.ip-landing .ip-landing-menu .ip-menu-list .ip-menu-btn.home {
  display: none;
  opacity: 1 !important;
  pointer-events: auto !important;
}
.ip-landing .ip-landing-menu .ip-menu-list .ip-menu-btn .icon {
  width: 44px !important;
  height: 44px !important;
}
.ip-landing .ip-landing-menu .ip-menu-list .ip-menu-btn .awareness-icon {
  color: rgb(12, 52, 112) !important;
}
.ip-landing .ip-landing-menu .ip-menu-list .ip-menu-btn .quiz-icon {
  color: rgb(62, 125, 0) !important;
}
.ip-landing .ip-landing-menu .ip-menu-list .ip-menu-btn .link-icon {
  color: rgb(62, 0, 125) !important;
}
.ip-landing .ip-landing-menu .ip-menu-list .ip-menu-btn .tut-icon {
  color: #9ca3af !important;
}
.ip-landing .ip-landing-menu .ip-menu-list .ip-menu-btn .ip-menu-btn__text {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  color: #111827;
  transition: color 0.22s ease-out;
}
.ip-landing .ip-landing-menu .ip-menu-list .ip-menu-btn .ip-menu-btn__text .ip-menu-btn__title {
  font-size: clamp(1rem, 4vw, 2rem);
  font-weight: 700;
}
.ip-landing .ip-landing-menu .ip-menu-list .ip-menu-btn .ip-menu-btn__text .ip-menu-btn__hint {
  font-size: clamp(0.875rem, 2.5vw, 1.5rem);
  font-weight: 500;
  opacity: 0.7;
}
.ip-landing .ip-landing-menu .ip-menu-list .ip-menu-btn.awareness:hover, .ip-landing .ip-landing-menu .ip-menu-list .ip-menu-btn.awareness.action {
  background-color: rgb(12, 52, 112);
  border-color: rgb(12, 52, 112);
}
.ip-landing .ip-landing-menu .ip-menu-list .ip-menu-btn.quiz:hover, .ip-landing .ip-landing-menu .ip-menu-list .ip-menu-btn.quiz.action {
  background-color: rgb(62, 125, 0);
  border-color: rgb(62, 125, 0);
}
.ip-landing .ip-landing-menu .ip-menu-list .ip-menu-btn.link:hover, .ip-landing .ip-landing-menu .ip-menu-list .ip-menu-btn.link.action {
  background-color: rgb(62, 0, 125);
  border-color: rgb(62, 0, 125);
}
.ip-landing .ip-landing-menu .ip-menu-list .ip-menu-btn:hover:not(.disabled) .ip-menu-btn__text, .ip-landing .ip-landing-menu .ip-menu-list .ip-menu-btn.action .ip-menu-btn__text {
  color: #f2f2f2;
}
.ip-landing .ip-landing-menu .ip-menu-list .ip-menu-btn:hover:not(.disabled) .icon, .ip-landing .ip-landing-menu .ip-menu-list .ip-menu-btn.action .icon {
  color: #f2f2f2 !important;
}
.ip-landing .ip-landing-menu .ip-menu-list .ip-menu-btn.disabled {
  background-color: rgba(12, 52, 112, 0.068);
  border-color: #9ca3af;
  cursor: not-allowed;
}
.ip-landing .ip-landing-menu .ip-menu-list .ip-menu-btn.disabled .ip-menu-btn__text {
  color: #9ca3af;
}
.ip-landing .ip-landing-menu .ip-menu-list .ip-menu-btn.home:hover {
  background-color: #f4f4f9;
  border-color: #111827;
}
.ip-landing .ip-landing-menu .ip-menu-list .ip-menu-btn.home:hover .ip-menu-btn__text,
.ip-landing .ip-landing-menu .ip-menu-list .ip-menu-btn.home:hover .icon {
  color: #111827 !important;
}
.ip-landing .ip-landing-menu .ip-menu-list .ip-menu-btn.link .ref-link {
  display: none;
  /* parent styles */
  flex: 1 1 40.333%;
  border: 1px solid red;
}
.ip-landing .ip-landing-menu .ip-menu-list .ip-menu-btn.link .ref-link .ref-icon {
  /* icon wrapper */
}
.ip-landing .ip-landing-menu .ip-menu-list .ip-menu-btn.link .ref-link .ref-icon svg {
  /* svg */
}
.ip-landing .ip-landing-menu .ip-menu-list .ip-menu-btn.link .ref-link .ref-content {
  /* content wrapper */
}
.ip-landing .ip-landing-menu .ip-menu-list .ip-menu-btn.link .ref-link .ref-content .ref-heading {
  /* heading */
}
.ip-landing .ip-landing-menu .ip-menu-list .ip-menu-btn.link .ref-link .ref-content .ref-desc {
  /* description */
}
.ip-landing .ip-landing-menu .ip-menu-list .ip-menu-btn.link .ref-link .ref-content .ref-url {
  /* url */
}
.ip-landing .ip-landing-content {
  height: calc(100vh - 100px);
  opacity: 0;
  transform: translateX(16px);
  pointer-events: none;
  transition: opacity 0.22s ease-out, transform 0.25s ease-out;
}
@media (max-width: 600px) {
  .ip-landing .ip-landing-menu,
  .ip-landing .ip-landing-content {
    height: calc(100vh - var(--footer-height));
  }
}
.ip-landing.item-click {
  max-width: 1200px;
}
.ip-landing.item-click .ip-landing-menu {
  width: 400px;
  flex-direction: column;
}
.ip-landing.item-click .ip-landing-menu .ip-menu-header {
  display: none;
}
.ip-landing.item-click .ip-landing-menu .ip-menu-list {
  height: auto;
  gap: 0.2rem;
}
.ip-landing.item-click .ip-landing-menu .ip-menu-list .ip-menu-btn {
  flex: 0 0 100%;
  height: 80px;
  flex-direction: row;
  justify-content: flex-start;
  gap: 0.2rem;
  padding-inline: 8px;
}
.ip-landing.item-click .ip-landing-menu .ip-menu-list .ip-menu-btn.home {
  display: flex;
}
.ip-landing.item-click .ip-landing-menu .ip-menu-list .ip-menu-btn .ip-menu-btn__text .ip-menu-btn__title {
  font-size: clamp(0.957rem, 4vw, 1.3rem);
}
.ip-landing.item-click .ip-landing-menu .ip-menu-list .ip-menu-btn .ip-menu-btn__text .ip-menu-btn__hint {
  display: none;
}
.ip-landing.item-click .ip-landing-content {
  width: 100%;
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
  justify-content: center;
  align-content: center;
}
.ip-landing.item-click .ip-landing-content .ip-quiz,
.ip-landing.item-click .ip-landing-content .ip-awareness,
.ip-landing.item-click .ip-landing-content .ip-links {
  width: 100%;
  height: 100%;
  margin-top: 15px;
  justify-content: center;
  align-content: center;
  flex-wrap: wrap;
  max-height: clamp(400px, 70vh, 520px);
  max-width: clamp(300px, 90vw, 1080px);
  background: #ffffff; /* $color-bg */
  padding: 16px; /* $space-2 */
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  border-radius: 20px; /* $radius * 2 */
}
.ip-landing.item-click .ip-landing-content .ip-links {
  flex-direction: column !important;
  align-content: center !important;
}
.ip-landing.item-click .ip-landing-content .ip-quiz {
  flex-direction: column !important;
}
@media (max-width: 700px) {
  .ip-landing.item-click .ip-landing-content {
    max-height: clamp(400px, 70vh, 520px);
  }
  .ip-landing.item-click .ip-landing-content .ip-quiz,
  .ip-landing.item-click .ip-landing-content .ip-awareness,
  .ip-landing.item-click .ip-landing-content .ip-links {
    align-content: flex-start;
  }
}

@media (max-width: 720px) {
  .ip-landing .ip-landing-menu {
    transition: height 0.25s ease-out;
  }
  /* your mobile CSS here */
  .ip-landing.item-click {
    flex-direction: column;
    gap: 1.2rem;
  }
  .ip-landing.item-click .ip-landing-menu {
    width: 100%;
    height: 160px;
    gap: 0.2rem;
    padding: 8px 0;
    flex-direction: column;
  }
  .ip-landing.item-click .ip-landing-menu .ip-menu-header {
    margin-top: 8px;
  }
  .ip-landing.item-click .ip-landing-menu .ip-menu-header .ip-logo {
    max-width: 250px;
  }
  .ip-landing.item-click .ip-landing-menu .ip-menu-list {
    height: auto;
    gap: 0.2rem;
    flex-direction: row;
    flex-wrap: nowrap;
  }
  .ip-landing.item-click .ip-landing-menu .ip-menu-list .ip-menu-btn {
    flex: 0 0 19.33%;
    height: 80px;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 0.2rem;
    padding-inline: 2px;
  }
  .ip-landing.item-click .ip-landing-menu .ip-menu-list .ip-menu-btn .icon {
    width: 24px !important;
    height: 24px !important;
  }
  .ip-landing.item-click .ip-landing-menu .ip-menu-list .ip-menu-btn .ip-menu-btn__text .ip-menu-btn__title {
    font-size: 0.69rem;
  }
  .ip-landing.item-click .ip-landing-menu .ip-menu-list .ip-menu-btn .ip-menu-btn__text .ip-menu-btn__hint {
    display: none;
  }
  .ip-landing.item-click .ip-landing-content {
    width: 100%;
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
  }
}
/* ----------------------------------------------------
   FOOTER STYLING0
---------------------------------------------------- */
.site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: #ffffff;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  font-family: "Cairo", sans-serif;
  z-index: 100;
}

.footer-container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* -------------------
   BRAND + LOGO
-------------------- */
.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  color: #111827;
  line-height: 1.4;
}

.footer-logo {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  -o-object-fit: contain;
     object-fit: contain;
  background-color: rgb(12, 52, 112);
  padding: 4px;
  transition: 0.2s ease;
}

/* Mobile */
@media (max-width: 600px) {
  .footer-logo {
    width: 32px;
    height: 32px;
  }
}
/* -------------------
   LANGUAGE BUTTON
-------------------- */
.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: rgba(12, 52, 112, 0.03);
  color: #0c3470;
  font-size: 13px;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: 0.2s ease;
}
.footer-lang-btn:hover {
  background: #0c3470;
  color: #ffffff;
  border-color: transparent;
  transform: translateY(-1px);
}
.footer-lang-btn:active {
  transform: translateY(0);
  opacity: 0.9;
}

/* -------------------
   TAGS
-------------------- */
.footer-tags {
  display: flex;
  gap: 8px;
}
.footer-tags span {
  font-size: 13px;
  color: #9ca3af;
  white-space: nowrap;
}

/* Mobile responsive */
@media (max-width: 600px) {
  .footer-container {
    flex-direction: column;
    gap: 8px;
    height: 100%;
    padding: 16px;
  }
  .site-footer {
    height: auto;
    padding: 16px 0;
  }
  .footer-tags {
    justify-content: center;
  }
}
/* Hidden: not shown + no space */
.zoom-box {
  display: none;
}

/* Visible state BEFORE animation */
.zoom-box.showing {
  display: flex; /* or flex / grid */
  opacity: 0;
  transform: scale(0.8);
}

/* Trigger zoom animation */
.zoom-box.animate-in {
  animation: zoomIn 0.35s ease forwards;
}

@keyframes zoomIn {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}
.ip-gate__ring {
  position: relative;
  width: clamp(220px, 30vw, 260px);
  aspect-ratio: 1/1;
  border-radius: 50%;
  background: #f4f4f9;
  box-shadow: 0 0 0 1px rgba(156, 163, 175, 0.3490196078), 0 12px 24px rgba(156, 163, 175, 0.25);
  overflow: hidden;
}

.ip-gate__center {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 22px;
  text-align: center;
  z-index: 1;
}

.ip-gate__title {
  margin: 0;
  line-height: 1.6;
  color: rgb(178, 139, 32);
  font-size: clamp(20px, 5vw, 32px);
  font-weight: 900;
}

/* doors (always open) */
.ip-gate__door {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  background: linear-gradient(90deg, rgba(156, 163, 175, 0.08), transparent 14%, transparent 86%, rgba(156, 163, 175, 0.08)), repeating-linear-gradient(90deg, #fff 0 18px, #f4f4f9 18px 36px);
  box-shadow: inset 0 0 12px rgba(156, 163, 175, 0.25);
  z-index: 2;
  opacity: 0.95;
}

.ip-gate__door--l {
  left: 0;
  transform: perspective(900px) translateX(-85%) rotateY(-78deg);
  transform-origin: 100% 50%;
  border-right: 1px solid rgba(156, 163, 175, 0.35);
}

.ip-gate__door--r {
  right: 0;
  transform: perspective(900px) translateX(85%) rotateY(78deg);
  transform-origin: 0 50%;
  border-left: 1px solid rgba(156, 163, 175, 0.25);
}

.footer-brand {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px 0;
}

.footer-brand a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: clamp(14px, 2.5vw, 16px);
}

.ip-logo {
  height: clamp(25px, 4vw, 40px);
  width: auto;
  display: block;
}

/* sequence pop-up after loader (NO transform → no stacking issues) */
/* =========================================
   MENU + FOOTER SEQUENCE (SAFE – NO TRANSFORM)
   ========================================= */
/* Initial hidden state (before loader finishes) */
.ip-menu-btn,
.site-footer {
  opacity: 0;
  pointer-events: none;
}

/* Visible state (after loader) */
.ip-menu-btn.pop,
.site-footer.pop {
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.28s ease;
}

/* Optional: smoother appearance on slower devices */
@media (prefers-reduced-motion: no-preference) {
  .ip-menu-btn.pop,
  .site-footer.pop {
    transition: opacity 0.28s ease;
  }
}
.gate-title {
  width: 100%;
  text-align: center;
  padding: 16px 24px;
  font-weight: 800;
  font-size: clamp(1.2rem, 3vw, 1.6rem);
}

.castle-gate__center {
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.castle-gate__center.fade-out {
  opacity: 0;
  transform: scale(0.96);
}

.gate-title {
  width: 100%;
  text-align: center;
  color: rgb(12, 52, 112);
  padding: 16px 24px;
  font-weight: 900;
  font-size: 3rem;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.gate-title.show {
  opacity: 1;
  transform: translateY(0);
}

.castle-gate {
  transition: border-radius 0.6s ease, width 0.6s ease, height 0.6s ease;
}

.castle-gate {
  overflow: hidden;
  transition: transform 0.6s ease, width 0.6s ease, height 0.6s ease, border-radius 0.6s ease;
}

.castle-gate.to-circle {
  width: 400px;
  height: 400px;
  border-radius: 50%;
}

/* ======================================
   COMING SOON — CENTERED CLEAN LAYOUT
   With subtle animations
   ====================================== */
/* الصفحة كاملة */
.coming-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #ffffff;
  padding: 32px 16px;
  color: #111827;
}

/* الحاوية الأساسية */
.coming-shell {
  width: 100%;
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
  opacity: 0;
  transform: translateY(12px);
  animation: pageFadeIn 0.6s ease forwards;
}

/* اللوجو */
.coming-logo {
  width: 72px;
  margin: 0 auto 24px auto;
}

/* عنوان الشركة */
.coming-title {
  font-size: 1.9rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

/* الوصف القصير */
.coming-subtitle {
  font-size: 1rem;
  opacity: 0.75;
  margin-bottom: 40px;
}

/* العدّاد */
.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}

.countdown-item {
  padding: 18px 6px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  opacity: 0;
  transform: translateY(8px);
  animation: itemFadeUp 0.55s ease forwards;
}

/* تأخير بسيط بين العناصر */
.countdown-item:nth-child(1) {
  animation-delay: 0.05s;
}

.countdown-item:nth-child(2) {
  animation-delay: 0.1s;
}

.countdown-item:nth-child(3) {
  animation-delay: 0.15s;
}

.countdown-item:nth-child(4) {
  animation-delay: 0.2s;
}

.countdown-number {
  font-size: 1.7rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.countdown-label {
  font-size: 0.85rem;
  opacity: 0.7;
}

/* وصف المنصة */
.coming-description {
  font-size: 0.95rem;
  opacity: 0.9;
  margin-bottom: 32px;
  line-height: 1.7;
}

/* زر الانتقال */
.coming-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 26px;
  border-radius: 40px;
  border: 1px solid #111827;
  color: #111827;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  margin-bottom: 48px;
}

.coming-cta:hover {
  background: #111827;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.15);
}

/* الفوتر */
.coming-footer {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #e5e7eb;
  font-size: 0.8rem;
  opacity: 0.7;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.lang-switch {
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.lang-switch:hover {
  opacity: 0.6;
}

/* ============= Animations ============= */
@keyframes pageFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes itemFadeUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* موبايل */
@media (max-width: 600px) {
  .coming-title {
    font-size: 1.6rem;
  }
  .countdown {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .coming-footer {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}
.story-shell {
  height: 100%;
  width: 100%;
}

.story-card {
  position: relative;
  height: 100%; /* ثابت */
  width: 100%;
}

.story-progress {
  display: flex;
  gap: 4px;
  margin-top: 8px;
  margin-bottom: 16px;
}

.story-bar {
  flex: 1;
  height: 3px;
  border-radius: 999px;
  background: rgba(156, 163, 175, 0.25);
  overflow: hidden;
}

.story-bar-inner {
  width: 0;
  height: 100%;
  background: #d89c3e; /* $accent */
  transition: width 0.1s linear;
}

.story-bar-inner.completed {
  width: 100% !important;
}

.story-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 0.8rem;
  color: #3f407e;
}

.story-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 32px;
  padding-bottom: 24px;
  text-align: center;
  gap: 8px;
  width: 100%;
}

.story-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 0.75rem;
  background: rgba(178, 139, 32, 0.185);
  color: #111827;
  margin-bottom: 4px;
}

.story-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 8px;
  margin-bottom: 8px;
  color: #111827;
}

.story-text {
  font-size: 0.95rem;
  line-height: 1.8;
  color: #111827;
  white-space: pre-line;
  padding-inline: 12px; /* يبعد النص عن الأسهم */
}

.story-footer {
  position: absolute;
  width: 90%;
  bottom: 15px;
  transform: translateY(-15px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 16px;
  font-size: 0.8rem;
  color: #9ca3af;
}

.story-index {
  font-size: 0.8rem;
}

.story-pause-hint {
  font-size: 0.7rem;
}

.story-hashtags {
  font-size: 0.75rem;
  color: #9ca3af;
  margin-top: 4px;
}

.story-controls {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}

.story-hotzone {
  flex: 1;
  color: #9ca3af;
  pointer-events: auto;
}

.story-hotzone.left {
  border-radius: 20px 0 0 20px;
}

.story-hotzone.right {
  border-radius: 0 20px 20px 0;
}

.story-arrow {
  position: absolute;
  bottom: 30px;
  transform: translateY(-30px);
  font-size: 1.6rem;
  opacity: 0.35;
  pointer-events: none;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  color: #111827;
  transition: opacity 0.2s ease;
  background-color: rgba(156, 163, 175, 0.137254902);
  border: 1px solid rgb(178, 139, 32);
  padding: 5px;
  border-radius: 15px;
}

.story-arrow.left {
  left: 16px;
}

.story-arrow.right {
  right: 16px;
}

.story-hotzone:hover ~ .story-arrow {
  opacity: 0.7;
}

.story-shell {
  font-size: clamp(1rem, 4vw, 15rem);
}

/* Small UI text */
.story-header {
  font-size: clamp(0.7rem, 1.2vw, 1.1rem);
}

.story-footer {
  font-size: clamp(0.7rem, 1.2vw, 0.8rem);
}

.story-index {
  font-size: clamp(0.7rem, 1.2vw, 0.8rem);
}

.story-pause-hint {
  font-size: clamp(0.6rem, 1vw, 0.7rem);
}

.story-badge {
  font-size: clamp(0.65rem, 1.1vw, 0.75rem);
}

.story-hashtags {
  font-size: clamp(0.65rem, 1.1vw, 0.75rem);
}

/* Content text */
.story-title {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
}

.story-text {
  font-size: clamp(0.85rem, 1.8vw, 0.95rem);
}

/* Icons / arrows */
.story-arrow {
  font-size: clamp(1.2rem, 3vw, 1.6rem);
}

/* =====================================================
   Card / Layout
   ===================================================== */
.card {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

/* =====================================================
   Welcome Screen
   ===================================================== */
.welcome-screen {
  text-align: center;
}
.welcome-screen .welcome-title {
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  font-weight: 700;
  margin-bottom: 6px;
}
.welcome-screen .welcome-text {
  font-size: clamp(1rem, 1.5vw, 1.3rem);
  color: rgb(178, 139, 32);
  margin-bottom: 12px;
}

/* =====================================================
   Form
   ===================================================== */
form {
  width: 100%;
}

.form-group {
  text-align: right;
  margin-bottom: 6px;
}
.form-group .form-label {
  display: block;
  font-size: clamp(0.875rem, 1.5vw, 1.1rem);
  margin-bottom: 4px;
}

.input {
  width: 100%;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  font-size: clamp(0.975rem, 1.5vw, 1.2rem);
  transition: 0.2s ease;
}
.input:focus {
  outline: none;
  border-color: rgb(178, 139, 32);
}

/* =====================================================
   Buttons
   ===================================================== */
.btn-primary,
.btn-secondary {
  display: inline-block;
  border-radius: 12px;
  width: 100%;
  border: none;
  cursor: pointer;
  font-size: clamp(0.975rem, 1.5vw, 1.2rem);
  padding: 10px 18px;
  transition: 0.2s ease;
}

.btn-primary {
  background: #6b7280;
  color: #ffffff;
}
.btn-primary:hover {
  opacity: 0.9;
}

.btn-secondary {
  background: #6b7280;
  color: #ffffff;
}
.btn-secondary:hover {
  opacity: 0.95;
}

/* =====================================================
   Quiz Shell
   ===================================================== */
#quizShell {
  width: 100%;
  height: 100%;
  display: none;
  margin-top: 16px;
  min-height: 420px;
  padding: 16px;
}

/* =====================================================
   Feedback
   ===================================================== */
.quiz-feedback {
  min-height: 20px;
  text-align: center;
  font-size: 14px;
  margin-bottom: 6px;
}
.quiz-feedback.info {
  color: #6b7280;
}
.quiz-feedback.error {
  color: #b91c1c;
}
.quiz-feedback.success {
  color: #15803d;
}

/* =====================================================
   Timer
   ===================================================== */
.timer-bar {
  height: 6px;
  width: 100%;
  background: #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 6px;
}
.timer-bar .timer-fill {
  height: 100%;
  width: 100%;
  background: rgb(178, 139, 32);
  transition: width 1s linear;
}

.timer-label {
  font-size: 13px;
  color: rgb(178, 139, 32);
  margin-bottom: 12px;
  text-align: left;
}

/* =====================================================
   Quiz Content
   ===================================================== */
.quiz-content {
  min-height: 260px;
  display: flex;
  flex-direction: column;
}
.quiz-content.fade-in {
  animation: fadeInUp 0.35s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.quiz-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
}

.quiz-text {
  font-size: 14px;
  color: rgb(178, 139, 32);
  margin-bottom: 12px;
}

/* =====================================================
   Quiz Options
   ===================================================== */
.quiz-options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.quiz-options .option-btn {
  width: 100%;
  text-align: right;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  cursor: pointer;
  font-size: 14px;
  transition: 0.2s ease;
}
.quiz-options .option-btn:hover {
  background: #e5e7eb;
}
.quiz-options .option-btn.selected {
  background: rgb(178, 139, 32);
  color: #ffffff;
  border-color: rgb(178, 139, 32);
}
.quiz-options .option-check {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  font-size: 14px;
}

.result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 1rem 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
}

/* Title */
.result-header h2 {
  font-size: 14px;
  font-weight: 600;
  margin: 0;
  line-height: 1.4;
  color: #111827;
  white-space: nowrap;
}

/* Score line */
.result-header p {
  margin: 0;
  font-size: 13px;
  color: #374151;
  white-space: nowrap;
}

/* Score numbers */
.result-header .score {
  font-weight: 700;
  color: #111827;
}

.result-header .total {
  font-weight: 500;
  color: #6b7280;
}

.result-header .percent {
  font-weight: 600;
  color: #0f766e;
}

/* Download / Print button */
.btn-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.btn-download:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
}

/* Icon */
.icon-print {
  width: 18px;
  height: 18px;
  stroke-width: 1.7;
  color: #374151;
}

/* =====================================================
   Quiz Actions
   ===================================================== */
.quiz-actions {
  display: flex;
  margin-top: auto;
}
.quiz-actions .btn-primary {
  width: 100%;
}

/* =====================================================
   Results / Certificate
   ===================================================== */
#resultContainer {
  max-height: clamp(300px, 70vh, 480px);
}

.results-wrapper {
  max-height: 250px;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 4px;
  border: 1px solid #e5e7eb;
}

/* optional – just styling */
.result-card {
  background: #fff;
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 12px;
  font-size: 14px;
  line-height: 1.6;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  border-right: 4px solid #ef4444;
}

.result-card.success {
  border-right-color: #22c55e;
  background: #ecfdf5;
}

.result-question {
  font-weight: 700;
  margin-bottom: 10px;
  color: #111827;
  display: flex;
  gap: 8px;
  font-weight: 700;
}

.result-row {
  display: flex;
  gap: 8px;
  margin-bottom: 6px;
}

.result-row .label {
  min-width: 64px;
  font-weight: 600;
  color: #6b7280;
}

.result-row.wrong .value {
  color: #dc2626;
}

.result-row.correct .value {
  color: #16a34a;
}

.result-number {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #f3f4f6;
  color: #374151;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

/* =====================================================
   Hashtag
   ===================================================== */
.hashtag-box {
  margin-top: 12px;
  text-align: center;
  margin-top: 2rem;
}
.hashtag-box .hashtag-text {
  margin-top: 6px;
  font-size: 14px;
  color: #6b7280;
  font-weight: 600;
}

/* =====================================================
   Results Scroll
   ===================================================== */
h2.results-page-title {
  font-size: 17px;
  font-weight: 700;
  color: #111827;
  text-align: center;
  margin: 0 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e5e7eb;
}

.btn-reset {
  position: absolute;
  top: 0;
  left: 0;
  outline: none;
  border: none;
  padding: 8px;
  border-radius: 10px;
  cursor: pointer;
  background-color: rgba(178, 139, 32, 0.185);
  transition: 0.2s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}
.btn-reset:hover, .btn-reset:active {
  background-color: rgb(62, 125, 0);
  color: #d1d5db;
  transform: scale(1.1);
}

/* ===============================
   Judicial Blogs Panel (jb-*)
   Uses your SCSS variables only
   =============================== */
.jb-panel {
  width: 100%;
  height: 100%;
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  color: #111827;
}

.jb-panel__head {
  padding: 24px 24px 16px;
  background: linear-gradient(180deg, rgba(12, 52, 112, 0.06), rgba(12, 52, 112, 0));
}

.jb-panel__title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.2px;
  color: #0c3470;
  display: flex;
  align-items: center;
  gap: 8px;
}
.jb-panel__title::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #d89c3e;
  box-shadow: 0 0 0 6px rgba(216, 156, 62, 0.18);
  flex: 0 0 auto;
}

/* Grid area: responsive + scroll-safe inside constrained parent */
.jb-grid {
  padding: 24px;
  display: grid;
  gap: 16px;
  margin: 8px 0;
  grid-template-columns: repeat(12, 1fr);
  /* Critical: allow scrolling within the parent clamp */
  max-height: 100%;
  overflow: auto;
  /* nicer scroll */
  scrollbar-width: thin;
  scrollbar-color: rgba(17, 24, 39, 0.22) transparent;
}
.jb-grid::-webkit-scrollbar {
  width: 10px;
}
.jb-grid::-webkit-scrollbar-thumb {
  background: rgba(17, 24, 39, 0.18);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

/* Cards */
.jb-card {
  grid-column: span 4;
  position: relative;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.06);
  padding: 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  overflow: hidden;
  /* subtle top accent line */
}
.jb-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #0c3470, #d89c3e);
  opacity: 0.7;
}
.jb-card:hover {
  transform: translateY(-2px);
  border-color: rgba(12, 52, 112, 0.22);
  box-shadow: 0 16px 34px rgba(17, 24, 39, 0.1);
}

/* Make Card 1 wider by design (content-heavy) */
.jb-card--diwan {
  grid-column: span 8;
  background: linear-gradient(180deg, rgba(12, 52, 112, 0.035), rgb(255, 255, 255));
}

/* Icon */
.jb-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: rgba(12, 52, 112, 0.068);
  border: 1px solid rgba(12, 52, 112, 0.18);
}
.jb-card__icon i {
  font-size: 20px;
  color: #0c3470;
}

/* Vary icon theme per card if you want */
.jb-card:nth-child(2) .jb-card__icon {
  background: rgba(62, 125, 0, 0.185);
  border-color: rgba(62, 125, 0, 0.25);
}
.jb-card:nth-child(2) .jb-card__icon i {
  color: rgb(62, 125, 0);
}

.jb-card:nth-child(3) .jb-card__icon {
  background: rgba(62, 0, 125, 0.185);
  border-color: rgba(62, 0, 125, 0.25);
}
.jb-card:nth-child(3) .jb-card__icon i {
  color: rgb(62, 0, 125);
}

.jb-card__body {
  flex: 1 1 auto;
  min-width: 0;
}

.jb-card__title {
  margin: 2px 0 6px;
  font-size: 15px;
  font-weight: 800;
  color: #111827;
}

.jb-card__desc {
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.8;
  color: rgba(17, 24, 39, 0.68);
}

/* Files list (PDF parts) */
/* ==================================================
  Collapsible PDF Files List (jb-files)
  ================================================== */
.jb-files {
  margin: 0;
  padding: 0;
  list-style: none;
  /* collapsed state */
  max-height: 44px;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(17, 24, 39, 0.1);
  background: rgba(244, 244, 249, 0.55);
  transition: max-height 0.3s ease, padding 0.25s ease, border-color 0.25s ease, background 0.25s ease;
  cursor: pointer;
  position: relative;
  direction: rtl;
  /* Toggle label */
  /* Chevron */
}
.jb-files::before {
  content: "عرض المجلدات";
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 900;
  color: rgba(17, 24, 39, 0.82);
}
.jb-files::after {
  content: "▾";
  position: absolute;
  left: 14px;
  top: 12px;
  font-size: 14px;
  color: rgba(17, 24, 39, 0.55);
  transition: transform 0.25s ease;
}

/* =========================
   OPEN STATE
   ========================= */
.jb-card--open .jb-files {
  max-height: 600px;
  padding: 10px 12px 12px;
  background: rgba(244, 244, 249, 0.9);
  border-color: rgba(12, 52, 112, 0.22);
  cursor: default;
  display: grid;
  gap: 10px;
  /* Desktop: columns */
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.jb-card--open .jb-files::before {
  content: "إخفاء المجلدات";
  padding: 0 2px 12px;
}
.jb-card--open .jb-files::after {
  transform: rotate(180deg);
  top: 2px;
}

/* Tablet */
@media (max-width: 980px) {
  .jb-card--open .jb-files {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
/* Mobile: full width rows */
@media (max-width: 640px) {
  .jb-card--open .jb-files {
    grid-template-columns: 1fr;
  }
}
/* =========================
   FILE ITEM
   ========================= */
.jb-file {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(17, 24, 39, 0.1);
  background: rgba(255, 255, 255, 0.85);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.jb-file:hover {
  transform: translateY(-1px);
  border-color: rgba(12, 52, 112, 0.22);
  background: rgba(255, 255, 255, 0.95);
}

.jb-file__name {
  font-size: 13px;
  font-weight: 800;
  color: rgba(17, 24, 39, 0.85);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.jb-file__dl {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 900;
  color: #ffffff;
  background: #0c3470;
  border: 1px solid rgba(12, 52, 112, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.jb-file__dl:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(12, 52, 112, 0.22);
  background: rgb(10.8, 46.8, 100.8);
}
.jb-file__dl:active {
  transform: translateY(0);
}

/* =========================
   Accessibility
   ========================= */
.jb-file__dl:focus-visible {
  outline: 3px solid rgba(216, 156, 62, 0.35);
  outline-offset: 2px;
}

/* Note / official source */
.jb-note {
  margin: 16px 0 0;
  padding-top: 16px;
  border-top: 1px dashed rgba(17, 24, 39, 0.14);
  font-size: 12.5px;
  line-height: 1.8;
  color: rgba(17, 24, 39, 0.7);
}
.jb-note a {
  color: #0c3470;
  font-weight: 800;
  text-decoration: none;
  border-bottom: 1px solid rgba(12, 52, 112, 0.3);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.jb-note a:hover {
  color: rgb(73.2, 83.2, 97);
  border-color: rgba(216, 156, 62, 0.55);
}

/* CTA button for simple cards */
.jb-card__cta {
  position: absolute;
  left: 24px;
  bottom: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 900;
  color: #ffffff;
  background: #d89c3e;
  border: 1px solid rgba(216, 156, 62, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.jb-card__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 24px rgba(216, 156, 62, 0.25);
  filter: saturate(1.05);
}
.jb-card__cta:active {
  transform: translateY(0);
}

/* Ensure space so CTA doesn't overlap text on small cards */
.jb-card:not(.jb-card--diwan) .jb-card__body {
  padding-bottom: 44px;
}

/* ===============================
   Responsive
   =============================== */
@media (max-width: 980px) {
  .jb-card--diwan {
    grid-column: span 12;
  }
  .jb-card {
    grid-column: span 6;
  }
}
@media (max-width: 640px) {
  .jb-panel__head {
    padding: 4px 16px;
  }
  .jb-grid {
    padding: 16px;
    grid-template-columns: repeat(12, 1fr);
  }
  .jb-card {
    grid-column: span 12;
    padding: 16px;
  }
  .jb-card__icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }
  .jb-card__title {
    font-size: 14px;
  }
  .jb-card__desc {
    font-size: 12.5px;
  }
  .jb-file {
    padding: 10px;
  }
  .jb-file__name {
    max-width: 62%;
  }
}
/* Optional: nicer focus for accessibility */
.jb-file__dl:focus-visible,
.jb-card__cta:focus-visible,
.jb-note a:focus-visible {
  outline: 3px solid rgba(216, 156, 62, 0.35);
  outline-offset: 2px;
  border-radius: 999px;
}

/* GRID LAYOUT RULES (replace your current .jb-grid / .jb-card / .jb-card--diwan grid-column rules) */
.jb-grid {
  padding: 24px;
  display: grid;
  gap: 16px;
  /* Desktop default */
  grid-template-columns: repeat(12, 1fr);
  max-height: 100%;
  overflow: auto;
}

/* Default cards on desktop: 2 columns (each spans 6/12) */
.jb-card {
  grid-column: span 6;
}

/* First card (diwan) on desktop: full width */
.jb-card--diwan {
  grid-column: 1/-1;
}

/* Mobile: everything full width */
@media (max-width: 640px) {
  .jb-grid {
    padding: 16px;
  }
  .jb-card,
  .jb-card--diwan {
    grid-column: 1/-1;
  }
}/*# sourceMappingURL=main.css.map */