/*
Theme Name: Al-Jami3a University Theme
Theme URI: https://example.edu/
Author: Antigravity Academic Design Team
Description: A modern, responsive and modular Arabic (RTL) university theme built from the University of Sadat City Figma design.
Version: 3.0.0
License: GNU General Public License v2 or later
Text Domain: university-theme
*/

/* ==========================================================================
   1. Design Tokens
   ========================================================================== */
:root {
  --color-gold: #C29B3A;
  --color-gold-hover: #A9842B;
  --color-gold-header: #C9A23E;
  --color-teal: #0F4C5C;
  --color-heading: #111111;
  --color-text: #1F1F1F;
  --color-text-muted: #555555;

  --color-bg-page: #F3F3F3;
  --color-bg-panel: #E0E0E0;
  --color-bg-row: #EBEBEB;
  --color-bg-bar: #CFCFCF;
  --color-bg-dark: #2F2F2F;
  --color-bg-dark-footer: #2D2D2D;

  --color-border: #D5D5D5;

  --font-arabic: 'Cairo', 'Tajawal', system-ui, -apple-system, sans-serif;
  --font-latin: 'Inter', system-ui, -apple-system, sans-serif;
  --font-family: var(--font-arabic);

  --container-max: 1180px;
  --container-padding: clamp(1rem, 4vw, 1.5rem);
  --section-gap: clamp(2.5rem, 6vw, 4.5rem);
  --header-height: 68px;

  --radius-sm: 4px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
}

[dir="ltr"] { --font-family: var(--font-latin); }

/* ==========================================================================
   2. Reset & Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 8px); }

body {
  font-family: var(--font-family);
  background-color: var(--color-bg-page);
  color: var(--color-text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: all var(--transition-fast); }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul, ol { list-style: none; }
address { font-style: normal; }

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-padding);
}

.section-title {
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  font-weight: 800;
  color: var(--color-heading);
  text-align: center;
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.4;
}

.section-actions { text-align: center; margin-top: clamp(1.5rem, 3vw, 2.25rem); }

.gold-action-btn {
  display: inline-block;
  background-color: var(--color-gold);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.55rem 2.5rem;
  border-radius: var(--radius-sm);
  text-align: center;
  transition: background-color var(--transition-fast), transform var(--transition-fast);
}
.gold-action-btn:hover { background-color: var(--color-gold-hover); transform: translateY(-2px); }

:focus-visible { outline: 3px solid var(--color-gold); outline-offset: 2px; }

/* ==========================================================================
   3. Header (white brand area + slanted gold bar)
   ========================================================================== */
.site-header-hybrid {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #FFFFFF;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.header-container { display: flex; align-items: stretch; height: var(--header-height); }

.header-brand-white {
  display: flex;
  align-items: center;
  padding-inline: var(--container-padding) 1.5rem;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  background: #FFFFFF;
}
.header-brand-link { display: flex; align-items: center; gap: 0.7rem; }
.header-logo-img { width: 48px; height: 48px; }
.header-brand-text-wrap { display: flex; flex-direction: column; line-height: 1.2; }
.header-brand-ar { font-size: 1.1rem; font-weight: 700; color: #222; }
.header-brand-en { font-size: 0.6rem; font-weight: 600; color: var(--color-gold); letter-spacing: 0.4px; direction: ltr; }

.header-gold-bar {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--color-gold-header);
  padding-inline: 2.75rem 1.25rem;
  margin-inline-start: -28px;
  position: relative;
  z-index: 2;
  /* RTL: brand on the right, so the slanted edge is the bar's right side */
  clip-path: polygon(0 0, 100% 0, calc(100% - 28px) 100%, 0 100%);
}
[dir="ltr"] .header-gold-bar { clip-path: polygon(28px 100%, 0 0, 100% 0, 100% 100%); }

.header-nav { display: none; }
@media (min-width: 1060px) { .header-nav { display: block; } }

.header-nav-list { display: flex; align-items: center; gap: 0.2rem; }
.header-nav-link {
  display: inline-block;
  padding: 0.4rem 0.6rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: #111;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}
.header-nav-link:hover, .header-nav-link.active { background: rgba(0, 0, 0, 0.12); }

.header-left-actions { display: flex; align-items: center; gap: 0.5rem; margin-inline-start: auto; }
.header-lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #111;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.35rem 0.6rem;
  border-radius: var(--radius-sm);
}
.header-lang-btn:hover { background: rgba(0, 0, 0, 0.12); }

.header-mobile-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #111;
  font-size: 1.5rem;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
}
@media (min-width: 1060px) { .header-mobile-toggle { display: none; } }

