/* ===================================================
   NORAN INTERNATIONAL SCHOOLS — style.css
   =================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

/* ─── Design Tokens ─────────────────────────────── */
:root {
  --navy: #1a2b6e;
  --navy-dark: #111e52;
  --navy-light: #2a3f9e;
  --gold: #c09946;
  --gold-light: #ffc72c;
  --white: #ffffff;
  --light-bg: #f4f6fb;
  --text-dark: #1a1f36;
  --text-mid: #4a5568;
  --text-light: #718096;
  --border: #e2e8f0;

  /* Rainbow accent palette from logo */
  --r1: #e63946;
  /* red */
  --r2: #f4a261;
  /* orange */
  --r3: #f9c74f;
  /* yellow */
  --r4: #43aa8b;
  /* green */
  --r5: #14b8d4;
  /* teal */
  --r6: #4361ee;
  /* blue */
  --r7: #7b2d8b;
  /* violet */

  --shadow-sm: 0 2px 8px rgba(26, 43, 110, .08);
  --shadow-md: 0 8px 30px rgba(26, 43, 110, .14);
  --shadow-lg: 0 20px 60px rgba(26, 43, 110, .20);
  --radius: 16px;
  --radius-sm: 10px;
  --transition: .35s cubic-bezier(.4, 0, .2, 1);
}

/* ─── Reset & Base ──────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  background: var(--white);
  overflow-x: hidden;
  line-height: 1.65;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

/* ─── Utility ───────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-tag {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(240, 165, 0, .12);
  padding: 6px 14px;
  border-radius: 50px;
  margin-bottom: 12px;
}

.section-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
}

.section-sub {
  color: var(--text-mid);
  font-size: 1.05rem;
  max-width: 600px;
  margin-top: 12px;
}

.section-header {
  margin-bottom: 56px;
}

.section-header.center {
  text-align: center;
}

.section-header.center .section-sub {
  margin: 12px auto 0;
}

/* Scroll-in animation base */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .7s var(--transition), transform .7s var(--transition);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Navbar ────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
}

#navbar.scrolled {
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--shadow-sm);
  padding: 10px 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo img {
  height: 52px;
  width: 52px;
  object-fit: contain;
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.nav-logo-text span:first-child {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: .92rem;
  color: var(--navy);
}

.nav-logo-text span:last-child {
  font-size: .7rem;
  color: var(--text-mid);
}

#navbar:not(.scrolled) .nav-logo-text span:first-child {
  color: var(--white);
}

#navbar:not(.scrolled) .nav-logo-text span:last-child {
  color: rgba(255, 255, 255, .75);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: .875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, .9);
  position: relative;
  padding-bottom: 4px;
  transition: color var(--transition);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold-light);
  transition: width var(--transition);
  border-radius: 2px;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

#navbar.scrolled .nav-links a {
  color: var(--navy);
}

#navbar.scrolled .nav-links a::after {
  background: var(--navy);
}

.nav-cta {
  background: var(--gold);
  color: var(--navy) !important;
  padding: 9px 22px;
  border-radius: 50px;
  font-weight: 700 !important;
  font-size: .85rem !important;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition) !important;
}

.nav-cta::after {
  display: none !important;
}

.nav-cta:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(240, 165, 0, .4);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

#navbar.scrolled .hamburger span {
  background: var(--navy);
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--white);
  padding: 20px 24px 28px;
  box-shadow: var(--shadow-md);
  gap: 4px;
}

.mobile-menu a {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  font-size: .95rem;
  color: var(--navy);
  transition: color var(--transition);
}

.mobile-menu a:hover {
  color: var(--gold);
}

.mobile-menu a:last-child {
  border: none;
}

.mobile-menu.open {
  display: flex;
}

/* ─── Hero ──────────────────────────────────────── */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 40%, var(--navy-light) 70%, #3a5bd4 100%);
}

.hero-bg-anim {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(230, 57, 70, .25) 0%, transparent 45%),
    radial-gradient(circle at 80% 15%, rgba(244, 162, 97, .2) 0%, transparent 40%),
    radial-gradient(circle at 60% 80%, rgba(67, 170, 139, .2) 0%, transparent 45%),
    radial-gradient(circle at 10% 80%, rgba(20, 184, 212, .15) 0%, transparent 40%),
    radial-gradient(circle at 90% 70%, rgba(123, 45, 139, .2) 0%, transparent 40%);
  animation: heroBgShift 12s ease-in-out infinite alternate;
}

@keyframes heroBgShift {
  0% {
    opacity: 1;
    transform: scale(1);
  }

  100% {
    opacity: .7;
    transform: scale(1.08);
  }
}

.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, .15) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: particleMove 20s linear infinite;
}

