/* ================================================
   ALSALAM UNIVERSITY — STYLE.CSS
   Brand: Navy #1B3A6B | Gold #C9A84C
   Bilingual: Arabic (RTL) / English (LTR)
   Modes: Dark / Light
   ================================================ */

/* ─── VARIABLES ─── */
:root {
  /* Navy stays as the deep menu/footer color (الزرعي للقوائم) */
  --navy: #1B3A6B;
  --navy-dark: #0f2245;
  --navy-light: #2a5298;
  --gold: #C9A84C;
  --gold-light: #e8c76a;
  --gold-dark: #a8872e;
  /* Light green accents */
  --green: #2e8b57;
  --green-light: #e8f5ee;
  --green-mid: #d4ebdd;
  --radius: 14px;
  --radius-lg: 22px;
  --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow: 0 8px 32px rgba(27,58,107,0.15);
  --shadow-gold: 0 4px 20px rgba(201,168,76,0.3);

  /* Light mode — white + light green base */
  --bg: #ffffff;
  --bg2: #ffffff;
  --bg3: #eef7f1;          /* light green tint */
  --text: #14302a;
  --text-2: #3d5a50;
  --text-3: #7d9488;
  --border: rgba(46,139,87,0.16);
  --card-bg: #ffffff;
  --card-border: rgba(46,139,87,0.14);
  --nav-bg: rgba(255,255,255,0.97);
  --nav-shadow: 0 2px 20px rgba(46,139,87,0.12);
  --hero-bg: var(--navy-dark);
  --strip-bg: #f4fbf7;
  --footer-bg: var(--navy-dark);
  --footer-text: rgba(255,255,255,0.75);
  --input-bg: #f1f9f4;
  --input-border: rgba(46,139,87,0.22);
}

[data-theme="dark"] {
  --bg: #0b1220;
  --bg2: #111827;
  --bg3: #162033;
  --text: #e8edf5;
  --text-2: #9ba8be;
  --text-3: #5c6d88;
  --border: rgba(201,168,76,0.12);
  --card-bg: #162033;
  --card-border: rgba(201,168,76,0.1);
  --nav-bg: rgba(11,18,32,0.97);
  --nav-shadow: 0 2px 20px rgba(0,0,0,0.5);
  --strip-bg: #111827;
  --input-bg: #1c2a3f;
  --input-border: rgba(201,168,76,0.2);
}

/* ─── RESET ─── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Tajawal', 'Cairo', 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  max-width: 100%;
  transition: background 0.35s, color 0.35s;
}
body[dir="rtl"] { direction: rtl; }
body[dir="ltr"] { direction: ltr; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; }

.container { max-width: 1220px; margin: 0 auto; padding: 0 24px; }

/* ─── LOADER / SPLASH ─── */
#loader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--navy-dark);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 0;
  transition: opacity 0.6s, visibility 0.6s;
}
#loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-logo {
  width: 110px; height: 110px; border-radius: 50%;
  object-fit: contain; background: white; padding: 12px;
  animation: loaderPulse 1.6s ease-in-out infinite;
  box-shadow: 0 0 50px rgba(201,168,76,0.4);
}
@keyframes loaderPulse {
  0%,100% { transform: scale(1); box-shadow: 0 0 30px rgba(201,168,76,0.3); }
  50% { transform: scale(1.06); box-shadow: 0 0 60px rgba(201,168,76,0.6); }
}
.loader-title {
  font-size: 1.4rem; font-weight: 800; color: #fff;
  margin-top: 24px; letter-spacing: 1px;
}
.loader-sub { font-size: 0.75rem; color: var(--gold); letter-spacing: 4px; margin-top: 4px; }
.loader-bar {
  width: 200px; height: 3px; background: rgba(255,255,255,0.15);
  border-radius: 99px; overflow: hidden; margin-top: 28px;
}
.loader-bar-fill {
  height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 99px; animation: loadFill 2.2s ease-out forwards;
}
@keyframes loadFill { from { width: 0; } to { width: 100%; } }

/* ─── TOP BAR ─── */
.top-bar {
  background: var(--navy-dark);
  padding: 8px 0;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.8);
  border-bottom: 1px solid rgba(201,168,76,0.15);
}
.top-bar-inner {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 8px;
}
.top-bar a { color: var(--gold-light); transition: color 0.2s; }
.top-bar a:hover { color: #fff; }
.top-bar-left, .top-bar-right {
  display: flex; gap: 18px; align-items: center;
}
.top-bar i { margin-inline-end: 5px; }
.top-bar-controls { display: flex; align-items: center; gap: 10px; }

/* ─── LANG TOGGLE ─── */
.lang-toggle {
  display: flex; align-items: center; gap: 0;
  background: rgba(255,255,255,0.08);
  border-radius: 6px; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.15);
}
.lang-btn {
  padding: 4px 10px; font-size: 0.75rem; font-weight: 700;
  color: rgba(255,255,255,0.6); transition: all 0.2s;
  border-radius: 0;
}
.lang-btn.active { background: var(--gold); color: var(--navy-dark); }

/* ─── DARK MODE TOGGLE ─── */
.theme-toggle {
  width: 34px; height: 18px; background: rgba(255,255,255,0.15);
  border-radius: 99px; position: relative; border: 1px solid rgba(255,255,255,0.2);
  transition: background 0.3s;
}
.theme-toggle::after {
  content: ''; position: absolute; top: 2px; left: 2px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--gold); transition: transform 0.3s;
}
[data-theme="dark"] .theme-toggle::after { transform: translateX(16px); }
[data-theme="dark"] .theme-toggle { background: rgba(201,168,76,0.25); }
.theme-label { font-size: 0.75rem; color: rgba(255,255,255,0.6); }

