
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --navy: #1a3557;
  --navy-dark: #0f2035;
  --blue: #2563a8;
  --blue-light: #3b82c4;
  --red: #c0392b;
  --red-light: #e04535;
  --white: #ffffff;
  --off-white: #f8fafc;
  --gray-50: #f1f5f9;
  --gray-100: #e2e8f0;
  --gray-200: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-600: #475569;
  --gray-800: #1e293b;
  --gold: #c8a84b;
  --font-display: 'Tajawal', sans-serif;
  --font-body: 'Cairo', sans-serif;
  --shadow-sm: 0 2px 8px rgba(26,53,87,0.08);
  --shadow-md: 0 8px 30px rgba(26,53,87,0.12);
  --shadow-lg: 0 20px 60px rgba(26,53,87,0.18);
  --radius: 12px;
  --radius-lg: 20px;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--gray-800); background: var(--white); overflow-x: hidden; }

/* ── TOP BAR ── */
.topbar {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.8);
  padding: 10px 0;
  font-size: 13.5px;
  font-family: var(--font-body);
}
.topbar-inner {
  max-width: 1240px; margin: 0 auto; padding: 0 24px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px;
}
.topbar-item { display: flex; align-items: center; gap: 8px; }
.topbar-item svg { width: 15px; height: 15px; fill: var(--gold); flex-shrink: 0; }
.topbar-item a { color: rgba(255,255,255,0.8); text-decoration: none; }
.topbar-item a:hover { color: var(--gold); }
.topbar-group { display: flex; gap: 24px; flex-wrap: wrap; }

/* ── HEADER ── */
header {
  background: var(--white);
  position: sticky; top: 0; z-index: 1000;
  box-shadow: 0 2px 20px rgba(26,53,87,0.1);
}
.header-inner {
  max-width: 1240px; margin: 0 auto; padding: 0 24px;
  display: flex; justify-content: space-between; align-items: center;
  height: 72px;
}
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo img { height: 52px; width: auto; }
.logo-text { display: flex; flex-direction: column; }
.logo-text .name { font-family: var(--font-display); font-size: 15px; font-weight: 800; color: var(--navy); line-height: 1.2; }
.logo-text .sub { font-size: 11px; color: var(--red); font-weight: 600; letter-spacing: 0.03em; }

nav { display: flex; align-items: center; gap: 4px; }
nav a {
  font-family: var(--font-body); font-size: 14px; font-weight: 600;
  color: var(--gray-800); text-decoration: none;
  padding: 8px 14px; border-radius: 8px;
  transition: all 0.2s; white-space: nowrap;
  position: relative;
}
nav a:hover { color: var(--blue); background: var(--gray-50); }
nav a.active { color: var(--blue); }

.nav-dropdown { position: relative; }
.nav-dropdown > a::after { content: ' ▾'; font-size: 11px; }
.dropdown-menu {
  position: absolute; top: calc(100% + 8px); right: 0;
  background: white; border-radius: var(--radius); box-shadow: var(--shadow-lg);
  min-width: 200px; padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: all 0.2s; z-index: 100; border: 1px solid var(--gray-100);
}
.nav-dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu a {
  display: block; padding: 10px 14px; border-radius: 8px;
  font-size: 13.5px; color: var(--gray-800);
}
.dropdown-menu a:hover { background: var(--gray-50); color: var(--blue); }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; }
.hamburger span { width: 24px; height: 2px; background: var(--navy); border-radius: 2px; transition: all 0.3s; display: block; }

/* ── HERO SLIDER ── */
.hero {
    position: relative;
    overflow: hidden;
    height: 88vh;
    min-height: 560px;
    max-height: 860px;
    padding: 0;
}
.slides-wrapper { display: flex; width: 200%; height: 100%; transition: transform 0.8s cubic-bezier(0.4,0,0.2,1); }
.slide { width: 50%; height: 100%; position: relative; flex-shrink: 0; }

/* Slide 1: Video */
.slide-video video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.slide-video .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(110deg, rgba(10,25,50,0.82) 0%, rgba(10,25,50,0.5) 50%, rgba(10,25,50,0.2) 100%);
}

/* Slide 2: Image */
.slide-image { overflow: hidden; }
.slide-image img {
  width: 100%; height: 100%; object-fit: cover; object-position: center top;
}
.slide-image .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(110deg, rgba(10,25,50,0.78) 0%, rgba(10,25,50,0.45) 55%, rgba(10,25,50,0.1) 100%);
}

