/* ===== Suzan Faisal — الهيدر والفوتر المشتركين لكل الصفحات (نفس الرئيسية) =====
   الماركب في js/header.js و js/footer.js — اربط الملف ده بعد CSS الصفحة */
@import url('https://fonts.googleapis.com/css2?family=Readex+Pro:wght@300;400;500;600;700&family=Lalezar&display=swap');

.nav-home, .sf-footer, .sf-wa {
  --bg: #FFFFFF; --soft: #F2F7FE; --card: #FFFFFF; --ink: #0B1D45; --muted: #5A6987; --line: rgba(11,29,69,.1);
  --navy: #0B2A6F; --blue: #1E7BEA; --cyan: #39C6F4;
  --grad: linear-gradient(135deg, #0B2A6F, #1E7BEA);
  font-family: 'Readex Pro', sans-serif; direction: rtl;
}
body.dark .nav-home, body.dark .sf-footer { --bg: #07122B; --soft: #0C1B3D; --card: #0F2149; --ink: #EAF1FF; --muted: #A3B2D1; --line: rgba(234,241,255,.1); }
.nav-home a, .sf-footer a, .sf-wa { color: inherit; text-decoration: none !important; }
.nav-home img, .sf-footer img { max-width: 100%; }
/* أيقونات Font Awesome (all.min.js بيحوّلها svg وstyle.css بيلوّنها) */
.nav-home svg.svg-inline--fa, .nav-home svg.svg-inline--fa path,
.sf-footer svg.svg-inline--fa, .sf-footer svg.svg-inline--fa path,
.sf-wa svg.svg-inline--fa, .sf-wa svg.svg-inline--fa path { color: inherit !important; fill: currentColor !important; outline: none !important; }
/* ===== Navbar (يحافظ على IDs اللي main.js بيستخدمها) ===== */
/* بعرض الشاشة كله، والمحتوى جوه max-width 1200px زي باقي الأقسام */
body .nav-home { position: sticky !important; top: 0; z-index: 900; padding: 0; }
body .nav-home .nav-content {
  position: relative; top: 0; left: 0; width: 100%; max-width: none; margin: 0; display: block;
  overflow: visible; /* لازم visible عشان منيو الموبايل والـ dropdown يبانوا تحت الناف */
  padding: 0; border-radius: 0; background: rgba(255,255,255,.96) !important; border: 0; border-bottom: 1px solid var(--line);
  box-shadow: none !important; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: box-shadow .3s;
}
body .nav-home .nav-content.scrolled { box-shadow: 0 12px 30px -22px rgba(11,42,111,.55) !important; }
body .nav-home .nav-content .content { max-width: 1200px; margin: 0 auto; padding: 12px 20px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
body .nav-home .nav-content .content-2 { flex: none; justify-content: flex-start; gap: 12px; }
body .nav-home .logo { display: flex; align-items: center; }
body .nav-home .logo img { width: auto; height: 46px; display: block; }

/* خط التمرير جوه track بيقص على حواف الناف */
body .nav-home .scroll-track { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; overflow: hidden; pointer-events: none; }
body .nav-home .scroll-line { left: auto; right: 0; bottom: 0; height: 3px; border-radius: 0; background: linear-gradient(270deg, #39C6F4, #1E7BEA, #0B2A6F) !important; }

body .nav-home #nav-links-container { display: flex; align-items: center; padding: 5px; border-radius: 18px; background: var(--soft); }
body .nav-home .links { display: flex; flex-direction: row; gap: 6px; padding: 0; margin: 0; list-style: none; position: static; width: auto; background: none; transition: none; }
body .nav-home .links li { width: auto; }
body .nav-home .create-account, body .nav-home .login-button {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: 'Readex Pro', sans-serif; font-weight: 600; font-size: 14px; height: 44px; padding: 0 16px; border-radius: 14px;
  gap: 6px; width: auto; flex: none; white-space: nowrap; box-shadow: none !important; transition: background .25s, color .25s, filter .25s;
}
body .nav-home .login-button { background: transparent !important; color: var(--ink) !important; border: 0; }
body .nav-home .login-button:hover { background: var(--card) !important; color: var(--blue) !important; }
body .nav-home .create-account { background: var(--grad) !important; color: #fff !important; border: 0; box-shadow: 0 10px 22px -12px rgba(30,123,234,.9) !important; }
body .nav-home .create-account:hover { filter: brightness(1.15); color: #fff !important; }
body .nav-home .links lord-icon { width: 26px !important; height: 26px !important; }

/* زرار المنيو (موبايل) + زرار القفل (main.js بيظهر .parent-spinner مكان الـ bars) */
body .nav-home #menu-toggle, body .nav-home .parent-spinner { display: none; }
body .nav-home .bars { display: block; width: 20px; height: 20px; font-size: 20px; color: var(--blue); }

/* ===== الطالب داخل بحسابه (main.js بيبني .user-menu جوه #nav-links-container) ===== */
body .nav-home #nav-links-container:has(.user-menu) { padding: 0; background: none; }
body .nav-home .user-menu {
  position: relative; display: flex !important; align-items: center; gap: 8px; height: 46px; margin: 0;
  padding: 0 8px 0 14px; border-radius: 16px; background: var(--grad) !important; box-shadow: 0 10px 22px -12px rgba(30,123,234,.9);
  cursor: pointer; user-select: none;
}
/* من غير filter: الـ filter بيخلّي .user-menu هو مرجع الـ dropdown فيضيق على الموبايل */
body .nav-home .user-menu:hover, body .nav-home .user-menu.open { background: linear-gradient(135deg, #12398C, #2C8CF2) !important; }
body .nav-home .user-menu .user-icon { width: 34px !important; height: 34px !important; padding: 0; border-radius: 50%; background: rgba(255,255,255,.14); }
/* سهم CSS بدل أيقونة Font Awesome (مش كل الصفحات فيها all.min.css) */
body .nav-home .user-menu::before {
  content: ""; position: static; order: 2; flex: none; box-sizing: content-box; width: 7px; height: 7px; margin: 0 6px 5px 4px;
  border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); font-size: 0; transition: transform .3s, margin .3s;
}
body .nav-home .user-menu.open::before { transform: rotate(-135deg); margin: 5px 6px 0 4px; }
body .nav-home .dropdown-content {
  position: absolute; top: calc(100% + 14px); left: 0; right: auto; min-width: 230px; max-width: calc(100vw - 40px);
  padding: 0; max-height: 0; overflow: hidden; border: 0; border-radius: 18px;
  background: linear-gradient(160deg, #0B2A6F, #12408F) !important; box-shadow: none; text-align: right; z-index: 999;
  opacity: 0; transform: translateY(-6px); transition: max-height .4s ease, opacity .25s, transform .25s, padding .25s;
}
body .nav-home .dropdown-content.open { max-height: 420px; padding: 8px; opacity: 1; transform: none; box-shadow: 0 24px 44px -18px rgba(11,42,111,.65); }
body .nav-home .dropdown-content a {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px;
  font-family: 'Readex Pro', sans-serif; font-weight: 500; font-size: 15px; color: #EAF1FF !important; white-space: nowrap; transition: background .2s, color .2s;
}
body .nav-home .dropdown-content a:hover { background: rgba(255,255,255,.1); color: #39C6F4 !important; }
body .nav-home .dropdown-content a#logoutBtn { margin-top: 4px; border-top: 1px solid rgba(255,255,255,.12); border-radius: 0 0 12px 12px; }
body .nav-home .dropdown-content a#logoutBtn:hover { background: rgba(255,90,90,.14); color: #FF9C9C !important; }
body .nav-home .dropdown-content lord-icon { width: 26px !important; height: 26px !important; flex: none; }

@media (max-width: 767px) {
  body .nav-home .nav-content .content { padding: 8px 14px; }
  body .nav-home .logo img { height: 38px; }

  /* زرار المنيو والقفل */
  body .nav-home #nav-links-container { padding: 0; background: none; position: static; }
  body .nav-home #menu-toggle, body .nav-home .parent-spinner {
    width: 44px; height: 44px; border-radius: 14px; background: var(--soft); cursor: pointer; place-items: center; position: relative;
  }
  body .nav-home #menu-toggle { display: grid; }
  body .nav-home #menu-toggle[style*="none"] { display: none !important; }
  body .nav-home .parent-spinner[style*="block"] { display: grid !important; }
  body .nav-home .parent-spinner .spinner { display: none; }
  body .nav-home .parent-spinner::before, body .nav-home .parent-spinner::after {
    content: ""; position: absolute; width: 20px; height: 2.5px; border-radius: 2px; background: var(--blue);
  }
  body .nav-home .parent-spinner::before { transform: rotate(45deg); }
  body .nav-home .parent-spinner::after { transform: rotate(-45deg); }

  /* المنيو نفسها: كارت تحت الناف بعرضه */
  body .nav-home .links {
    display: none; position: absolute; top: calc(100% + 8px); left: 12px; right: 12px; width: auto; z-index: 999;
    flex-direction: column; gap: 8px; padding: 12px; border-radius: 20px;
    background: var(--card) !important; border: 1px solid var(--line); box-shadow: 0 24px 44px -20px rgba(11,42,111,.5);
  }
  body .nav-home .links.active { display: flex; animation: sfMenuIn .25s ease; }
  body .nav-home .links li { width: 100%; }
  body .nav-home .links a { width: 100%; height: 50px; font-size: 15px; }
  body .nav-home .login-button { background: var(--soft) !important; }

  /* منيو الطالب: بعرض الناف */
  body .nav-home .user-menu { position: static; height: 44px; padding: 0 6px 0 10px; border-radius: 14px; }
  body .nav-home .user-menu .user-icon { width: 32px !important; height: 32px !important; }
  body .nav-home .dropdown-content { top: calc(100% + 8px); left: 12px; right: 12px; width: auto; min-width: 0; max-width: none; border-radius: 20px; }
  body .nav-home .dropdown-content a { padding: 13px 14px; font-size: 16px; }
}
@keyframes sfMenuIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ===== Footer — بعرض الشاشة كله، والمحتوى جوه .sf-footer-wrap (1200px) ===== */
.sf-footer { position: relative; overflow: hidden; margin-top: 56px; background: #0A1F4F; color: #fff; }
.sf-footer-bg { position: absolute; inset: 0; pointer-events: none; }
.sf-footer-bg .dots { position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.07) 1.5px, transparent 1.5px); background-size: 24px 24px; }
.sf-footer-bg .c1 { position: absolute; left: -120px; bottom: -180px; width: 420px; height: 420px; border-radius: 50%; background: rgba(57,198,244,.12); }
.sf-footer-bg .c2 { position: absolute; right: -90px; top: -130px; width: 320px; height: 320px; border-radius: 50%; border: 2px dashed rgba(255,255,255,.12); }
.sf-footer-wrap { position: relative; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* دعوة للتسجيل */
.sf-footer-cta {
  display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
  margin-top: 56px; padding: 32px 36px; border-radius: 28px; background: linear-gradient(135deg, #1E5FD0, #2BA6E0);
  box-shadow: 0 24px 50px -30px rgba(0,0,0,.6);
}
.sf-footer-cta h2 { margin: 0; font-family: 'Lalezar', sans-serif; font-weight: 400; font-size: clamp(30px, 3.4vw, 42px); line-height: 1.35; color: #fff; }
.sf-footer-cta h2 em { font-style: normal; color: #0B1D45; }
.sf-footer-cta p { margin: 6px 0 0; font-size: 15px; line-height: 1.7; color: #EAF4FF; }
.sf-footer-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.sf-footer-btns a { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 24px; border-radius: 999px; font-weight: 700; font-size: 15px; white-space: nowrap; transition: background .25s, color .25s; }
.sf-footer-btns .b1 { background: #fff; color: #0B2A6F !important; }
.sf-footer-btns .b1:hover { background: #0B1D45; color: #fff !important; }
.sf-footer-btns .b2 { border: 1.5px solid rgba(255,255,255,.55); color: #fff !important; }
.sf-footer-btns .b2:hover { background: rgba(255,255,255,.14); }

/* الأقسام */
.sf-footer-cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-top: 56px; padding-bottom: 48px; }
.sf-footer-logo img { width: 150px; height: auto; display: block; }
.sf-footer-brand p { margin: 16px 0 20px; max-width: 360px; font-size: 14px; line-height: 1.9; color: #A9BBDD; }
.sf-footer-col { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.sf-footer-col h3 { position: relative; margin: 6px 0 8px; padding-bottom: 12px; font-family: 'Readex Pro', sans-serif; font-size: 17px; font-weight: 700; color: #fff; }
.sf-footer-col h3::after { content: ""; position: absolute; right: 0; bottom: 0; width: 32px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, #1E7BEA, #39C6F4); }
.sf-footer-col a { font-size: 14px; color: #A9BBDD !important; transition: color .2s, transform .2s; }
.sf-footer-col a:hover { color: #39C6F4 !important; transform: translateX(-4px); }

.sf-social { display: flex; gap: 10px; flex-wrap: wrap; }
.sf-social a { width: 42px; height: 42px; border-radius: 12px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.1); color: #fff !important; display: grid; place-items: center; font-size: 16px; transition: background .25s, color .25s, border-color .25s; }
.sf-social a:hover { background: #fff; border-color: #fff; }
.sf-social a.fb:hover { color: #1877F2 !important; }
.sf-social a.yt:hover { color: #FF0000 !important; }
.sf-social a.tt:hover { color: #0B1D45 !important; }
.sf-social a.ig:hover { color: #E1306C !important; }

/* الحقوق */
.sf-footer-bottom { position: relative; border-top: 1px solid rgba(255,255,255,.08); background: rgba(0,0,0,.18); }
.sf-footer-bottom .sf-footer-wrap { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding-top: 18px; padding-bottom: 18px; padding-left: 96px; } /* مساحة لزرار الواتساب الثابت على الشمال */
.sf-copy, .sf-dev { margin: 0; font-size: 13px; color: #8FA3C9; }
.sf-dev a { color: #39C6F4 !important; font-weight: 600; }
.sf-dev a:hover { color: #fff !important; }

.sf-wa { position: fixed; left: 20px; bottom: 20px; z-index: 950; width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: #fff !important; display: grid; place-items: center; font-size: 28px; box-shadow: 0 14px 30px -10px rgba(37,211,102,.8); transition: transform .25s; }
.sf-wa:hover { transform: scale(1.08); }

@media (max-width: 991px) {
  .sf-footer-cols { grid-template-columns: 1fr 1fr 1fr; gap: 32px 24px; }
  .sf-footer-brand { grid-column: 1 / -1; }
  .sf-footer-brand p { max-width: 560px; }
}
@media (max-width: 767px) {
  .sf-footer { margin-top: 44px; }
  .sf-footer-wrap { padding: 0 16px; }
  .sf-footer-cta { margin-top: 36px; padding: 26px 20px; border-radius: 22px; flex-direction: column; align-items: stretch; text-align: center; }
  .sf-footer-cta, .sf-footer-cta * { text-align: center !important; }
  .sf-footer-btns { flex-direction: column; }
  .sf-footer-cols { grid-template-columns: 1fr 1fr; gap: 28px 18px; padding-top: 40px; padding-bottom: 32px; }
  .sf-footer-brand { display: flex; flex-direction: column; align-items: center; text-align: center; }
  .sf-footer-brand p { text-align: center !important; }
  .sf-social { justify-content: center; }
  .sf-footer-col:last-child { grid-column: 1 / -1; }
  /* مساحة لزرار الواتساب الثابت عشان ميغطيش على الحقوق */
  .sf-footer-bottom .sf-footer-wrap { flex-direction: column; justify-content: center; text-align: center; padding-left: 16px; padding-bottom: 84px; }
  .sf-wa { left: 14px; bottom: 14px; width: 52px; height: 52px; font-size: 26px; }
}

/* ===== خط كريتيف تحت العنوان (موجة بلون الحبر + نقطة برتقالي) ===== */
.kh-uline { display: inline-block; position: relative; padding-bottom: 16px; }
.kh-uline::after {
  content: ""; position: absolute; inset-inline-start: 0; bottom: 0; width: 100%; height: 12px; background: var(--ink);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='12' viewBox='0 0 24 12'%3E%3Cpath d='M0 6 Q6 0 12 6 T24 6' fill='none' stroke='%23000' stroke-width='3'/%3E%3C/svg%3E") repeat-x left center / 24px 12px;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='12' viewBox='0 0 24 12'%3E%3Cpath d='M0 6 Q6 0 12 6 T24 6' fill='none' stroke='%23000' stroke-width='3'/%3E%3C/svg%3E") repeat-x left center / 24px 12px;
  transform-origin: right; transition: transform .9s cubic-bezier(.7,0,.2,1) .3s;
}
.kh-uline::before { content: ""; position: absolute; inset-inline-end: -16px; bottom: 2px; width: 9px; height: 9px; border-radius: 50%; background: var(--or); transition: transform .4s ease 1.1s; }
.kh-js [data-reveal] .kh-uline::after, .kh-js .kh-uline[data-reveal]::after { transform: scaleX(0); }
.kh-js [data-reveal] .kh-uline::before, .kh-js .kh-uline[data-reveal]::before { transform: scale(0); }
.kh-js [data-reveal].in .kh-uline::after, .kh-js .kh-uline[data-reveal].in::after,
.kh-js [data-reveal].in .kh-uline::before, .kh-js .kh-uline[data-reveal].in::before { transform: none; }

