/* =========================================================
   Libyan Jisr Almanara University — Static styles
   ========================================================= */
:root {
  --bg: #f7fafa;
  --fg: #0d2230;
  --card: #ffffff;
  --muted: #6b8089;
  --border: #dde7e9;
  --secondary: #e9f1f1;
  --primary: #1f5a66;        /* deep teal */
  --primary-deep: #123b48;   /* navy teal */
  --primary-fg: #fffce8;
  --gold: #e6b34a;           /* warm gold */
  --gold-2: #c98c2a;
  --shadow-soft: 0 8px 30px -10px rgba(18, 59, 72, 0.18);
  --shadow-elegant: 0 20px 60px -20px rgba(18, 59, 72, 0.35);
  --radius: 14px;
  --gradient-gold: linear-gradient(135deg, var(--gold), var(--gold-2));
  --gradient-hero: linear-gradient(135deg, rgba(18, 59, 72, 0.85), rgba(31, 90, 102, 0.55));
}

* { box-sizing: border-box; margin: 0; padding: 0; }
*, *::before, *::after { border: 0 solid var(--border); }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: "Cairo", system-ui, -apple-system, Segoe UI, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.55;
  font-feature-settings: "ss01", "cv11";
}
html[lang="en"] body { font-family: "Inter", system-ui, sans-serif; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
ul { list-style: none; }
h1, h2, h3 { letter-spacing: -0.02em; line-height: 1.15; }
.container { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: 1.25rem; }
@media (min-width: 768px) { .container { padding-inline: 2rem; } }

/* ---------- HEADER ---------- */
.site-header {
  position: fixed; inset-inline: 0; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  transition: background .3s, box-shadow .3s, border-color .3s;
}
.site-header[data-overlay="true"]:not(.scrolled) {
  background: transparent; border-bottom-color: transparent; box-shadow: none;
}
.site-header[data-overlay="true"]:not(.scrolled) .nav-link,
.site-header[data-overlay="true"]:not(.scrolled) .brand-ar,
.site-header[data-overlay="true"]:not(.scrolled) .brand-en,
.site-header[data-overlay="true"]:not(.scrolled) .lang-btn,
.site-header[data-overlay="true"]:not(.scrolled) .burger { color: #fff; }
.site-header[data-overlay="true"]:not(.scrolled) .brand-en { color: rgba(255,255,255,.7); }
.site-header[data-overlay="true"]:not(.scrolled) .lang-btn { border-color: rgba(255,255,255,.4); }
.site-header[data-overlay="true"]:not(.scrolled) .lang-btn:hover { background:#fff; color: var(--primary); }

.hdr-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  max-width: 1280px; margin: 0 auto; padding: .5rem 1rem;
}
@media (min-width: 768px) { .hdr-inner { padding: .5rem 2rem; } }
.brand { display: flex; align-items: center; gap: .75rem; min-width: 0; }
.brand-logo {
  width: 48px; height: 48px; border-radius: 9999px; background: #fff; padding: 2px;
  object-fit: contain; box-shadow: 0 4px 10px rgba(0,0,0,.08);
}
@media (min-width: 768px) { .brand-logo { width: 56px; height: 56px; } }
.brand-text { display: none; min-width: 0; line-height: 1.1; }
@media (min-width: 640px) { .brand-text { display: block; } }
.brand-ar { display: block; font-weight: 700; font-size: 14px; color: var(--fg); }
.brand-en { display: block; font-size: 11px; color: var(--muted); }
@media (min-width: 768px) { .brand-ar { font-size: 16px; } }

.nav-desktop { display: none; align-items: center; gap: 4px; }
@media (min-width: 1024px) { .nav-desktop { display: flex; } }
.nav-link {
  padding: 8px 12px; border-radius: 10px; font-size: 14px; font-weight: 700;
  color: var(--fg); display: inline-flex; align-items: center; gap: 4px;
  transition: background .2s, color .2s;
}
.nav-link:hover { background: var(--secondary); color: var(--primary); }
.nav-link.active { background: var(--secondary); color: var(--primary); }
.site-header[data-overlay="true"]:not(.scrolled) .nav-link:hover { background: rgba(255,255,255,.12); color:#fff; }
.site-header[data-overlay="true"]:not(.scrolled) .nav-link.active { background: rgba(255,255,255,.18); color:#fff; }

/* Dropdown */
.dd { position: relative; }
.dd-trigger svg { transition: transform .2s; }
.dd.open .dd-trigger svg { transform: rotate(180deg); }
.dd-menu {
  position: absolute; top: 100%; margin-top: 8px; min-width: 280px;
  background: #fff; border: 1px solid var(--border); border-radius: 16px;
  padding: 8px; box-shadow: var(--shadow-elegant);
  opacity: 0; transform: translateY(-6px); pointer-events: none;
  transition: opacity .18s, transform .18s; z-index: 10;
}
html[dir="rtl"] .dd-menu { right: 0; }
html[dir="ltr"] .dd-menu { left: 0; }
.dd.open .dd-menu { opacity: 1; transform: translateY(0); pointer-events: auto; }
.dd-item { display: flex; gap: 12px; padding: 12px; border-radius: 12px; transition: background .15s; }
.dd-item:hover { background: var(--secondary); }
.dd-ic {
  width: 36px; height: 36px; border-radius: 10px; flex: 0 0 36px;
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  display: grid; place-items: center; font-size: 18px;
}
.dd-text { display: flex; flex-direction: column; min-width: 0; }
.dd-name { font-weight: 700; color: var(--fg); font-size: 14px; }
.dd-tag { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.hdr-right { display: flex; align-items: center; gap: 8px; }
.lang-btn {
  border: 1px solid rgba(31, 90, 102, .3); padding: 6px 14px; border-radius: 999px;
  font-size: 12px; font-weight: 700; color: var(--primary); transition: background .2s, color .2s;
}
.lang-btn:hover { background: var(--primary); color: #fff; }
.burger { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; color: var(--fg); }
.burger:hover { background: var(--secondary); }
@media (min-width: 1024px) { .burger { display: none; } }

/* Mobile menu */
.nav-mobile {
  display: none; flex-direction: column; padding: 12px 1rem;
  background: rgba(255,255,255,.97); border-top: 1px solid var(--border);
}
.nav-mobile.open { display: flex; }
.mob-link { padding: 12px; border-radius: 10px; font-size: 14px; font-weight: 700; color: var(--fg); }
.mob-link:hover { background: var(--secondary); }
.mob-dd summary { list-style: none; cursor: pointer; padding: 12px; border-radius: 10px; font-size: 14px; font-weight: 700; display: flex; justify-content: space-between; align-items: center; }
.mob-dd summary::-webkit-details-marker { display: none; }
.mob-dd summary::after { content: "▾"; transition: transform .2s; }
.mob-dd[open] summary::after { transform: rotate(180deg); }
.mob-dd summary:hover { background: var(--secondary); }
.mob-subs { display: flex; flex-direction: column; gap: 4px; margin: 4px 12px; padding-inline-start: 12px; border-inline-start: 1px solid var(--border); }
.mob-sub { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--fg); }
.mob-sub:hover { background: var(--secondary); }

/* ---------- HERO ---------- */
.hero {
  position: relative; height: 100svh; min-height: 620px; width: 100%; overflow: hidden;
}
.hero-track { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease;
}
.hero-slide.active { opacity: 1; z-index: 1; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: slow-zoom 10s ease-out both; }
.hero-overlay { position: absolute; inset: 0; background: var(--gradient-hero); }
.hero-content {
  position: relative; z-index: 2; max-width: 1100px; margin: 0 auto; height: 100%;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  padding: 0 1.5rem; color: #fff;
}
.hero-slide.active .hero-content > * { animation: fade-up .7s ease-out both; }
.hero-slide.active .hero-title { animation-delay: .12s; }
.hero-slide.active .hero-desc { animation-delay: .24s; }
.hero-slide.active .hero-cta { animation-delay: .36s; }
.hero-eyebrow {
  display: inline-block; padding: 6px 16px; border-radius: 9999px;
  border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.1);
  font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold); backdrop-filter: blur(6px); margin-bottom: 1rem;
}
.hero-title { font-size: clamp(2rem, 5vw, 4.5rem); font-weight: 900; line-height: 1.1; max-width: 820px; }
.hero-desc { margin-top: 1.25rem; max-width: 640px; font-size: clamp(1rem, 1.6vw, 1.25rem); color: rgba(255,255,255,.88); }
.hero-cta { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 14px 26px;
  border-radius: 9999px; font-weight: 700; font-size: 14px; transition: transform .25s, box-shadow .25s, background .25s, color .25s;
}
.btn-gold { background: var(--gradient-gold); color: var(--primary-deep); box-shadow: 0 10px 30px -10px rgba(230,179,74,.6); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -10px rgba(230,179,74,.7); }
.btn-ghost { border: 2px solid rgba(255,255,255,.6); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--primary-deep); }
.btn-outline { border: 2px solid var(--primary); color: var(--primary); padding: 10px 24px; }
.btn-outline:hover { background: var(--primary); color: #fff; }
.hero-dots { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 5; }
.dot { width: 16px; height: 6px; border-radius: 9999px; background: rgba(255,255,255,.5); transition: all .25s; }
.dot.active { background: var(--gold); width: 40px; }
.dot:hover { background: rgba(255,255,255,.85); }

/* ---------- SECTIONS ---------- */
.section { padding: 5rem 0; }
@media (min-width: 768px) { .section { padding: 7rem 0; } }
.section-muted { background: rgba(233, 241, 241, .55); }
.sec-head { max-width: 760px; margin: 0 auto; text-align: center; }
.sec-head.light { color: #fff; }
.kicker { font-size: 11px; font-weight: 700; color: var(--gold); letter-spacing: .2em; text-transform: uppercase; }
.kicker.gold { color: var(--gold); }
.sec-head h2 { margin-top: .75rem; font-size: clamp(1.75rem, 3.5vw, 3rem); font-weight: 900; }
.sec-head .sub { margin-top: 1rem; color: var(--muted); font-size: 17px; }
.divider { margin: 1.25rem auto 0; width: 80px; height: 4px; border-radius: 9999px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.center-cta { margin-top: 2.5rem; text-align: center; }
.pb-only { padding-top: 0; }

.grid-2 { margin-top: 3.5rem; display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.grid-3 { margin-top: 1.5rem; display: grid; gap: 1.25rem; }
@media (min-width: 768px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  position: relative; overflow: hidden; border: 1px solid var(--border);
  background: var(--card); border-radius: 24px; padding: 2rem;
  box-shadow: var(--shadow-soft); transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-elegant); }
.card-icon {
  width: 56px; height: 56px; border-radius: 16px;
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  display: grid; place-items: center; font-size: 26px; color: var(--gold);
  box-shadow: 0 6px 16px rgba(0,0,0,.12); margin-bottom: 1rem;
}
.card h3 { font-size: 22px; font-weight: 700; color: var(--fg); }
.card p { margin-top: .75rem; color: var(--muted); line-height: 1.7; }

/* Dept card */
.dept-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--border); border-radius: 24px;
  padding: 1.75rem; box-shadow: var(--shadow-soft); overflow: hidden;
  transition: transform .25s, box-shadow .25s;
}
.dept-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-elegant); }
.dept-stripe {
  position: absolute; inset-inline: 0; top: 0; height: 6px;
  background: linear-gradient(90deg, var(--primary), var(--gold), var(--primary));
  opacity: .7;
}
.dept-icon {
  width: 64px; height: 64px; border-radius: 18px;
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  display: grid; place-items: center; font-size: 30px; margin-bottom: 1rem;
  box-shadow: 0 6px 16px rgba(0,0,0,.12);
}
.dept-card h3 { font-size: 20px; font-weight: 700; }
.dept-card > p { margin-top: .75rem; font-size: 14px; color: var(--muted); line-height: 1.7; }
.dept-divs { margin-top: 1.25rem; border-top: 1px solid var(--border); padding-top: 1.25rem; }
.dept-divs-label { font-size: 11px; font-weight: 700; color: var(--gold); letter-spacing: .12em; text-transform: uppercase; }
.dept-divs ul { margin-top: .75rem; display: flex; flex-direction: column; gap: .5rem; }
.dept-divs li { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.bullet { width: 6px; height: 6px; border-radius: 9999px; background: var(--gold); display: inline-block; }
.dept-more { margin-top: 1.5rem; font-size: 14px; font-weight: 700; color: var(--primary); }
.dept-card:hover .dept-more { letter-spacing: .03em; }

/* Stats */
.stats {
  position: relative; padding: 5rem 0; color: #fff; overflow: hidden;
  background: linear-gradient(135deg, var(--primary-deep), var(--primary), var(--primary-deep));
}
.stats::before, .stats::after {
  content: ""; position: absolute; width: 400px; height: 400px; border-radius: 50%;
  background: var(--gold); filter: blur(120px); opacity: .18;
}
.stats::before { top: 40px; inset-inline-start: -120px; }
.stats::after { bottom: 40px; inset-inline-end: -120px; }
.stats-grid {
  position: relative; margin-top: 3.5rem; display: grid; gap: 1rem; grid-template-columns: 1fr 1fr;
}
@media (min-width: 768px) { .stats-grid { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; } }
.stat {
  border: 1px solid rgba(255,255,255,.15); background: rgba(255,255,255,.06);
  border-radius: 24px; padding: 1.5rem; text-align: center; backdrop-filter: blur(4px);
  transition: transform .25s;
}
.stat:hover { transform: scale(1.04); }
.stat-num {
  font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 900;
  background: var(--gradient-gold); -webkit-background-clip: text;
  background-clip: text; color: transparent;
}
.stat-num .plus { font-size: .7em; }
.stat-label { margin-top: .75rem; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.85); }

/* ---------- ABOUT / PAGE HERO ---------- */
.page-hero {
  position: relative; overflow: hidden; color: #fff; padding: 8rem 0 5rem;
  background: linear-gradient(135deg, var(--primary-deep), var(--primary), var(--primary-deep));
}
@media (min-width: 768px) { .page-hero { padding: 10rem 0 7rem; } }
.page-hero h1 { margin-top: .75rem; font-size: clamp(2rem, 5vw, 4rem); font-weight: 900; max-width: 820px; }
.page-hero-desc { margin-top: 1.25rem; max-width: 760px; font-size: clamp(1rem, 1.4vw, 1.125rem); color: rgba(255,255,255,.88); }

.about-grid { display: grid; gap: 3rem; }
@media (min-width: 768px) { .about-grid { grid-template-columns: 1.2fr 1fr; gap: 4rem; } }
.about-grid h2 { margin-top: .75rem; font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 900; }
.prose { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 1rem; color: var(--muted); line-height: 1.8; }
.facts { display: flex; flex-direction: column; gap: 12px; }
.fact { display: flex; align-items: center; gap: 12px; padding: 1.1rem; border: 1px solid var(--border); border-radius: 16px; background: var(--card); box-shadow: var(--shadow-soft); font-weight: 600; color: var(--fg); }
.fact::first-letter { color: var(--gold); }

.goals-box {
  padding: 2rem; border-radius: 24px; color: #fff; box-shadow: var(--shadow-elegant);
  background: linear-gradient(135deg, var(--primary-deep), var(--primary));
}
@media (min-width: 768px) { .goals-box { padding: 3rem; } }
.goals-head { display: flex; align-items: center; gap: 1rem; }
.goals-ic { font-size: 32px; color: var(--gold); }
.goals-head h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 900; margin-top: 4px; }
.goals-list { margin-top: 2rem; display: grid; gap: 12px; }
@media (min-width: 768px) { .goals-list { grid-template-columns: 1fr 1fr; } }
.goals-list li { display: flex; gap: 12px; padding: 14px; background: rgba(255,255,255,.06); border-radius: 14px; }
.goals-n {
  flex: 0 0 28px; width: 28px; height: 28px; border-radius: 9999px;
  background: var(--gold); color: var(--primary-deep);
  display: grid; place-items: center; font-weight: 900; font-size: 12px;
}