@keyframes particleMove {
  0% {
    background-position: 0 0;
  }

  100% {
    background-position: 60px 60px;
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 120px 20px 60px;
}

.hero-logo-wrap {
  width: 140px;
  height: 140px;
  background: rgba(255, 255, 255, .12);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  margin: 0 auto 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 255, 255, .25);
  animation: logoPulse 4s ease-in-out infinite;
}

.hero-logo-wrap img {
  width: 110px;
  height: 110px;
  object-fit: contain;
}

@keyframes logoPulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(240, 165, 0, .3);
  }

  50% {
    box-shadow: 0 0 0 20px rgba(240, 165, 0, .0);
  }
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, .12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .2);
  color: var(--gold-light);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 7px 18px;
  border-radius: 50px;
  margin-bottom: 20px;
}

.hero-tag span {
  width: 6px;
  height: 6px;
  background: var(--gold-light);
  border-radius: 50%;
}

.hero-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  letter-spacing: -.02em;
  margin-bottom: 16px;
}

.hero-title .highlight {
  background: linear-gradient(90deg, var(--gold-light), #ffeb84);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-tagline {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, .8);
  font-style: italic;
  margin-bottom: 40px;
  letter-spacing: .04em;
}

.hero-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy);
  padding: 14px 34px;
  border-radius: 50px;
  font-weight: 700;
  font-size: .95rem;
  transition: all var(--transition);
  box-shadow: 0 8px 24px rgba(240, 165, 0, .35);
}

.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(240, 165, 0, .45);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, .5);
  padding: 14px 34px;
  border-radius: 50px;
  font-weight: 600;
  font-size: .95rem;
  transition: all var(--transition);
  backdrop-filter: blur(8px);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, .15);
  border-color: var(--white);
  transform: translateY(-3px);
}

.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, .6);
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  animation: bounce 2.5s infinite;
  z-index: 2;
}

.hero-scroll::after {
  content: '';
  display: block;
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, .6), transparent);
}

@keyframes bounce {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(8px);
  }
}

/* ─── About ─────────────────────────────────────── */
#about {
  padding: 110px 0;
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.about-visual {
  position: relative;
}

.about-img-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-logo-big {
  width: 200px;
  opacity: .9;
}

.about-badge {
  position: absolute;
  bottom: -24px;
  right: -24px;
  background: var(--gold);
  color: var(--navy);
  border-radius: var(--radius);
  padding: 20px 26px;
  box-shadow: var(--shadow-md);
  text-align: center;
  min-width: 140px;
}

.about-badge strong {
  display: block;
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
}

.about-badge span {
  font-size: .8rem;
  font-weight: 600;
  opacity: .8;
}

.about-text .section-sub {
  max-width: 100%;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 40px;
}

.stat-card {
  background: var(--light-bg);
  border-radius: var(--radius-sm);
  padding: 22px 20px;
  border-left: 4px solid var(--navy);
  transition: transform var(--transition), box-shadow var(--transition);
}

.stat-card:nth-child(2) {
  border-color: var(--gold);
}

.stat-card:nth-child(3) {
  border-color: var(--r4);
}

.stat-card:nth-child(4) {
  border-color: var(--r5);
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.stat-num {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
}

.stat-label {
  font-size: .8rem;
  color: var(--text-mid);
  font-weight: 500;
  margin-top: 4px;
}

/* ─── Programs ──────────────────────────────────── */
#programs {
  padding: 110px 0;
  background: var(--light-bg);
}

.programs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.program-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 28px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: default;
}

.program-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--accent, var(--navy));
}

.program-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.program-icon {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
  background: rgba(26, 43, 110, .07);
}

.program-card:nth-child(1) {
  --accent: var(--r1);
}

.program-card:nth-child(2) {
  --accent: var(--r2);
}

.program-card:nth-child(3) {
  --accent: var(--r5);
}

.program-card:nth-child(4) {
  --accent: var(--r4);
}

.program-card:nth-child(5) {
  --accent: var(--r6);
}

.program-card:nth-child(6) {
  --accent: var(--r7);
}

.program-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.program-desc {
  font-size: .88rem;
  color: var(--text-mid);
  line-height: 1.6;
}

.program-subjects {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}

.subject-tag {
  font-size: .72rem;
  font-weight: 600;
  background: var(--light-bg);
  color: var(--text-mid);
  padding: 4px 10px;
  border-radius: 50px;
  border: 1px solid var(--border);
}

/* ─── Facilities ────────────────────────────────── */
#facilities {
  padding: 110px 0;
  background: var(--white);
}

.facilities-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.facility-card {
  text-align: center;
  padding: 36px 20px;
  background: var(--light-bg);
  border-radius: var(--radius);
  transition: all var(--transition);
  border: 2px solid transparent;
}