.slide-content {
  position: absolute; inset: 0; display: flex; align-items: center;
  padding: 0 0 0 10%;
}
.slide-content-box { max-width: 620px; }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.1); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2); border-radius: 50px;
  padding: 8px 18px; margin-bottom: 24px;
  color: var(--gold); font-size: 13px; font-weight: 600; letter-spacing: 0.05em;
}
.hero-eyebrow::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold); animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(1.4); } }

.hero-title {
  font-family: var(--font-display); font-size: clamp(36px,5.5vw,72px);
  font-weight: 900; color: white; line-height: 1.1;
  margin-bottom: 20px; text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.hero-title em { color: var(--gold); font-style: normal; }

.hero-sub {
  font-size: clamp(15px,1.8vw,19px); color: rgba(255,255,255,0.85);
  font-weight: 400; line-height: 1.7; margin-bottom: 36px; max-width: 480px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.btn-primary {
  background: var(--blue); color: white;
  padding: 14px 32px; border-radius: 50px; font-weight: 700; font-size: 15px;
  text-decoration: none; border: none; cursor: pointer; font-family: var(--font-body);
  transition: all 0.25s; box-shadow: 0 4px 20px rgba(37,99,168,0.5);
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary:hover { background: var(--blue-light); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(37,99,168,0.5); }
.btn-outline {
  background: transparent; color: white; border: 2px solid rgba(255,255,255,0.6);
  padding: 14px 28px; border-radius: 50px; font-weight: 600; font-size: 15px;
  text-decoration: none; cursor: pointer; font-family: var(--font-body);
  transition: all 0.25s; display: inline-flex; align-items: center; gap: 8px;
}
.btn-outline:hover { border-color: white; background: rgba(255,255,255,0.1); transform: translateY(-2px); }

/* Slider controls */
.slider-dots {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 10px; z-index: 10;
}
.dot {
  width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.4);
  border: none; cursor: pointer; transition: all 0.3s; padding: 0;
}
.dot.active { background: var(--gold); width: 32px; border-radius: 5px; }

.slider-arrows {
  position: absolute; bottom: 30px; right: 40px;
  display: flex; gap: 10px; z-index: 10;
}
.arrow-btn {
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,0.15); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.3); color: white; cursor: pointer;
  display: flex; align-items: center; justify-content: center; font-size: 18px;
  transition: all 0.25s;
}
.arrow-btn:hover { background: var(--blue); border-color: var(--blue); }

/* Hero stats bar */
.hero-stats {
  position: absolute; bottom: 0; right: 0; left: 0;
  background: rgba(10,25,50,0.7); backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; justify-content: center; align-items: stretch; z-index: 5;
}
.stat-item {
  flex: 1; max-width: 280px; padding: 20px 28px;
  display: flex; align-items: center; gap: 14px;
  border-left: 1px solid rgba(255,255,255,0.1);
  text-align: right;
}
.stat-item:last-child { border-left: none; }
.stat-icon { width: 44px; height: 44px; background: var(--blue); border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.stat-icon svg { width: 22px; height: 22px; fill: white; }
.stat-num { font-family: var(--font-display); font-size: 26px; font-weight: 900; color: white; line-height: 1; }
.stat-label { font-size: 12px; color: rgba(255,255,255,0.6); margin-top: 2px; }

/* ── SECTIONS BASE ── */
section { padding: 80px 0; }
.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.section-badge {
  display: inline-block; background: rgba(37,99,168,0.1); color: var(--blue);
  padding: 6px 16px; border-radius: 50px; font-size: 13px; font-weight: 700;
  letter-spacing: 0.05em; margin-bottom: 14px; border: 1px solid rgba(37,99,168,0.2);
}
.section-title {
  font-family: var(--font-display); font-size: clamp(28px,3.5vw,44px);
  font-weight: 900; color: var(--navy); line-height: 1.2; margin-bottom: 16px;
}
.section-title span { color: var(--blue); }
.section-desc { font-size: 17px; color: var(--gray-600); line-height: 1.8; max-width: 580px; }
.section-header { margin-bottom: 56px; }
.section-header.center { text-align: center; }
.section-header.center .section-desc { margin: 0 auto; }

/* Divider */
.divider { height: 4px; width: 56px; background: linear-gradient(90deg, var(--blue), var(--red)); border-radius: 2px; margin: 16px 0; }
.center .divider { margin: 16px auto; }

/* ── ABOUT ── */
.about { background: var(--off-white); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.about-visual { position: relative; }
.about-img-wrap {
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3;
  background: var(--gray-100);
}
.about-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.about-badge-card {
  position: absolute; bottom: -24px; right: -24px;
  background: var(--navy); color: white; border-radius: var(--radius);
  padding: 20px 24px; box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: 14px; min-width: 200px;
}
.about-badge-card .num { font-family: var(--font-display); font-size: 40px; font-weight: 900; color: var(--gold); line-height: 1; }
.about-badge-card .txt { font-size: 13px; color: rgba(255,255,255,0.8); line-height: 1.4; }

.about-features { display: grid; gap: 20px; margin-top: 32px; }
.feature-card {
  display: flex; gap: 16px; align-items: flex-start;
  background: white; padding: 20px; border-radius: var(--radius);
  box-shadow: var(--shadow-sm); border: 1px solid var(--gray-100);
  transition: all 0.25s;
}
.feature-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.feat-icon {
  width: 48px; height: 48px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--blue), var(--navy));
}
.feat-icon svg { width: 24px; height: 24px; fill: white; }
.feat-title { font-size: 15px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.feat-desc { font-size: 13.5px; color: var(--gray-600); line-height: 1.6; }

/* ── SERVICES ── */
.services { background: white; }
.services-card {
  background: var(--off-white); border-radius: var(--radius-lg);
  padding: 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
  border: 1px solid var(--gray-100);
}
.services-icon-big {
  width: 80px; height: 80px; border-radius: 20px; margin-bottom: 24px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--navy) 100%);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(37,99,168,0.3);
}
.services-icon-big svg { width: 40px; height: 40px; fill: white; }