/* ─── NAVBAR ─── */
.navbar {
  position: sticky; top: 0; z-index: 1000;
  background: var(--nav-bg);
  box-shadow: var(--nav-shadow);
  backdrop-filter: blur(20px);
  transition: var(--transition);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 0;
}
.nav-logo { display: flex; align-items: center; gap: 12px; }
.nav-logo img { height: 56px; object-fit: contain; border-radius: 8px; }
.nav-logo-text { display: flex; flex-direction: column; }
.nav-logo-text .brand-ar { font-size: 0.88rem; font-weight: 800; color: var(--navy); line-height: 1.2; }
.nav-logo-text .brand-en { font-size: 0.7rem; color: var(--gold-dark); letter-spacing: 0.5px; font-weight: 600; }
[data-theme="dark"] .nav-logo-text .brand-ar { color: #e8edf5; }

.nav-links { display: flex; gap: 4px; align-items: center; list-style: none; }
.nav-links > li > a {
  color: var(--text); font-weight: 600; font-size: 0.88rem;
  padding: 8px 14px; border-radius: 8px;
  transition: var(--transition); position: relative; display: flex; align-items: center; gap: 5px;
}
.nav-links > li > a:hover { color: var(--navy); background: rgba(27,58,107,0.07); }
[data-theme="dark"] .nav-links > li > a:hover { color: var(--gold); background: rgba(201,168,76,0.08); }
.nav-links > li > a.active { color: var(--navy); font-weight: 700; }
[data-theme="dark"] .nav-links > li > a.active { color: var(--gold-light); }
.nav-links > li > a::after {
  content: ''; position: absolute; bottom: 4px; left: 14px; right: 14px;
  height: 2px; background: var(--gold); border-radius: 2px;
  transform: scaleX(0); transition: transform 0.3s;
}
.nav-links > li > a:hover::after, .nav-links > li > a.active::after { transform: scaleX(1); }

.nav-cta {
  background: linear-gradient(135deg, var(--navy), var(--navy-light)) !important;
  color: #fff !important; padding: 10px 22px !important;
  border-radius: 50px !important; font-weight: 700 !important;
  box-shadow: 0 4px 18px rgba(27,58,107,0.35);
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(27,58,107,0.45) !important; }
.nav-cta::after { display: none !important; }

/* Mega dropdown */
.has-dropdown { position: relative; }
.dropdown {
  position: absolute; top: calc(100% + 12px); inset-inline-start: 0;
  min-width: 600px; background: var(--card-bg);
  border: 1px solid var(--card-border); border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
  padding: 24px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  opacity: 0; visibility: hidden; transform: translateY(-10px);
  transition: all 0.25s; pointer-events: none;
}
[dir="rtl"] .dropdown { left: auto; right: 0; }
[dir="ltr"] .dropdown { left: 0; right: auto; }
.has-dropdown:hover .dropdown {
  opacity: 1; visibility: visible; transform: translateY(0); pointer-events: all;
}
.dropdown-campus { }
.dropdown-campus-title {
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 2px;
  color: var(--navy); font-weight: 800; margin-bottom: 10px; padding-bottom: 8px;
  border-bottom: 2px solid var(--gold);
}
[data-theme="dark"] .dropdown-campus-title { color: var(--gold-light); }
.dropdown-campus ul { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.dropdown-campus ul li a {
  font-size: 0.82rem; color: var(--text-2); padding: 6px 10px; border-radius: 6px;
  display: block; transition: all 0.2s;
}
.dropdown-campus ul li a:hover { color: var(--navy); background: var(--bg3); padding-inline-start: 14px; }
[data-theme="dark"] .dropdown-campus ul li a:hover { color: var(--gold-light); }
.dropdown-campus-icon { font-size: 1.2rem; margin-bottom: 6px; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; padding: 8px;
  border-radius: 8px; transition: background 0.2s;
}
.nav-toggle:hover { background: var(--bg3); }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: var(--transition); }

/* Mobile nav */

[dir="rtl"] 

.mobile-section { margin-bottom: 20px; }




/* ─── HERO ─── */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; overflow: hidden;
  background: var(--navy-dark);
}
.hero-bg {
  position: absolute; inset: 0;
  background: url('../images/hero-bg.jpg') center/cover no-repeat;
  opacity: 0.1;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(11,28,68,0.90) 0%, rgba(27,58,107,0.78) 50%, rgba(11,28,68,0.88) 100%);
}

/* ── Canvas particle animation ── */
#heroCanvas {
  position: absolute; inset: 0; pointer-events: none; z-index: 1;
  opacity: 0.55;
}

.hero-inner {
  position: relative; z-index: 2;
  padding: 130px 0 80px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.hero-content { }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(201,168,76,0.15); border: 1px solid rgba(201,168,76,0.4);
  color: var(--gold-light); padding: 8px 20px; border-radius: 50px;
  font-size: 0.82rem; font-weight: 700; letter-spacing: 1px; margin-bottom: 24px;
  animation: fadeUp 0.8s ease both;
}
.hero h1 {
  font-size: clamp(2rem, 4vw, 3.6rem); font-weight: 900; color: #fff;
  line-height: 1.15; margin-bottom: 20px;
  animation: fadeUp 0.9s 0.1s ease both;
}
.hero h1 .gold { color: var(--gold); }
.hero-sub {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem); color: rgba(255,255,255,0.75);
  line-height: 1.8; margin-bottom: 36px; max-width: 550px;
  animation: fadeUp 1s 0.2s ease both;
}
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; animation: fadeUp 1.1s 0.3s ease both; }
.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #fff; padding: 14px 34px; border-radius: 50px;
  font-weight: 700; font-size: 0.95rem;
  box-shadow: var(--shadow-gold); transition: var(--transition);
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 10px 35px rgba(201,168,76,0.55); color: #fff; }
.btn-outline-hero {
  border: 2px solid rgba(255,255,255,0.4); color: #fff;
  padding: 12px 32px; border-radius: 50px; font-weight: 600; font-size: 0.95rem;
  transition: var(--transition); display: inline-flex; align-items: center; gap: 8px;
}
.btn-outline-hero:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-3px); }

.hero-stats {
  display: flex; gap: 32px; margin-top: 52px; padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.1); flex-wrap: wrap;
  animation: fadeUp 1.2s 0.4s ease both;
}
.hero-stat .num { font-size: 2rem; font-weight: 900; color: var(--gold); line-height: 1; }
.hero-stat .label { font-size: 0.8rem; color: rgba(255,255,255,0.6); margin-top: 4px; }

