/* =========================================================
   كلية نورس للتأهيل المهني — ملف التصميم الرئيسي
   ألوان الهوية مأخوذة مباشرة من الشعار الرسمي
   ========================================================= */

:root {
  --navy-900: #06192F;
  --navy-800: #071F3C;
  --navy-700: #09294F;
  --navy-600: #0A2D5A;
  --navy-500: #0C356A;
  --navy-light: #004579;
  --navy-50: #EAF1F8;
  --navy-100: #D7E3F0;

  --gold-50: #FEFAEC;
  --gold-100: #FDF3D3;
  --gold-300: #F7D66E;
  --gold-400: #F5C740;
  --gold-500: #F4BE16;
  --gold-600: #D9A30F;
  --gold-800: #8A6109;

  --cream: #FBF8F1;
  --ink: #13203A;
  --whatsapp: #25D366;
  --whatsapp-dark: #1EBD5A;

  --radius: 1.25rem;
  --shadow-soft: 0 10px 40px -10px rgba(9, 41, 79, 0.25);
  --shadow-card: 0 4px 24px -4px rgba(9, 41, 79, 0.12);
  --max-width: 1320px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Tajawal", Tahoma, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
ul { margin: 0; padding: 0; }
h1, h2, h3, h4 {
  font-family: "Noto Kufi Arabic", Tahoma, Arial, sans-serif;
  color: var(--navy-700);
  margin: 0;
  line-height: 1.3;
}
::selection { background: var(--gold-300); color: var(--navy-800); }
:focus-visible { outline: 2px solid var(--gold-600); outline-offset: 2px; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== أزرار ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  font-weight: 800;
  font-family: inherit;
  font-size: 0.95rem;
  padding: 12px 26px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.btn-lg { padding: 15px 30px; font-size: 1.02rem; }
.btn-primary { background: var(--gold-500); color: var(--navy-800); box-shadow: var(--shadow-soft); }
.btn-primary:hover { background: var(--gold-600); box-shadow: none; }
.btn-outline { background: transparent; border: 2px solid var(--navy-700); color: var(--navy-700); }
.btn-outline:hover { background: var(--navy-700); color: #fff; }
.btn-outline-light { background: transparent; border: 2px solid rgba(255,255,255,.7); color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--navy-700); }
.btn-dark { background: var(--navy-800); color: #fff; box-shadow: var(--shadow-soft); }
.btn-dark:hover { background: var(--navy-700); box-shadow: none; }
.btn-whatsapp { background: var(--whatsapp); color: #fff; box-shadow: var(--shadow-soft); }
.btn-whatsapp:hover { background: var(--whatsapp-dark); box-shadow: none; }
.btn-block { width: 100%; }

/* ===== الهيدر ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 248, 241, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(9, 41, 79, 0.08);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 44px; width: 44px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-family: "Noto Kufi Arabic", sans-serif; color: var(--navy-700); font-size: 1.05rem; }
.brand-text span { font-size: 0.68rem; color: #6b7280; font-weight: 600; }

.main-nav { display: flex; align-items: center; gap: 32px; }
.main-nav a {
  text-decoration: none;
  font-weight: 800;
  font-size: 0.92rem;
  color: rgba(9, 41, 79, 0.82);
  transition: color 0.2s ease;
}
.main-nav a:hover, .main-nav a.active { color: var(--gold-600); }

.header-actions { display: flex; align-items: center; gap: 18px; }
.header-phone { font-weight: 800; font-size: 0.9rem; color: rgba(9,41,79,.82); text-decoration: none; }
.header-phone:hover { color: var(--gold-600); }

.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  background: none; border: none; cursor: pointer; color: var(--navy-700);
}
.menu-toggle svg { width: 26px; height: 26px; }

.mobile-nav {
  display: none;
  border-top: 1px solid rgba(9,41,79,.08);
  background: var(--cream);
}
.mobile-nav.open { display: block; }
.mobile-nav .container { display: flex; flex-direction: column; justify-content: flex-start; height: auto; padding: 14px 24px 22px; gap: 4px; }
.mobile-nav a {
  text-decoration: none; font-weight: 800; font-size: 1rem; color: var(--navy-700);
  padding: 12px 6px; border-radius: 10px;
}
.mobile-nav a:hover { background: var(--navy-50); }
.mobile-nav .mobile-extra { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; padding: 0 6px; }

/* ===== البطل (Hero) ===== */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, var(--navy-800) 0%, var(--navy-700) 55%, var(--navy-light) 100%);
  padding: 70px 0 60px;
}
.hero .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
.flame-watermark { position: absolute; pointer-events: none; }
.fw-1 { top: -110px; inset-inline-end: -160px; width: 480px; opacity: .9; color: var(--gold-500); }
.fw-2 { bottom: -160px; inset-inline-start: -100px; width: 320px; opacity: .06; color: #fff; transform: rotate(180deg); }

.eyebrow-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18);
  color: var(--gold-300); border-radius: 999px; padding: 7px 16px;
  font-size: 0.82rem; font-weight: 800; margin-bottom: 18px;
}
.hero h1 { font-size: 2.1rem; font-weight: 900; color: #fff; max-width: 640px; }
.hero .tagline { font-size: 1.05rem; line-height: 1.7; color: rgba(255,255,255,.86); max-width: 540px; margin-top: 18px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-stats {
  display: flex; flex-wrap: wrap; gap: 30px 40px; margin-top: 38px;
  border-top: 1px solid rgba(255,255,255,.16); padding-top: 26px;
}
.hero-stats div b { display: block; font-family: "Noto Kufi Arabic"; color: var(--gold-400); font-size: 1.7rem; font-weight: 900; }
.hero-stats div span { color: rgba(255,255,255,.7); font-size: 0.85rem; }

.hero-card-wrap { display: none; }
.hero-card {
  background: rgba(255,255,255,.97);
  border-radius: 2rem;
  padding: 28px;
  text-align: center;
  box-shadow: var(--shadow-soft);
  max-width: 320px;
  margin-inline-start: auto;
}
.hero-card img { width: 150px; margin: 0 auto; }
.hero-card p { font-family: "Noto Kufi Arabic"; font-weight: 900; color: var(--navy-700); font-size: 1.05rem; margin-top: 16px; }

/* ===== فاصل زخرفي ===== */
.flame-divider { display: block; width: 100%; height: 40px; color: var(--gold-500); background: var(--cream); position: relative; z-index: 3; margin-top: -4px; }
.flame-divider path:nth-child(2) { color: var(--navy-light); }

/* ===== عناوين الأقسام ===== */
.section { padding: 64px 0; }
.section-cream { background: var(--cream); }
.section-white { background: #fff; }
.section-navy { background: var(--navy-700); color: #fff; position: relative; overflow: hidden; }
.section-head { max-width: 640px; margin: 0 auto 44px; text-align: center; }
.section-head.align-start { margin: 0 0 36px; text-align: right; }
.section-head .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--gold-600); font-weight: 800; font-size: 0.9rem; margin-bottom: 10px;
}
.section-head.light .eyebrow { color: var(--gold-400); }
.section-head h2 { font-size: 1.75rem; font-weight: 800; }
.section-head.light h2 { color: #fff; }
.section-head p { margin-top: 14px; color: rgba(19,32,58,.7); line-height: 1.8; }
.section-head.light p { color: rgba(255,255,255,.8); }

/* ===== الأرقام والإنجازات ===== */
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; position: relative; z-index: 2; }
.stat-card {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius); padding: 24px 10px; text-align: center;
}
.stat-card b { display: block; font-family: "Noto Kufi Arabic"; color: var(--gold-400); font-size: 1.8rem; font-weight: 900; }
.stat-card span { color: rgba(255,255,255,.78); font-size: 0.82rem; }

/* ===== نبذة عن الكلية ===== */
.about-grid { display: grid; grid-template-columns: 1fr; gap: 40px; }
.about-text p { color: rgba(19,32,58,.78); margin: 0 0 16px; line-height: 1.85; }
.vm-card {
  background: #fff; border: 1px solid var(--navy-100); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow-card); margin-bottom: 16px;
}
.vm-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.vm-card p { font-size: 0.92rem; color: rgba(19,32,58,.75); line-height: 1.8; margin: 0; }
.motto-card { background: var(--navy-700); border-radius: var(--radius); padding: 26px; text-align: center; box-shadow: var(--shadow-soft); }
.motto-card b { display: block; font-family: "Noto Kufi Arabic"; color: var(--gold-400); font-size: 1.2rem; font-weight: 900; }
.motto-card span { display: block; margin-top: 4px; font-size: 0.72rem; color: rgba(255,255,255,.6); }

/* ===== الدورات ===== */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 16px; }
.filter-btn {
  border: 1px solid var(--navy-100); background: #fff; color: var(--navy-700);
  font-weight: 800; font-size: 0.85rem; padding: 9px 18px; border-radius: 999px;
  cursor: pointer; transition: all .15s ease; font-family: inherit;
}
.filter-btn:hover { background: var(--navy-50); }
.filter-btn.active { background: var(--navy-700); color: #fff; border-color: var(--navy-700); }
.filter-count { text-align: center; color: rgba(19,32,58,.55); font-size: 0.85rem; margin-bottom: 28px; }

.cards-grid { display: grid; grid-template-columns: 1fr; gap: 22px; }
.course-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--navy-100); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow-card); transition: box-shadow .2s ease;
}
.course-card:hover { box-shadow: var(--shadow-soft); }
.course-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.cat-badge { border-radius: 999px; padding: 5px 14px; font-size: 0.74rem; font-weight: 800; white-space: nowrap; }
.cat-إدارة { background: #EAF1F8; color: var(--navy-700); }
.cat-صحة { background: #FFF1F2; color: #BE123C; }
.cat-محاسبة { background: #FFFBEB; color: #92400E; }
.cat-تربية { background: #ECFDF5; color: #047857; }
.cat-تجميل { background: #FDF4FF; color: #A21CAF; }
.cat-لياقة { background: #F0F9FF; color: #0369A1; }
.hours-label { font-size: 0.74rem; font-weight: 800; color: var(--gold-600); white-space: nowrap; }
.course-card h3 { font-size: 1.08rem; margin: 14px 0 8px; line-height: 1.4; }
.course-card .desc { font-size: 0.88rem; color: rgba(19,32,58,.7); line-height: 1.75; margin: 0; }
.course-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 0.76rem; color: rgba(19,32,58,.55); font-weight: 700; margin-top: 14px; }
.course-partner { font-size: 0.76rem; font-weight: 800; color: var(--navy-light); margin-top: 10px; }
.chips-label { font-size: 0.76rem; font-weight: 800; color: rgba(19,32,58,.6); margin: 16px 0 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { background: var(--gold-50); color: var(--gold-800); border-radius: 999px; padding: 4px 11px; font-size: 0.74rem; font-weight: 700; }
.course-card .btn { margin-top: 18px; }
.empty-state { text-align: center; color: rgba(19,32,58,.6); padding: 40px 0; display: none; }

/* ===== لماذا كلية نورس ===== */
.why-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
.why-card { background: #fff; border: 1px solid var(--navy-100); border-radius: var(--radius); padding: 24px; }
.why-icon {
  width: 44px; height: 44px; border-radius: 50%; background: var(--gold-100); color: var(--gold-600);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.why-card h3 { font-size: 1rem; margin-bottom: 8px; }
.why-card p { font-size: 0.86rem; color: rgba(19,32,58,.7); line-height: 1.75; margin: 0; }

/* ===== الشراكات ===== */
.partners-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.partner-box {
  background: var(--cream); border: 1px solid var(--navy-100); border-radius: var(--radius);
  padding: 22px 12px; text-align: center; min-height: 92px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
}
.partner-box strong { font-family: "Noto Kufi Arabic"; color: var(--navy-700); font-size: 0.88rem; }
.partner-box span { font-size: 0.68rem; color: rgba(19,32,58,.5); }

/* ===== آراء الطلاب ===== */
.testi-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.testi-card { background: #fff; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-card); display: flex; flex-direction: column; }
.testi-quote-mark { font-family: "Noto Kufi Arabic"; font-size: 2.4rem; line-height: .4; color: var(--gold-300); margin-bottom: 6px; }
.testi-card .quote { font-size: 0.88rem; color: rgba(19,32,58,.75); line-height: 1.8; flex: 1; margin: 0; }
.stars { color: var(--gold-500); margin-top: 12px; font-size: 0.9rem; letter-spacing: 2px; }
.testi-who { border-top: 1px solid var(--navy-100); margin-top: 14px; padding-top: 12px; }
.testi-who strong { display: block; font-size: 0.88rem; color: var(--navy-700); }
.testi-who span { font-size: 0.76rem; color: rgba(19,32,58,.55); }

/* ===== شريط الدعوة للعمل ===== */
.cta-band { background: var(--gold-500); padding: 44px 0; }
.cta-band .container { display: flex; flex-direction: column; gap: 22px; text-align: center; align-items: center; }
.cta-band h2 { font-size: 1.5rem; color: var(--navy-800); font-weight: 900; }
.cta-band p { margin: 8px 0 0; color: rgba(7,31,60,.8); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ===== الفوتر ===== */
.site-footer { background: var(--navy-800); color: #fff; padding-top: 56px; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 36px; padding-bottom: 40px; }
.footer-logo-card { display: inline-flex; background: #fff; border-radius: 1.1rem; padding: 12px; margin-bottom: 16px; box-shadow: var(--shadow-soft); }
.footer-logo-card img { height: 96px; }
.footer-desc { color: rgba(255,255,255,.7); font-size: 0.86rem; line-height: 1.8; max-width: 320px; margin: 0; }
.footer-grid h4 { font-family: "Noto Kufi Arabic"; color: var(--gold-400); font-size: 0.95rem; margin-bottom: 16px; }
.footer-grid ul { display: flex; flex-direction: column; gap: 10px; }
.footer-grid li a, .footer-grid li { font-size: 0.86rem; color: rgba(255,255,255,.75); text-decoration: none; }
.footer-grid li a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 18px 0; display: flex; flex-direction: column; gap: 8px; align-items: center; text-align: center; font-size: 0.78rem; color: rgba(255,255,255,.6); }
.footer-bottom b { font-family: "Noto Kufi Arabic"; color: var(--gold-400); }

/* ===== صفحة فرعية: عنوان أعلى الصفحة ===== */
.page-hero { background: var(--navy-700); color: #fff; padding: 56px 0; position: relative; overflow: hidden; }

/* ===== نموذج التواصل ===== */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
.info-card {
  display: block; background: #fff; border: 1px solid var(--navy-100); border-radius: var(--radius);
  padding: 18px 20px; text-decoration: none; margin-bottom: 14px; transition: box-shadow .15s ease;
}
.info-card:hover { box-shadow: var(--shadow-card); }
.info-card .label { font-size: 0.74rem; font-weight: 800; color: rgba(19,32,58,.5); }
.info-card .value { font-size: 1rem; font-weight: 800; color: var(--navy-700); margin-top: 4px; }
.map-wrap { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--navy-100); box-shadow: var(--shadow-card); margin-top: 6px; }
.map-wrap iframe { width: 100%; height: 260px; border: 0; display: block; }

.contact-form {
  background: #fff; border: 1px solid var(--navy-100); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow-card);
}
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.88rem; font-weight: 800; color: var(--navy-700); margin-bottom: 8px; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; border: 1px solid var(--navy-100); background: var(--cream);
  border-radius: 0.9rem; padding: 12px 14px; font-size: 0.92rem; font-family: inherit; color: var(--ink);
  outline: none; transition: box-shadow .15s ease;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { box-shadow: 0 0 0 3px rgba(244,190,22,.4); }
.form-success {
  display: none; text-align: center; font-weight: 800; font-size: 0.9rem;
  color: #047857; margin-top: 16px;
}
.form-success.show { display: block; }

/* ===== زر واتساب العائم ===== */
.whatsapp-float {
  position: fixed; bottom: 22px; inset-inline-end: 22px; z-index: 60;
  width: 56px; height: 56px; border-radius: 50%; background: var(--whatsapp); color: #fff;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-soft);
  text-decoration: none; transition: transform .2s ease;
}
.whatsapp-float:hover { transform: scale(1.07); }
.whatsapp-float svg { width: 28px; height: 28px; }

/* ===== استجابة الشاشات ===== */
@media (min-width: 640px) {
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .partners-grid { grid-template-columns: repeat(3, 1fr); }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .testi-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-band .container { flex-direction: row; justify-content: space-between; text-align: right; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 2.6rem; }
}

@media (min-width: 900px) {
  .main-nav { display: flex; }
  .header-actions { display: flex; }
  .menu-toggle { display: none; }
  .mobile-nav { display: none !important; }

  .hero .container { grid-template-columns: 1.1fr 0.9fr; }
  .hero h1 { font-size: 3.2rem; }
  .hero-card-wrap { display: block; }
  .stats-grid { grid-template-columns: repeat(5, 1fr); }
  .about-grid { grid-template-columns: 1.15fr 0.85fr; }
  .section-head:not(.align-start) { margin-left: auto; margin-right: auto; }
  .cards-grid { grid-template-columns: repeat(3, 1fr); }
  .why-grid { grid-template-columns: repeat(3, 1fr); }
  .partners-grid { grid-template-columns: repeat(5, 1fr); }
  .testi-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; }
  .contact-grid { grid-template-columns: 0.9fr 1.1fr; }
}

@media (max-width: 899px) {
  .main-nav, .header-actions { display: none; }
  .menu-toggle { display: flex; }
}

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