.service-compare { display: flex; flex-direction: column; gap: 16px; }
.compare-item {
  background: white; border-radius: var(--radius); padding: 20px 24px;
  border-right: 4px solid var(--blue); box-shadow: var(--shadow-sm);
}
.compare-item.red-border { border-right-color: var(--red); }
.compare-title { font-size: 15px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.compare-desc { font-size: 13.5px; color: var(--gray-600); line-height: 1.6; }

/* ── DEPARTMENTS ── */
.departments { background: var(--navy-dark); }
.departments .section-title { color: white; }
.departments .section-desc { color: rgba(255,255,255,0.65); }
.departments .section-badge { background: rgba(255,255,255,0.1); color: var(--gold); border-color: rgba(255,255,255,0.2); }
.departments .divider { background: linear-gradient(90deg, var(--gold), var(--red)); }

.dept-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.dept-card {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius); padding: 28px 24px; text-align: center;
  transition: all 0.3s; cursor: default; position: relative; overflow: hidden;
}
.dept-card::before {
  content: ''; position: absolute; top: 0; right: 0; left: 0; height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--blue-light));
  transform: scaleX(0); transition: transform 0.3s; transform-origin: right;
}
.dept-card:hover { background: rgba(255,255,255,0.1); transform: translateY(-4px); border-color: rgba(255,255,255,0.2); }
.dept-card:hover::before { transform: scaleX(1); }
.dept-letter {
  width: 64px; height: 64px; border-radius: 16px; margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--blue), var(--navy));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 28px; font-weight: 900; color: var(--gold);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.dept-name { font-size: 18px; font-weight: 700; color: white; margin-bottom: 8px; }
.dept-detail { font-size: 13px; color: rgba(255,255,255,0.55); line-height: 1.5; }

.dept-total-card {
  margin-top: 32px; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-lg); padding: 32px 40px;
  display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; text-align: center;
}
.dt-num { font-family: var(--font-display); font-size: 48px; font-weight: 900; color: var(--gold); line-height: 1; }
.dt-label { font-size: 14px; color: rgba(255,255,255,0.6); margin-top: 6px; }