/* Hero visual side */
.hero-visual { animation: fadeUp 1s 0.3s ease both; }
.hero-cards { display: flex; flex-direction: column; gap: 16px; }
.hero-card {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(201,168,76,0.2);
  border-radius: var(--radius); padding: 20px 24px;
  display: flex; align-items: center; gap: 16px;
  backdrop-filter: blur(10px); transition: var(--transition);
}
.hero-card:hover { background: rgba(201,168,76,0.08); border-color: rgba(201,168,76,0.4); transform: translateX(-6px); }
[dir="ltr"] .hero-card:hover { transform: translateX(6px); }
.hero-card-icon {
  width: 48px; height: 48px; border-radius: 12px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  display: flex; align-items: center; justify-content: center; font-size: 1.3rem;
}
.hero-card-text strong { color: #fff; font-size: 0.9rem; font-weight: 700; display: block; }
.hero-card-text span { color: rgba(255,255,255,0.55); font-size: 0.78rem; }

@keyframes fadeUp { from { opacity:0; transform: translateY(24px); } to { opacity:1; transform: translateY(0); } }
@keyframes fadeDown { from { opacity:0; transform: translateY(-16px); } to { opacity:1; transform: translateY(0); } }

/* ─── FEATURES STRIP ─── */
.features-strip {
  background: var(--strip-bg);
  border-top: 3px solid var(--gold);
  border-bottom: 1px solid var(--border);
  padding: 40px 0;
}
.strip-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.strip-item {
  padding: 20px 28px; text-align: center;
  border-inline-end: 1px solid var(--border);
  transition: var(--transition);
}
.strip-item:last-child { border-inline-end: none; }
.strip-item:hover { background: var(--bg3); }
.strip-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(27,58,107,0.1), rgba(27,58,107,0.06));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin: 0 auto 12px;
  border: 1px solid var(--border);
}
[data-theme="dark"] .strip-icon { background: rgba(201,168,76,0.08); border-color: rgba(201,168,76,0.15); }
.strip-item h3 { font-size: 0.9rem; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.strip-item p { font-size: 0.78rem; color: var(--text-3); line-height: 1.5; }

/* ─── SECTIONS ─── */
.section { padding: 100px 0; }
.section-alt { background: var(--bg3); }
[data-theme="dark"] .section-alt { background: var(--bg2); }
.section-header { text-align: center; margin-bottom: 64px; }
.section-badge {
  display: inline-block; padding: 6px 18px; border-radius: 50px;
  background: var(--green-light); border: 1px solid rgba(46,139,87,0.25);
  color: var(--green); font-size: 0.78rem; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase; margin-bottom: 16px;
}
[data-theme="dark"] .section-badge {
  background: rgba(201,168,76,0.1); border-color: rgba(201,168,76,0.25); color: var(--gold-light);
}
.section-title {
  font-size: clamp(1.8rem, 3vw, 2.8rem); font-weight: 900; color: var(--text); margin-bottom: 14px;
}
.section-title span { color: var(--green); }
[data-theme="dark"] .section-title span { color: var(--gold); }
.section-desc { color: var(--text-2); max-width: 620px; margin: 0 auto; line-height: 1.8; }
.section-line { display: flex; gap: 6px; justify-content: center; margin-top: 20px; }
.section-line .ln { height: 3px; border-radius: 99px; }
.ln-navy { width: 40px; background: var(--green); }
[data-theme="dark"] .ln-navy { background: var(--gold-dark); }
.ln-gold { width: 20px; background: var(--gold); }
[data-theme="dark"] .ln-navy { background: var(--gold-dark); }

/* ─── ABOUT ─── */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-imgs { position: relative; }
.about-img-main {
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid var(--card-border);
}
.about-img-main img { width: 100%; height: 400px; object-fit: cover; }
.about-img-sub {
  position: absolute; bottom: -30px; inset-inline-end: -30px;
  width: 200px; border-radius: var(--radius);
  border: 4px solid var(--gold); overflow: hidden;
  box-shadow: var(--shadow);
}
.about-img-sub img { width: 100%; height: 150px; object-fit: cover; }
.about-badge {
  position: absolute; bottom: -10px; inset-inline-start: 24px;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  color: #fff; border-radius: 12px; padding: 16px 24px; text-align: center;
  box-shadow: var(--shadow);
}
.about-badge .big { font-size: 2rem; font-weight: 900; color: var(--gold); line-height: 1; }
.about-badge small { font-size: 0.78rem; opacity: 0.85; display: block; margin-top: 2px; }

.about-content h2 { font-size: 2rem; font-weight: 900; color: var(--text); margin-bottom: 16px; }
.about-content h2 span { color: var(--gold); }
.about-content > p { color: var(--text-2); margin-bottom: 14px; line-height: 1.8; }
.about-features { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 28px 0; }
.about-feature {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px; border-radius: var(--radius);
  background: var(--bg3); border: 1px solid var(--card-border);
  transition: var(--transition);
}
.about-feature:hover { border-color: var(--gold); box-shadow: var(--shadow-gold); }
.about-feature-icon {
  width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
}
.about-feature h4 { font-size: 0.85rem; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.about-feature p { font-size: 0.78rem; color: var(--text-3); }

/* ─── CAMPUSES / FACULTIES ─── */
.campuses-tabs {
  display: flex; gap: 8px; justify-content: center; margin-bottom: 48px; flex-wrap: wrap;
}
.camp-tab {
  padding: 10px 22px; border-radius: 50px;
  background: var(--bg3); border: 1px solid var(--card-border);
  color: var(--text-2); font-size: 0.85rem; font-weight: 700;
  transition: var(--transition);
}
.camp-tab.active, .camp-tab:hover {
  background: var(--navy); color: #fff; border-color: var(--navy);
  box-shadow: 0 4px 16px rgba(27,58,107,0.3);
}
[data-theme="dark"] .camp-tab.active, [data-theme="dark"] .camp-tab:hover {
  background: var(--gold); color: var(--navy-dark); border-color: var(--gold);
}

.campus-panel { display: none; }
.campus-panel.active { display: block; }
.campus-info {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  border-radius: var(--radius-lg); padding: 36px 40px;
  margin-bottom: 28px; display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 20px; position: relative; overflow: hidden;
}
.campus-info::before {
  content: ''; position: absolute; top: -60px; inset-inline-end: -60px;
  width: 200px; height: 200px; border-radius: 50%;
  background: rgba(201,168,76,0.15);
}
.campus-info-text h3 { font-size: 1.5rem; font-weight: 900; color: #fff; margin-bottom: 6px; }
.campus-info-text p { color: rgba(255,255,255,0.7); font-size: 0.88rem; }
.campus-info-meta { display: flex; gap: 24px; flex-wrap: wrap; }
.campus-meta-item { text-align: center; }
.campus-meta-item .num { font-size: 1.6rem; font-weight: 900; color: var(--gold); line-height: 1; }
.campus-meta-item .lbl { font-size: 0.75rem; color: rgba(255,255,255,0.65); margin-top: 2px; }

.faculties-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.faculty-card {
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: var(--radius); overflow: hidden;
  transition: var(--transition); cursor: pointer;
  text-decoration: none; color: inherit;
  display: block;
}
.faculty-card:hover { transform: translateY(-6px); border-color: var(--gold); box-shadow: 0 20px 50px rgba(0,0,0,0.15); }
.faculty-card-img { height: 180px; overflow: hidden; position: relative; }
.faculty-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.faculty-card:hover .faculty-card-img img { transform: scale(1.08); }
.faculty-card-body { padding: 22px; }
.faculty-tag {
  display: inline-block; padding: 3px 12px; border-radius: 50px;
  background: rgba(27,58,107,0.08); color: var(--navy); font-size: 0.72rem; font-weight: 700;
  margin-bottom: 10px;
}
[data-theme="dark"] .faculty-tag { background: rgba(201,168,76,0.1); color: var(--gold-light); }
.faculty-card-body h3 { font-size: 1rem; font-weight: 800; color: var(--text); margin-bottom: 6px; }
.faculty-card-body p { font-size: 0.8rem; color: var(--text-3); line-height: 1.6; margin-bottom: 14px; }
.faculty-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--navy); font-size: 0.8rem; font-weight: 700;
  transition: gap 0.2s;
}
[data-theme="dark"] .faculty-link { color: var(--gold-light); }
.faculty-card:hover .faculty-link { gap: 10px; }

/* ─── NEWS ─── */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card {
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: var(--radius); overflow: hidden; transition: var(--transition);
}
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--gold); }
.news-img { height: 200px; overflow: hidden; }
.news-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.news-card:hover .news-img img { transform: scale(1.06); }
.news-body { padding: 22px; }
.news-date { font-size: 0.75rem; color: var(--gold-dark); font-weight: 700; margin-bottom: 8px; }
.news-body h3 { font-size: 0.95rem; font-weight: 800; color: var(--text); margin-bottom: 8px; line-height: 1.5; }
.news-body p { font-size: 0.8rem; color: var(--text-3); line-height: 1.6; margin-bottom: 16px; }
.read-more {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--navy); font-size: 0.8rem; font-weight: 700; transition: gap 0.2s;
}
[data-theme="dark"] .read-more { color: var(--gold-light); }
.read-more:hover { gap: 10px; }

