/* ==========================================================
   كلية الباحة الأهلية للعلوم — ملف التصميم الرئيسي
   الهوية + الهيدر + الفوتر + مكونات مشتركة + الصفحة الرئيسية
   مقاسات التصميم مأخوذة من Figma (إطار 1440px، حاوية 1216px)
   ========================================================== */

:root {
  --navy: #091540;
  --navy-deep: #041124;
  --navy-footer: #010b2d;
  --primary-color: #19b5b6;
  --gold: var(--primary-color);
  --gold-2: #149a9b;
  --gold-dark: #0e8a8b;
  --gold-light: #c7eeee;
  --text: #414141;
  --text-2: #4c4c4c;
  --muted: #747474;
  --grey: #808080;
  --grey-bg: #f8fafc;
  --line: #d7d7d7;
  --white: #fff;
  --black: #000;

  --f-sans: "Bahij TheSansArabic", "Segoe UI", Tahoma, sans-serif;
  --f-janna: "Bahij Janna", "Bahij TheSansArabic", "Segoe UI", Tahoma, sans-serif;
  --f-num: "Manrope", "Bahij TheSansArabic", sans-serif;

  --container: 1216px;
  --radius: 15px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- أساسيات ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  text-align: right;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 700; color: var(--black); line-height: 1.6; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; transition: color .3s var(--ease); }
a:hover { color: var(--gold); }
img { max-width: 100%; height: auto; display: inline-block; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }
::selection { background: var(--gold); color: #fff; }

.container {
  width: 100%;
  max-width: calc(var(--container) + 24px);
  padding-inline: 12px;
  margin-inline: auto;
}

.site-wrap { overflow: clip; }
main { display: block; }

/* ---------- مكونات مشتركة ---------- */
.section-badge {
  display: inline-block;
  min-width: 98px;
  height: 34px;
  padding: 0 21px;
  border-radius: 50px;
  background: var(--gold);
  color: var(--white);
  font-family: var(--f-janna);
  font-weight: 700;
  font-size: 16px;
  line-height: 34px;
  text-align: center;
  white-space: nowrap;
}
.section-badge--wide { min-width: 132px; }

.section-title {
  font-size: 38px;
  line-height: 62px;
  color: var(--black);
}
.section-title--janna { font-family: var(--f-janna); line-height: 75px; }

.section-desc {
  font-size: 20px;
  line-height: 31px;
  color: var(--text);
  max-width: 499px;
}
.section-desc--janna { font-family: var(--f-janna); }

.sec-head { margin-bottom: 32px; }
.sec-head .section-badge { margin-bottom: 15px; }
.sec-head .section-title { margin-bottom: 14px; }
.sec-head--split {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
}
.sec-head--center { text-align: center; }
.sec-head--center .section-title { margin-bottom: 0; }
.sec-head--center .section-desc { margin-inline: auto; }

/* زر كبسولة كحلي + دائرة ذهبية بسهم */
.btn-arrow {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 175px;
  height: 50px;
  padding: 0 0 0 50px;
  border: 0;
  border-radius: 40px;
  background: var(--navy);
  color: var(--white);
  font-family: var(--f-janna);
  font-size: 16px;
  line-height: 26px;
  overflow: hidden;
  isolation: isolate;
  transition: background-color .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease), transform .35s var(--ease);
}
.btn-arrow span { position: relative; z-index: 1; }
.btn-arrow__icon {
  position: absolute;
  left: 10px;
  top: 50%;
  width: 30px;
  height: 30px;
  margin-top: -15px;
  border-radius: 50%;
  background: var(--gold);
  display: grid;
  place-items: center;
  z-index: 1;
  transition: transform .45s var(--ease), background-color .35s var(--ease);
}
.btn-arrow__icon img { width: 20px; height: 20px; }
.btn-arrow::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .45s var(--ease);
  z-index: 0;
}
.btn-arrow:hover { color: var(--white); box-shadow: 0 10px 24px rgba(9, 21, 64, .25); }
.btn-arrow:hover::before { transform: scaleX(1); }
.btn-arrow:hover .btn-arrow__icon { background: var(--navy); transform: rotate(-45deg); }
.btn-arrow--light { background: var(--white); color: var(--navy); }
.btn-arrow--light:hover { color: var(--white); }

/* شارة صغيرة ذهبية (تاج) */
.tag-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 100px;
  height: 30px;
  padding: 0 12px;
  border-radius: 40px;
  background: var(--gold);
  color: var(--white);
  font-family: var(--f-janna);
  font-size: 14px;
  line-height: 22px;
  white-space: nowrap;
}

/* رابط عرض التفاصيل الذهبي */
.link-more {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  color: var(--gold);
  font-family: var(--f-janna);
  font-weight: 700;
  font-size: 16px;
  line-height: 26px;
}
.link-more img { width: 20px; height: 20px; transition: transform .35s var(--ease); }
.link-more:hover { color: var(--navy); }
.link-more:hover img { transform: translate(-3px, -3px); }