.cafeteria-card {
  margin-top: 32px; background: linear-gradient(135deg, var(--blue) 0%, var(--navy) 100%);
  border-radius: var(--radius-lg); padding: 32px 40px;
  display: flex; align-items: center; gap: 28px;
}
.cafe-icon { width: 64px; height: 64px; background: rgba(255,255,255,0.15); border-radius: 16px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.cafe-icon svg { width: 32px; height: 32px; fill: white; }
.cafe-title { font-size: 20px; font-weight: 800; color: white; margin-bottom: 6px; font-family: var(--font-display); }
.cafe-desc { font-size: 14px; color: rgba(255,255,255,0.8); line-height: 1.7; }

/* ── TEAM ── */
.team { background: var(--off-white); }
.team-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
@media (min-width: 1025px) { .team-grid { grid-template-columns: repeat(5,1fr); } }
.team-stat {
  background: white; border-radius: var(--radius-lg); padding: 36px 24px;
  text-align: center; box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100); transition: all 0.3s;
}
.team-stat:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.team-icon { width: 72px; height: 72px; border-radius: 18px; margin: 0 auto 20px; display: flex; align-items: center; justify-content: center; }
.team-stat:nth-child(1) .team-icon { background: linear-gradient(135deg, #2563a8, #1a3557); }
.team-stat:nth-child(2) .team-icon { background: linear-gradient(135deg, #c0392b, #8b1a12); }
.team-stat:nth-child(3) .team-icon { background: linear-gradient(135deg, #c8a84b, #9a7a2a); }
.team-stat:nth-child(4) .team-icon { background: linear-gradient(135deg, #2d8a6e, #1a5e4a); }
.team-icon svg { width: 34px; height: 34px; fill: white; }
.team-num { font-family: var(--font-display); font-size: 44px; font-weight: 900; color: var(--navy); line-height: 1; }
.team-label { font-size: 15px; color: var(--gray-600); margin-top: 8px; font-weight: 600; }

/* ── INSURANCE ── */
.insurance { background: white; }
.insurance-logos {
  display: flex; flex-wrap: wrap; gap: 20px;
  justify-content: center; align-items: center; margin-top: 48px;
}
.ins-logo {
  background: var(--off-white); border: 2px solid var(--gray-100);
  border-radius: var(--radius); padding: 20px 32px;
  font-size: 16px; font-weight: 700; color: var(--navy);
  min-width: 160px; text-align: center; transition: all 0.25s;
}
.ins-logo:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.ins-note {
  text-align: center; margin-top: 32px; font-size: 14px;
  color: var(--gray-400); font-style: italic;
}

/* ── CONTACT ── */
.contact { background: var(--navy-dark); }
.contact .section-title { color: white; }
.contact .section-badge { background: rgba(255,255,255,0.1); color: var(--gold); border-color: rgba(200,168,75,0.3); }
.contact .divider { background: linear-gradient(90deg, var(--gold), var(--red)); }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 20px; }
.contact-card {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius); padding: 22px 24px;
  display: flex; align-items: flex-start; gap: 16px;
  transition: all 0.25s;
}
.contact-card:hover { background: rgba(255,255,255,0.1); transform: translateX(-4px); }
.contact-card-icon {
  width: 48px; height: 48px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--blue), var(--navy));
}
.contact-card-icon svg { width: 22px; height: 22px; fill: white; }
.cc-label { font-size: 12px; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 4px; }
.cc-value { font-size: 16px; font-weight: 600; color: white; }
.cc-value a { color: var(--gold); text-decoration: none; }
.cc-value a:hover { text-decoration: underline; }

.contact-form-wrap {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg); padding: 36px;
}
.form-title { font-family: var(--font-display); font-size: 22px; font-weight: 800; color: white; margin-bottom: 24px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; color: rgba(255,255,255,0.65); margin-bottom: 8px; font-weight: 600; }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px; padding: 12px 16px; color: white; font-family: var(--font-body); font-size: 14px;
  transition: all 0.2s; outline: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--blue); background: rgba(37,99,168,0.1); }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-group select option { background: var(--navy-dark); color: white; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.btn-send {
  width: 100%; padding: 14px; background: linear-gradient(135deg, var(--blue), var(--blue-light));
  color: white; border: none; border-radius: 10px; font-family: var(--font-body);
  font-size: 16px; font-weight: 700; cursor: pointer; transition: all 0.25s;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-send:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(37,99,168,0.5); }

/* ── FOOTER ── */
footer {
  background: #060f1e; color: rgba(255,255,255,0.65);
  padding: 56px 0 0;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 48px; }
.footer-about .logo { margin-bottom: 16px; filter: brightness(1.1); }
.footer-about p { font-size: 14px; line-height: 1.8; }
.footer-col h4 { font-size: 15px; font-weight: 700; color: white; margin-bottom: 16px; font-family: var(--font-display); }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { color: rgba(255,255,255,0.55); text-decoration: none; font-size: 13.5px; transition: all 0.2s; }
.footer-col ul li a:hover { color: var(--gold); padding-right: 4px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0; text-align: center; font-size: 13px; color: rgba(255,255,255,0.35);
}
.footer-bottom a { color: var(--blue-light); text-decoration: none; }

/* ── MOBILE NAV ── */
.mobile-nav {
  display: none; position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,0.5); backdrop-filter: blur(4px);
}
.mobile-nav.open { display: block; }
.mobile-nav-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(340px, 90vw);
  background: var(--navy-dark); padding: 32px 24px; overflow-y: auto;
  transform: translateX(100%); transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
}
.mobile-nav.open .mobile-nav-panel { transform: translateX(0); }
.mobile-nav-panel .close { position: absolute; top: 20px; left: 20px; background: none; border: none; color: white; font-size: 24px; cursor: pointer; }
.mobile-nav-panel nav { display: flex; flex-direction: column; gap: 4px; margin-top: 40px; }
.mobile-nav-panel nav a { color: rgba(255,255,255,0.8); padding: 14px 16px; border-radius: 10px; font-size: 15px; font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.06); }
.mobile-nav-panel nav a:hover { background: rgba(255,255,255,0.08); color: white; }