/* ─── VISION / MISSION / VALUES ─── */
.vmv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.vmv-card {
  padding: 40px 28px; text-align: center;
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: var(--radius-lg); transition: var(--transition); position: relative; overflow: hidden;
}
.vmv-card::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 3px; background: linear-gradient(90deg, var(--navy), var(--gold));
  transform: scaleX(0); transition: transform 0.3s;
}
.vmv-card:hover::after { transform: scaleX(1); }
.vmv-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.vmv-icon {
  width: 72px; height: 72px; border-radius: 18px; margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  display: flex; align-items: center; justify-content: center; font-size: 1.8rem;
}
.vmv-card h3 { font-size: 1.2rem; font-weight: 800; color: var(--text); margin-bottom: 12px; }
.vmv-card p { color: var(--text-2); font-size: 0.85rem; line-height: 1.8; }

/* ─── ADMISSIONS BANNER ─── */
.admission-banner {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  border-radius: var(--radius-lg); padding: 64px 48px;
  text-align: center; position: relative; overflow: hidden;
}
.admission-banner::before {
  content: ''; position: absolute; top: -80px; right: -80px;
  width: 300px; height: 300px; border-radius: 50%;
  background: rgba(201,168,76,0.08);
}
.admission-banner h2 { font-size: 2.2rem; font-weight: 900; color: #fff; margin-bottom: 12px; }
.admission-banner p { color: rgba(255,255,255,0.7); margin-bottom: 32px; max-width: 600px; margin-inline: auto; margin-bottom: 32px; }

/* ─── CONTACT ─── */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 60px; align-items: start; }
.contact-info-card {
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: var(--radius-lg); padding: 36px;
}
.contact-info-card h3 { font-size: 1.4rem; font-weight: 800; color: var(--text); margin-bottom: 10px; }
.contact-info-card > p { color: var(--text-2); margin-bottom: 28px; font-size: 0.9rem; }
.contact-details { display: flex; flex-direction: column; gap: 16px; }
.contact-detail {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 16px; border-radius: var(--radius);
  background: var(--bg3); border: 1px solid var(--card-border);
  transition: var(--transition);
}
.contact-detail:hover { border-color: var(--gold); }
.contact-detail-icon {
  width: 42px; height: 42px; border-radius: 10px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  display: flex; align-items: center; justify-content: center; font-size: 1rem; color: #fff;
}
.contact-detail h4 { font-size: 0.82rem; font-weight: 700; color: var(--text); margin-bottom: 3px; }
.contact-detail a, .contact-detail p { color: var(--text-3); font-size: 0.82rem; }
.contact-detail a:hover { color: var(--navy); }
[data-theme="dark"] .contact-detail a:hover { color: var(--gold-light); }

.contact-form-card {
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: var(--radius-lg); padding: 36px;
}
.contact-form-card h3 { font-size: 1.4rem; font-weight: 800; color: var(--text); margin-bottom: 6px; }
.contact-form-card > p { color: var(--text-2); margin-bottom: 28px; font-size: 0.88rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-group label { font-size: 0.8rem; font-weight: 700; color: var(--text-2); }
.form-group input, .form-group select, .form-group textarea {
  padding: 12px 16px; border-radius: 10px;
  background: var(--input-bg); border: 1px solid var(--input-border);
  color: var(--text); font-size: 0.88rem; font-family: inherit;
  outline: none; transition: border-color 0.2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--navy); box-shadow: 0 0 0 3px rgba(27,58,107,0.08);
}
[data-theme="dark"] .form-group input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,168,76,0.1); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-submit {
  width: 100%; padding: 14px; border-radius: 10px;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  color: #fff; font-weight: 800; font-size: 0.95rem; font-family: inherit;
  transition: var(--transition); display: flex; align-items: center; justify-content: center; gap: 8px;
}
.form-submit:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

/* ─── MAP ─── */
.map-wrap {
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--card-border); box-shadow: var(--shadow);
}
.map-wrap iframe { display: block; width: 100%; height: 380px; border: 0; }

/* ─── FOOTER ─── */
.footer {
  background: var(--navy-dark);
  border-top: 3px solid var(--gold);
  padding: 70px 0 0;
}
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 50px; }
.footer-brand img { height: 64px; border-radius: 10px; background: white; padding: 8px; margin-bottom: 16px; }
.footer-brand p { color: rgba(255,255,255,0.65); font-size: 0.83rem; line-height: 1.7; max-width: 280px; }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.social-btn {
  width: 38px; height: 38px; border-radius: 10px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.6); font-size: 0.85rem;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition); text-decoration: none;
}
.social-btn:hover { background: var(--gold); color: var(--navy-dark); border-color: var(--gold); }
.footer-col h4 { color: #fff; font-size: 0.88rem; font-weight: 800; margin-bottom: 18px; position: relative; padding-bottom: 12px; }
.footer-col h4::after { content: ''; position: absolute; bottom: 0; inset-inline-start: 0; width: 28px; height: 2px; background: var(--gold); border-radius: 2px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links li a { color: rgba(255,255,255,0.6); font-size: 0.82rem; transition: color 0.2s; display: flex; align-items: center; gap: 6px; }
.footer-links li a:hover { color: var(--gold); }
.footer-contact-items { display: flex; flex-direction: column; gap: 10px; }
.footer-contact-item { display: flex; gap: 10px; }
.footer-contact-item i { color: var(--gold); margin-top: 2px; flex-shrink: 0; font-size: 0.85rem; }
.footer-contact-item span { color: rgba(255,255,255,0.6); font-size: 0.82rem; line-height: 1.5; }
.footer-contact-item a { color: var(--gold-light); font-size: 0.82rem; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 10px;
  font-size: 0.78rem; color: rgba(255,255,255,0.5);
}
.footer-bottom a { color: var(--gold-light); }

/* ─── SCROLL TO TOP ─── */
#backTop {
  position: fixed; bottom: 28px; inset-inline-end: 28px; z-index: 800;
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--navy); color: #fff; font-size: 1rem;
  box-shadow: var(--shadow); transition: var(--transition);
  opacity: 0; pointer-events: none;
}
#backTop.show { opacity: 1; pointer-events: all; }
#backTop:hover { background: var(--gold); transform: translateY(-4px); }