.values-grid { margin-top: 1.5rem; display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
@media (min-width: 768px) { .values-grid { grid-template-columns: repeat(4, 1fr); } }
.value-card { padding: 1.25rem; text-align: center; font-weight: 700; border: 1px solid var(--border); border-radius: 18px; background: var(--card); box-shadow: var(--shadow-soft); }

/* ---------- DEPARTMENT PAGE ---------- */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: rgba(255,255,255,.7); margin-bottom: 1.5rem; }
.crumbs a:hover { color: #fff; }
.crumbs > :not(a) { color: #fff; }
.dept-hero { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: flex-start; }
.dept-hero-ic {
  width: 80px; height: 80px; border-radius: 24px; background: rgba(255,255,255,.1);
  display: grid; place-items: center; font-size: 44px; backdrop-filter: blur(4px);
  box-shadow: 0 6px 16px rgba(0,0,0,.15);
}
.dept-main { padding: 4rem 1.25rem; display: flex; flex-direction: column; gap: 4rem; }
@media (min-width: 768px) { .dept-main { padding: 5rem 2rem; gap: 5rem; } }
.sec-heading { display: flex; align-items: center; gap: 12px; }
.sec-heading .ic {
  width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-deep)); color: var(--gold); font-size: 18px;
}
.sec-heading h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 900; }