.facility-card:hover {
  background: var(--white);
  border-color: var(--navy);
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.facility-icon {
  font-size: 2.4rem;
  margin-bottom: 16px;
  display: block;
  transition: transform var(--transition);
}

.facility-card:hover .facility-icon {
  transform: scale(1.15) rotate(-5deg);
}

.facility-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.facility-desc {
  font-size: .83rem;
  color: var(--text-mid);
}

/* ─── Admissions ────────────────────────────────── */
#admissions {
  padding: 110px 0;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, var(--navy-light) 100%);
  position: relative;
  overflow: hidden;
}

#admissions::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 50%, rgba(240, 165, 0, .12), transparent 60%);
}

#admissions .section-tag {
  color: var(--gold-light);
  background: rgba(255, 199, 44, .15);
}

#admissions .section-title {
  color: var(--white);
}

#admissions .section-sub {
  color: rgba(255, 255, 255, .7);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 56px;
}

.step-card {
  background: rgba(255, 255, 255, .08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  position: relative;
  transition: background var(--transition), transform var(--transition);
}

.step-card:hover {
  background: rgba(255, 255, 255, .14);
  transform: translateY(-6px);
}

.step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}

.step-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}

.step-desc {
  font-size: .84rem;
  color: rgba(255, 255, 255, .65);
}

.admissions-cta {
  text-align: center;
}

.admissions-cta p {
  color: rgba(255, 255, 255, .75);
  margin-bottom: 24px;
  font-size: 1.05rem;
}

/* ─── News & Events ─────────────────────────────── */
#news {
  padding: 110px 0;
  background: var(--light-bg);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.news-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.news-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.news-img {
  height: 200px;
  position: relative;
  overflow: hidden;
}

.news-img-bg {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  transition: transform .5s ease;
}

.news-card:hover .news-img-bg {
  transform: scale(1.07);
}

.news-date-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--gold);
  color: var(--navy);
  font-size: .72rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 50px;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.news-body {
  padding: 28px 24px;
}

.news-cat {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--navy);
  margin-bottom: 10px;
}

.news-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
  line-height: 1.4;
}

.news-excerpt {
  font-size: .85rem;
  color: var(--text-mid);
  line-height: 1.6;
}

.news-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--navy);
  margin-top: 16px;
  transition: gap var(--transition);
}

.news-link:hover {
  gap: 10px;
}

.news-link::after {
  content: '→';
}

/* ─── Contact ───────────────────────────────────── */
#contact {
  padding: 110px 0;
  background: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 64px;
  align-items: start;
}

.contact-detail-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 36px;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--light-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  transition: background var(--transition), transform var(--transition);
}

.contact-detail:hover .contact-icon {
  background: var(--navy);
  transform: scale(1.08);
  filter: grayscale(0) hue-rotate(0);
}

.contact-detail-text strong {
  display: block;
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-light);
  margin-bottom: 4px;
}

.contact-detail-text span,
.contact-detail-text a {
  font-size: .95rem;
  color: var(--text-dark);
}

.contact-detail-text a:hover {
  color: var(--navy);
  text-decoration: underline;
}

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 36px;
}

.social-link {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--light-bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all var(--transition);
}

.social-link:hover {
  background: var(--navy);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(26, 43, 110, .25);
}

/* Form */
.contact-form-wrap {
  background: var(--light-bg);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}

.contact-form-wrap h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}

.contact-form-wrap p {
  font-size: .88rem;
  color: var(--text-mid);
  margin-bottom: 28px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form-group label {
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-mid);
  letter-spacing: .05em;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: .9rem;
  color: var(--text-dark);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 4px rgba(26, 43, 110, .1);
}

.form-group textarea {
  resize: vertical;
  min-height: 110px;
}

.btn-submit {
  width: 100%;
  padding: 14px;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: .95rem;
  transition: all var(--transition);
  margin-top: 4px;
}

.btn-submit:hover {
  background: var(--navy-light);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(26, 43, 110, .3);
}

.form-success {
  display: none;
  text-align: center;
  padding: 20px;
  color: var(--r4);
  font-weight: 600;
  font-size: 1rem;
}

/* ─── Footer ────────────────────────────────────── */
#footer {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, .7);
  padding: 72px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 56px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.footer-logo img {
  height: 50px;
  width: 50px;
  object-fit: contain;
  filter: brightness(1.1);
}

.footer-logo-text span {
  display: block;
}

.footer-logo-text .name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: .95rem;
  color: var(--white);
}

.footer-logo-text .tag {
  font-size: .72rem;
  color: var(--gold);
  letter-spacing: .05em;
}

.footer-brand p {
  font-size: .85rem;
  line-height: 1.7;
  max-width: 280px;
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all var(--transition);
}