/* قائمة تحقق */
.check-list li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 18px;
  line-height: 28px;
  color: var(--navy);
}
.check-list li + li { margin-top: 10px; }
.check-list img { flex: 0 0 24px; }

/* أزرار دائرية (أسهم السلايدر) */
.round-btn {
  width: 51px;
  height: 50px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: transform .3s var(--ease), background-color .3s var(--ease), box-shadow .3s var(--ease);
}
.round-btn--navy { background: var(--navy); }
.round-btn--gold { background: var(--gold); }
.round-btn:hover { transform: translateY(-3px); box-shadow: 0 8px 18px rgba(9, 21, 64, .25); }
.round-btn--navy:hover { background: var(--gold); }
.round-btn--gold:hover { background: var(--navy); }

/* تبويبات الفلترة */
.filter-tabs { display: flex; flex-wrap: wrap; gap: 16px; }
.filter-tab {
  height: 50px;
  min-width: 101px;
  padding: 0 19px;
  border: 0;
  border-radius: 40px;
  background: rgba(9, 21, 64, .07);
  color: var(--black);
  font-family: var(--f-janna);
  font-size: 16px;
  line-height: 26px;
  white-space: nowrap;
  transition: background-color .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease);
}
.filter-tab:hover { background: rgba(9, 21, 64, .14); }
.filter-tab.is-active {
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(9, 21, 64, .56);
}
[data-filter-items] > .is-hidden { display: none !important; }
[data-filter-items] > .is-showing { animation: filterIn .45s var(--ease) both; }
@keyframes filterIn { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }

/* روابط التواصل الاجتماعي */
.social-links { display: flex; align-items: center; gap: 14px; }
.social-links a { display: grid; place-items: center; transition: transform .3s var(--ease), opacity .3s; }
.social-links a:hover { transform: translateY(-3px); opacity: .8; }

/* ==========================================================
   الهيدر
   ========================================================== */
.site-header { position: relative; z-index: 100; }

.topbar__inner {
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(0, 0, 0, .1);
}
.topbar .social-links { padding-top: 6px; }
.topbar__tools { display: flex; align-items: center; gap: 16px; }
.topbar__search { background: none; border: 0; padding: 0; display: grid; place-items: center; transition: transform .3s; }
.topbar__search:hover { transform: scale(1.12); }
.topbar__lang {
  font-family: "Tajawal", var(--f-sans);
  font-weight: 500;
  font-size: 15px;
  line-height: 18px;
  color: var(--navy);
}

.navbar-main__inner {
  display: flex;
  align-items: center;
  height: 109px;
}
.site-logo { display: block; flex: 0 0 auto; margin-right: 9px; }
.site-logo img { display: block; width: 144px; height: 100px; object-fit: contain; }
.site-logo__light { display: none !important; }
.site-header--inner .site-logo__light { display: block !important; }
.site-header--inner .site-logo__dark { display: none !important; }

.main-nav { margin-right: 62px; margin-left: 30px; }
.main-nav ul { display: flex; align-items: center; gap: 27px; }
.main-nav a {
  position: relative;
  display: block;
  font-size: 16px;
  line-height: 25px;
  color: var(--black);
  white-space: nowrap;
  padding: 6px 0;
}
.main-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--gold);
  transition: width .35s var(--ease);
}
.main-nav a:hover { color: var(--primary-color); }
.main-nav a:hover::after { width: 100%; }
.main-nav .active a { color: var(--primary-color); }

.btn-register {
  margin-right: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  width: auto;
  min-width: 160px;
  height: 50px;
  padding: 0 26px;
  white-space: nowrap;
  border-radius: 50px;
  background: var(--primary-color);
  color: var(--white);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.2;
  transition: box-shadow .35s var(--ease), transform .35s var(--ease), filter .35s;
}
.btn-register img { width: 30px; height: 24px; }
.btn-register:hover { color: var(--white); transform: translateY(-2px); box-shadow: 0 10px 22px rgba(25, 181, 182, .45); filter: brightness(1.04); }

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  margin-right: 14px;
  border: 0;
  border-radius: 12px;
  background: var(--navy);
  padding: 13px 12px;
  flex-direction: column;
  justify-content: space-between;
}
.nav-toggle span { display: block; height: 2px; border-radius: 2px; background: var(--white); transition: .3s; }
.nav-toggle span:nth-child(2) { width: 70%; }

/* هيدر الصفحات الداخلية (فوق البانر) */
.site-header--inner {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
}
.site-header--inner .container { padding-right: 34px; padding-left: 21px; }
.site-header--inner .navbar-main__inner { height: 127px; align-items: flex-start; padding-top: 7px; }
.site-header--inner .site-logo { margin-right: 0; }
.site-header--inner .site-logo img { width: 163px; height: 113px; }
.site-header--inner .main-nav { margin-right: 34px; margin-top: 47px; }
.site-header--inner .main-nav a { color: var(--white); }
.site-header--inner .main-nav a:hover,
.site-header--inner .main-nav .active a { color: var(--primary-color); }
.site-header--inner .btn-register { margin-top: 41px; }
.site-header--inner .nav-toggle { margin-top: 40px; background: rgba(255, 255, 255, .14); }