.hl-card { padding: 1.25rem; border: 1px solid var(--border); border-radius: 18px; background: var(--card); box-shadow: var(--shadow-soft); }
.hl-n { width: 36px; height: 36px; border-radius: 10px; background: rgba(230,179,74,.15); color: var(--gold-2); display: grid; place-items: center; font-weight: 900; }
.hl-card p { margin-top: .75rem; font-weight: 600; line-height: 1.6; }

.course { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border: 1px solid var(--border); border-radius: 14px; background: var(--card); font-weight: 600; font-size: 14px; transition: border-color .2s; }
.course:hover { border-color: rgba(230,179,74,.5); }
.course-n { width: 28px; height: 28px; border-radius: 8px; background: var(--secondary); color: var(--primary); display: grid; place-items: center; font-size: 11px; font-weight: 900; }

.member { padding: 1.25rem; border: 1px solid var(--border); border-radius: 18px; background: var(--card); box-shadow: var(--shadow-soft); display: flex; gap: 1rem; align-items: center; }
.member-av {
  width: 56px; height: 56px; border-radius: 9999px;
  background: linear-gradient(135deg, var(--primary), var(--primary-deep)); color: var(--gold);
  display: grid; place-items: center; font-weight: 900; font-size: 14px; flex: 0 0 56px;
}
.member-name { font-weight: 700; font-size: 15px; }
.member-title { margin-top: 2px; font-size: 12px; color: var(--muted); }

