:root {
  --sand: #f3e9da;
  --stone: #e2d3c0;
  --dune: #c7b099;
  --charcoal: #1d1b18;
  --ink: #202529;
  --sky: #b5d7f0;
  --sea: #2d6f73;
  --palm: #3f6f4c;
  --sun: #f6b25d;
  --glass: rgba(255, 255, 255, 0.72);
  --shadow: 0 20px 50px rgba(32, 37, 41, 0.15);
  --radius-lg: 32px;
  --radius-md: 20px;
  --radius-sm: 12px;
}

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

body {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top, #ffffff 0%, var(--sand) 45%, var(--stone) 100%);
  line-height: 1.6;
  overflow-x: hidden;
}

body.rtl {
  font-family: "Cairo", "Segoe UI", sans-serif;
  direction: rtl;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
  border-radius: var(--radius-md);
}

img[data-lightbox] {
  cursor: zoom-in;
}

main {
  position: relative;
  padding: 2rem 0 6rem;
}

main::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 15% 20%, rgba(246, 178, 93, 0.18), transparent 45%),
    radial-gradient(circle at 80% 10%, rgba(181, 215, 240, 0.2), transparent 40%),
    linear-gradient(120deg, rgba(255, 255, 255, 0.4), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.hero {
  position: relative;
  min-height: 90vh;
  color: #fefcf7;
  padding: 3.5rem 6vw 5rem;
  display: flex;
  align-items: flex-end;
  background-image: linear-gradient(120deg, rgba(12, 24, 36, 0.85) 0%, rgba(30, 56, 71, 0.55) 55%, rgba(54, 83, 80, 0.35) 100%),
    url("media/image4.jpg");
  background-size: cover;
  background-position: center;
  border-bottom-left-radius: 48px;
  border-bottom-right-radius: 48px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 20%, rgba(246, 178, 93, 0.35), transparent 50%),
    radial-gradient(circle at 80% 10%, rgba(181, 215, 240, 0.35), transparent 45%);
  mix-blend-mode: screen;
  pointer-events: none;
}

.site-nav {
  position: absolute;
  top: 1.5rem;
  left: 6vw;
  right: 6vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1.5rem;
  background: rgba(22, 32, 40, 0.55);
  backdrop-filter: blur(10px);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.brand {
  font-family: "Fraunces", serif;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.95rem;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.nav-links a {
  opacity: 0.85;
  transition: opacity 0.3s ease;
}

.nav-links a:hover {
  opacity: 1;
}

.nav-menu {
  display: none;
  position: relative;
}

.nav-menu summary {
  list-style: none;
  cursor: pointer;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 600;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-menu summary::-webkit-details-marker {
  display: none;
}

.nav-links--mobile {
  display: grid;
  gap: 0.6rem;
  margin-top: 0.7rem;
  background: rgba(18, 26, 33, 0.85);
  border-radius: 16px;
  padding: 0.8rem 1rem;
}

.lang-switch {
  display: inline-flex;
  gap: 0.4rem;
  padding: 0.25rem;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.lang-btn {
  background: transparent;
  border: none;
  color: #fefcf7;
  font-weight: 600;
  font-size: 0.75rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  cursor: pointer;
  letter-spacing: 0.08em;
}

.lang-btn.is-active {
  background: #fefcf7;
  color: #162028;
}

.hero-content {
  position: relative;
  max-width: 650px;
  z-index: 1;
  animation: rise 1.1s ease-out both;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
}

h1 {
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: clamp(2.6rem, 4vw, 4.2rem);
  line-height: 1.1;
  margin: 1rem 0;
}

.sub {
  display: block;
  font-size: clamp(1.1rem, 2vw, 1.6rem);
  font-weight: 400;
  opacity: 0.85;
}

.lead {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.86);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  background: var(--sun);
  color: var(--charcoal);
  font-weight: 600;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 12px 25px rgba(246, 178, 93, 0.35);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.ghost {
  background: transparent;
  color: #fefcf7;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: none;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  background: rgba(15, 22, 27, 0.55);
  padding: 1.2rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.partner-strip {
  margin-top: 2rem;
  padding: 1.2rem 1.4rem;
  background: rgba(12, 18, 24, 0.65);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  gap: 1rem;
}

.partner-label {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.7rem;
  opacity: 0.7;
}

.partner-logos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.2rem;
}

.partner {
  display: grid;
  gap: 0.6rem;
  align-items: center;
  font-size: 0.85rem;
  font-weight: 500;
}

.partner-logo {
  height: 38px;
  width: auto;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.3));
}

.flag {
  height: 32px;
  width: auto;
  border-radius: 4px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.stat-number {
  font-size: 1.6rem;
  font-weight: 600;
}

.stat-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  opacity: 0.7;
}

.section {
  position: relative;
  padding: 5.5rem 6vw;
  max-width: 1200px;
  margin: 0 auto;
  z-index: 1;
}

.section--panel {
  background: rgba(255, 255, 255, 0.76);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 4.5rem clamp(2rem, 5vw, 4.5rem);
  margin-top: 3rem;
}

.section--band {
  background: linear-gradient(120deg, rgba(255, 248, 237, 0.85), rgba(246, 224, 198, 0.7));
  border-radius: var(--radius-lg);
  padding: 3.5rem clamp(2rem, 5vw, 4.5rem);
  margin-top: 3rem;
  box-shadow: 0 18px 50px rgba(192, 156, 118, 0.2);
}

.section-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: end;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-family: "Fraunces", serif;
  font-size: clamp(2rem, 3vw, 2.8rem);
  color: var(--charcoal);
}

.section-copy {
  font-size: 1.05rem;
  color: rgba(32, 37, 41, 0.75);
}

.overview-grid,
.clinical-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.overview-card,
.clinical-card {
  background: var(--glass);
  padding: 2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  min-height: 210px;
}

.overview-card h3,
.clinical-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
}

