/* ============================================================
   Rand Institute — Professional Dark Navy & Gold Theme
   Primary: #1a2e5a  |  Gold: #c9a227
   ============================================================ */

:root {
  --primary:        #0b1d3a;
  --primary-dark:   #060f1f;
  --primary-light:  #162d57;
  --secondary:      #f0b429;
  --secondary-dark: #cc9210;
  --secondary-light:#f5c84a;
  --bg:             #f4f6fb;
  --bg-white:       #ffffff;
  --text-dark:      #1a1f36;
  --text-muted:     #64748b;
  --border:         #e2e8f0;
  --shadow-sm:      0 1px 4px rgba(26,46,90,.05), 0 4px 14px rgba(26,46,90,.07);
  --shadow:         0 4px 24px rgba(26,46,90,.12);
  --shadow-lg:      0 12px 40px rgba(26,46,90,.20);
  --radius:         8px;
  --radius-lg:      14px;
  --radius-sm:      6px;
  --transition:     .22s ease;
}

/* ── Bootstrap overrides — kill default blue ── */
:root {
  --bs-primary:             #0b1d3a;
  --bs-primary-rgb:         11, 29, 58;
  --bs-link-color:          #0b1d3a;
  --bs-link-color-rgb:      11, 29, 58;
  --bs-link-hover-color:    #c9a227;
  --bs-focus-ring-color:    rgba(11, 29, 58, .25);
  --bs-focus-ring-width:    3px;
}
.btn-primary {
  --bs-btn-bg:                  #0b1d3a;
  --bs-btn-border-color:        #0b1d3a;
  --bs-btn-hover-bg:            #060f1f;
  --bs-btn-hover-border-color:  #060f1f;
  --bs-btn-active-bg:           #060f1f;
  --bs-btn-focus-shadow-rgb:    11, 29, 58;
}
.form-control:focus, .form-select:focus {
  border-color: #0b1d3a;
  box-shadow: 0 0 0 3px rgba(11, 29, 58, .15);
}
a { color: inherit; }

/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Naskh Arabic', 'Inter', sans-serif;
  background: var(--bg-white);
  color: var(--text-dark);
  line-height: 1.8;
  overflow-x: hidden;
  max-width: 100vw;
}
html { overflow-x: hidden; }

/* Explicit font rules per language */
:lang(en), :lang(en) * { font-family: 'Inter', 'Noto Naskh Arabic', sans-serif; }
:lang(ku), :lang(ku) * { font-family: 'Noto Naskh Arabic', serif; }
:lang(ar), :lang(ar) * { font-family: 'Noto Naskh Arabic', serif; }

/* Restore Font Awesome icon fonts — language rules must not override these */
.fa, .fas, .far, .fal, .fad, .fa-solid, .fa-regular, .fa-light,
[class^="fa-"], [class*=" fa-"] {
  font-family: "Font Awesome 6 Free" !important;
}
.fab, .fa-brands { font-family: "Font Awesome 6 Brands" !important; }

img { max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; padding: 0; margin: 0; }

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--primary);
}

.section-title {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 800;
  color: var(--primary);
  position: relative;
  margin-bottom: .75rem;
}
.section-title::after {
  content: '';
  display: block;
  width: 44px;
  height: 3px;
  background: linear-gradient(90deg, var(--secondary), var(--secondary-light));
  border-radius: 2px;
  margin-top: .6rem;
}
.text-center .section-title::after { margin-inline: auto; }

.section-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 2rem;
  line-height: 1.7;
}

/* ── Buttons ── */
.btn-primary-brand {
  background: var(--primary);
  color: #fff;
  border: 2px solid var(--primary);
  padding: .6rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .92rem;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  letter-spacing: .02em;
}
.btn-primary-brand:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26,46,90,.3);
}

.btn-gold {
  background: var(--secondary);
  color: var(--primary);
  border: 2px solid var(--secondary);
  padding: .6rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: .92rem;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  letter-spacing: .02em;
}
.btn-gold:hover {
  background: var(--secondary-dark);
  border-color: var(--secondary-dark);
  color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201,162,39,.4);
}

.btn-outline-brand {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  padding: .6rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .92rem;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
.btn-outline-brand:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

/* ── Navbar — Dark Navy ── */
.site-navbar {
  background: var(--primary);
  border-bottom: 2px solid rgba(201,162,39,.25);
  box-shadow: 0 2px 20px rgba(0,0,0,.28);
  position: sticky;
  top: 0;
  z-index: 1050;
  transition: box-shadow var(--transition);
}
.site-navbar.scrolled {
  box-shadow: 0 4px 30px rgba(0,0,0,.38);
}

.navbar-brand-img {
  height: 72px;
  width: auto;
  object-fit: contain;
}

/* Menu on its own centered row below the logo/controls line */
.navbar-menu-row {
  order: 3;
  flex-basis: 100%;
  width: 100%;
  margin-top: .85rem;
  padding-top: .5rem;
  border-top: 1px solid rgba(255,255,255,.10);
}

/* Social icons in the navbar (stacked under the language switcher) */
.header-social { display: flex; align-items: center; justify-content: center; gap: .35rem; flex-wrap: wrap; }
.header-social-btn {
  width: 30px; height: 30px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.82);
  background: rgba(255,255,255,.08);
  font-size: .85rem;
  text-decoration: none;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}
.header-social-btn:hover {
  background: var(--secondary);
  color: var(--primary);
  transform: translateY(-2px);
}

/* Nav links on dark background */
.nav-link-item {
  color: rgba(255,255,255,.80) !important;
  font-weight: 500;
  font-size: .95rem;
  padding: .5rem .95rem !important;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  white-space: nowrap;
  letter-spacing: .01em;
  position: relative;
}
.nav-link-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  inset-inline-start: .95rem;
  inset-inline-end: .95rem;
  height: 2px;
  background: var(--secondary);
  border-radius: 1px;
  transform: scaleX(0);
  transition: transform var(--transition);
  transform-origin: center;
}
.nav-link-item:hover,
.nav-link-item.active {
  color: var(--secondary) !important;
  background: rgba(255,255,255,.07);
}
.nav-link-item.active::after { transform: scaleX(1); }