/* شريط السوشيال واللغة في الصفحات الداخلية (نسخة فاتحة فوق البانر) */
.topbar--light .topbar__inner { height: 46px; border-bottom-color: rgba(255, 255, 255, .18); }
.topbar--light .topbar__search img { filter: brightness(0) invert(1); }
.topbar--light .topbar__lang { color: var(--white); transition: color .3s; }
.topbar--light .topbar__lang:hover { color: var(--gold); }
.site-header--inner .navbar-main__inner { height: 118px; padding-top: 3px; }
.site-header--inner .site-logo img { width: 150px; height: 104px; }
.site-header--inner .main-nav { margin-top: 42px; }
.site-header--inner .btn-register { margin-top: 36px; }

/* الهيدر الثابت عند التمرير */
.site-header.is-sticky {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  background: var(--white);
  box-shadow: 0 4px 18px rgba(9, 21, 64, .12);
  animation: headerDown .45s var(--ease) both;
}
.site-header.is-sticky .topbar { display: none; }
.site-header.is-sticky .navbar-main__inner { height: 86px; padding-top: 0; align-items: center; }
.site-header.is-sticky .site-logo img { width: 104px; height: 72px; }
.site-header.is-sticky .main-nav,
.site-header.is-sticky .btn-register,
.site-header.is-sticky .nav-toggle { margin-top: 0; }
.site-header--inner.is-sticky { background: var(--navy); }
.header-spacer { display: none; }
body.has-sticky .header-spacer { display: block; }
@keyframes headerDown { from { transform: translateY(-100%); } to { transform: none; } }

/* ==========================================================
   بانر الصفحات الداخلية
   ========================================================== */
.page-banner {
  position: relative;
  height: 424px;
  display: flex;
  align-items: flex-start;
  text-align: center;
  color: var(--white);
  overflow: hidden;
  background: var(--navy);
}
.page-banner__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 45%;
  transform: scale(1.06);
  animation: bannerZoom 9s var(--ease) forwards;
}
.page-banner__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(5, 26, 59, .7);
}
@keyframes bannerZoom { to { transform: scale(1); } }
.is-static .page-banner__bg { transform: none; }
.page-banner .container { position: relative; z-index: 1; padding-top: 212px; }
.page-banner__title {
  font-size: 48px;
  line-height: 78px;
  color: var(--white);
}
.breadcrumb-nav {
  margin-top: 44px;
  font-size: 24px;
  line-height: 39px;
  color: #979797;
}
.breadcrumb-nav a { color: #979797; }
.breadcrumb-nav a:hover { color: var(--gold); }
.breadcrumb-nav .sep,
.breadcrumb-nav .current { color: var(--white); font-weight: 700; }
.breadcrumb-nav .sep { margin: 0 2px; }

/* ==========================================================
   الصفحة الرئيسية
   ========================================================== */

/* ----- الهيرو ----- */
.hero__slider {
  position: relative;
  height: 550px;
  border-radius: 40px;
  overflow: hidden;
  background: var(--navy);
}
.hero__slider .owl-stage-outer,
.hero__slider .owl-stage,
.hero__slider .owl-item { height: 100%; }
.hero__slide { position: relative; height: 550px; }
.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 45%;
}
.hero__bg::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .52); }
.hero__content {
  position: relative;
  z-index: 1;
  padding: 151px 90px 0 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.hero__title {
  font-size: 64px;
  line-height: 105px;
  color: var(--white);
}
.hero__sub {
  margin-top: -3px;
  font-weight: 700;
  font-size: 24px;
  line-height: 39px;
  color: var(--white);
}
.hero__content .btn-arrow { margin-top: 36px; }
.hero__slider .owl-item.active .hero__title { animation: heroIn .9s var(--ease) .15s both; }
.hero__slider .owl-item.active .hero__sub { animation: heroIn .9s var(--ease) .35s both; }
.hero__slider .owl-item.active .btn-arrow { animation: heroIn .9s var(--ease) .55s both; }
.hero__slider .owl-item.active .hero__bg { animation: heroZoom 7s linear both; }
@keyframes heroIn { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
@keyframes heroZoom { from { transform: scale(1.12); } to { transform: scale(1); } }

.hero__slider .owl-dots {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 15px;
}
.hero__slider .owl-dot span {
  display: block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .5);
  transition: background-color .3s, transform .3s;
}
.hero__slider .owl-dot.active span { background: var(--gold); transform: scale(1.05); }
.hero__slider .owl-dot:hover span { background: rgba(255, 255, 255, .85); }

/* ----- عن الكلية ----- */
.about-sec { padding-top: 80px; }
.about-grid {
  display: grid;
  grid-template-columns: 586px 586px;
  justify-content: space-between;
  align-items: start;
}
.about-media__visual { position: relative; height: 462px; }
.about-media__dots {
  position: absolute;
  top: 16px;
  right: -65px;
  width: 209px;
  height: 209px;
  animation: dotsFloat 6s ease-in-out infinite;
}
@keyframes dotsFloat { 50% { transform: translate(-6px, 8px); } }
.about-media__img {
  position: absolute;
  border-radius: var(--radius);
  object-fit: cover;
  box-shadow: 0 0 0 transparent;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.about-media__img:hover { transform: translateY(-6px); box-shadow: 0 18px 30px rgba(9, 21, 64, .18); }
.about-media__img--tall { top: 66px; right: 0; width: 265px; height: 396px; }
.about-media__img--short { top: 0; right: 291px; width: 265px; height: 336px; }
.about-media__stat {
  position: absolute;
  top: 360px;
  right: 291px;
  width: 265px;
  height: 102px;
  border-radius: var(--radius);
  background: var(--navy);
  display: flex;
  align-items: center;
  padding-right: 14px;
  overflow: hidden;
}
.about-media__stat strong {
  font-weight: 400;
  font-size: 50px;
  line-height: 79px;
  color: var(--gold);
  direction: ltr;
}
.about-media__line {
  flex: 0 0 1px;
  height: 45px;
  margin: 0 16px 0 13px;
  background: rgba(224, 224, 224, .47);
}
.about-media__stat p {
  font-weight: 700;
  font-size: 14.5px;
  line-height: 1.4;
  color: #f0ecec;
  white-space: normal;
}

.vision-card {
  position: relative;
  margin-top: 16px;
  height: 173px;
  padding: 13px 16px 0 20px;
  border: 1px solid rgba(0, 0, 0, .13);
  border-radius: var(--radius);
  background: var(--white);
}
.vision-card__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 24px;
  line-height: 39px;
  color: var(--black);
}
.vision-card__icon { position: relative; display: block; width: 35px; height: 32px; }
.vision-card__icon::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(9, 21, 64, .26);
}
.vision-card__icon img { position: absolute; top: 11px; left: 0; width: 25px; height: 23px; }
.vision-card__item p {
  margin-top: 9px;
  padding-right: 4px;
  font-size: 18px;
  line-height: 32px;
  color: var(--text);
  max-width: 546px;
}
.vision-card__nav {
  position: absolute;
  left: 25px;
  bottom: 14px;
  display: flex;
  gap: 15px;
}