@media (max-width: 480px) {
  .header-brand-text-wrap { display: none; }
  .header-brand-white { padding-inline-end: 1.25rem; }
}

/* ==========================================================================
   4. Hero
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: clamp(380px, 55vw, 580px);
  background: #222;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to left, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.25) 55%, rgba(0, 0, 0, 0) 100%),
    linear-gradient(to top, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0) 55%);
}
[dir="ltr"] .hero-overlay { background: linear-gradient(to right, rgba(0,0,0,.7) 0%, rgba(0,0,0,.25) 55%, rgba(0,0,0,0) 100%), linear-gradient(to top, rgba(0,0,0,.45) 0%, rgba(0,0,0,0) 55%); }

.hero-container-inner { position: relative; z-index: 2; padding-block: clamp(1.5rem, 4vw, 3rem); }
.hero-content { max-width: 560px; color: #FFFFFF; text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5); }
.hero-eyebrow { font-size: clamp(1rem, 2vw, 1.3rem); font-weight: 500; margin-bottom: 0.75rem; opacity: 0.95; }
.hero-title { font-size: clamp(1.15rem, 2.4vw, 1.75rem); font-weight: 600; line-height: 1.6; }

/* ==========================================================================
   5. About
   ========================================================================== */
.about-section { padding-block: var(--section-gap); }
.about-text { max-width: 980px; margin-inline: auto; text-align: center; font-size: clamp(0.95rem, 1.6vw, 1.05rem); line-height: 2; }

/* ==========================================================================
   6. Vision & Mission
   ========================================================================== */
.vision-section { padding-block: 1rem var(--section-gap); }

.vision-card-container {
  background: var(--color-bg-panel);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 3vw, 2rem);
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: center;
}
@media (min-width: 860px) {
  .vision-card-container { grid-template-columns: 1fr 1.25fr; gap: 2.5rem; padding: 2rem 2.5rem 2rem 1.5rem; }
  .vision-text-col { order: 1; }
  .vision-img-col { order: 2; margin-block: -2.5rem; }
}
.vision-header-title { font-size: clamp(1.4rem, 2.4vw, 1.7rem); font-weight: 800; margin-bottom: 0.75rem; }
.vision-sub-title { font-size: 1.05rem; font-weight: 800; margin-bottom: 0.1rem; }
.vision-sub-text { font-size: 0.95rem; line-height: 1.9; margin-bottom: 0.75rem; }
.vision-actions { margin-top: 1.25rem; text-align: center; }
.vision-campus-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* ==========================================================================
   7. Sectors
   ========================================================================== */
.sectors-section { padding-block: var(--section-gap) 2rem; }

.sectors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 940px;
  margin-inline: auto;
}
@media (max-width: 760px) { .sectors-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .sectors-grid { grid-template-columns: 1fr; } }

.sector-outline-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  padding: 0.5rem 1rem;
  background: transparent;
  color: var(--color-teal);
  border: 1.5px solid var(--color-border);
  border-radius: 20px;
  font-size: clamp(0.95rem, 1.6vw, 1.15rem);
  font-weight: 700;
  text-align: center;
}
.sector-outline-pill:hover {
  background: var(--color-teal);
  color: #FFFFFF;
  border-color: var(--color-teal);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(15, 76, 92, 0.2);
}

/* ==========================================================================
   8. Colleges
   ========================================================================== */
.colleges-section { padding-block: var(--section-gap); }

.colleges-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 1000px;
  margin-inline: auto;
  align-items: start;
}
@media (min-width: 860px) {
  .colleges-layout { grid-template-columns: 1fr 0.85fr; gap: 2.5rem; }
  .colleges-media { order: -1; position: sticky; top: calc(var(--header-height) + 1rem); }
}