/* Language switcher */
.lang-switcher { display: flex; gap: .3rem; align-items: center; }
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .28rem .55rem;
  border-radius: var(--radius-sm);
  font-size: .72rem;
  font-weight: 700;
  border: 1.5px solid rgba(255,255,255,.25);
  color: rgba(255,255,255,.65);
  background: transparent;
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: .5px;
  white-space: nowrap;
}
.lang-btn:hover { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.4); }
.lang-btn.active {
  background: var(--secondary);
  border-color: var(--secondary);
  color: var(--primary);
}
.lang-flag {
  width: 20px !important;
  height: 14px !important;
  max-width: 20px !important;
  object-fit: cover;
  border-radius: 2px;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}

/* Dark mode & mobile buttons on dark navbar */
#dark-mode-toggle {
  color: rgba(255,255,255,.65) !important;
  border-color: rgba(255,255,255,.2) !important;
  width: 34px !important; height: 34px !important;
  display: flex !important; align-items: center !important; justify-content: center !important;
}
#dark-mode-toggle:hover { color: var(--secondary) !important; background: rgba(255,255,255,.1) !important; }
#mobile-menu-toggle {
  color: rgba(255,255,255,.9) !important;
  background: rgba(255,255,255,.08) !important;
  border: 1.5px solid rgba(255,255,255,.15) !important;
  border-radius: var(--radius-sm) !important;
  width: 38px; height: 38px;
  display: flex !important; align-items: center !important; justify-content: center !important;
  font-size: 1.05rem;
  padding: 0 !important;
  transition: var(--transition);
}
#mobile-menu-toggle:hover {
  background: rgba(255,255,255,.15) !important;
  border-color: rgba(255,255,255,.3) !important;
}
@media (min-width: 992px) {
  #mobile-menu-toggle { display: none !important; }
}

/* Mobile nav panel — overlays the page (drops over the hero), scrolls if long */
#mobile-nav {
  position: absolute;
  inset-inline: 0;
  top: 100%;
  background: var(--primary);
  border-top: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 18px 34px rgba(0,0,0,.4);
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height .25s cubic-bezier(.4,0,.2,1), opacity .18s ease;
  padding: 0 .75rem;
  z-index: 1100;
}
#mobile-nav.open {
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  opacity: 1;
  padding-bottom: .75rem;
}
@media (min-width: 992px) {
  #mobile-nav { display: none; }
}
.mobile-nav-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .7rem 1rem;
  color: rgba(255,255,255,.78);
  text-decoration: none;
  border-radius: var(--radius-sm);
  margin: .15rem 0;
  font-size: .9rem;
  font-weight: 500;
  transition: background var(--transition), color var(--transition);
  position: relative;
}
.mobile-nav-item:hover {
  background: rgba(255,255,255,.08);
  color: #fff;
}
.mobile-nav-item.active {
  background: rgba(240,180,41,.12);
  color: var(--secondary);
  font-weight: 600;
}
.mobile-nav-icon {
  width: 30px; height: 30px;
  background: rgba(255,255,255,.07);
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-size: .78rem;
  flex-shrink: 0;
}
.mobile-nav-item.active .mobile-nav-icon {
  background: rgba(240,180,41,.18);
  color: var(--secondary);
}
.mobile-nav-check {
  margin-inline-start: auto;
  font-size: .75rem;
  color: var(--secondary);
  opacity: .8;
}

/* Mobile accordion */
.mobile-nav-group { display: flex; flex-direction: column; }
.mobile-nav-has-sub {
  width: 100%; background: none; border: none; text-align: start;
  cursor: pointer;
  /* no padding:0 here — inherit .mobile-nav-item's padding/color so rows align and text stays visible */
}
.mobile-nav-arrow {
  margin-inline-start: auto;
  font-size: .65rem;
  color: rgba(255,255,255,.45);
  transition: transform .22s ease;
  flex-shrink: 0;
}
.mobile-nav-has-sub.open .mobile-nav-arrow { transform: rotate(180deg); color: var(--secondary); }
.mobile-nav-sub {
  max-height: 0;
  overflow: hidden;
  transition: max-height .28s cubic-bezier(.4,0,.2,1);
  background: rgba(0,0,0,.18);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}