.about-text { padding-top: 70px; margin: 0 4px 0 -4px; display: flex; flex-direction: column; align-items: flex-start; }
.about-text__title {
  margin-top: 16px;
  font-size: 33px;
  line-height: 54px;
  color: var(--black);
}
.about-text__desc {
  margin-top: 25px;
  font-size: 18px;
  line-height: 28px;
  text-align: justify;
  color: var(--text);
  max-width: 582px;
  margin-left: 4px;
}
.about-text .check-list { margin-top: 7px; }
.about-text__btn { margin-top: 93px; }

/* ----- الأقسام والبرامج ----- */
.depts-sec { padding-top: 107px; }
.depts-grid {
  display: grid;
  grid-template-columns: 512px 646px;
  justify-content: space-between;
  align-items: start;
}
.depts-info { padding-top: 22px; display: flex; flex-direction: column; align-items: flex-start; }
.depts-info__body { display: flex; flex-direction: column; align-items: flex-start; width: 100%; }
.depts-info__body.is-switching { animation: deptSwitch .55s var(--ease) both; }
@keyframes deptSwitch { from { opacity: 0; transform: translateX(-24px); } to { opacity: 1; transform: none; } }
.depts-info__title {
  margin-top: 2px;
  margin-right: -5px;
  font-size: 38px;
  line-height: 62px;
  color: var(--black);
}
.depts-info__desc {
  margin-top: 29px;
  max-width: 499px;
  font-size: 20px;
  line-height: 31px;
  color: var(--text);
}
.dept-meta { margin-top: 15px; display: flex; align-items: center; gap: 0; width: 100%; }
.dept-meta span { display: inline-flex; align-items: center; gap: 4px; }
.dept-meta span + span { margin-right: 87px; }
.dept-meta b { font-size: 14px; line-height: 26px; color: var(--gold-dark); white-space: nowrap; }
.dept-careers-title {
  margin-top: 25px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 20px;
  line-height: 26px;
  color: var(--black);
}
.dept-careers {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 202px auto;
  row-gap: 15px;
  width: calc(100% + 6px);
  margin-right: -6px;
}
.dept-careers li {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  line-height: 22px;
  color: var(--text);
}
.dept-careers li::before {
  content: "";
  flex: 0 0 24px;
  height: 24px;
  background: url("../img/icons/tick-circle-light.svg") center / contain no-repeat;
}
.depts-info .btn-arrow { margin-top: 37px; }