/* ── SCROLL REVEAL ── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-visual { max-width: 600px; margin: 0 auto; }
  .dept-grid { grid-template-columns: repeat(2,1fr); }
  .team-grid { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats { display: none; }
  .services-card { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  nav { display: none; }
  .hamburger { display: flex; }
  .hero { height: 70vh; min-height: 480px; }
  .slide-content { padding: 0 0 0 5%; }
  .hero-title { font-size: 30px; }
  section { padding: 56px 0; }
  .dept-grid { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .dept-total-card { grid-template-columns: 1fr; gap: 16px; }
  .cafeteria-card { flex-direction: column; text-align: center; }
  .form-grid-2 { grid-template-columns: 1fr; }
  .about-badge-card { position: static; margin-top: 16px; justify-content: center; }
}
@media (max-width: 480px) {
  .dept-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .topbar-group { flex-direction: column; gap: 8px; }
}

.powered-by {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; margin-top: 10px;
  font-size: 13px; color: rgba(255,255,255,0.35);
  font-family: 'Cairo', sans-serif; letter-spacing: 0.04em;
}
.powered-by a {
  display: inline-flex; align-items: center; gap: 6px;
  color: rgba(255,255,255,0.55); text-decoration: none;
  transition: color 0.2s; font-weight: 600;
}
.powered-by a:hover { color: #8dc63f; }
.powered-by img { height: 22px; width: auto; }

/* ── LANG SWITCHER ── */
.lang-btn {
  background: transparent;
  border: 2px solid var(--blue);
  color: var(--blue);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 800;
  padding: 5px 14px;
  border-radius: 50px;
  cursor: pointer;
  letter-spacing: 0.08em;
  transition: all 0.2s;
  margin-right: 8px;
  flex-shrink: 0;
}
.lang-btn:hover {
  background: var(--blue);
  color: white;
}

/* ── LTR (English) overrides ── */
html[dir="ltr"] body { font-family: 'Cairo', sans-serif; }
html[dir="ltr"] .logo-text .name { font-size: 14px; }
html[dir="ltr"] .header-inner { flex-direction: row; }
html[dir="ltr"] .topbar-inner { flex-direction: row; }
html[dir="ltr"] .about-badge-card { right: auto; left: -24px; }
html[dir="ltr"] .contact-card:hover { transform: translateX(4px); }
html[dir="ltr"] .compare-item { border-right: none; border-left: 4px solid var(--blue); }
html[dir="ltr"] .compare-item.red-border { border-left-color: var(--red); }
html[dir="ltr"] .footer-col ul li a:hover { padding-right: 0; padding-left: 4px; }
html[dir="ltr"] .dept-card::before { transform-origin: left; }
html[dir="ltr"] .mobile-nav-panel { right: auto; left: 0; transform: translateX(-100%); }
html[dir="ltr"] .mobile-nav.open .mobile-nav-panel { transform: translateX(0); }
html[dir="ltr"] .mobile-nav-panel .close { left: auto; right: 20px; }