.mobile-nav-sub.open { max-height: 400px; }
.mobile-nav-sub-item {
  display: block;
  padding: .6rem 1rem .6rem 3.1rem;
  color: rgba(255,255,255,.62);
  font-size: .86rem;
  text-decoration: none;
  transition: color .15s, background .15s;
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.mobile-nav-sub-item:last-child { border-bottom: none; }
.mobile-nav-sub-item:hover { color: var(--secondary); background: rgba(255,255,255,.05); }
.mobile-nav-sub-all {
  color: var(--secondary) !important;
  font-weight: 600;
  font-size: .82rem;
}

/* ── Hero ── */
.hero-section { position: relative; overflow: clip; }
.hero-carousel { height: 580px; }

/* Hero slide indicators */
.hero-indicators {
  z-index: 20 !important;
  margin-bottom: 1.25rem !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  gap: 8px;
  align-items: center !important;
}
.hero-indicators button {
  width: 9px !important;
  height: 9px !important;
  border-radius: 999px !important;
  background: rgba(255,255,255,.45) !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  opacity: 1 !important;
  flex-shrink: 0;
  transition: width .4s cubic-bezier(.4,0,.2,1), background .4s ease, box-shadow .4s ease !important;
}
.hero-indicators button.active {
  width: 36px !important;
  background: var(--secondary) !important;
  box-shadow: 0 0 12px rgba(240,180,41,.65), 0 0 4px rgba(240,180,41,.4) !important;
}
/* Carousel controls above overlay */
.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
  z-index: 20 !important;
  width: 40px !important;
  height: 40px !important;
  top: 50% !important;
  bottom: auto !important;
  transform: translateY(-50%) !important;
  background: rgba(255,255,255,.12) !important;
  border: 1px solid rgba(255,255,255,.25) !important;
  border-radius: 50% !important;
  backdrop-filter: blur(4px);
  opacity: 1 !important;
  transition: background .25s, border-color .25s;
}
.hero-carousel .carousel-control-prev { inset-inline-start: 1.25rem !important; inset-inline-end: auto !important; }
.hero-carousel .carousel-control-next { inset-inline-end: 1.25rem !important; inset-inline-start: auto !important; }
.hero-carousel .carousel-control-prev:hover,
.hero-carousel .carousel-control-next:hover {
  background: rgba(240,180,41,.25);
  border-color: var(--secondary);
}
.hero-carousel .carousel-control-prev-icon,
.hero-carousel .carousel-control-next-icon {
  width: 16px;
  height: 16px;
}
.hero-carousel .carousel-item {
  height: 580px;
  background: var(--primary-dark);
}
.hero-slide-img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(to bottom, rgba(10,20,50,.15) 0%, rgba(10,20,50,.70) 100%),
    linear-gradient(to right,  rgba(10,20,50,.80) 0%, rgba(10,20,50,.10) 55%, transparent 100%);
}
[dir="rtl"] .hero-overlay {
  background:
    linear-gradient(to bottom, rgba(10,20,50,.15) 0%, rgba(10,20,50,.70) 100%),
    linear-gradient(to left,   rgba(10,20,50,.80) 0%, rgba(10,20,50,.10) 55%, transparent 100%);
}
.hero-content {
  position: absolute; inset: 0; z-index: 2;
  display: flex; align-items: center;
  padding: 3rem 4.5rem;
}
.hero-text { max-width: 600px; }
.hero-eyebrow {
  display: inline-block;
  background: var(--secondary);
  color: var(--primary);
  font-size: .72rem;
  font-weight: 800;
  padding: .3rem 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.1rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
}
[dir="rtl"] .hero-eyebrow {
  letter-spacing: 0;
  text-transform: none;
}
.hero-title {
  font-size: clamp(1.75rem, 4.5vw, 3.25rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 1rem;
}
.hero-subtitle {
  font-size: clamp(.92rem, 2vw, 1.08rem);
  color: rgba(255,255,255,.80);
  margin-bottom: 2rem;
  line-height: 1.75;
}
.hero-actions { display: flex; gap: .85rem; flex-wrap: wrap; }

.hero-fallback {
  background: linear-gradient(120deg, var(--primary-dark) 0%, var(--primary) 100%);
  min-height: 580px;
  display: flex; align-items: center;
  position: relative; overflow: hidden;
}
.hero-fallback::before {
  content: '';
  position: absolute;
  inset-block-start: -80px; inset-inline-end: -80px;
  width: 400px; height: 400px;
  background: var(--secondary); opacity: .06; border-radius: 50%;
}

/* ── Statistics ── */
.stats-section {
  background: var(--bg-white);
  padding: 0 0 4rem;
  position: relative;
}
.stats-inner {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  display: flex;
  flex-wrap: wrap;
  overflow: hidden;
  margin-top: -2rem;
  position: relative;
  z-index: 10;
}
.stat-card {
  flex: 1 1 0;
  min-width: 140px;
  text-align: center;
  padding: 2rem 1rem;
  border-inline-end: 1px solid var(--border);
  transition: background var(--transition);
}
.stat-card:last-child { border-inline-end: none; }
.stat-card:hover { background: var(--bg); }
.stat-icon {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto .9rem;
  font-size: 1.2rem; color: var(--secondary);
  box-shadow: 0 4px 14px rgba(26,46,90,.18);
}
.stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  display: block;
}
.stat-label { font-size: .82rem; color: var(--text-muted); margin-top: .45rem; font-weight: 500; }

/* ── Cards ── */
.card-brand {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  height: 100%;
  background: var(--bg-white);
  position: relative;
}
.card-brand::after {
  content: '';
  position: absolute;
  inset-block-end: 0; inset-inline-start: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--secondary), var(--secondary-light));
  transform: scaleX(0);
  transform-origin: inset-inline-start;
  transition: transform var(--transition);
}
.card-brand:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(201,162,39,.25);
}
.card-brand:hover::after { transform: scaleX(1); }
.card-brand .card-img-top { height: 200px; object-fit: cover; }
.card-img-placeholder {
  height: 200px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.25); font-size: 3rem;
}
.card-brand .card-body { padding: 1.5rem; }
.card-brand .card-title { font-size: 1.05rem; font-weight: 700; color: var(--primary); margin-bottom: .5rem; }
.card-brand .card-text { color: var(--text-muted); font-size: .9rem; line-height: 1.65; }

.card-meta {
  display: flex; gap: .85rem; flex-wrap: wrap;
  font-size: .78rem; color: var(--text-muted); margin-bottom: .75rem;
}
.card-meta i { color: var(--secondary); }

/* Department icon box */
.dept-icon {
  width: 70px; height: 70px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.65rem; color: var(--secondary);
  margin-bottom: 1rem; flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(26,46,90,.22);
}

/* ── Sections ── */
.section-pad { padding: 5rem 0; }
.section-pad-sm { padding: 3rem 0; }
.bg-light-brand { background: var(--bg); }