.dept-cards { display: grid; grid-template-columns: 310px 310px; gap: 26px; }
.dept-cards__col { display: flex; flex-direction: column; gap: 26px; }
.dept-cards__col--offset { padding-top: 70px; }
.dept-card {
  position: relative;
  display: block;
  width: 310px;
  height: 215px;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--navy);
  text-align: right;
  isolation: isolate;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.dept-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
}
.dept-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(9, 21, 64, .2) 0%, var(--navy) 100%);
  z-index: 0;
}
.dept-card__code {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 1;
  min-width: 42px;
  height: 42px;
  padding: 0 4px;
  border-radius: 10px;
  background: rgba(217, 217, 217, .47);
  color: var(--white);
  font-family: var(--f-janna);
  font-weight: 700;
  font-size: 19px;
  line-height: 42px;
  text-align: center;
}
.dept-card__foot {
  position: absolute;
  right: 16px;
  bottom: 22px;
  left: 16px;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 7px;
}
.dept-card__icon {
  flex: 0 0 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .08);
  display: grid;
  place-items: center;
  color: var(--white);
  font-size: 22px;
  transition: background-color .35s, color .35s;
}
.svg-ic { display: block; flex: 0 0 auto; }
.dept-card__name {
  font-family: var(--f-janna);
  font-weight: 700;
  font-size: 19px;
  line-height: 30px;
  color: var(--white);
  transition: color .35s;
}
.dept-card:hover { transform: translateY(-6px); box-shadow: 0 18px 32px rgba(9, 21, 64, .28); }
.dept-card:hover .dept-card__img { transform: scale(1.08); }
.dept-card:hover .dept-card__icon { background: rgba(255, 255, 255, .2); }
.dept-card.is-active .dept-card__name,
.dept-card.is-active .dept-card__icon { color: var(--gold); }
.dept-card.is-active { box-shadow: 0 0 0 2px rgba(25, 181, 182, .0); }

/* ----- الإحصائيات ----- */
.stats-sec {
  position: relative;
  margin-top: 107px;
  height: 473px;
  background: var(--navy-deep);
  overflow: hidden;
}
.stats-sec__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: rotate(180deg);
}
.stats-sec .container { position: relative; z-index: 1; height: 100%; display: flex; align-items: flex-start; }
.stats-grid {
  margin: 145px auto 0;
  display: grid;
  grid-template-columns: repeat(4, 255px);
  gap: 35px;
}
.stat-card {
  position: relative;
  height: 183px;
  padding-top: 25px;
  border-radius: 10px 10px 0 0;
  background: rgba(242, 242, 242, .3);
  text-align: center;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), background-color .4s;
}
.stat-card::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 4px;
  background: var(--white);
  transition: background-color .4s;
}
.stat-card__num {
  display: flex;
  justify-content: center;
  direction: ltr;
  font-family: var(--f-num);
  font-weight: 700;
  font-size: 70px;
  line-height: 96px;
  background: linear-gradient(180deg, var(--gold) 0%, #7fdbdc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-card p {
  margin-top: 17px;
  font-family: var(--f-janna);
  font-size: 20px;
  line-height: 22px;
  color: var(--white);
}
.stat-card:hover { box-shadow: 0 3px 8px rgba(5, 26, 59, .7); }
.stat-card:hover::after { background: var(--gold); }
.stat-card:hover { transform: translateY(-8px); background: rgba(242, 242, 242, .36); }

/* ----- كلمة العميد ----- */
.dean-sec { padding-top: 92px; }
.dean-grid {
  display: grid;
  grid-template-columns: 490px 608px;
  justify-content: space-between;
  padding-right: 45px;
  align-items: start;
}
.dean-media__frame { position: relative; height: 675px; }
.dean-media__box {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 354px;
  border-radius: 41px;
  background: var(--navy-deep);
}
.dean-media__img {
  position: absolute;
  bottom: 0;
  right: 47px;
  width: 370px;
  height: 675px;
  object-fit: contain;
  transition: transform .6s var(--ease);
  transform-origin: bottom center;
}
.dean-media:hover .dean-media__img { transform: scale(1.02); }
.dean-media__name,
.dean-media__role { width: 370px; margin-right: 47px; text-align: center; }
.dean-media__name {
  margin-top: 12px;
  font-size: 20.8px;
  line-height: 33px;
  color: var(--gold);
}
.dean-media__role {
  margin-top: -2px;
  font-weight: 700;
  font-size: 15.2px;
  line-height: 24px;
  color: #a2a2a2;
}
.dean-text { padding-top: 36px; }
.dean-text__kicker { display: block; font-size: 20px; line-height: 33px; color: var(--gold); }
.dean-text__basmala { margin-top: 20px; font-size: 30px; line-height: 45px; color: var(--gold); }
.dean-text__body { margin-top: 16px; padding-bottom: 29px; border-bottom: 1px solid var(--line); }
.dean-text__body p {
  font-size: 18px;
  line-height: 34px;
  color: var(--text-2);
  text-align: justify;
}
.dean-text__body .dean-text__hi { font-weight: 700; font-size: 17px; color: var(--gold); }
.dean-text__closing {
  margin-top: 10px;
  font-weight: 700;
  font-size: 25px;
  line-height: 37px;
  color: var(--gold);
}

/* ----- المركز الإعلامي ----- */
.media-sec { padding-top: 117px; }
.media-sec .sec-head { margin-bottom: 42px; }
.media-sec .section-title { margin-bottom: 1px; }
.media-sec .filter-tabs { margin-top: 65px; }
.media-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 17px;
  row-gap: 16px;
}
.media-card { position: relative; height: 264px; border-radius: var(--radius); overflow: hidden; }
.media-card__link {
  position: absolute;
  inset: 0;
  display: block;
  color: var(--white);
  isolation: isolate;
}
.media-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .9s var(--ease);
}
.media-card__link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(9, 21, 64, .2) 0%, var(--navy) 100%);
  z-index: 0;
  transition: opacity .4s;
}
.media-card__top {
  position: absolute;
  top: 16px;
  right: 16px;
  left: 18px;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.media-card__date {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--f-janna);
  font-size: 14px;
  line-height: 22px;
}
.media-card__title {
  position: absolute;
  right: 16px;
  left: 20px;
  bottom: 16px;
  z-index: 1;
  font-family: var(--f-janna);
  font-weight: 700;
  font-size: 19px;
  line-height: 30px;
  color: var(--white);
}
.media-card__hover {
  position: absolute;
  top: 94px;
  left: 50%;
  z-index: 1;
  width: 46px;
  height: 46px;
  margin-left: -23px;
  border-radius: 50%;
  background: rgba(25, 181, 182, .48);
  display: grid;
  place-items: center;
  opacity: 0;
  transform: scale(.4) rotate(-90deg);
  transition: opacity .4s var(--ease), transform .5s var(--ease);
}
.media-card:hover .media-card__img { transform: scale(1.1); }
.media-card:hover .media-card__hover { opacity: 1; transform: none; }