/* ─── UTILITY ─── */
.fade-up { opacity: 0; transform: translateY(28px); transition: opacity 0.65s, transform 0.65s; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--navy); border-radius: 99px; }
[data-theme="dark"] ::-webkit-scrollbar-thumb { background: var(--gold-dark); }

/* ─── RESPONSIVE ─── */

/* ── PREVENT HORIZONTAL OVERFLOW (without breaking sticky) ── */
html { overflow-x: clip; }
body { position: relative; width: 100%; max-width: 100%; overflow-x: clip; }
.hero, .hero-bg, .hero-overlay, #heroCanvas { max-width: 100vw; overflow: hidden; }
img, iframe, canvas, video { max-width: 100%; }
.container { width: 100%; max-width: 1220px; }

/* ═══════════════════════════════════════════
   FAQ ACCORDION + NEW CONTACT FORM + MAP
   (restored)
   ═══════════════════════════════════════════ */

/* ── FAQ ── */
.faq-section { padding: 90px 0; background: var(--bg3); }
[data-theme="dark"] .faq-section { background: var(--bg2); }

.faq-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 48px;
}

.faq-item {
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: var(--radius); overflow: hidden;
  transition: border-color 0.25s, box-shadow 0.25s;
  height: fit-content;
}
.faq-item.open { border-color: var(--green); box-shadow: 0 4px 24px rgba(46,139,87,0.12); }
[data-theme="dark"] .faq-item.open { border-color: var(--gold); box-shadow: 0 4px 24px rgba(201,168,76,0.12); }

.faq-q {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; padding: 20px 22px; cursor: pointer;
  font-size: 0.9rem; font-weight: 700; color: var(--text);
  user-select: none; transition: background 0.2s;
}
.faq-q:hover { background: var(--green-light); }
[data-theme="dark"] .faq-q:hover { background: rgba(201,168,76,0.04); }
.faq-q-text { display: flex; align-items: center; gap: 12px; }
.faq-q-icon {
  width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
  background: var(--green-light); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; font-size: 1rem;
  transition: background 0.25s;
}
[data-theme="dark"] .faq-q-icon { background: rgba(201,168,76,0.08); }
.faq-item.open .faq-q-icon { background: var(--green); border-color: var(--green); }
[data-theme="dark"] .faq-item.open .faq-q-icon { background: var(--gold); border-color: var(--gold); }
.faq-arrow {
  width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
  background: var(--bg3); display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; color: var(--text-3); transition: transform 0.3s, background 0.25s, color 0.25s;
}
.faq-item.open .faq-arrow { transform: rotate(180deg); background: var(--green); color: #fff; }
[data-theme="dark"] .faq-item.open .faq-arrow { background: var(--gold); color: var(--navy-dark); }

.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4,0,0.2,1), padding 0.3s;
  font-size: 0.85rem; color: var(--text-2); line-height: 1.8;
  padding: 0 22px;
}
.faq-item.open .faq-a { max-height: 320px; padding: 0 22px 20px; }

/* ── NEW CONTACT ── */
.contact-section-new { padding: 90px 0; background: var(--bg); }

.contact-master-grid {
  display: grid; grid-template-columns: 1fr 420px; gap: 40px; align-items: start;
}

.contact-form-new {
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: 20px; padding: 40px; box-shadow: var(--shadow);
}
.contact-form-new h3 {
  font-size: 1.6rem; font-weight: 900; color: var(--text);
  margin-bottom: 6px; text-align: center;
}
.contact-form-new .form-tagline {
  text-align: center; color: var(--text-3); font-size: 0.82rem; margin-bottom: 28px;
}

.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.fg { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.fg label { font-size: 0.8rem; font-weight: 700; color: var(--text-2); }
.fg label .req { color: var(--green); margin-inline-start: 2px; }
[data-theme="dark"] .fg label .req { color: var(--gold); }
.fg input, .fg select, .fg textarea {
  padding: 13px 16px; border-radius: 10px;
  background: var(--input-bg); border: 1px solid var(--input-border);
  color: var(--text); font-size: 0.88rem; font-family: inherit;
  outline: none; transition: border-color 0.2s, box-shadow 0.2s; width: 100%;
}
.fg input:focus, .fg select:focus, .fg textarea:focus {
  border-color: var(--green); box-shadow: 0 0 0 3px rgba(46,139,87,0.1);
}
[data-theme="dark"] .fg input:focus, [data-theme="dark"] .fg select:focus,
[data-theme="dark"] .fg textarea:focus {
  border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,168,76,0.1);
}
.fg textarea { resize: vertical; min-height: 110px; }

.btn-wa {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 15px; border-radius: 12px;
  font-weight: 800; font-size: 0.95rem; font-family: inherit;
  cursor: pointer; transition: all 0.3s; border: none; margin-bottom: 10px;
  text-decoration: none;
}
.btn-wa-primary {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  color: #fff; box-shadow: 0 4px 18px rgba(27,58,107,0.35);
}
.btn-wa-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(27,58,107,0.45); }
.btn-wa-green { background: linear-gradient(135deg, #25D366, #128C7E); color: #fff; }
.btn-wa-green:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(37,211,102,0.4); }

.contact-sidebar { display: flex; flex-direction: column; gap: 18px; }

.contact-info-box {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  border-radius: 20px; padding: 32px; box-shadow: var(--shadow);
}
.contact-info-box h3 { color: #fff; font-size: 1.2rem; font-weight: 900; margin-bottom: 8px; text-align: center; }
.contact-info-box .sub { color: rgba(255,255,255,0.6); font-size: 0.8rem; text-align: center; margin-bottom: 24px; line-height: 1.6; }
.ci-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.08);
}
.ci-item:last-of-type { border-bottom: none; }
.ci-icon {
  width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0;
  background: rgba(201,168,76,0.15); border: 1px solid rgba(201,168,76,0.3);
  display: flex; align-items: center; justify-content: center; font-size: 1rem; color: var(--gold);
}
.ci-text strong { display: block; color: var(--gold-light); font-size: 0.78rem; font-weight: 700; margin-bottom: 2px; }
.ci-text span, .ci-text a { color: rgba(255,255,255,0.7); font-size: 0.82rem; }
.ci-text a:hover { color: var(--gold-light); }