/* ── Page Header Banner ── */
.page-header {
  background: linear-gradient(120deg, var(--primary-dark) 0%, var(--primary) 100%);
  padding: 3.5rem 0;
  color: #fff;
  position: relative;
  overflow: hidden;
  border-bottom: 3px solid rgba(201,162,39,.35);
}
.page-header::before { content: none !important; display: none !important; }
.page-header::after {
  content: '';
  position: absolute;
  inset-block-start: -40px; inset-inline-end: -40px;
  width: 220px; height: 220px;
  background: var(--secondary); opacity: .06; border-radius: 50%;
}
.page-header h1 { color: #fff; margin: 0; font-size: clamp(1.6rem, 4vw, 2.3rem); }
.page-header p  { color: rgba(255,255,255,.72); margin: .5rem 0 0; font-size: .97rem; }
.breadcrumb-brand {
  display: flex; gap: .5rem; flex-wrap: wrap;
  font-size: .8rem; color: rgba(255,255,255,.55); margin-top: .75rem;
}
.breadcrumb-brand a { color: var(--secondary); }
.breadcrumb-brand span { color: rgba(255,255,255,.35); }

/* ── Section eyebrow label ── */
.section-eyebrow {
  display: inline-block;
  font-size: .72rem; font-weight: 800;
  letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--secondary);
  border-bottom: 2px solid var(--secondary);
  padding-bottom: .2rem;
  margin-bottom: 1.25rem;
}
[dir="rtl"] .section-eyebrow { letter-spacing: 0; text-transform: none; }

/* ── Dean's Message ── */
.dean-section { background: var(--bg-white); }

.dean-photo-wrap {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
}
.dean-photo {
  width: 200px; height: 200px;
  object-fit: cover;
  border-radius: 50%;
  border: 5px solid var(--secondary);
  box-shadow: 0 8px 32px rgba(26,46,90,.18), 0 0 0 8px rgba(201,162,39,.1);
}
.dean-photo-placeholder {
  width: 200px; height: 200px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border: 5px solid var(--secondary);
  display: flex; align-items: center; justify-content: center;
  font-size: 4rem; color: rgba(255,255,255,.35);
}
.dean-name-card {
  text-align: center;
}
.dean-name {
  font-size: 1.05rem; font-weight: 700; color: var(--primary);
}
.dean-title {
  font-size: .82rem; color: var(--secondary); font-weight: 600;
  letter-spacing: .5px; margin-top: .2rem;
}

.dean-quote-wrap {
  position: relative;
  padding-inline-start: 2.5rem;
  margin-top: .5rem;
}
.dean-quote-mark {
  position: absolute;
  inset-block-start: -.6rem;
  inset-inline-start: 0;
  font-size: 5rem;
  line-height: 1;
  color: var(--secondary);
  opacity: .35;
  font-family: Georgia, serif;
  font-weight: 900;
  user-select: none;
}
.dean-quote {
  font-size: 1.05rem;
  line-height: 1.95;
  color: var(--text-dark);
  font-style: italic;
  border: none;
  padding: 0;
  margin: 0;
}
.dean-sig {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.75rem;
  font-size: .88rem;
  font-weight: 700;
  color: var(--primary);
}
.dean-sig-line {
  width: 40px; height: 2px;
  background: var(--secondary);
  flex-shrink: 0;
}

/* ── CTA Section ── */
.cta-section {
  background: linear-gradient(120deg, var(--primary-dark) 0%, var(--primary) 100%);
  padding: 5rem 0; position: relative; overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute; inset-block-end: -80px; inset-inline-start: -80px;
  width: 280px; height: 280px;
  background: var(--secondary); opacity: .06; border-radius: 50%;
}
.cta-section::after {
  content: '';
  position: absolute; inset-block-start: -50px; inset-inline-end: -50px;
  width: 180px; height: 180px;
  background: var(--secondary); opacity: .04; border-radius: 50%;
}
.cta-section h2 { color: #fff; font-size: clamp(1.4rem, 3vw, 2rem); }
.cta-section p  { color: rgba(255,255,255,.72); }

/* ── About Tabs ── */
.about-tab {
  border: 2px solid var(--border);
  background: transparent;
  padding: .6rem 1.35rem;
  font-size: .88rem; font-weight: 600;
  color: var(--text-muted);
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
}
.about-tab.active, .about-tab:hover {
  background: var(--primary);
  color: #fff; border-color: var(--primary);
}
.about-tab-content { display: none; }
.about-tab-content.active { display: block; animation: fadeIn .35s ease; }

/* ── Gallery ── */
.gallery-filter { display: flex; gap: .5rem; flex-wrap: wrap; justify-content: center; margin-bottom: 2.5rem; }
.filter-btn {
  padding: .4rem 1.1rem;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border);
  color: var(--text-muted); background: transparent;
  font-weight: 600; font-size: .85rem; cursor: pointer;
  transition: var(--transition);
}
.filter-btn.active, .filter-btn:hover {
  background: var(--primary); border-color: var(--primary); color: #fff;
}
.gallery-grid { columns: 3; gap: 1rem; }
.gallery-item { break-inside: avoid; margin-bottom: 1rem; border-radius: var(--radius); overflow: hidden; cursor: pointer; position: relative; }
.gallery-item img { width: 100%; display: block; transition: transform .3s ease; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item-overlay {
  position: absolute; inset: 0;
  background: rgba(10,20,50,.55);
  opacity: 0; transition: var(--transition);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.6rem;
}
.gallery-item:hover .gallery-item-overlay { opacity: 1; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; background: rgba(0,0,0,.94);
  z-index: 9999; display: none; align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 90vh; border-radius: var(--radius); object-fit: contain; }
.lightbox-close {
  position: absolute; top: 1.5rem; inset-inline-end: 1.5rem;
  background: rgba(255,255,255,.15); border: none; color: #fff;
  width: 44px; height: 44px; border-radius: 50%;
  font-size: 1.2rem; cursor: pointer; transition: var(--transition);
}
.lightbox-close:hover { background: rgba(255,255,255,.3); }

/* ── Contact Tiles ── */
.contact-tile {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  height: 100%;
  transition: transform var(--transition), box-shadow var(--transition);
}
.contact-tile:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}
.contact-tile-icon {
  width: 60px; height: 60px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.3rem; color: var(--secondary);
  box-shadow: 0 6px 18px rgba(11,29,58,.2);
}
.contact-tile-label {
  font-size: .72rem; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--secondary); margin-bottom: .5rem;
}
.contact-tile-value {
  font-size: .95rem; color: var(--text-dark);
  line-height: 1.6; display: block;
}
.contact-tile-link {
  color: var(--primary); font-weight: 600;
  transition: color var(--transition);
}
.contact-tile-link:hover { color: var(--secondary); }