/* ----- أحدث الأخبار ----- */
.news-sec {
  position: relative;
  margin-top: 47px;
  padding: 69px 0 137px;
  background: linear-gradient(180deg, #fdfeff 0%, rgba(212, 239, 255, .85) 100%);
  overflow: hidden;
}
.news-sec__lines {
  position: absolute;
  top: 62px;
  left: 0;
  width: 100%;
  min-width: 1440px;
  height: auto;
  pointer-events: none;
}
.news-sec .container { position: relative; z-index: 1; }
.sec-head--bottom .btn-arrow { margin-top: 88px; }
.news-sec .sec-head { margin-bottom: 42px; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 17px; }
.news-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: 447px;
  padding: 22px 28px 35px 29px;
  border-radius: var(--radius);
  background: var(--white);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.news-card:hover { transform: translateY(-8px); box-shadow: 0 4px 4px rgba(0, 0, 0, .25), 0 22px 36px rgba(9, 21, 64, .1); }
.news-card__thumb {
  position: relative;
  display: block;
  width: 100%;
  height: 222px;
  border-radius: var(--radius);
  overflow: hidden;
}
.news-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.news-card:hover .news-card__thumb img { transform: scale(1.08); }
.news-card__thumb .tag-pill { position: absolute; top: 14px; left: 14px; }
.news-card__meta {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 53px;
  font-family: var(--f-janna);
  font-size: 14px;
  line-height: 22px;
  color: #7a7a79;
}
.news-card__meta span { display: inline-flex; align-items: center; gap: 5px; }
.news-card__sep { width: 1px; height: 20px; background: rgba(0, 0, 0, .21); }
.news-card__title {
  margin-top: 14px;
  font-family: var(--f-janna);
  font-weight: 700;
  font-size: 19px;
  line-height: 30px;
  color: var(--black);
}
.news-card__title a:hover { color: var(--gold); }
.news-card .link-more { margin-top: auto; }

/* ----- شركاء النجاح ----- */
.partners-sec { padding-top: 107px; }
.partners-sec .sec-head { margin-bottom: 0; }
.partners-sec .section-badge { margin-bottom: 16px; }
.partners-marquee { margin-top: 59px; margin-bottom: -18px; overflow: hidden; }
.partners-row { padding: 0 0 18px; }
.partners-row + .partners-row { margin-top: 31px; }
.partners-track {
  display: flex;
  gap: 59px;
  width: max-content;
  animation: partnersMove 38s linear infinite;
}
.partners-track--reverse { animation-direction: reverse; }
.partners-row:hover .partners-track { animation-play-state: paused; }
@keyframes partnersMove { from { transform: translateX(0); } to { transform: translateX(calc(50% + 29.5px)); } }
.partners-row--offset { padding-right: 40px; }
.partner-card {
  flex: 0 0 204px;
  width: 204px;
  height: 114px;
  border: 1px solid var(--white);
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 4px 4px rgba(0, 0, 0, .25);
  display: grid;
  place-items: center;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.partner-card img {
  width: 140px;
  height: 80px;
  max-width: none;
  object-fit: contain;
  pointer-events: none;
  transition: transform .4s var(--ease);
}
.partner-card:hover { transform: translateY(-4px); box-shadow: 0 10px 20px rgba(9, 21, 64, .18); }
.partner-card:hover img { transform: scale(1.06); }

/* ==========================================================
   نداء التسجيل + الفوتر
   ========================================================== */
.cta-band { position: relative; z-index: 2; margin-top: 138px; margin-bottom: -99px; }
.cta-box {
  position: relative;
  height: auto;
  min-height: 197px;
  border-radius: var(--radius);
  background: rgba(25, 181, 182, .8);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 46px 58px 46px 126px;
}
.cta-box__lines {
  position: absolute;
  top: -2px;
  left: -3px;
  width: 1320px;
  height: 201px;
  max-width: none;
  transform: scaleX(-1);
  pointer-events: none;
}
.cta-box__text { position: relative; z-index: 1; }
.cta-box__text h2 {
  font-size: 45px;
  line-height: 1.25;
  color: var(--white);
  padding-top: 0;
}
.cta-box__text p {
  margin-top: 14px;
  font-size: 20px;
  line-height: 1.7;
  color: var(--white);
}
.btn-cta {
  position: relative;
  z-index: 1;
  margin-top: 1px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 250px;
  height: 65px;
  padding: 0 29px 0 21px;
  border-radius: 40px;
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
  font-size: 16px;
  line-height: 26px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background-color .35s;
}
.btn-cta__icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gold);
  display: grid;
  place-items: center;
  transition: transform .45s var(--ease), background-color .35s;
}
.btn-cta:hover { color: var(--white); transform: translateY(-3px); box-shadow: 0 14px 26px rgba(9, 21, 64, .35); }
.btn-cta:hover .btn-cta__icon { transform: rotate(-12deg) scale(1.08); }