.empty { margin-top: 1.5rem; padding: 2rem; text-align: center; border: 1px dashed var(--border); border-radius: 18px; background: rgba(233, 241, 241, .5); color: var(--muted); font-size: 14px; }

.div-card { padding: 1.25rem; border: 1px solid var(--border); border-radius: 18px; background: var(--card); box-shadow: var(--shadow-soft); transition: transform .25s, box-shadow .25s, border-color .25s; display: flex; flex-direction: column; }
.div-card:hover { transform: translateY(-4px); border-color: rgba(230,179,74,.5); box-shadow: var(--shadow-elegant); }
.div-card h3 { font-size: 18px; font-weight: 700; }
.div-card > p { margin-top: .75rem; color: var(--muted); font-size: 14px; line-height: 1.7; }
.div-meta { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--border); display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.div-meta dt { font-size: 10px; font-weight: 800; letter-spacing: .12em; color: var(--muted); text-transform: uppercase; }
.div-meta dd { margin-top: 2px; font-weight: 600; font-size: 14px; }
.div-courses { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.div-courses > p { font-size: 11px; font-weight: 800; letter-spacing: .12em; color: var(--gold); text-transform: uppercase; }
.div-courses ul { margin-top: .5rem; display: flex; flex-direction: column; gap: 6px; }
.div-courses li { display: flex; align-items: center; gap: 8px; font-size: 14px; }

.others { background: rgba(233, 241, 241, .55); border: 1px solid var(--border); border-radius: 24px; padding: 1.75rem; }
.others h3 { margin-top: .5rem; font-size: 20px; font-weight: 900; }
.grid-3.mt { margin-top: 1.25rem; }
.other { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--border); border-radius: 16px; background: var(--card); font-weight: 700; transition: transform .2s, border-color .2s, box-shadow .2s; }
.other:hover { transform: translateY(-2px); border-color: rgba(230,179,74,.5); box-shadow: var(--shadow-soft); }
.other-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; background: linear-gradient(135deg, var(--primary), var(--primary-deep)); }