.social-btn-lg { width: 44px; height: 44px; font-size: 1.05rem; }

.contact-map-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.contact-map-label {
  background: var(--primary);
  color: var(--secondary);
  font-size: .78rem; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
  padding: .7rem 1.25rem;
}

/* ── Contact (old info card — kept for potential reuse) ── */
.contact-info-card {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff; border-radius: var(--radius-lg);
  padding: 2rem; height: 100%;
}
.contact-info-card h3 { color: var(--secondary); }
.contact-info-item { display: flex; gap: .9rem; margin-bottom: 1.4rem; align-items: flex-start; }
.contact-info-icon {
  width: 40px; height: 40px;
  background: rgba(201,162,39,.15); border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--secondary); font-size: .95rem; flex-shrink: 0;
}
.contact-form-card {
  background: var(--bg-white); border-radius: var(--radius-lg);
  padding: 2rem; box-shadow: var(--shadow); border: 1px solid var(--border);
}
.form-label-brand { font-weight: 600; font-size: .875rem; color: var(--primary); margin-bottom: .35rem; display: block; }
.form-control-brand {
  border: 2px solid var(--border); border-radius: var(--radius);
  padding: .65rem 1rem; font-size: .92rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%; font-family: inherit; color: var(--text-dark);
}
.form-control-brand:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26,46,90,.1); }

/* ── Footer ── */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,.72);
  padding: 4rem 0 0;
  border-top: 3px solid rgba(201,162,39,.3);
}
.footer-brand img { height: 54px; margin-bottom: 1rem; }
.footer-brand p { font-size: .87rem; color: rgba(255,255,255,.5); line-height: 1.75; }
.footer-heading {
  color: var(--secondary); font-size: .82rem; font-weight: 700;
  margin-bottom: 1.1rem; padding-bottom: .5rem;
  border-bottom: 1px solid rgba(201,162,39,.2);
  text-transform: uppercase; letter-spacing: .8px;
}
.footer-link { display: block; color: rgba(255,255,255,.6); font-size: .87rem; padding: .28rem 0; transition: color var(--transition), padding-inline-start var(--transition); }
.footer-link:hover { color: var(--secondary); padding-inline-start: 6px; }
.footer-contact-item { display: flex; gap: .7rem; align-items: flex-start; font-size: .86rem; color: rgba(255,255,255,.62); margin-bottom: .85rem; }
.footer-contact-item i { color: var(--secondary); margin-top: .22rem; flex-shrink: 0; }
.footer-social { display: flex; gap: .5rem; margin-top: 1rem; }
.social-btn {
  width: 36px; height: 36px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.65); font-size: .9rem; transition: var(--transition);
}
.social-btn:hover { background: var(--secondary); color: var(--primary); border-color: var(--secondary); transform: translateY(-3px); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 1.2rem 0; margin-top: 3rem;
  font-size: .78rem; color: rgba(255,255,255,.38); text-align: center;
}