.site-footer {
  position: relative;
  padding-top: 144px;
  background: var(--navy-footer);
  color: var(--white);
  overflow: hidden;
}
.site-footer__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
}
.site-footer__bg::after { content: ""; position: absolute; inset: 0; background: rgba(1, 11, 45, .92); }
.site-footer .container { position: relative; z-index: 1; }
.footer-grid { display: flex; align-items: flex-start; padding-right: 32px; min-height: 259px; }
.footer-about { flex: 0 0 243px; margin-left: 93px; text-align: center; }
.footer-logo { display: block; }
.footer-logo img { display: block; margin-right: 28px; width: 163px; height: 113px; object-fit: contain; }
.footer-about p {
  margin-top: 16px;
  font-size: 12px;
  line-height: 19.5px;
  color: #afafaf;
  text-align: justify;
}
.footer-col { padding-top: 15px; }
.footer-col--sitemap { flex: 0 0 234px; margin-left: 86px; }
.footer-col:nth-child(3) { flex: 0 0 120px; margin-left: 140px; }
.footer-col--contact { flex: 1 1 auto; }
.footer-title {
  position: relative;
  padding-bottom: 15px;
  font-size: 18px;
  line-height: 31px;
  color: var(--white);
}
.footer-title::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 27px;
  height: 5px;
  border-radius: 10px;
  background: #cee4de;
  transition: width .4s var(--ease);
}
.footer-col:hover .footer-title::after { width: 48px; }
.footer-links { margin-top: 34px; }
.footer-links--2col { display: grid; grid-template-columns: repeat(2, max-content); column-gap: 28px; }
.footer-links li { margin-bottom: 19px; height: 24px; }
.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  line-height: 24px;
  color: var(--white);
  white-space: nowrap;
}
.footer-links a::before {
  content: "";
  width: 7px;
  height: 13px;
  background: url("../img/icons/chevrons.svg") center / contain no-repeat;
  transition: transform .3s var(--ease);
}
.footer-links a:hover { color: var(--gold); }
.footer-links a:hover::before { transform: translateX(-4px); }
.footer-contact { margin-top: 40px; }
.footer-contact li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  line-height: 25px;
  color: #c2daff;
}
.footer-contact li + li { margin-top: 19px; }
.footer-contact a { color: #c2daff; }
.footer-contact a:hover { color: var(--gold); }
.footer-bottom {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  height: 52px;
  border-top: 1px solid rgba(255, 255, 255, .2);
  padding: 0 32px 0 0;
}
.copyright {
  font-weight: 700;
  font-size: 14px;
  line-height: 23px;
  color: rgba(255, 255, 255, .52);
}
.copyright b { color: var(--gold); }
.footer-legal { display: flex; align-items: center; justify-content: flex-end; font-size: 13px; line-height: 22px; }
.footer-legal li + li::before { content: "|"; margin: 0 13px; color: rgba(255, 255, 255, .52); }
.footer-legal a { color: rgba(255, 255, 255, .52); }
.footer-legal a:hover { color: var(--gold); }

/* واتساب + العودة للأعلى */
.whatsapp-float {
  position: fixed;
  right: 35px;
  bottom: 40px;
  z-index: 90;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  animation: waPulse 2.6s ease-out infinite;
}
.whatsapp-float img { display: block; width: 44px; height: 44px; }
@keyframes waPulse { 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .5); } 70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); } 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); } }
.back-top {
  position: fixed;
  left: 30px;
  bottom: 40px;
  z-index: 90;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: .35s var(--ease);
}
.back-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.back-top:hover { background: var(--gold); }