.colleges-list { display: flex; flex-direction: column; gap: 6px; }
.college-row {
  display: flex;
  align-items: stretch;
  background: var(--color-bg-row);
  border-inline-start: 24px solid var(--college-color, #999);
  border-radius: 2px;
  transition: transform var(--transition-fast), background var(--transition-fast);
}
.college-row a { flex: 1; padding: 0.85rem 1rem; font-size: clamp(0.95rem, 1.5vw, 1.1rem); font-weight: 700; text-align: start; }
.college-row:hover { background: #FFFFFF; transform: translateX(-4px); }
[dir="ltr"] .college-row:hover { transform: translateX(4px); }

.colleges-side-img {
  width: 100%;
  aspect-ratio: 1 / 0.9;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

/* ==========================================================================
   9. Research
   ========================================================================== */
.research-section { padding-block: var(--section-gap); }

.research-cards-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  max-width: 980px;
  margin-inline: auto;
}
.research-block-card { display: flex; flex-direction: column; align-items: center; transition: transform var(--transition-normal); }
.research-block-card:hover { transform: translateY(-4px); }
.research-photo-img {
  position: relative;
  z-index: 1;
  width: 50%;
  aspect-ratio: 1;
  object-fit: cover;
}
.research-dark-box {
  width: 100%;
  margin-top: -2.5rem;
  padding: 3.5rem 1rem 1.25rem;
  background: var(--color-bg-dark);
  color: #FFFFFF;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 700;
  min-height: 130px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

/* ==========================================================================
   10. News
   ========================================================================== */
.news-section { padding-block: var(--section-gap) 2rem; }

.news-cards-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.5rem;
  max-width: 1040px;
  margin-inline: auto;
}
.news-card-mock {
  background: #FFFFFF;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.news-card-mock:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14); }

.news-img-wrap { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.news-img-el { width: 100%; height: 100%; object-fit: cover; }
.news-date-badge {
  position: absolute;
  top: 1rem;
  inset-inline-start: 50%;
  transform: translateX(50%);
  background: rgba(30, 30, 30, 0.85);
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.8rem;
  border-radius: 6px;
  white-space: nowrap;
}
[dir="ltr"] .news-date-badge { transform: translateX(-50%); }

.news-info-wrap { padding: 1rem 1.15rem 0.9rem; display: flex; flex-direction: column; flex: 1; justify-content: space-between; gap: 0.75rem; }
.news-title-text { font-size: 0.95rem; font-weight: 700; line-height: 1.7; color: #111; }
.news-link-blue { color: #111; text-decoration: underline; }
.news-link-blue:hover { color: var(--color-gold); }
.news-meta { border-top: 1px solid var(--color-border); padding-top: 0.6rem; font-size: 0.65rem; letter-spacing: 0.5px; color: #777; direction: ltr; text-align: start; }

/* ==========================================================================
   11. Events
   ========================================================================== */
.events-section { padding-block: var(--section-gap) 2rem; }

.events-list-box { max-width: 880px; margin-inline: auto; display: flex; flex-direction: column; gap: 0.9rem; }
.event-row { display: flex; align-items: stretch; gap: 0.5rem; }
.event-date-white-box {
  order: 1;
  flex: 0 0 clamp(95px, 18vw, 150px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  color: var(--color-gold);
  font-size: clamp(1.05rem, 2vw, 1.5rem);
  font-weight: 700;
  padding: 0.6rem;
}
.event-title-bold {
  order: 0;
  flex: 1;
  display: flex;
  align-items: center;
  background: var(--color-bg-bar);
  padding: 1rem 1.5rem;
  font-size: clamp(1.05rem, 2vw, 1.5rem);
  font-weight: 700;
  color: #111;
}
/* date sits on the left in RTL (Figma), title on the right */
[dir="rtl"] .event-date-white-box { order: 1; }

/* ==========================================================================
   12. Success Stories
   ========================================================================== */
.stories-section { padding-block: var(--section-gap) 2rem; }

.stories-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem 1.5rem;
  max-width: 1040px;
  margin-inline: auto;
  padding-top: 3rem;
}
.story-card {
  position: relative;
  background: transparent;
  border: 1px solid var(--color-border);
  padding: 4rem 1.25rem 1.5rem;
  text-align: center;
  margin-inline: auto;
  width: 100%;
  max-width: 330px;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}
.story-card:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1); background: #FFFFFF; }
.story-avatar {
  position: absolute;
  top: -3.1rem;
  inset-inline-start: 50%;
  transform: translateX(50%);
  width: 6.25rem;
  height: 6.25rem;
  border-radius: 50%;
  object-fit: cover;
  background: #DDD;
  border: 3px solid var(--color-bg-page);
}
[dir="ltr"] .story-avatar { transform: translateX(-50%); }
.story-name { font-size: 1.2rem; font-weight: 800; line-height: 1.3; }
.story-role { font-size: 0.8rem; font-weight: 700; margin-bottom: 1rem; }
.story-text { font-size: 0.78rem; line-height: 1.9; color: var(--color-text-muted); }

/* ==========================================================================
   13. Quick Links
   ========================================================================== */
.quicklinks-section { padding-block: var(--section-gap); }

.quicklinks-5-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.6rem;
  max-width: 1040px;
  margin-inline: auto;
}
@media (max-width: 960px) { .quicklinks-5-row { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .quicklinks-5-row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 380px) { .quicklinks-5-row { grid-template-columns: 1fr; } }

.quicklink-box-clean {
  background: #F7F7F7;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.14);
  padding: 1rem 0.9rem;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: start;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.quicklink-box-clean:hover { transform: translateY(-3px); box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18); }
.quicklink-text-title { align-self: stretch; font-size: 1rem; font-weight: 700; line-height: 1.6; color: #111; }
.quicklink-circle-gold {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-gold);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast), transform var(--transition-fast);
}
[dir="ltr"] .quicklink-circle-gold svg { transform: scaleX(-1); }
.quicklink-box-clean:hover .quicklink-circle-gold { background: var(--color-gold-hover); transform: scale(1.08); }

/* ==========================================================================
   14. Footer
   ========================================================================== */
.site-footer-dark { background: var(--color-bg-dark-footer); color: #FFFFFF; padding: 3rem 0 1.25rem; }

.footer-3-cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  justify-items: center;
  text-align: center;
  margin-bottom: 2rem;
}
@media (min-width: 768px) {
  .footer-3-cols { grid-template-columns: 1fr 1.3fr 1.4fr; justify-items: stretch; text-align: start; }
  .footer-brand-col { justify-self: start; }
}

.footer-seal-img { width: 110px; height: 110px; }

.footer-links { display: grid; grid-template-columns: repeat(2, auto); gap: 1.1rem 3rem; justify-content: center; }
.footer-links a { font-size: 0.85rem; text-decoration: underline; color: #EDEDED; }
.footer-links a:hover { color: var(--color-gold); }

.footer-contact-col { display: flex; align-items: center; gap: 0.75rem; font-size: 0.95rem; line-height: 1.9; color: #EDEDED; justify-content: center; }
@media (min-width: 768px) { .footer-contact-col { justify-content: flex-start; } }
.footer-contact-col svg { flex-shrink: 0; }

.footer-copyright-bar { border-top: 1px solid rgba(255, 255, 255, 0.12); padding-top: 1rem; text-align: center; font-size: 0.8rem; color: #999; }

/* ==========================================================================
   15. Mobile Drawer
   ========================================================================== */
.mobile-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  inset-inline-start: auto;
  right: 0;
  width: min(300px, 85vw);
  background: #FFFFFF;
  z-index: 2000;
  transform: translateX(100%);
  transition: transform var(--transition-normal);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
}
[dir="ltr"] .mobile-drawer { right: auto; left: 0; transform: translateX(-100%); box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15); }
.mobile-drawer.active { transform: translateX(0); }

.drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--color-border); }
.drawer-brand { display: flex; align-items: center; gap: 0.5rem; font-weight: 800; font-size: 1.05rem; }
.drawer-close { font-size: 1.4rem; color: #666; width: 40px; height: 40px; }
.drawer-nav { display: flex; flex-direction: column; gap: 0.25rem; }
.drawer-link { padding: 0.7rem 0.75rem; font-weight: 700; border-radius: var(--radius-sm); color: #111; }
.drawer-link:hover { background: var(--color-bg-page); color: var(--color-gold-hover); }

.drawer-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.5); z-index: 1990; opacity: 0; visibility: hidden; transition: all var(--transition-normal); }
.drawer-overlay.active { opacity: 1; visibility: visible; }

/* ==========================================================================
   16. Optional parts (not on the Figma front page, kept for reuse)
   ========================================================================== */
.leadership-section, .stats-section { padding-block: var(--section-gap); }
.leadership-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2rem; max-width: 960px; margin-inline: auto; }
.leader-item { display: flex; flex-direction: column; align-items: center; text-align: center; }
.leader-portrait-wrap { width: 175px; height: 190px; overflow: hidden; margin-bottom: -18px; position: relative; z-index: 2; border-radius: var(--radius-md); background: #FFF; box-shadow: 0 6px 16px rgba(0,0,0,.12); }
.leader-portrait-img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.leader-gold-card { background: var(--color-gold); color: #FFF; border-radius: var(--radius-md); padding: 1.45rem 1.25rem 1.15rem; width: 100%; }
.leader-name-text { font-size: 1.15rem; font-weight: 800; margin-bottom: .35rem; }
.leader-role-text { font-size: .9rem; font-weight: 600; line-height: 1.4; }
.stats-items-row { display: flex; align-items: center; justify-content: center; gap: 2.5rem; flex-wrap: wrap; max-width: 980px; margin-inline: auto; }
.stat-single-item { display: flex; align-items: center; gap: .85rem; }
.stat-icon-gold { color: var(--color-gold); }
.stat-values { display: flex; flex-direction: column; }
.stat-number-bold { font-size: 2.1rem; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat-label-text { font-size: .95rem; font-weight: 700; color: #444; }

/* ==========================================================================
   17. Faculty / College Single Template & Directory Styles
   ========================================================================== */
.faculty-page-wrapper {
  background-color: var(--color-bg-page);
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

/* Faculty Hero Banner */
.faculty-hero-banner {
  position: relative;
  min-height: clamp(260px, 35vw, 360px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}
.faculty-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.faculty-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.faculty-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(15, 23, 42, 0.95) 0%,
    rgba(15, 23, 42, 0.75) 50%,
    rgba(15, 23, 42, 0.4) 100%
  );
}
.faculty-hero-container {
  position: relative;
  z-index: 2;
  color: #FFFFFF;
  padding-block: clamp(1.5rem, 3vw, 2.5rem);
}
.faculty-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.85rem;
  opacity: 0.85;
}
.faculty-breadcrumbs a:hover {
  color: var(--color-gold);
  text-decoration: underline;
}
.breadcrumb-sep {
  opacity: 0.5;
}
.breadcrumb-current {
  color: var(--color-gold);
}
.faculty-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.badge-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.faculty-hero-title {
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 0.5rem;
}
.faculty-hero-degree {
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  color: #E2E8F0;
  opacity: 0.9;
}

/* Faculty Grid Layout */
.faculty-main-container {
  position: relative;
}
.faculty-grid-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}
@media (min-width: 960px) {
  .faculty-grid-layout {
    grid-template-columns: 1fr 340px;
    gap: 2.5rem;
  }
}

/* Faculty Cards */
.faculty-card {
  background: #FFFFFF;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--color-border);
  padding: clamp(1.25rem, 2.5vw, 2rem);
  margin-bottom: 1.75rem;
}
.faculty-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--color-border);
}
.faculty-stripe {
  width: 6px;
  height: 24px;
  border-radius: 3px;
  flex-shrink: 0;
}
.faculty-section-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-heading);
}

/* Dean Section */
.faculty-dean-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: center;
}
@media (min-width: 680px) {
  .faculty-dean-layout {
    grid-template-columns: 200px 1fr;
    gap: 2rem;
  }
}
.faculty-dean-portrait {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.dean-avatar-wrap {
  width: 140px;
  height: 155px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  margin-bottom: -15px;
  position: relative;
  z-index: 2;
  background: #FFF;
}
.dean-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.dean-card-pill {
  width: 100%;
  border-radius: var(--radius-sm);
  color: #FFFFFF;
  padding: 1.1rem 0.75rem 0.75rem;
  position: relative;
  z-index: 1;
}
.dean-name {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 0.2rem;
}
.dean-role {
  font-size: 0.75rem;
  font-weight: 600;
  opacity: 0.95;
}
.faculty-dean-quote {
  position: relative;
  padding-inline-start: 1rem;
}
.quote-mark {
  font-size: 3.5rem;
  font-family: Georgia, serif;
  line-height: 1;
  color: var(--color-gold);
  opacity: 0.4;
  margin-bottom: -0.5rem;
}
.dean-quote-text {
  font-size: 1rem;
  line-height: 1.9;
  color: #333333;
}

/* Academic Departments Grid */
.departments-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}
@media (min-width: 640px) {
  .departments-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.department-pill-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: var(--color-bg-row);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  transition: transform var(--transition-fast), background var(--transition-fast);
}
.department-pill-card:hover {
  background: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
.dept-number {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  flex-shrink: 0;
}
.dept-info {
  display: flex;
  flex-direction: column;
}
.dept-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: #111111;
  line-height: 1.4;
}
.dept-sub {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

/* Programs 3-Columns */
.programs-3-cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 680px) {
  .programs-3-cols {
    grid-template-columns: repeat(3, 1fr);
  }
}
.program-box {
  background: var(--color-bg-page);
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  padding: 1.25rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.program-icon {
  margin-bottom: 0.65rem;
}
.program-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: #111111;
  margin-bottom: 0.5rem;
}
.program-desc {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--color-text-muted);
}