/* ── WhatsApp Float ── */
.whatsapp-float {
  position: fixed; inset-block-end: 2rem; inset-inline-end: 2rem;
  width: 52px; height: 52px;
  background: #25d366; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.5rem;
  box-shadow: 0 6px 20px rgba(37,211,102,.4);
  z-index: 999; transition: var(--transition);
}
.whatsapp-float:hover { transform: scale(1.08) translateY(-2px); color: #fff; box-shadow: 0 8px 28px rgba(37,211,102,.55); }

/* ── Dark Mode ── */
[data-theme="dark"] {
  --bg-white: #111827;
  --bg:       #1a2233;
  --text-dark:#e2e8f0;
  --border:   #2d3a55;
  --shadow-sm:0 1px 4px rgba(0,0,0,.3), 0 4px 14px rgba(0,0,0,.25);
  --shadow:   0 4px 24px rgba(0,0,0,.4);
  --shadow-lg:0 12px 40px rgba(0,0,0,.55);
}
[data-theme="dark"] body { background: #111827; }
[data-theme="dark"] .card-brand { background: #1a2233; border-color: #2d3a55; }
[data-theme="dark"] .contact-form-card { background: #1a2233; border-color: #2d3a55; }
[data-theme="dark"] .stats-inner { background: #1a2233; border-color: #2d3a55; }
[data-theme="dark"] .stat-card { border-color: #2d3a55; }
[data-theme="dark"] .stat-card:hover { background: #111827; }
[data-theme="dark"] .stat-number { color: var(--secondary); }
[data-theme="dark"] .page-header::before,
[data-theme="dark"] .hero-fallback ~ * .page-header::before { background: #111827; }

/* ── Nav Dropdowns ── */
.nav-drop { position: relative; list-style: none; }
.nav-drop-arrow {
  font-size: .5rem;
  margin-inline-start: .35rem;
  opacity: .6;
  vertical-align: middle;
  transition: transform .2s ease;
}
.nav-drop:hover .nav-drop-arrow { transform: rotate(180deg); }
.nav-drop-menu {
  position: absolute;
  inset-block-start: 100%;
  inset-inline-start: 0;
  min-width: 220px;
  background: var(--primary-dark);
  border: 1px solid rgba(201,162,39,.18);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0,0,0,.4);
  padding: .4rem 0;
  list-style: none;
  z-index: 1200;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility 0s .18s;
  pointer-events: none;
}
.nav-drop:hover .nav-drop-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity .18s ease, transform .18s ease;
  pointer-events: auto;
}
.nav-drop-menu::before {
  content: '';
  position: absolute;
  inset-block-end: 100%;
  inset-inline-start: 0;
  width: 100%;
  height: .5rem;
}
.nav-drop-menu li a {
  display: block;
  padding: .55rem 1.15rem;
  color: rgba(255,255,255,.72);
  font-size: .84rem;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  transition: background .15s, color .15s, padding-inline-start .15s;
}
.nav-drop-menu li a:hover {
  background: rgba(255,255,255,.07);
  color: var(--secondary);
  padding-inline-start: 1.5rem;
}
[dir="rtl"] .nav-drop-menu li a:hover {
  padding-inline-start: 1.15rem;
  padding-inline-end: 1.5rem;
}
.nav-drop-sep { height: 1px; background: rgba(255,255,255,.08); margin: .3rem 0; }
.nav-drop-all a { color: var(--secondary) !important; font-weight: 600 !important; }

/* ── Animations ── */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeIn .5s ease both; }

/* ── Responsive ── */
@media (max-width: 991px) {
  .hero-carousel, .hero-carousel .carousel-item { height: 400px; }
  .gallery-grid { columns: 2; }
}
@media (max-width: 767px) {
  .hero-carousel, .hero-carousel .carousel-item { height: 260px; }
  .hero-title { font-size: 1.6rem; }
  .hero-content { padding: 2rem 2rem; }
  .hero-subtitle { font-size: .9rem; margin-bottom: 1.25rem; }
  .section-pad { padding: 3rem 0; }
  .stat-number { font-size: 2rem; }
  .gallery-grid { columns: 1; }
  .page-header { padding: 2.5rem 0; }
}
@media (max-width: 575px) {
  /* Hero */
  .hero-carousel, .hero-carousel .carousel-item { height: 300px; }
  .hero-content { padding: 1.2rem 1rem; align-items: flex-start; }
  .hero-title { font-size: 1.2rem; margin-bottom: .5rem; }
  .hero-eyebrow { font-size: .62rem; padding: .2rem .7rem; margin-bottom: .6rem; }
  .hero-subtitle { font-size: .8rem; margin-bottom: .85rem; line-height: 1.55; }
  .hero-actions .btn-gold { font-size: .8rem !important; padding: .4rem 1rem !important; letter-spacing: 0 !important; }
  /* Hide arrows on mobile — users swipe */
  .hero-carousel .carousel-control-prev,
  .hero-carousel .carousel-control-next { display: none !important; }

  /* Stats — single small row, edge to edge */
  .stats-section > .container { padding-inline: 0; padding-left: 0 !important; padding-right: 0 !important; }
  .stats-inner {
    flex-direction: row;
    flex-wrap: nowrap;
    border-radius: 0;
    border-inline: none;
    margin-top: -1.25rem;
  }
  .stat-card {
    flex: 1 1 0;
    min-width: 0;
    padding: .8rem .2rem;
    border-inline-end: 1px solid var(--border) !important;
  }
  .stat-card:last-child { border-inline-end: none !important; }
  .stat-icon { width: 30px; height: 30px; font-size: .72rem; margin-bottom: .35rem; border-radius: 7px; }
  .stat-number { font-size: 1.02rem; }
  .stat-label { font-size: .58rem; line-height: 1.25; margin-top: .25rem; }

  /* General spacing */
  .section-pad { padding: 2.25rem 0; }
  .page-header { padding: 2rem 0; }
  .navbar-brand-img { height: 60px; }
}

/* ── RTL ── */
[dir="rtl"] .footer-link:hover { padding-inline-start: 0; padding-inline-end: 6px; }
[dir="rtl"] .carousel-control-prev { right: 0; left: auto; }
[dir="rtl"] .carousel-control-next { left: 0; right: auto; }

/* ── Anchor offset for sticky navbar ── */
[id] { scroll-margin-top: 130px; }

/* ── Utilities ── */
.text-gold           { color: var(--secondary) !important; }
.bg-primary-brand    { background: var(--primary) !important; }
.border-gold         { border-color: var(--secondary) !important; }
.fw-700              { font-weight: 700; }

/* ── Department Card Link ── */
.card-brand-link {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}
.card-brand-link:hover .card-brand {
  border-color: var(--secondary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* ── Department Detail Page ── */
.dept-detail-cover {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.dept-detail-cover img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
}
.dept-detail-desc {
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--text-dark);
  margin-bottom: 2rem;
}
.dept-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}
.dept-detail-badge {
  display: flex;
  align-items: center;
  gap: .75rem;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .85rem 1.2rem;
  flex: 1 1 180px;
}
.dept-detail-badge > i {
  color: var(--secondary);
  font-size: 1.3rem;
  flex-shrink: 0;
}
.dept-detail-badge-label {
  font-size: .78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: .1rem;
}
.dept-detail-badge-value {
  font-weight: 700;
  color: var(--primary);
  font-size: .95rem;
}
.dept-detail-back {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: var(--primary);
  font-weight: 600;
  font-size: .9rem;
  text-decoration: none;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: .55rem 1.1rem;
  transition: all .2s;
}
.dept-detail-back:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ── Department Photo Gallery ── */
.dept-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}
.dept-gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4 / 3;
  background: var(--bg-light);
}
.dept-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s ease;
}
.dept-gallery-item:hover img { transform: scale(1.04); }
.dept-gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(11, 29, 58, .45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .25s;
  color: #fff;
  font-size: 1.4rem;
}
.dept-gallery-item:hover .dept-gallery-overlay { opacity: 1; }

/* ── Lightbox ── */
.dept-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .92);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.dept-lightbox.open { display: flex; }
.dept-lightbox > img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius);
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
}
.dept-lightbox-close {
  position: fixed;
  top: 1rem;
  right: 1rem;
  background: rgba(255,255,255,.12);
  border: none;
  color: #fff;
  font-size: 1.8rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background .2s;
  z-index: 10000;
}
.dept-lightbox-close:hover { background: rgba(255,255,255,.22); }
.dept-lightbox-prev,
.dept-lightbox-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.12);
  border: none;
  color: #fff;
  font-size: 1.2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
  z-index: 10000;
}
.dept-lightbox-prev:hover,
.dept-lightbox-next:hover { background: rgba(255,255,255,.22); }
.dept-lightbox-prev { left: 1rem; }
.dept-lightbox-next { right: 1rem; }