.ci-socials { display: flex; gap: 10px; justify-content: center; margin-top: 20px; }
.ci-social {
  width: 40px; height: 40px; border-radius: 10px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.6); font-size: 0.9rem; transition: all 0.2s; text-decoration: none;
}
.ci-social:hover { background: var(--gold); color: var(--navy-dark); border-color: var(--gold); }
.ci-socials-label { color: rgba(255,255,255,0.45); font-size: 0.72rem; text-align: center; margin-top: 14px; }

.contact-map-box {
  border-radius: 16px; overflow: hidden;
  border: 1px solid var(--card-border); box-shadow: var(--shadow);
}
.contact-map-box iframe { display: block; width: 100%; height: 240px; border: 0; }


/* ── Clip decorative negative-offset elements (prevents RTL drag gap) ── */
section, .features-strip, .footer, .hero, .stats,
.campus-info, .admission-banner, .president-section,
.about-section, .faq-section, .contact-section-new {
  overflow-x: clip;
}
.about-imgs { overflow: visible; }

/* ═══════════════════════════════════════════
   DIRECTION HANDLING — RTL (Arabic) / LTR (English)
   ═══════════════════════════════════════════ */

/* Base text direction follows the dir attribute */
body[dir="rtl"] { direction: rtl; text-align: right; }
body[dir="ltr"] { direction: ltr; text-align: left; }

/* Centered elements stay centered regardless of direction */
.section-header,
.hero-content,
.admission-banner,
.contact-form-new h3,
.contact-form-new .form-tagline,
.contact-info-box h3,
.contact-info-box .sub,
.footer-bottom,
.loader,
#loader,
.vmv-card,
.strip-item,
.other-card {
  text-align: center;
}

/* Hero content: RTL = right-aligned, LTR = left-aligned */
body[dir="rtl"] .hero-content { text-align: right; }
body[dir="ltr"] .hero-content { text-align: left; }
/* But on mobile hero is centered both ways */
@media (max-width: 1024px) {
  .hero-content { text-align: center !important; }
}

/* About / VMV / section text follows direction */
body[dir="rtl"] .about-content { text-align: right; }
body[dir="ltr"] .about-content { text-align: left; }
.president-message-text { text-align: start; }

/* Form fields follow direction */
body[dir="rtl"] .fg input,
body[dir="rtl"] .fg select,
body[dir="rtl"] .fg textarea { text-align: right; direction: rtl; }
body[dir="ltr"] .fg input,
body[dir="ltr"] .fg select,
body[dir="ltr"] .fg textarea { text-align: left; direction: ltr; }

/* Phone/email inputs always LTR (numbers & latin) */
input[type="tel"],
input[type="email"],
input[type="url"] { direction: ltr; text-align: start; }

/* FAQ answers follow direction */
body[dir="rtl"] .faq-a,
body[dir="rtl"] .faq-q { text-align: right; }
body[dir="ltr"] .faq-a,
body[dir="ltr"] .faq-q { text-align: left; }

/* Lists in faculty pages */
body[dir="rtl"] .fac-main,
body[dir="rtl"] .prog-item,
body[dir="rtl"] .cv-item-text { text-align: right; }
body[dir="ltr"] .fac-main,
body[dir="ltr"] .prog-item,
body[dir="ltr"] .cv-item-text { text-align: left; }

/* Footer columns */
body[dir="rtl"] .footer-col,
body[dir="rtl"] .footer-brand { text-align: right; }
body[dir="ltr"] .footer-col,
body[dir="ltr"] .footer-brand { text-align: left; }

/* News cards */
body[dir="rtl"] .news-body { text-align: right; }
body[dir="ltr"] .news-body { text-align: left; }

/* Keep numbers, dates, and stats LTR-readable */
.stat-num, .counter, .hero-stat .num,
.campus-meta-item .num, .about-badge .big,
.news-date { direction: ltr; unicode-bidi: plaintext; }

/* Ensure proper start/end for icon spacing using logical properties */
.read-more, .faculty-link { unicode-bidi: plaintext; }

/* ═══════════════════════════════════════════
   HERO SLIDESHOW
   ═══════════════════════════════════════════ */
.hero-slideshow {
  position: absolute; inset: 0; z-index: 0;
  overflow: hidden;
}
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1.4s ease-in-out, transform 7s ease-out;
}
.hero-slide.active {
  opacity: 0.30;
  transform: scale(1);
}
[data-theme="light"] .hero-slide.active { opacity: 0.35; }

/* Dots navigation */
.hero-slide-dots {
  position: absolute;
  bottom: 24px; left: 50%; transform: translateX(-50%);
  z-index: 3;
  display: flex; gap: 10px;
}
.hero-dot {
  width: 10px; height: 10px; border-radius: 99px;
  background: rgba(255,255,255,0.35);
  border: 1px solid rgba(255,255,255,0.5);
  cursor: pointer; padding: 0;
  transition: all 0.35s;
}
.hero-dot.active {
  width: 28px;
  background: var(--gold);
  border-color: var(--gold);
}
.hero-dot:hover { background: rgba(255,255,255,0.6); }
.hero-dot.active:hover { background: var(--gold); }

@media (max-width: 768px) {
  .hero-slide-dots { bottom: 16px; }
  .hero-dot { width: 8px; height: 8px; }
  .hero-dot.active { width: 22px; }
}

/* ═══════════════════════════════════════════
   PROFESSIONAL FACULTY CARDS (icon-based)
   ═══════════════════════════════════════════ */
.faculty-card-pro {
  display: flex; align-items: center; gap: 18px;
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: 16px; padding: 22px;
  text-decoration: none; color: inherit;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  position: relative; overflow: hidden;
}
.faculty-card-pro::before {
  content: ''; position: absolute;
  inset-inline-start: 0; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(180deg, var(--green), var(--gold));
  transform: scaleY(0); transform-origin: top;
  transition: transform 0.3s;
}
.faculty-card-pro:hover {
  border-color: var(--green);
  box-shadow: 0 12px 32px rgba(46,139,87,0.15);
  transform: translateY(-4px);
}
[data-theme="dark"] .faculty-card-pro:hover {
  border-color: var(--gold);
  box-shadow: 0 12px 32px rgba(201,168,76,0.15);
}
.faculty-card-pro:hover::before { transform: scaleY(1); }