/* ---------- FOOTER ---------- */
.site-footer { background: var(--primary-deep); color: #fff; margin-top: 0; }
.ftr-grid { max-width: 1180px; margin: 0 auto; padding: 4rem 1.5rem; display: grid; gap: 2.5rem; }
@media (min-width: 768px) { .ftr-grid { grid-template-columns: 2fr 1fr 1fr; padding: 4rem 2rem; } }
.site-footer .brand-ar { color: #fff; font-weight: 700; font-size: 16px; }
.site-footer .brand-en { color: rgba(255,255,255,.6); font-size: 11px; }
.ftr-tag { margin-top: 1.25rem; max-width: 480px; color: rgba(255,255,255,.7); font-size: 14px; line-height: 1.7; }
.site-footer h4 { font-size: 12px; font-weight: 800; color: var(--gold); letter-spacing: .12em; text-transform: uppercase; }
.ftr-links, .ftr-contact { margin-top: 1rem; display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: rgba(255,255,255,.78); }
.ftr-links a:hover, .ftr-contact a:hover { color: var(--gold); }
.ftr-contact li { display: flex; align-items: center; gap: 10px; }
.ftr-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 1.25rem; text-align: center; font-size: 12px; color: rgba(255,255,255,.55); }

/* ---------- ANIMATIONS ---------- */
@keyframes fade-up { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slow-zoom { from { transform: scale(1.05); } to { transform: scale(1.15); } }

/* PNG Icon Handling */
.dd-ic img, .card-icon img, .dept-icon img, .dept-hero-ic img, .goals-ic img, .other-ic img, .sec-heading .ic img {
  width: 70%;
  height: 70%;
  object-fit: contain;
}
/* تغيير خلفية حاويات الأيقونات إلى اللون الأبيض */
.dd-ic, 
.card-icon, 
.dept-icon, 
.dept-hero-ic, 
.other-ic, 
.sec-heading .ic {
    background: #ffffff !important; /* جعل الخلفية بيضاء */
    border: 1px solid var(--border); /* إضافة إطار خفيف */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05); /* ظل ناعم جداً */
}

/* التأكد من أن الصور داخل الأيقونات تظهر بشكل جيد على الخلفية البيضاء */
.dd-ic img, 
.card-icon img, 
.dept-icon img, 
.dept-hero-ic img, 
.other-ic img, 
.sec-heading .ic img, 
.goals-ic img {
    filter: none; /* التأكد من عدم وجود فلاتر تغير ألوان الأيقونات الأصلية */
    width: 65%;
    height: 65%;
    object-fit: contain;
}

/* تعديل أيقونة الهيرو في صفحات الأقسام لتناسب الخلفية البيضاء */
.dept-hero-ic {
    background: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
} 
/* ---------- UNIVERSITY GALLERY ---------- */
.gallery-container {
  position: relative;
  width: 100%;
  max-width: 1000px; /* يمكنك تكبيرها حسب الرغبة */
  margin: 3rem auto 0;
  height: 500px; /* ارتفاع المعرض */
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-elegant);
  background: #eee;
}

@media (max-width: 768px) {
  .gallery-container { height: 350px; }
}

.gallery-slider {
  width: 100%;
  height: 100%;
  position: relative;
}

.gallery-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  z-index: 1;
}

.gallery-item.active {
  opacity: 1;
  z-index: 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* لضمان ملء الصورة للمساحة دون تشويه */
}

.gallery-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.g-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background 0.3s;
}

.g-dot.active {
  background: var(--gold);
  width: 30px;
  border-radius: 10px;
}