/* ── Staff Cards ── */
.staff-card { transition: transform .2s, box-shadow .2s; }
.staff-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.staff-avatar-wrap { margin-bottom: 1rem; }
.staff-avatar {
  width: 90px; height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--border);
  margin: 0 auto;
  display: block;
  transition: border-color .2s;
}
.staff-card:hover .staff-avatar { border-color: var(--secondary); }
.staff-initials {
  width: 90px; height: 90px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  border: 3px solid var(--secondary);
  margin: 0 auto;
  letter-spacing: .05em;
}
.staff-info { margin-top: .25rem; }
.staff-name { font-size: 1rem; font-weight: 700; color: var(--primary); margin-bottom: .2rem; display: block; text-decoration: none; }
.staff-name:hover { color: var(--secondary); }
.staff-title { font-size: .84rem; color: var(--text-muted); line-height: 1.4; }
.staff-dept-badge {
  display: inline-block;
  background: rgba(201, 162, 39, .1);
  color: var(--primary);
  font-size: .76rem;
  font-weight: 600;
  padding: .2rem .65rem;
  border-radius: 50px;
  border: 1px solid rgba(201, 162, 39, .3);
}
.staff-divider { border: none; border-top: 1px solid var(--border); margin: .85rem 0 .75rem; }
.staff-contact-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  flex-wrap: wrap;
}
.staff-contact-btn {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .35rem .7rem;
  border-radius: var(--radius);
  font-size: .8rem;
  font-weight: 600;
  text-decoration: none;
  transition: all .18s;
  border: 1px solid var(--border);
  color: var(--primary);
  background: var(--bg-light);
}
.staff-contact-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.staff-contact-cv { border-color: rgba(201,162,39,.4); background: rgba(201,162,39,.07); }
.staff-contact-cv:hover { background: var(--secondary); color: var(--primary); border-color: var(--secondary); }

/* ── Department Detail Page ── */
.card-brand-link { text-decoration: none; color: inherit; display: block; height: 100%; }
.card-brand-link:hover .card-brand { border-color: var(--secondary); }
.dept-detail-cover { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.dept-detail-cover img { width: 100%; height: 380px; object-fit: cover; display: block; }
.dept-detail-desc { font-size: 1.05rem; line-height: 1.9; color: var(--text-dark); margin-bottom: 2rem; }
.dept-detail-meta { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2rem; }
.dept-detail-badge {
  display: flex; align-items: center; gap: .75rem;
  background: var(--bg-light); border: 1px solid var(--border);
  border-radius: var(--radius); padding: .85rem 1.2rem; flex: 1 1 180px;
}
.dept-detail-badge > i { color: var(--secondary); font-size: 1.3rem; flex-shrink: 0; }
.dept-detail-badge-label { font-size: .78rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: .1rem; }
.dept-detail-badge-value { font-weight: 700; color: var(--primary); font-size: .95rem; }
.dept-detail-back {
  display: inline-flex; align-items: center; gap: .5rem;
  color: var(--primary); font-weight: 600; font-size: .9rem; text-decoration: none;
  border: 2px solid var(--border); border-radius: var(--radius); padding: .55rem 1.1rem; transition: all .2s;
}
.dept-detail-back:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ── Department Photo Gallery ── */
.dept-gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.dept-gallery-item {
  position: relative; border-radius: var(--radius); overflow: hidden;
  cursor: pointer; aspect-ratio: 4 / 3; background: var(--bg-light);
}
.dept-gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.dept-gallery-item:hover img { transform: scale(1.04); }
.dept-gallery-overlay {
  position: absolute; inset: 0; background: rgba(11,29,58,.45);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .25s; color: #fff; font-size: 1.4rem;
}
.dept-gallery-item:hover .dept-gallery-overlay { opacity: 1; }

/* ── Lightbox ── */
.dept-lightbox {
  position: fixed; inset: 0; background: rgba(0,0,0,.92); z-index: 9999;
  display: none; align-items: center; justify-content: center; padding: 2rem;
}
.dept-lightbox.open { display: flex; }
.dept-lightbox > img { max-width: 90vw; max-height: 85vh; border-radius: var(--radius); object-fit: contain; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.dept-lightbox-close {
  position: fixed; top: 1rem; right: 1rem; background: rgba(255,255,255,.12); border: none;
  color: #fff; font-size: 1.8rem; width: 44px; height: 44px; border-radius: 50%;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  line-height: 1; transition: background .2s; z-index: 10000;
}
.dept-lightbox-close:hover { background: rgba(255,255,255,.22); }
.dept-lightbox-prev,
.dept-lightbox-next {
  position: fixed; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.12);
  border: none; color: #fff; font-size: 1.2rem; width: 48px; height: 48px; border-radius: 50%;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .2s; z-index: 10000;
}
.dept-lightbox-prev:hover, .dept-lightbox-next:hover { background: rgba(255,255,255,.22); }
.dept-lightbox-prev { left: 1rem; }
.dept-lightbox-next { right: 1rem; }
.min-vh-50           { min-height: 50vh; }

/* ── Staff Detail Page ── */
.staff-detail-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2rem;
  box-shadow: var(--shadow); position: sticky; top: 100px;
}
.staff-detail-avatar-wrap { margin: 0 auto 1.25rem; width: 140px; height: 140px; }
.staff-detail-avatar {
  width: 140px; height: 140px; border-radius: 50%;
  object-fit: cover; border: 4px solid var(--secondary);
}
.staff-detail-initials {
  width: 140px; height: 140px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem; font-weight: 700; letter-spacing: .05em;
}
.staff-detail-name { font-size: 1.35rem; font-weight: 700; color: var(--primary); margin-bottom: .3rem; }
.staff-detail-title { font-size: .9rem; color: var(--text-muted); margin-bottom: .5rem; }
.staff-detail-contact-list {
  list-style: none; padding: 0; margin: 1rem 0;
  text-align: start; border-top: 1px solid var(--border); padding-top: 1rem;
}
.staff-detail-contact-list li {
  display: flex; align-items: center; gap: .65rem;
  font-size: .88rem; color: var(--text-dark);
  padding: .45rem 0; border-bottom: 1px solid var(--border);
}
.staff-detail-contact-list li i { color: var(--secondary); width: 16px; flex-shrink: 0; }
.staff-detail-contact-list a { color: inherit; text-decoration: none; word-break: break-all; }
.staff-detail-contact-list a:hover { color: var(--secondary); }
.staff-detail-bio { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow); }
.staff-detail-bio-heading { font-size: 1.2rem; font-weight: 700; color: var(--primary); margin-bottom: 1rem; padding-bottom: .75rem; border-bottom: 2px solid var(--secondary); display: inline-block; }
.staff-detail-bio-text { font-size: 1rem; line-height: 1.9; color: var(--text-dark); }
.staff-detail-info-grid { display: flex; flex-direction: column; gap: 1rem; }
.staff-detail-info-item {
  display: flex; align-items: baseline; gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
}
.staff-detail-info-label { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); flex-shrink: 0; min-width: 90px; }
.staff-detail-info-value { font-size: .95rem; color: var(--text-dark); }
.staff-detail-info-value a { color: var(--primary); text-decoration: none; }
.staff-detail-info-value a:hover { color: var(--secondary); }