/* Faculty Sidebar Cards */
.faculty-sidebar-card {
  background: #FFFFFF;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  padding: 1.25rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  margin-bottom: 1.5rem;
}
.sidebar-widget-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #111111;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-gold);
}
.faculty-contact-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.faculty-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.88rem;
  line-height: 1.6;
  color: #333;
}
.faculty-contact-list svg {
  color: var(--color-gold);
  flex-shrink: 0;
  margin-top: 2px;
}

/* Other Colleges List (Sidebar) */
.faculty-other-colleges-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 380px;
  overflow-y: auto;
  padding-inline-end: 4px;
}
.other-college-item a {
  display: flex;
  align-items: stretch;
  background: var(--color-bg-row);
  border-radius: 2px;
  overflow: hidden;
  font-size: 0.88rem;
  font-weight: 700;
  transition: all var(--transition-fast);
}
.other-college-stripe {
  width: 14px;
  background: var(--college-accent, #999);
  flex-shrink: 0;
}
.other-college-name {
  padding: 0.6rem 0.8rem;
  flex: 1;
}
.other-college-item a:hover {
  background: #FFFFFF;
  transform: translateX(-3px);
  color: var(--color-gold-hover);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
[dir="ltr"] .other-college-item a:hover {
  transform: translateX(3px);
}

/* Sidebar Portal Buttons */
.sidebar-portal-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.sidebar-portal-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--color-bg-page);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: #222;
  transition: all var(--transition-fast);
}
.sidebar-portal-link:hover {
  background: var(--color-gold);
  color: #FFFFFF;
  border-color: var(--color-gold);
  transform: translateY(-2px);
}
.portal-arrow {
  font-size: 1.1rem;
}