/* ==========================================================
   قائمة الجوال + نافذة البحث
   ========================================================== */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(4, 17, 36, .55);
  opacity: 0;
  visibility: hidden;
  transition: .35s var(--ease);
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }
.mobile-menu__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(360px, 88vw);
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 18px 20px 0;
  background: var(--white);
  transform: translateX(100%);
  transition: transform .45s var(--ease);
}
.mobile-menu.is-open .mobile-menu__panel { transform: none; }
.mobile-menu__head { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; }
.mobile-menu__logo img { width: 110px; height: 76px; object-fit: contain; }
.mobile-menu__close {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(9, 21, 64, .07);
  color: var(--navy);
  font-size: 18px;
  transition: background-color .3s, color .3s, transform .3s;
}
.mobile-menu__close:hover { background: var(--navy); color: var(--white); transform: rotate(90deg); }
.mobile-menu__search {
  flex: 0 0 auto;
  margin-top: 16px;
  display: flex;
  align-items: center;
  height: 48px;
  padding: 0 16px 0 8px;
  border-radius: 40px;
  background: var(--grey-bg);
  border: 1px solid #eef0f4;
}
.mobile-menu__search input { flex: 1; min-width: 0; border: 0; background: none; outline: 0; font-size: 15px; }
.mobile-menu__search button { border: 0; background: none; }

/* الروابط فقط هي اللي بتعمل scroll لو زادت */
.mobile-menu__body {
  flex: 1 1 auto;
  min-height: 0;
  margin: 12px -20px 0;
  padding: 0 20px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(9, 21, 64, .25) transparent;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 12px, #000 calc(100% - 18px), transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 12px, #000 calc(100% - 18px), transparent 100%);
}
.mobile-menu__body::-webkit-scrollbar { width: 4px; }
.mobile-menu__body::-webkit-scrollbar-thumb { border-radius: 4px; background: rgba(9, 21, 64, .25); }
.mobile-menu__links { padding: 6px 0 14px; }
.mobile-menu__links li { border-bottom: 1px solid #f0f0f0; }
.mobile-menu__links li:last-child { border-bottom: 0; }
.mobile-menu__links a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 4px;
  font-size: 16px;
  color: var(--black);
  transition: color .3s, padding .3s;
}
.mobile-menu__links a:hover { color: var(--gold); padding-right: 10px; }
.mobile-menu__links .active a { color: var(--gold); font-weight: 700; }

/* الجزء السفلي الثابت: التسجيل + اللغة + السوشيال */
.mobile-menu__foot {
  flex: 0 0 auto;
  margin: 0 -20px;
  padding: 16px 20px calc(18px + env(safe-area-inset-bottom));
  border-top: 1px solid #eef0f4;
  background: var(--white);
}
.btn-register--block { width: 100%; margin: 0; }
.mobile-menu__row { margin-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mobile-menu__lang {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-radius: 40px;
  background: rgba(9, 21, 64, .06);
  color: var(--navy);
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
  transition: background-color .3s, color .3s;
}
.mobile-menu__lang i { color: var(--gold); transition: color .3s; }
.mobile-menu__lang:hover { background: var(--navy); color: var(--white); }
.mobile-menu__lang:hover i { color: var(--white); }
.mobile-menu__social { gap: 12px; }

.search-modal {
  position: fixed;
  inset: 0;
  z-index: 1001;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(4, 17, 36, .92);
  opacity: 0;
  visibility: hidden;
  transition: .35s var(--ease);
}
.search-modal.is-open { opacity: 1; visibility: visible; }
.search-modal__close {
  position: absolute;
  top: 26px;
  left: 26px;
  width: 50px;
  height: 50px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  color: var(--white);
  font-size: 20px;
}
.search-modal__form { width: min(760px, 100%); transform: translateY(30px); transition: transform .45s var(--ease); }
.search-modal.is-open .search-modal__form { transform: none; }
.search-modal__form label { display: block; margin-bottom: 16px; font-size: 30px; font-weight: 700; color: var(--white); }
.search-modal__field { display: flex; height: 64px; border-radius: 40px; background: var(--white); padding: 0 24px 0 8px; align-items: center; }
.search-modal__field input { flex: 1; border: 0; outline: 0; font-size: 18px; background: none; }
.search-modal__field button { width: 48px; height: 48px; border: 0; border-radius: 50%; background: var(--gold); display: grid; place-items: center; }
.search-modal__field button img { filter: brightness(0) invert(1); }

/* تعطيل حركة WOW للمستخدمين الذين يفضلون تقليل الحركة */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .wow { visibility: visible !important; }
}

/* أيقونة القسم المرفوعة كصورة — تتوسّط البوكس بنفس إحساس الأيقونة المدمجة */
.dept-ico-img{width:62%;height:62%;object-fit:contain;display:block}