/* ── Gallery Albums ── */
.album-card {
  display: block; text-decoration: none; border-radius: var(--radius-lg);
  overflow: hidden; background: var(--bg-white); box-shadow: var(--shadow-sm);
  border: 1px solid var(--border); transition: transform .25s ease, box-shadow .25s ease;
}
.album-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.album-cover { position: relative; height: 200px; overflow: hidden; }
.album-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.album-card:hover .album-cover img { transform: scale(1.05); }
.album-overlay {
  position: absolute; inset: 0; background: rgba(11,29,58,.45);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .25s ease;
}
.album-overlay i { font-size: 2rem; color: #fff; }
.album-card:hover .album-overlay { opacity: 1; }
.album-info { padding: 1rem 1.1rem; }
.album-name { font-size: 1rem; font-weight: 700; color: var(--primary); margin-bottom: .2rem; }
.album-count { font-size: .82rem; color: var(--text-muted); }
.btn-back {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .9rem; font-weight: 600; color: var(--primary);
  text-decoration: none; padding: .5rem 1rem;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg-white); transition: background .2s, border-color .2s;
}
.btn-back:hover { background: var(--bg); border-color: var(--primary); }

.btn-gold-brand { display: inline-flex; align-items: center; background: var(--secondary); color: var(--primary); font-weight: 700; font-size: .9rem; padding: .65rem 1.5rem; border-radius: var(--radius); text-decoration: none; transition: background .2s; border: none; cursor: pointer; }
.btn-gold-brand:hover { background: var(--secondary-dark); color: var(--primary); }

/* ── Portal Cards (Online Education) ── */
.portal-card {
  background: var(--bg-white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2.5rem 2rem;
  text-align: center; box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.portal-card:hover {
  transform: translateY(-5px); box-shadow: var(--shadow-lg);
  border-color: var(--secondary);
}
.portal-icon {
  width: 80px; height: 80px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.25rem; font-size: 2rem; color: var(--secondary);
}
.portal-title { font-size: 1.3rem; font-weight: 700; color: var(--primary); margin-bottom: .6rem; }
.portal-desc  { font-size: .95rem; color: var(--text-muted); margin-bottom: 1.5rem; }
.portal-btn   { display: inline-flex; align-items: center; }

/* ── Logo Download Section ── */
.logo-dl-section {
  background: linear-gradient(160deg, var(--primary-dark) 0%, var(--primary) 100%);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}
.logo-dl-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(240,180,41,.08), transparent 70%);
  pointer-events: none;
}
.logo-dl-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.logo-dl-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,.35);
  border-color: rgba(240,180,41,.35);
}
.logo-dl-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 160px;
  padding: 2rem;
}
.logo-dl-dark {
  background: var(--primary-dark);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.logo-dl-light {
  background: #ffffff;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.logo-dl-pdf-prev {
  background: rgba(240,180,41,.07);
  border-bottom: 1px solid rgba(255,255,255,.07);
  flex-direction: column;
  gap: .5rem;
}
.logo-dl-preview img {
  max-height: 110px;
  max-width: 100%;
  object-fit: contain;
}
.logo-dl-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  gap: 1rem;
}
.logo-dl-label {
  font-size: .85rem;
  font-weight: 600;
  color: rgba(255,255,255,.70);
  letter-spacing: .02em;
}
.logo-dl-btn {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .5rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background .2s, transform .15s;
  background: rgba(255,255,255,.12);
  color: #fff;
  flex-shrink: 0;
}
.logo-dl-btn:hover {
  background: rgba(255,255,255,.22);
  color: #fff;
  transform: scale(1.04);
}
.logo-dl-btn-gold {
  background: var(--secondary);
  color: var(--primary-dark);
}
.logo-dl-btn-gold:hover {
  background: var(--secondary-light);
  color: var(--primary-dark);
}