/* ==========================================================================
   18. Colleges Archive & Directory Layout
   ========================================================================== */
.colleges-archive-header {
  background: #FFFFFF;
  border-bottom: 1px solid var(--color-border);
  padding-block: clamp(2rem, 4vw, 3.25rem);
  text-align: center;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}
.colleges-archive-header .faculty-breadcrumbs {
  justify-content: center;
  margin-bottom: 1rem;
}
.colleges-archive-title {
  font-size: clamp(1.6rem, 3.5vw, 2.35rem);
  font-weight: 800;
  color: var(--color-heading);
  margin-bottom: 0.75rem;
}
.colleges-archive-subtitle {
  max-width: 720px;
  margin-inline: auto;
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  color: var(--color-text-muted);
  line-height: 1.8;
}

.colleges-archive-body {
  padding-bottom: clamp(3rem, 6vw, 5rem);
}
.colleges-interactive-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}
@media (min-width: 860px) {
  .colleges-interactive-layout {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 2.5rem;
  }
}

.colleges-interactive-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.colleges-interactive-item {
  background: var(--color-bg-row);
  border-radius: 4px;
  overflow: hidden;
  transition: transform var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast);
}
.colleges-interactive-item.active,
.colleges-interactive-item:hover {
  background: #FFFFFF;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transform: translateX(-4px);
}
[dir="ltr"] .colleges-interactive-item.active,
[dir="ltr"] .colleges-interactive-item:hover {
  transform: translateX(4px);
}
.college-item-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1rem 0.85rem 0.5rem;
}
.college-color-bar {
  width: 22px;
  height: 48px;
  background: var(--college-accent, #999);
  border-radius: 2px;
  flex-shrink: 0;
}
.college-info-block {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.college-name-text {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  font-weight: 800;
  color: #111111;
  line-height: 1.4;
}
.college-degree-text {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  font-weight: 500;
}
.college-arrow-icon {
  font-size: 1.25rem;
  color: var(--color-gold);
  padding-inline-end: 0.5rem;
}

/* Sticky Preview Column */
.colleges-preview-column {
  position: relative;
}
@media (min-width: 860px) {
  .colleges-preview-sticky {
    position: sticky;
    top: calc(var(--header-height) + 1.5rem);
  }
}
.colleges-preview-frame {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  border: 1px solid var(--color-border);
}
.college-dynamic-img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  transition: opacity 0.25s ease;
}
.college-preview-caption {
  padding: 1.25rem;
  background: #FFFFFF;
}
.college-preview-caption h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: #111111;
  margin-bottom: 0.25rem;
}
.college-preview-caption p {
  font-size: 0.88rem;
  color: var(--color-text-muted);
}

/* Motion preferences */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