/* ── GALLERY ── */
.gallery-section {
  margin-top: 56px;
}
.gallery-label {
  font-family: var(--font-display);
  font-size: 18px; font-weight: 800;
  color: var(--navy); margin-bottom: 20px;
  display: flex; align-items: center; gap: 10px;
}
.gallery-label::after {
  content: ''; flex: 1; height: 2px;
  background: linear-gradient(90deg, var(--blue), transparent);
  border-radius: 2px;
}
html[dir="ltr"] .gallery-label::after {
  background: linear-gradient(270deg, var(--blue), transparent);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (min-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}
.gallery-item {
  position: relative; border-radius: var(--radius);
  overflow: hidden; cursor: pointer;
  aspect-ratio: 4/3;
  background: var(--gray-100);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s;
}
.gallery-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item .gallery-overlay {
  position: absolute; inset: 0;
  background: rgba(10,25,50,0); 
  display: flex; align-items: center; justify-content: center;
  transition: background 0.3s;
}
.gallery-item:hover .gallery-overlay { background: rgba(10,25,50,0.35); }
.gallery-overlay-icon {
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,0.9);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: scale(0.7);
  transition: all 0.3s;
}
.gallery-overlay-icon svg { width: 24px; height: 24px; fill: var(--navy); }
.gallery-item:hover .gallery-overlay-icon { opacity: 1; transform: scale(1); }

/* Video thumb */
.gallery-item.video-thumb .play-badge {
  position: absolute; top: 10px; right: 10px;
  background: var(--red); color: white;
  font-size: 11px; font-weight: 700;
  padding: 4px 10px; border-radius: 50px;
  letter-spacing: 0.05em;
}
html[dir="ltr"] .gallery-item.video-thumb .play-badge { right: auto; left: 10px; }
.gallery-item.video-thumb video {
  width: 100%; height: 100%; object-fit: cover;
  pointer-events: none;
}

/* ── LIGHTBOX ── */
.lightbox {
  display: none; position: fixed; inset: 0; z-index: 9000;
  background: rgba(0,0,0,0.93); backdrop-filter: blur(8px);
  align-items: center; justify-content: center;
  padding: 20px;
}
.lightbox.open { display: flex; }
.lightbox-inner {
  position: relative; max-width: 92vw; max-height: 90vh;
  display: flex; flex-direction: column; align-items: center;
}
.lightbox-media {
  max-width: 100%; max-height: 80vh;
  border-radius: 12px; box-shadow: 0 20px 80px rgba(0,0,0,0.8);
  object-fit: contain;
}
.lightbox video.lightbox-media { max-height: 78vh; width: auto; }
.lightbox-close {
  position: fixed; top: 20px; right: 24px;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.3);
  color: white; font-size: 22px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s; z-index: 9001;
}
.lightbox-close:hover { background: var(--red); }
.lightbox-nav {
  position: fixed; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.25);
  color: white; font-size: 24px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s; z-index: 9001;
}
.lightbox-nav:hover { background: var(--blue); }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
.lightbox-counter {
  margin-top: 14px; color: rgba(255,255,255,0.55);
  font-size: 13px; letter-spacing: 0.1em;
}
.lightbox-caption {
  margin-top: 8px; color: rgba(255,255,255,0.8);
  font-size: 14px; font-family: var(--font-body); text-align: center;
}

@media (max-width: 768px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .lightbox-nav { display: none; }
}
@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── QUALITY SWITCHER ── */
.quality-switcher {
  position: absolute;
  bottom: 14px;
  left: 14px;
  display: flex;
  gap: 6px;
  z-index: 10;
}
.q-btn {
  background: rgba(0,0,0,0.6);
  color: rgba(255,255,255,0.75);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 6px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.06em;
  transition: all 0.2s;
  font-family: var(--font-body);
}
.q-btn:hover { background: rgba(255,255,255,0.15); color: white; }
.q-btn.q-active {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
}

.dept-letter { flex-direction: column; gap: 2px; }
.dept-en {
  font-family: 'Tajawal', sans-serif;
  font-size: 32px;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
}

/* ── PRELOADER ── */
#preloader {
  position: fixed; inset: 0; z-index: 99999;
  background: #0f2035;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
#preloader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.pre-logo { margin-bottom: 32px; }
.pre-logo img { height: 70px; width: auto; filter: brightness(2); }
.pre-title { font-family: 'Tajawal', sans-serif; font-size: 18px; font-weight: 800; color: white; margin-bottom: 6px; text-align: center; }
.pre-sub { font-size: 13px; color: rgba(255,255,255,0.5); margin-bottom: 40px; text-align: center; }
.pre-bar-wrap { width: 220px; height: 4px; background: rgba(255,255,255,0.1); border-radius: 2px; overflow: hidden; }
.pre-bar { height: 100%; width: 0%; background: linear-gradient(90deg, #2563a8, #c8a84b); border-radius: 2px; transition: width 0.3s ease; }
.pre-percent { font-size: 13px; color: rgba(255,255,255,0.4); margin-top: 12px; font-family: 'Cairo', sans-serif; }