.fcp-icon {
  width: 64px; height: 64px; border-radius: 16px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--green-light), var(--green-mid));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  transition: transform 0.3s;
}
[data-theme="dark"] .fcp-icon {
  background: linear-gradient(135deg, rgba(201,168,76,0.15), rgba(201,168,76,0.08));
}
.faculty-card-pro:hover .fcp-icon { transform: scale(1.08) rotate(-4deg); }

.fcp-body { flex: 1; min-width: 0; }
.fcp-tag {
  display: inline-block; padding: 3px 12px; border-radius: 50px;
  background: var(--green-light); color: var(--green);
  font-size: 0.68rem; font-weight: 700; margin-bottom: 8px;
}
[data-theme="dark"] .fcp-tag { background: rgba(201,168,76,0.12); color: var(--gold-light); }
.fcp-body h3 {
  font-size: 1.02rem; font-weight: 800; color: var(--text);
  margin-bottom: 5px; line-height: 1.3;
}
.fcp-body p {
  font-size: 0.8rem; color: var(--text-3); line-height: 1.5; margin-bottom: 10px;
}
.fcp-link {
  display: inline-flex; align-items: center; gap: 5px;
  color: var(--green); font-size: 0.8rem; font-weight: 700;
  transition: gap 0.2s;
}
[data-theme="dark"] .fcp-link { color: var(--gold-light); }
.faculty-card-pro:hover .fcp-link { gap: 10px; }

.fcp-arrow {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  background: var(--green-light); color: var(--green);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; font-weight: 700;
  transition: all 0.3s;
}
[data-theme="dark"] .fcp-arrow { background: rgba(201,168,76,0.12); color: var(--gold-light); }
.faculty-card-pro:hover .fcp-arrow {
  background: var(--green); color: #fff;
}
[data-theme="dark"] .faculty-card-pro:hover .fcp-arrow { background: var(--gold); color: var(--navy-dark); }

/* Faculties grid becomes single column of horizontal cards */
.faculties-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 768px) {
  .faculties-grid { grid-template-columns: 1fr; }
  .fcp-icon { width: 52px; height: 52px; font-size: 1.5rem; }
  .fcp-body h3 { font-size: 0.92rem; }
  .fcp-body p { font-size: 0.74rem; }
  .faculty-card-pro { padding: 16px; gap: 14px; }
}

/* ═══════════════════════════════════════════
   NEWS ACCORDION (more/less)
   ═══════════════════════════════════════════ */
.news-full {
  max-height: 0; overflow: hidden;
  font-size: 0.83rem; color: var(--text-2); line-height: 1.8;
  transition: max-height 0.45s cubic-bezier(0.4,0,0.2,1), margin 0.3s, opacity 0.3s;
  opacity: 0;
}
.news-card.expanded .news-full {
  max-height: 400px; opacity: 1;
  margin-top: 10px; margin-bottom: 4px;
}
.news-toggle {
  display: inline-flex; align-items: center; gap: 5px;
  background: none; border: none; cursor: pointer;
  color: var(--green); font-size: 0.82rem; font-weight: 700;
  font-family: inherit; padding: 8px 0 0; margin-top: 6px;
  transition: gap 0.2s;
}
[data-theme="dark"] .news-toggle { color: var(--gold-light); }
.news-toggle:hover { gap: 9px; }
.news-toggle .nt-less { display: none; }
.news-card.expanded .news-toggle .nt-more { display: none; }
.news-card.expanded .news-toggle .nt-less { display: inline; }

/* ═══════════════════════════════════════════
   3D FLIP CARDS (Features)
   ═══════════════════════════════════════════ */
.features-strip .strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.flip-card {
  background: transparent;
  perspective: 1200px;
  height: 200px;
}
.flip-card-inner {
  position: relative;
  width: 100%; height: 100%;
  transition: transform 0.7s cubic-bezier(0.4,0,0.2,1);
  transform-style: preserve-3d;
  cursor: pointer;
}
/* Flip on hover (desktop) and on tap (mobile via .flipped) */
.flip-card:hover .flip-card-inner,
.flip-card.flipped .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%; height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 18px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 24px; text-align: center;
  border: 1px solid var(--card-border);
}

/* FRONT */
.flip-card-front {
  background: var(--card-bg);
  gap: 14px;
}
.flip-card-front .strip-icon {
  width: 72px; height: 72px; border-radius: 18px;
  background: linear-gradient(135deg, var(--green-light), var(--green-mid));
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  transition: transform 0.3s;
}
[data-theme="dark"] .flip-card-front .strip-icon {
  background: linear-gradient(135deg, rgba(201,168,76,0.18), rgba(201,168,76,0.08));
}
.flip-card-front h3 {
  font-size: 1.02rem; font-weight: 800; color: var(--text);
}
.flip-card-front::after {
  content: '↻'; position: absolute;
  bottom: 12px; inset-inline-end: 14px;
  font-size: 1rem; color: var(--text-3); opacity: 0.5;
}

/* BACK */
.flip-card-back {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  transform: rotateY(180deg);
  border-color: var(--navy);
}
.flip-card-back p {
  color: #fff; font-size: 0.92rem; line-height: 1.7; font-weight: 500;
}
.flip-card-back::before {
  content: ''; position: absolute; top: -40px; inset-inline-start: -40px;
  width: 120px; height: 120px; border-radius: 50%;
  background: rgba(201,168,76,0.15);
}

@media (max-width: 1024px) {
  .features-strip .strip-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .features-strip .strip-grid { grid-template-columns: 1fr; gap: 16px; }
  .flip-card { height: 170px; }
  .flip-card-front .strip-icon { width: 60px; height: 60px; font-size: 1.7rem; }
}

/* ═══════════════════════════════════════════
   TYPED TEXT EFFECT (Hero)
   ═══════════════════════════════════════════ */