.footer-social a:hover {
  background: var(--gold);
  color: var(--navy);
  transform: translateY(-3px);
}

.footer-col h4 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: .85rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 20px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul li a {
  font-size: .85rem;
  transition: color var(--transition);
}

.footer-col ul li a:hover {
  color: var(--gold);
}

.footer-contact li {
  display: flex;
  gap: 10px;
  font-size: .84rem;
  align-items: flex-start;
}

.footer-contact li span:first-child {
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .8rem;
}

.footer-bottom a {
  color: var(--gold);
}

/* ─── Rainbow bottom bar ────────────────────────── */
.rainbow-bar {
  height: 5px;
  background: linear-gradient(90deg,
      var(--r1) 0%,
      var(--r2) 17%,
      var(--r3) 33%,
      var(--r4) 50%,
      var(--r5) 67%,
      var(--r6) 83%,
      var(--r7) 100%);
}

/* ─── Lang Toggle ───────────────────────────────── */
.lang-toggle {
  background: transparent;
  color: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 4px;
}

.lang-toggle:hover {
  color: var(--gold);
}

#navbar:not(.scrolled) .lang-toggle {
  color: var(--white);
}

#navbar.scrolled .lang-toggle {
  color: var(--navy);
}

/* ─── RTL Support (Arabic) ───────────────────────── */
[dir="rtl"] {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
}

[dir="rtl"] .about-stats .stat-card {
  border-left: none;
  border-right: 4px solid var(--navy);
}

[dir="rtl"] .about-stats .stat-card:nth-child(2) {
  border-right-color: var(--gold);
}

[dir="rtl"] .about-stats .stat-card:nth-child(3) {
  border-right-color: var(--r4);
}

[dir="rtl"] .about-stats .stat-card:nth-child(4) {
  border-right-color: var(--r5);
}

[dir="rtl"] .stat-card {
  text-align: right;
}

[dir="rtl"] .hero-title,
[dir="rtl"] .hero-tagline,
[dir="rtl"] .hero-btns,
[dir="rtl"] .section-title,
[dir="rtl"] .section-sub,
[dir="rtl"] .program-desc,
[dir="rtl"] .news-excerpt {
  letter-spacing: normal !important;
}

[dir="rtl"] .news-link::after {
  content: '←';
}

[dir="rtl"] .contact-detail {
  flex-direction: row;
}

[dir="rtl"] .footer-logo {
  flex-direction: row;
}

/* ─── WhatsApp Float ─────────────────────────────── */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: #FFF;
  border-radius: 50px;
  text-align: center;
  box-shadow: var(--shadow-md);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition), box-shadow var(--transition);
}

.whatsapp-float:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  color: #FFF;
}

[dir="rtl"] .whatsapp-float {
  right: auto;
  left: 24px;
}

/* ─── Responsive ────────────────────────────────── */
@media (max-width: 1100px) {
  .programs-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .facilities-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about-visual {
    display: none;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .programs-grid {
    grid-template-columns: 1fr;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .steps-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .about-stats {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .steps-grid {
    grid-template-columns: 1fr;
  }

  .facilities-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-btns {
    flex-direction: column;
    align-items: center;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .hero-scroll {
    display: none;
  }
}

/* ─── Admissions Wizard Modal ────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-content {
  background: var(--white);
  width: 90%;
  max-width: 500px;
  border-radius: var(--radius);
  padding: 30px;
  position: relative;
  transform: translateY(20px);
  transition: transform .3s;
  box-shadow: var(--shadow-lg);
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 1.5rem;
  color: var(--text-mid);
  transition: color .2s;
  border: none;
  background: none;
  cursor: pointer;
}

.modal-close:hover {
  color: var(--r1);
}

[dir="rtl"] .modal-close {
  right: auto;
  left: 20px;
}

.wizard-header {
  display: flex;
  justify-content: space-between;
  border-bottom: 2px solid var(--border);
  margin-bottom: 24px;
  padding-bottom: 12px;
  margin-top: 10px;
}

.wizard-step {
  font-size: .75rem;
  font-weight: 700;
  color: var(--text-light);
  transition: color .3s;
}

.wizard-step.active {
  color: var(--navy);
  border-bottom: 2px solid var(--navy);
  margin-bottom: -14px;
}

.wizard-pane {
  display: none;
  animation: fadeIn .4s;
}

.wizard-pane.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.wizard-pane h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--navy);
  margin-bottom: 8px;
}

.wizard-pane p {
  font-size: .85rem;
  color: var(--text-mid);
  margin-bottom: 16px;
}

.payment-mock {
  background: var(--light-bg);
  border: 1px dashed var(--text-mid);
  padding: 16px;
  border-radius: var(--radius-sm);
}