.stats-strip {
  padding-top: 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.stat-card {
  background: #fff8ed;
  border-radius: var(--radius-sm);
  padding: 1.8rem 1.6rem;
  box-shadow: 0 16px 40px rgba(196, 162, 124, 0.2);
  border: 1px solid rgba(199, 176, 153, 0.35);
}

.stat-card span {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.campus-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 2rem;
  align-items: center;
}

.campus-details ul {
  list-style: none;
  margin: 1.5rem 0;
  display: grid;
  gap: 0.8rem;
}

.campus-details li {
  padding-left: 1.2rem;
  position: relative;
}

.campus-details li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--sea);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.4rem;
}

.gallery-grid figure {
  background: #fff;
  padding: 0.8rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.gallery-grid figure:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(32, 37, 41, 0.2);
}

.gallery-grid figcaption {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  color: rgba(32, 37, 41, 0.7);
}

.press-block {
  margin-top: 3rem;
  display: grid;
  gap: 1.5rem;
}

.press-header h3 {
  font-size: 1.4rem;
  margin-bottom: 0.4rem;
}

.press-header p {
  color: rgba(32, 37, 41, 0.7);
}

.press-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.2rem;
}

.press-grid figure {
  background: #fff;
  padding: 0.7rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.press-grid figure:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(32, 37, 41, 0.2);
}

.press-grid figcaption {
  margin-top: 0.5rem;
  font-size: 0.82rem;
  color: rgba(32, 37, 41, 0.65);
}

body.rtl .hero-content,
body.rtl .section,
body.rtl .footer {
  text-align: right;
}

body.rtl .site-nav {
  flex-direction: row-reverse;
}

body.rtl .nav-links {
  flex-direction: row-reverse;
}

body.rtl .hero-actions {
  justify-content: flex-end;
}

body.rtl .campus-details li {
  padding-left: 0;
  padding-right: 1.2rem;
}

body.rtl .campus-details li::before {
  left: auto;
  right: 0;
}

body.rtl .partner {
  text-align: right;
}

body.rtl .press-header {
  text-align: right;
}

body.rtl .lightbox-close {
  right: auto;
  left: 1.5rem;
}

.footer {
  padding: 4rem 6vw 5rem;
  background: linear-gradient(135deg, #1a2e33 0%, #25474e 100%);
  color: #f5f0e8;
  border-top-left-radius: 48px;
  border-top-right-radius: 48px;
  margin-top: 4rem;
}

.footer h3 {
  font-family: "Fraunces", serif;
  font-size: 1.5rem;
  margin-bottom: 0.7rem;
}

.source-links {
  display: flex;
  gap: 1.5rem;
  margin-top: 1.2rem;
  flex-wrap: wrap;
}

.source-links a {
  color: #f6d8a4;
  font-weight: 500;
}

.footer-note {
  margin-top: 2rem;
  opacity: 0.7;
}

.footer-sub {
  margin-top: 1rem;
  opacity: 0.8;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 14, 18, 0.92);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 999;
  padding: 2rem;
}

.lightbox.is-active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-image {
  max-width: min(92vw, 1100px);
  max-height: 70vh;
  border-radius: var(--radius-md);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}

.lightbox-caption {
  color: #f5f0e8;
  font-size: 0.95rem;
  text-align: center;
  max-width: 70ch;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.reveal {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1100px) {
  .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-header {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .site-nav {
    display: grid;
    gap: 0.7rem;
    justify-items: center;
    text-align: center;
  }

  .nav-links--desktop {
    display: none;
  }

  .nav-menu {
    display: block;
  }

  .campus-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .hero {
    padding: 6.5rem 6vw 3.5rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .lang-switch {
    flex-wrap: wrap;
  }

  .hero-stats {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {
  .hero-stats {
    grid-template-columns: 1fr;
  }

  .site-nav {
    left: 4vw;
    right: 4vw;
  }

  .section--panel,
  .section--band {
    padding: 3rem 1.6rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