.typed-wrap {
  display: inline-flex; align-items: center;
  color: var(--gold);
}
.typed-text { color: var(--gold); font-weight: inherit; }
.typed-cursor {
  display: inline-block; margin-inline-start: 2px;
  color: var(--gold); font-weight: 300;
  animation: blink 1s step-end infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

/* ═══════════════════════════════════════════
   PRESIDENT GLASSMORPHISM 3D FRAME + Segoe UI
   ═══════════════════════════════════════════ */
.president-message-wrap {
  position: relative;
}
.president-glass {
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(18px) saturate(1.5);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 24px;
  padding: 38px 34px;
  box-shadow:
    0 8px 32px rgba(27,58,107,0.12),
    0 2px 8px rgba(27,58,107,0.08),
    inset 0 1px 0 rgba(255,255,255,0.7);
  position: relative;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1), box-shadow 0.4s;
  transform-style: preserve-3d;
}
[data-theme="dark"] .president-glass {
  background: rgba(27,58,107,0.25);
  border-color: rgba(201,168,76,0.25);
  box-shadow:
    0 8px 32px rgba(0,0,0,0.3),
    inset 0 1px 0 rgba(255,255,255,0.1);
}
.president-glass:hover {
  transform: translateY(-4px) rotateX(2deg);
  box-shadow:
    0 20px 50px rgba(27,58,107,0.2),
    inset 0 1px 0 rgba(255,255,255,0.7);
}
/* Animated shimmer sweep */
.president-glass::before {
  content: '';
  position: absolute;
  top: 0; inset-inline-start: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(110deg, transparent, rgba(255,255,255,0.35), transparent);
  animation: glassShine 6s ease-in-out infinite;
  pointer-events: none;
}
[data-theme="dark"] .president-glass::before {
  background: linear-gradient(110deg, transparent, rgba(201,168,76,0.12), transparent);
}
@keyframes glassShine {
  0% { inset-inline-start: -100%; }
  35%, 100% { inset-inline-start: 150%; }
}
/* Floating gold orb decoration */
.president-glass::after {
  content: '';
  position: absolute;
  top: -50px; inset-inline-end: -50px;
  width: 150px; height: 150px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201,168,76,0.2), transparent 70%);
  animation: floatOrb 8s ease-in-out infinite;
  pointer-events: none;
}
@keyframes floatOrb {
  0%,100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(-20px,20px) scale(1.15); }
}

/* Segoe UI font for president message */
.president-message-text {
  font-family: 'Segoe UI', 'Tajawal', system-ui, -apple-system, sans-serif;
  position: relative; z-index: 1;
  letter-spacing: 0.2px;
}
.president-message-text p { margin-bottom: 14px; }

/* ═══════════════════════════════════════════
   SCROLL REVEAL ANIMATION
   ═══════════════════════════════════════════ */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.4,0,0.2,1), transform 0.7s cubic-bezier(0.4,0,0.2,1);
}
.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}
/* Stagger children of revealed grids */
.flip-card.reveal-on-scroll { transition-delay: 0.05s; }
.faculty-card-pro.reveal-on-scroll { transition-delay: 0.08s; }

/* ═══════════════════════════════════════════
   BACK TO TOP BUTTON
   ═══════════════════════════════════════════ */
#backTop {
  position: fixed;
  bottom: 24px; inset-inline-end: 24px;
  width: 52px; height: 52px;
  border-radius: 16px; border: none;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  color: #fff; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 900;
  box-shadow: 0 8px 24px rgba(27,58,107,0.35);
  opacity: 0; visibility: hidden;
  transform: translateY(20px) scale(0.8);
  transition: all 0.35s cubic-bezier(0.34,1.56,0.64,1);
}
#backTop.show {
  opacity: 1; visibility: visible;
  transform: translateY(0) scale(1);
}
#backTop:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 12px 32px rgba(27,58,107,0.5);
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
}
#backTop:active { transform: scale(0.95); }

/* Flip card back title */
.flip-card-back h4 {
  color: var(--gold-light); font-size: 1rem; font-weight: 800;
  margin-bottom: 10px; position: relative; z-index: 1;
}
.flip-card-back p { position: relative; z-index: 1; }

/* ═══════════════════════════════════════════
   DIRECTION-AWARE FOOTER CHEVRONS
   ═══════════════════════════════════════════ */
body[dir="ltr"] .footer-links li a .fa-chevron-left {
  transform: rotate(180deg);
}
/* Footer links alignment */
body[dir="rtl"] .footer-links li a { text-align: right; }
body[dir="ltr"] .footer-links li a { text-align: left; }
.footer-links li a { justify-content: flex-start; }

/* ═══════════════════════════════════════════
   UNIVERSITY OBJECTIVES (with read more/less)
   ═══════════════════════════════════════════ */
.vmv-objectives {
  margin-top: 30px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 32px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.vmv-objectives::before {
  content: '';
  position: absolute; top: 0; inset-inline-start: 0;
  width: 5px; height: 100%;
  background: linear-gradient(180deg, var(--green), var(--gold));
}
.vmv-obj-head {
  display: flex; align-items: flex-start; gap: 16px; margin-bottom: 18px;
}
.vmv-obj-icon {
  width: 56px; height: 56px; flex-shrink: 0; border-radius: 16px;
  background: linear-gradient(135deg, var(--green-light), var(--green-mid));
  display: flex; align-items: center; justify-content: center; font-size: 1.7rem;
}
[data-theme="dark"] .vmv-obj-icon {
  background: linear-gradient(135deg, rgba(201,168,76,.18), rgba(201,168,76,.08));
}
.vmv-obj-title { font-size: 1.3rem; font-weight: 900; color: var(--navy); margin-bottom: 6px; }
[data-theme="dark"] .vmv-obj-title { color: var(--gold-light); }
.vmv-obj-intro { font-size: .9rem; color: var(--text-2); line-height: 1.8; }

.vmv-obj-list {
  list-style: none; counter-reset: obj; padding: 0; margin: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
  max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height .55s cubic-bezier(.4,0,.2,1), opacity .4s, margin .3s;
}
.vmv-objectives.obj-open .vmv-obj-list {
  max-height: 1200px; opacity: 1; margin-top: 22px;
}
.vmv-obj-list li {
  counter-increment: obj;
  position: relative; padding: 14px 16px 14px 56px;
  background: var(--bg3); border: 1px solid var(--border); border-radius: 12px;
  font-size: .86rem; color: var(--text); line-height: 1.7;
}
body[dir="ltr"] .vmv-obj-list li { padding: 14px 56px 14px 16px; }
.vmv-obj-list li::before {
  content: counter(obj);
  position: absolute; top: 14px; inset-inline-start: 14px;
  width: 30px; height: 30px; border-radius: 9px;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  color: #fff; font-weight: 800; font-size: .82rem;
  display: flex; align-items: center; justify-content: center;
}
[data-theme="dark"] .vmv-obj-list li::before {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark)); color: var(--navy-dark);
}

.vmv-obj-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; margin-top: 20px; padding: 14px;
  border-radius: 12px; border: 1px solid var(--border);
  background: var(--bg3); color: var(--navy);
  font-family: inherit; font-size: .9rem; font-weight: 800; cursor: pointer;
  transition: all .25s;
}
[data-theme="dark"] .vmv-obj-btn { color: var(--gold-light); }
.vmv-obj-btn:hover {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  color: #fff; border-color: var(--navy); transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(27,58,107,.3);
}
.vmv-obj-btn .vob-less { display: none; }
.vmv-objectives.obj-open .vmv-obj-btn .vob-more { display: none; }
.vmv-objectives.obj-open .vmv-obj-btn .vob-less { display: inline; }

@media (max-width: 768px) {
  .vmv-objectives { padding: 22px; }
  .vmv-obj-list { grid-template-columns: 1fr; }
  .vmv-obj-title { font-size: 1.12rem; }
}
