/* ============================================================
   Ubuntu Education English Academy
   FILE: css/style.css
   PURPOSE: Public website styles — nav, hero, sections, footer
   BRAND: Navy #0D2B6B | Royal #1A3FA8 | Orange #E8531A | Amber #F5A623
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=DM+Sans:wght@300;400;500;600&display=swap');

/* ── Variables ── */
:root {
  --navy:        #0D2B6B;
  --royal:       #1A3FA8;
  --red:         #E8531A;
  --crimson:     #C43F0E;
  --gold:        #F5A623;
  --white:       #FFFFFF;
  --offwhite:    #F7F8FC;
  --light-blue:  #E8EEFF;
  --text-dark:   #0A1628;
  --text-mid:    #3A4A6B;
  --text-muted:  #7A8AAB;
  --border:      rgba(13,43,107,0.12);
  --card-shadow: 0 4px 24px rgba(13,43,107,0.08);
  --radius:      12px;
  --radius-sm:   8px;
}

/* ── Reset ── */
*,*::before,*::after { box-sizing:border-box; margin:0; padding:0; }
html  { scroll-behavior:smooth; }
body  { font-family:'DM Sans',sans-serif; background:var(--offwhite); color:var(--text-dark); overflow-x:hidden; line-height:1.6; }
img   { max-width:100%; display:block; }
a     { text-decoration:none; color:inherit; }
ul    { list-style:none; }

/* ============================================================
   TOP BAR
   ============================================================ */
.topbar {
  background: var(--navy);
  color: rgba(255,255,255,0.75);
  font-size: 12px;
  padding: 6px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.topbar a { color:rgba(255,255,255,0.75); margin-left:16px; transition:color 0.2s; }
.topbar a:hover { color:white; }

/* ============================================================
   NAVIGATION
   ============================================================ */
nav {
  background: white;
  border-bottom: 3px solid var(--red);
  display: flex;
  align-items: center;
  padding: 0 30px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}
.logo-area {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  margin-right: auto;
  cursor: pointer;
}
.logo-badge {
  width: 64px;
  height: 64px;
  border-radius: 10px;    /* square-ish, matches the new logo shape */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: white;
  padding: 2px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
}
.logo-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;   /* show the full logo, not cropped */
}
.logo-text h1 {
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.1;
}
.logo-text p { font-size:10px; color:var(--text-muted); font-weight:600; letter-spacing:0.6px; text-transform:uppercase; }
.logo-tagline {
  font-size: 10px !important;
  color: var(--red) !important;          /* bold orange-red — visible on white nav */
  font-weight: 700 !important;
  letter-spacing: 0.8px !important;
  text-transform: uppercase !important;
}
.nav-links { display:flex; gap:0; align-items:center; }
.nav-link {
  padding: 20px 16px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-mid);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -3px;
  transition: all 0.2s;
  white-space: nowrap;
}
.nav-link:hover,.nav-link.active { color:var(--navy); border-bottom-color:var(--navy); }
.nav-btn {
  background: var(--red);
  color: white;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  margin-left: 16px;
  font-family: 'DM Sans',sans-serif;
  transition: background 0.2s;
}
.nav-btn:hover { background:var(--crimson); }

/* Mobile hamburger */
.hamburger { display:none; flex-direction:column; gap:5px; cursor:pointer; padding:8px; margin-left:auto; }
.hamburger span { width:24px; height:2px; background:var(--navy); border-radius:2px; transition:all 0.3s; }

/* ============================================================
   VIEWS (SPA toggle)
   ============================================================ */
.view { display:none; animation:fadeIn 0.3s ease; }
.view.active { display:block; }
@keyframes fadeIn { from{opacity:0;transform:translateY(8px)} to{opacity:1;transform:translateY(0)} }


/* ============================================================
   HERO — FULL-BACKGROUND SLIDESHOW
   Images fill the entire hero; text is centred on top
   ============================================================ */

.hero {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: 92vh;          /* nearly full viewport */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--navy);  /* fallback while images load */
}

/* ── Each background slide ── */
.hero .hero-slide {
  position: absolute !important;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  pointer-events: none;
  z-index: 0;
  display: block !important;
}
.hero .hero-slide.active {
  opacity: 1;
  z-index: 1;
}
.hero .hero-slide img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center;
  display: block !important;
  border-radius: 0 !important;
  max-width: none !important;
  max-height: none !important;
  box-shadow: none !important;
  border: none !important;
}

/* ── Dark gradient overlay for text readability ── */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  /* Stronger dark centre-to-edges gradient so text always pops */
  background:
    linear-gradient(
      to bottom,
      rgba(5,15,45,0.55) 0%,
      rgba(5,15,45,0.65) 40%,
      rgba(5,15,45,0.72) 70%,
      rgba(5,15,45,0.80) 100%
    );
}

/* ── Centred text content (sits above overlay) ── */
.hero-center-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 60px 24px 80px;
  max-width: 820px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

/* Gold accent bar */
.hero-accent {
  width: 64px;
  height: 4px;
  background: var(--gold);
  border-radius: 2px;
  margin: 0 auto 28px;
}

/* Main headline */
.hero-center-content h2, .hero-center-content h1 {
  color: white;
  font-family: 'Playfair Display', serif;
  font-size: clamp(32px, 5vw, 58px);
  font-weight: 700;
  color: white;
  line-height: 1.18;
  margin: 0 0 22px;
  text-shadow: 0 2px 16px rgba(0,0,0,0.4);
}
.hero-center-content h2 em, .hero-center-content h1 em {
  color: var(--gold);
  font-style: normal;
}

/* Sub-heading paragraph */
.hero-center-content p {
  font-size: clamp(15px, 2vw, 19px);
  color: rgba(255,255,255,0.88);
  line-height: 1.75;
  max-width: 620px;
  margin: 0 auto 36px;
  text-shadow: 0 1px 6px rgba(0,0,0,0.3);
}

/* CTA buttons */
.hero-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 52px;
}

/* Stats row */
.hero-stats {
  display: flex;
  gap: 0;
  justify-content: center;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,0.18);
  padding-top: 32px;
  width: 100%;
}
.stat-item {
  flex: 1;
  min-width: 110px;
  max-width: 160px;
  text-align: center;
  padding: 0 16px;
  border-right: 1px solid rgba(255,255,255,0.15);
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 30px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label {
  font-size: 11px;
  color: rgba(255,255,255,0.65);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 600;
}

/* ── Slider controls ── */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255,255,255,0.15);
  color: white;
  border: 2px solid rgba(255,255,255,0.35);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.slider-btn:hover {
  background: var(--red);
  border-color: var(--red);
  transform: translateY(-50%) scale(1.1);
}
.slider-prev { left: 24px; }
.slider-next { right: 24px; }

/* ── Dot indicators ── */
.slider-dots {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}
.sdot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s;
}
.sdot.active {
  background: var(--gold);
  transform: scale(1.35);
}
.sdot:hover { background: white; }

/* ── Gold progress bar at the very bottom ── */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 4px;
  background: var(--gold);
  z-index: 10;
  animation: slideProgress 5s linear infinite;
}
@keyframes slideProgress {
  0%   { width: 0%; }
  100% { width: 100%; }
}
.hero:hover::after { animation-play-state: paused; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .hero { min-height: 80vh; }
  .hero-center-content { padding: 90px 24px 70px; } /* top: clear sticky nav */
  .hero-center-content h2, .hero-center-content h1 { font-size: 30px; }
  .hero-center-content p  { font-size: 15px; }
  .slider-btn { width: 40px; height: 40px; font-size: 22px; }
  .slider-prev { left: 12px; }
  .slider-next { right: 12px; }
  .stat-num { font-size: 24px; }
  .stat-label { font-size: 10px; }
}
@media (max-width: 480px) {
  .hero { min-height: 70vh; }
  .hero-center-content h2, .hero-center-content h1 { font-size: 26px; }
  .slider-btn { display: none; }
  .stat-item { min-width: 80px; padding: 0 10px; }
  .stat-num { font-size: 20px; }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
  background:var(--red); color:white;
  padding:16px 32px; border-radius:8px;
  font-size:15px; font-weight:600;
  cursor:pointer; border:none;
  font-family:'DM Sans',sans-serif;
  transition:all 0.3s ease;
  display:inline-block;
}
.btn-primary:hover { background:var(--crimson); transform:translateY(-2px); box-shadow:0 10px 20px rgba(0,0,0,0.15); }
.btn-outline {
  background:transparent; color:white;
  padding:16px 32px; border-radius:8px;
  font-size:15px; font-weight:600;
  cursor:pointer; border:2px solid rgba(255,255,255,0.4);
  font-family:'DM Sans',sans-serif;
  transition:all 0.3s ease; display:inline-block;
}
.btn-outline:hover { border-color:white; background:rgba(255,255,255,0.1); }
.btn-navy {
  background:var(--navy); color:white;
  padding:12px 28px; border-radius:8px;
  font-size:14px; font-weight:600;
  cursor:pointer; border:none;
  font-family:'DM Sans',sans-serif; transition:background 0.2s;
}
.btn-navy:hover { background:var(--royal); }

/* ============================================================
   SECTION LAYOUT
   ============================================================ */
section {
  padding: 72px 40px;
  margin: 12px 20px 0;            /* contained — same as footer */
  border-radius: 12px;       /* all sections feel like cards on the offwhite background */
}
section:first-of-type { margin-top: 0; }

/* Hero sections stay FULL WIDTH — override the section containment */
section.hero,
section.hero-fullbg,
#heroSlider,
section.page-hero {
  margin: 0 !important;
  border-radius: 0 !important;
}
.section-header { text-align:center; margin-bottom:52px; }
.section-tag {
  display:inline-block; background:var(--light-blue); color:var(--royal);
  font-size:12px; font-weight:600; padding:6px 14px;
  border-radius:20px; letter-spacing:0.5px; text-transform:uppercase; margin-bottom:14px;
}
.section-title { font-family:'Playfair Display',serif; font-size:36px; font-weight:700; color:var(--navy); margin-bottom:14px; }
.section-sub { font-size:16px; color:var(--text-muted); max-width:520px; margin:0 auto; line-height:1.7; }

/* ============================================================
   PROGRAMS GRID
   ============================================================ */
.programs-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:20px; }
.program-card {
  background:white; border-radius:var(--radius);
  border:1px solid var(--border); padding:28px 24px;
  transition:all 0.25s; cursor:pointer; position:relative; overflow:hidden;
}
.program-card::before { content:''; position:absolute; top:0; left:0; right:0; height:4px; background:var(--royal); }
.program-card.red::before  { background:var(--red); }
.program-card.gold::before { background:var(--gold); }
.program-card:hover { box-shadow:var(--card-shadow); transform:translateY(-3px); }
.program-icon { width:44px; height:44px; border-radius:10px; display:flex; align-items:center; justify-content:center; margin-bottom:16px; }
.program-icon svg { flex-shrink:0; }
.program-icon.blue    { background:var(--light-blue); }
.program-icon.red     { background:#FEF0E8; }
.program-icon.gold-bg { background:#FFF9E0; }
.program-card h3 { font-size:17px; font-weight:600; color:var(--navy); margin-bottom:8px; }
.program-card p  { font-size:14px; color:var(--text-muted); line-height:1.6; margin-bottom:16px; }
.level-tags { display:flex; gap:6px; flex-wrap:wrap; }
.level-tag { background:var(--light-blue); color:var(--royal); font-size:11px; font-weight:600; padding:3px 10px; border-radius:12px; }

/* ============================================================
   SATURDAY HUB
   ============================================================ */
.hub-section { background:var(--navy); color:white; padding:72px 40px; }
.hub-inner { max-width:1060px; margin:0 auto; display:grid; grid-template-columns:1fr 1fr; gap:60px; align-items:center; }
.hub-badge {
  display:inline-flex; align-items:center; gap:8px;
  background:var(--red); color:white; font-size:12px; font-weight:600;
  padding:6px 14px; border-radius:20px; margin-bottom:20px;
}
.hub-badge::before { content:'●'; animation:blink 1.5s infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.3} }
.hub-inner h2 { font-family:'Playfair Display',serif; font-size:36px; font-weight:700; color:white; margin-bottom:16px; }
.hub-inner p  { color:rgba(255,255,255,0.75); line-height:1.7; margin-bottom:24px; }
.hub-features { display:flex; flex-direction:column; gap:14px; margin-bottom:28px; }
.hub-feature  { display:flex; align-items:flex-start; gap:12px; font-size:15px; color:rgba(255,255,255,0.85); }
.hub-feature::before {
  content:'✓'; width:22px; height:22px; background:var(--red);
  border-radius:50%; display:flex; align-items:center; justify-content:center;
  font-size:12px; font-weight:700; flex-shrink:0; margin-top:1px;
}
.hub-schedule { background:rgba(255,255,255,0.06); border:1px solid rgba(255,255,255,0.12); border-radius:var(--radius); padding:28px; }
.hub-schedule h3 { font-size:16px; font-weight:600; color:var(--gold); margin-bottom:20px; }
.schedule-item { display:flex; justify-content:space-between; align-items:center; padding:12px 0; border-bottom:1px solid rgba(255,255,255,0.08); gap:8px; }
.schedule-item:last-of-type { border-bottom:none; }
.schedule-item .class  { font-size:14px; color:white; font-weight:500; }
.schedule-item .time   { font-size:12px; color:rgba(255,255,255,0.5); white-space:nowrap; }
.schedule-item .level  { background:rgba(255,255,255,0.1); color:rgba(255,255,255,0.7); font-size:11px; padding:2px 8px; border-radius:10px; white-space:nowrap; }

/* ============================================================
   PORTAL CARDS SECTION LAYOUT
   ============================================================ */
.portals-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);   /* 3 public portals: student / parent / lecturer */
  gap: 28px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}
.portals-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 900px) {
  .portals-grid, .portals-grid-3 {
    grid-template-columns: 1fr;
    max-width: 480px;
  }
}

.portal-card {
  background: white; 
  border-radius: var(--radius);
  border: 1px solid var(--border); 
  padding: 28px 22px;
  text-align: center; 
  transition: all 0.25s; 
  cursor: pointer;
  
  /* Subtle structural enhancement */
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Ensures buttons line up perfectly if text heights vary */
}

.portal-card:hover { 
  box-shadow: 0 8px 32px rgba(13,43,107,0.12); 
  transform: translateY(-4px); 
}

.portal-icon { 
  width: 64px; 
  height: 64px; 
  border-radius: 16px; 
  margin: 0 auto 20px; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
}
.portal-icon svg { flex-shrink: 0; }
.pi-blue { background: var(--light-blue); }
.pi-red  { background: #FEF0E8; }
.pi-navy { background: #E8EEFF; }
.pi-gold { background: #FFF8E0; }

.portal-card h3 { 
  font-family: 'Playfair Display', serif; 
  font-size: 20px; 
  font-weight: 700; 
  color: var(--navy); 
  margin-bottom: 10px; 
}
.portal-card p  { 
  font-size: 14px; 
  color: var(--text-muted); 
  line-height: 1.6; 
  margin-bottom: 22px; 
}

.portal-features { 
  list-style: none; 
  text-align: left; 
  margin-bottom: 24px; 
  display: flex; 
  flex-direction: column; 
  gap: 8px; 
  flex-grow: 1; /* Pushes the button to the absolute bottom of the card content */
}
.portal-features li { 
  font-size: 13px; 
  color: var(--text-mid); 
  display: flex; 
  align-items: flex-start; 
  gap: 8px; 
}
.portal-features li::before { 
  content: '→'; 
  color: var(--royal); 
  font-weight: 700; 
  flex-shrink: 0; 
}

.portal-btn { 
  width: 100%; 
  padding: 12px; 
  border-radius: 8px; 
  font-size: 14px; 
  font-weight: 600; 
  cursor: pointer; 
  border: none; 
  font-family: 'DM Sans', sans-serif; 
  transition: all 0.2s; 
}
.pb-blue     { background: var(--navy); color: white; }
.pb-blue:hover { background: var(--royal); }
.pb-red      { background: var(--red); color: white; }
.pb-red:hover  { background: var(--crimson); }
.pb-outline { background: transparent; color: var(--navy); border: 2px solid var(--navy); }
.pb-outline:hover { background: var(--navy); color: white; }
.pb-gold       { background: var(--gold); color: white; border: 2px solid var(--gold); }
.pb-gold:hover { background: #C8870E; border-color: #C8870E; }

/* Responsive break for smaller tablets or mobile screens */
@media (max-width: 768px) {
  .portals-grid {
    grid-template-columns: 1fr; /* Stacks the portals neatly down on mobile viewports */
    gap: 24px;
  }
}

/* ============================================================
   ABOUT
   ============================================================ */
/* ── About Hero Split Columns ── */
.info-hero .hero-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  gap: 50px;
}

.info-hero .hero-content {
  flex: 1.2;
}

.info-hero .hero-image-pane {
  flex: 0.9;
  display: flex;
  justify-content: flex-end;
}

.info-hero .hero-image-pane img {
  width: 100%;
  max-width: 420px;
  height: 340px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ── Mobile Responsive Fallback ── */
@media (max-width: 900px) {
  .info-hero .hero-container {
    flex-direction: column;
    text-align: center;
    gap: 36px;
  }
  .info-hero .hero-content h2 br {
    display: none; /* Collapses line breaks on smaller screens smoothly */
  }
  .info-hero .hero-content p {
    margin: 0 auto;
  }
  .info-hero .hero-image-pane {
    justify-content: center;
    width: 100%;
  }
  .info-hero .hero-image-pane img {
    height: 260px;
    max-width: 100%;
  }
}
.about-grid { display:grid; grid-template-columns:1fr 1fr; gap:60px; align-items:center; max-width:1000px; margin:0 auto; }
/* ============================================================
   ABOUT IMAGE CONTAINER
   ============================================================ */
.about-img { 
  /* 1. Base Picture Configurations */
  background-image: linear-gradient(135deg, rgba(15, 23, 42, 0.4), rgba(37, 99, 235, 0.2)), url('../assets/images/abut.jpg'); 
  background-size: cover;
  background-position: center;
  
  border-radius: var(--radius); 
  height: 400px; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  position: relative; 
  overflow: hidden; 
  
  /* Subtle depth shadow */
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
}

/* 2. Premium Watermark Overlay Layer */
.about-img::after { 
  content: 'Ubuntu Education\AEnglish Academy'; 
  white-space: pre; 
  text-align: center; 
  font-family: 'Playfair Display', serif; 
  color: rgba(255, 255, 255, 0.25); /* Slightly boosted contrast to read over picture details */
  font-size: 22px; 
  font-weight: 700; 
  line-height: 1.4;
  z-index: 2;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); /* Keeps text legible regardless of image behind it */
}
.about-stripe { position:absolute; bottom:0; left:0; right:0; height:8px; background:var(--red); }
.values-grid { display:grid; grid-template-columns:1fr 1fr; gap:14px; margin-top:24px; }
.value-item { background:var(--light-blue); border-radius:10px; padding:16px; }
.value-item h4 { font-size:15px; font-weight:700; color:var(--navy); margin-bottom:4px; }
.value-item p  { font-size:14px; color:var(--text-muted); line-height:1.5; }
.team-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:20px; margin-top:40px; }
.team-card { background:white; border-radius:var(--radius); padding:28px 20px; border:1px solid var(--border); text-align:center; }
.team-avatar { width:64px; height:64px; border-radius:50%; margin:0 auto 14px; display:flex; align-items:center; justify-content:center; font-family:'Playfair Display',serif; font-size:22px; font-weight:700; }
.av-blue { background:var(--light-blue); color:var(--navy); }
.av-red  { background:#FEF0E8; color:var(--red); }
.av-gold { background:#FFF9E0; color:#B8860B; }
/* ============================================================
   TEAM SECTION PHOTOGRAPHS
   ============================================================ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  max-width: 1100px;
  margin: 40px auto 0;
}

.team-card {
  background: white;
  padding: 30px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 4px 12px rgba(0,0,0,0.02);
  transition: transform 0.2s, box-shadow 0.2s;
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(13,43,107,0.06);
}

/* Updated Avatar Rule for real images */
.team-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;          /* Forces a perfect circle boundary */
  object-fit: cover;           /* Crucial: Prevents stretching if photos aren't perfectly square */
  object-position: center top; /* Focuses frame capture on the lecturer's face area */
  margin: 0 auto 16px;
  display: block;
  border: 3px solid white;     /* Clean professional framing ring */
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.team-card h4 { 
  font-family: 'DM Sans', sans-serif;
  font-size: 16px; 
  font-weight: 600; 
  color: var(--navy); 
  margin: 0;
}

.team-card p { 
  font-size: 13px; 
  color: var(--text-muted); 
  margin: 6px 0 0 0; 
}

/* Responsive grid fallback for smaller viewports */
@media (max-width: 992px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
@media (max-width: 480px) {
  .team-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   ADMISSIONS
   ============================================================ */
.admission-steps { display:grid; grid-template-columns:repeat(4,1fr); gap:20px; margin-bottom:48px; }
.step-card { background:white; border-radius:var(--radius); border:1px solid var(--border); padding:28px 20px; text-align:center; }
.step-num  { width:40px; height:40px; background:var(--navy); color:white; border-radius:50%; display:flex; align-items:center; justify-content:center; font-weight:700; font-size:16px; margin:0 auto 16px; }
.step-card h3 { font-size:15px; font-weight:600; color:var(--navy); margin-bottom:8px; }
.step-card p  { font-size:13px; color:var(--text-muted); line-height:1.5; }
.reg-form-box { background:white; border-radius:var(--radius); border:1px solid var(--border); padding:40px; max-width:700px; margin:0 auto; }
.reg-form-box h3 { font-family:'Playfair Display',serif; font-size:24px; color:var(--navy); margin-bottom:6px; }
.reg-form-box>p  { font-size:14px; color:var(--text-muted); margin-bottom:28px; }
.form-row  { display:grid; grid-template-columns:1fr 1fr; gap:16px; margin-bottom:16px; }
.form-field { display:flex; flex-direction:column; gap:6px; }
.form-field label { font-size:13px; font-weight:600; color:var(--text-mid); }
.form-field input,.form-field select,.form-field textarea {
  padding:10px 14px; border:1.5px solid var(--border); border-radius:8px;
  font-size:14px; font-family:'DM Sans',sans-serif; color:var(--text-dark);
  outline:none; background:white; transition:border-color 0.2s;
}
.form-field input:focus,.form-field select:focus,.form-field textarea:focus { border-color:var(--royal); }
.form-field textarea { height:110px; resize:vertical; }
.submit-full {
  width:100%; padding:14px; background:var(--navy); color:white;
  border:none; border-radius:8px; font-size:15px; font-weight:700;
  cursor:pointer; margin-top:10px; font-family:'DM Sans',sans-serif; transition:background 0.2s;
}
.submit-full:hover { background:var(--royal); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid { display:grid; grid-template-columns:1fr 1.5fr; gap:48px; max-width:900px; margin:0 auto; }
.contact-info h3 { font-family:'Playfair Display',serif; font-size:22px; color:var(--navy); margin-bottom:24px; }
.contact-item { display:flex; gap:14px; margin-bottom:20px; }
.contact-icon { width:40px; height:40px; background:var(--light-blue); border-radius:10px; display:flex; align-items:center; justify-content:center; font-size:18px; flex-shrink:0; }
.contact-item h4 { font-size:13px; font-weight:700; color:var(--navy); margin-bottom:4px; }
.contact-item p  { font-size:13px; color:var(--text-muted); line-height:1.5; }
.contact-form { background:white; border-radius:var(--radius); border:1px solid var(--border); padding:32px; }
.contact-form h3 { font-size:18px; font-weight:700; color:var(--navy); margin-bottom:20px; }
.cf-group { margin-bottom:14px; }
.cf-group label { display:block; font-size:13px; font-weight:600; color:var(--text-mid); margin-bottom:6px; }
.cf-group input,.cf-group textarea { width:100%; padding:10px 14px; border:1.5px solid var(--border); border-radius:8px; font-size:14px; font-family:'DM Sans',sans-serif; color:var(--text-dark); outline:none; transition:border-color 0.2s; }
.cf-group textarea { height:100px; resize:vertical; }
.cf-group input:focus,.cf-group textarea:focus { border-color:var(--royal); }
.send-btn { background:var(--red); color:white; border:none; padding:13px 30px; border-radius:8px; font-size:15px; font-weight:600; cursor:pointer; font-family:'DM Sans',sans-serif; transition:background 0.2s; }
.send-btn:hover { background:var(--crimson); }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--navy);
  color: rgba(255,255,255,0.60);
  margin: 24px 20px 0;                    /* top gap + side gap so offwhite shows */
  border-radius: 12px 12px 0 0;           /* rounded top corners */
}
.footer-inner {
  padding: 52px 40px 0;
  box-sizing: border-box;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1fr;
  gap: 40px;
  margin: 0 0 40px;
}
.footer-brand h3 { font-family:'Playfair Display',serif; color:white; font-size:17px; margin-bottom:8px; }
.footer-brand p  { font-size:13px; line-height:1.75; margin-bottom:0; }
.social-links { display:flex; gap:8px; }
.social-link { width:32px; height:32px; background:rgba(235, 231, 231, 0.1); border-radius:6px; display:flex; align-items:center; justify-content:center; cursor:pointer; font-size:14px; font-weight:700; color:rgba(255, 255, 255, 0.931); transition:background 0.2s; }
.social-link:hover { background:var(--red); color:white; }
.footer-col h4  { color:white; font-size:14px; font-weight:600; margin-bottom:14px; }
.footer-col ul  { display:flex; flex-direction:column; gap:9px; }
.footer-col ul li { font-size:13px; cursor:pointer; transition:color 0.2s; }
.footer-col ul li a { color:rgba(255,255,255,0.60); text-decoration:none; transition:color 0.2s; }
.footer-col ul li a:hover { color:var(--gold); }
.footer-col ul li:hover { color:white; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom a { color:rgba(255,255,255,0.55); text-decoration:none; }
.footer-bottom a:hover { color:var(--gold); }
.footer-bottom strong { color:rgba(255,255,255,0.85); }
.footer-accent-bar {
  height: 5px;
  background: linear-gradient(90deg, var(--red) 0%, var(--red) 33%, white 33%, white 66%, var(--royal) 66%, var(--royal) 100%);
  margin-top: 0;
}

/* ============================================================
   TOAST
   ============================================================ */
.toast {
  position:fixed; bottom:24px; right:24px;
  background:var(--navy); color:white;
  padding:14px 24px; border-radius:10px;
  font-size:14px; font-weight:500;
  box-shadow:0 8px 32px rgba(0,0,0,0.25);
  z-index:9999; display:none;
  border-left:4px solid var(--gold);
  animation:slideIn 0.3s ease;
  max-width:360px;
}
@keyframes slideIn { from{transform:translateX(100px);opacity:0} to{transform:translateX(0);opacity:1} }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width:1024px) {
  .hero-container { gap:30px; }
  .hero h2, .hero h1 { font-size:42px; }
}
@media (max-width:900px) {
  section { padding:52px 24px; }
  .hero   { padding:60px 24px; }
  nav     { padding:0 20px; }
  .topbar { padding:6px 20px; }
  footer  { padding:48px 24px 0; }
  .nav-links { display:none; flex-direction:column; }
  .nav-links.open {
    display:flex; position:absolute; top:100%; left:0; right:0;
    background:white; border-top:1px solid var(--border);
    border-bottom:3px solid var(--red); padding:12px 24px 18px;
    box-shadow:0 8px 24px rgba(0,0,0,0.1); z-index:200;
  }
  .nav-link  { padding:12px 0; width:100%; }
  .hamburger { display:flex; }
  .nav-btn   { display:none; }
  /* Show Apply button inside open dropdown on mobile */
  .nav-links.open .nav-btn {
    display:block; margin-top:10px; text-align:center;
    width:100%; padding:13px; font-size:15px;
  }
  .hero-container { flex-direction:column; text-align:center; }
  .hero-content { display:flex; flex-direction:column; align-items:center; }
  .hero-stats { justify-content:center; gap:24px; }
  .stat-item  { text-align:center; }
  .hero-image { margin-top:40px; justify-content:center; width:100%; }
  .hero-image img { max-width:100%; height:320px; }
  .programs-grid { grid-template-columns:1fr 1fr; }
  .portals-grid  { grid-template-columns:1fr; }
  .hub-inner     { grid-template-columns:1fr; gap:36px; }
  .about-grid    { grid-template-columns:1fr; }
  .admission-steps { grid-template-columns:1fr 1fr; }
  .contact-grid  { grid-template-columns:1fr; }
  .footer-grid   { grid-template-columns:1fr 1fr; }
  .form-row      { grid-template-columns:1fr; }
}
@media (max-width:560px) {
  .programs-grid    { grid-template-columns:1fr; }
  .admission-steps  { grid-template-columns:1fr; }
  .footer-grid      { grid-template-columns:1fr; }
  .portals-grid     { grid-template-columns:1fr; }
  .hero h2, .hero h1 { font-size:1.8rem; }
  .values-grid      { grid-template-columns:1fr; }
  .topbar           { font-size:10px; padding:6px 12px; }
}


/* Each slide — stacked absolutely, NOT flex children */
.hero-slide {
  position: absolute !important;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.85s ease-in-out;
  pointer-events: none;
  display: block !important;  /* never flex */
}
.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 2;
}
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Slide caption */
.slide-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 28px 20px 18px;
  background: linear-gradient(to top, rgba(13,43,107,0.82) 0%, transparent 100%);
  color: white;
  font-size: 15px;
  font-weight: 600;
  font-family: 'Playfair Display', serif;
  text-align: center;
  letter-spacing: 0.3px;
}

/* Prev / Next buttons */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.18);
  color: white;
  border: 2px solid rgba(255,255,255,0.35);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  z-index: 10;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.slider-btn:hover {
  background: var(--red);
  border-color: var(--red);
  transform: translateY(-50%) scale(1.08);
}
.slider-prev { left: 12px; }
.slider-next { right: 12px; }

/* Dot indicators */
.slider-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
  z-index: 10;
}
.sdot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s;
}
.sdot.active {
  background: var(--gold);
  transform: scale(1.3);
}
.sdot:hover { background: white; }

/* Progress bar at bottom of slider */
.hero-slider-wrap::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--gold);
  border-radius: 0 2px 0 0;
  animation: slideProgress 5s linear infinite;
  z-index: 11;
}
@keyframes slideProgress {
  0%   { width: 0%; }
  100% { width: 100%; }
}

/* Pause on hover */
.hero-slider-wrap:hover::after {
  animation-play-state: paused;
}

/* ── Mobile adjustments ── */
@media (max-width: 900px) {
  .hero-slider-wrap {
    display: block !important;
    height: 260px !important;
    max-width: 100% !important;
    border-radius: 14px;
  }
  .slider-btn { width: 34px; height: 34px; font-size: 18px; }
  .slide-caption { font-size: 13px; padding: 20px 14px 12px; }
}
@media (max-width: 560px) {
  .hero-slider-wrap {
    height: 200px !important;
  }
  .sdot { width: 7px; height: 7px; }
  .slider-btn { display: none; }
}


/* Wrapper: always block, never flex */
.hero-image.hero-slider-wrap,
.hero-slider-wrap {
  display: block !important;
  position: relative !important;
  overflow: hidden !important;
}

/* Slides: always absolutely stacked */
.hero-slider-wrap .hero-slide {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  opacity: 0;
  transition: opacity 0.85s ease-in-out;
  pointer-events: none;
}
.hero-slider-wrap .hero-slide.active {
  opacity: 1 !important;
  pointer-events: auto;
  z-index: 2;
}
.hero-slider-wrap .hero-slide img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  /* Kill any inherited max-height from .hero-image img rule */
  max-height: none !important;
  border-radius: 0 !important;
}

/* Desktop size */
@media (min-width: 901px) {
  .hero-image.hero-slider-wrap {
    flex: none !important;
    width: 50% !important;
    max-width: 560px !important;
    height: 420px !important;
    min-height: 360px !important;
  }
}

/* Tablet */
@media (max-width: 900px) {
  .hero-image.hero-slider-wrap {
    width: 100% !important;
    max-width: 100% !important;
    height: 280px !important;
  }
}

/* Mobile */
@media (max-width: 560px) {
  .hero-image.hero-slider-wrap {
    height: 210px !important;
  }
}

/* ============================================================
   PAGE HERO — SHARED (applies to all inner pages)
   Full-width photo background with min-height
   ============================================================ */
.page-hero {
  position: relative !important;
  overflow: hidden !important;
  color: white;
  min-height: 500px;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 100px 40px 80px;
  text-align: center;
  background: var(--navy);
  /* full width — no margin, no border-radius */
}
.page-hero .ph-bg {
  position: absolute !important;
  top: 0; left: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center 35%;
  z-index: 0;
  display: block !important;
}
.page-hero .ph-overlay {
  position: absolute !important;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(5,15,45,0.50) 0%,
    rgba(5,15,45,0.68) 50%,
    rgba(5,15,45,0.78) 100%
  );
}
/* All direct children EXCEPT the bg img and overlay sit above */
.page-hero > *:not(.ph-bg):not(.ph-overlay) {
  position: relative !important;
  z-index: 2;
}
.page-hero .hero-accent {
  width: 64px; height: 4px;
  background: var(--gold);
  border-radius: 2px;
  margin: 0 auto 20px;
}
.page-hero .section-tag {
  background: rgba(255,255,255,0.18);
  color: white;
  font-size: 12px; font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 18px;
}
.page-hero h1, .page-hero h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 5vw, 50px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
  text-shadow: 0 2px 14px rgba(0,0,0,0.45);
}
.page-hero h1 em, .page-hero h2 em {
  color: var(--gold);
  font-style: normal;
}
.page-hero p {
  font-size: clamp(15px, 2vw, 18px);
  color: rgba(255,255,255,0.90);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.78;
  text-shadow: 0 1px 6px rgba(0,0,0,0.35);
}
.page-hero .btn-primary {
  margin-top: 28px;
  display: inline-block;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .page-hero {
    min-height: 360px;
    padding: 70px 20px 60px;
  }
}
@media (max-width: 480px) {
  .page-hero { min-height: 280px; padding: 50px 16px 50px; }
}

/* ============================================================
   LANGUAGE SWITCHER — lives in topbar
   ============================================================ */
.lang-switcher {
  position: relative;
}
/* Topbar variant — small, dark */
.topbar-lang-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.1);
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  line-height: 1;
}
.topbar-lang-btn:hover {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.4);
  color: white;
}
.topbar-lang-btn span { font-size: 11px; letter-spacing: 0.3px; }
/* Keep old .lang-btn as fallback */
.lang-btn {
  display: flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.1);
  font-family: 'DM Sans',sans-serif;
  font-size: 12px; font-weight: 600;
  color: rgba(255,255,255,0.9);
  cursor: pointer; transition: all 0.2s; white-space: nowrap;
}
.lang-btn:hover { background:rgba(255,255,255,0.2); color:white; }
.lang-btn span  { font-size: 11px; }
.lang-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: white;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  box-shadow: 0 12px 40px rgba(13,43,107,0.15);
  min-width: 150px;
  overflow: hidden;
  z-index: 200;
  animation: langIn 0.18s ease;
}
@keyframes langIn {
  from { transform: translateY(-8px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.lang-dropdown.open { display: block; }
.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px 16px;
  border: none;
  background: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-mid);
  cursor: pointer;
  transition: background 0.15s;
  text-align: left;
}
.lang-option:hover       { background: var(--offwhite); color: var(--navy); }
.lang-option.lang-active {
  background: var(--light-blue);
  color: var(--royal);
  font-weight: 700;
}

/* RTL support for Arabic */
[dir="rtl"] .lang-dropdown { right: auto; left: 0; }
[dir="rtl"] .nav-links     { flex-direction: row-reverse; }

/* Programs page — remove gap under last section before footer */
.programs-page-end { margin-bottom: 0 !important; }

/* Flag images in language switcher */
.lang-flag-img {
  width: 20px;
  height: 15px;
  border-radius: 2px;
  vertical-align: middle;
  object-fit: cover;
  display: inline-block;
  box-shadow: 0 1px 3px rgba(0,0,0,0.25);
}
.lang-flag-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
  vertical-align: middle;
}

/* ══════════════════════════════════════════
   ABOUT PAGE — RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 900px) {
  /* Founder story: stack photo above text */
  .about-founder-grid {
    grid-template-columns: 1fr !important;
  }
  .founder-img { height: 320px !important; }
  .about-founder-grid > div:first-child { max-width: 480px; margin: 0 auto; }

  /* Stats band: 2 columns */
  .stats-band { grid-template-columns: 1fr 1fr !important; }
  .stat-cell  { border-right: none !important; border-bottom: 1px solid rgba(255,255,255,0.08); }

  /* Values grid */
  .values-grid { grid-template-columns: 1fr 1fr !important; }

  /* Testimonials */
  .testi-grid { grid-template-columns: 1fr !important; }
}
@media (max-width: 560px) {
  .stats-band  { grid-template-columns: 1fr !important; }
  .values-grid { grid-template-columns: 1fr !important; }
  .stat-cell-num { font-size: 36px !important; }
}

/* ══════════════════════════════════════════
   PROGRAMMES PAGE — RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 900px) {
  /* Trainer cards: 2 col */
  .trainer-cards-grid { grid-template-columns: repeat(2,1fr) !important; }

  /* MEEC levels: 2 col */
  .meec-levels-grid { grid-template-columns: repeat(2,1fr) !important; }

  /* Schedule bands */
  .meec-schedule-grid { grid-template-columns: 1fr !important; }

  /* Online pricing cards */
  .online-pricing-grid { grid-template-columns: 1fr !important; }
  .online-pricing-grid > div:nth-child(2) { transform: none !important; }

  /* Duration table */
  .online-duration-grid { grid-template-columns: 1fr !important; }
}
@media (max-width: 560px) {
  .trainer-cards-grid { grid-template-columns: 1fr !important; }
  .meec-levels-grid   { grid-template-columns: 1fr !important; }
}

/* ══════════════════════════════════════════
   ADMISSIONS PAGE — RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 960px) {
  /* Programme choice cards: stack */
  .prog-cards { grid-template-columns: 1fr !important; max-width: 480px; margin: 0 auto; }

  /* Steps: 2+3 layout then single col */
  .steps-grid { grid-template-columns: repeat(3,1fr) !important; }
  .steps-grid > div[data-arrow]::after { display: none; }
}
@media (max-width: 640px) {
  .steps-grid { grid-template-columns: 1fr !important; }
  .steps-grid > div { border-radius: 14px !important; }
}

/* Quick comparison table: horizontal scroll on mobile */
.compare-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 16px;
}
.compare-table { min-width: 560px; }

/* FAQ */
@media (max-width: 640px) {
  .faq-q { font-size: 14px; }
}

/* ══════════════════════════════════════════
   NEWSROOM PAGE — RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 960px) {
  .newsroom-grid         { grid-template-columns: 1fr !important; }
  .newsroom-feature-grid { grid-template-columns: 1fr !important; }
  .news-ticker-inner     { animation-duration: 20s; }
}
@media (max-width: 640px) {
  .newsroom-filters { flex-wrap: wrap; gap: 6px; }
  .news-card-meta   { flex-direction: column; gap: 4px; }
}


/* ══════════════════════════════════════════════════════════════
   INDEX PAGE — FULL RESPONSIVE
══════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  /* Hero */
  .hero-center-content h1, .hero-center-content h2, .hero-center-content h1 {
  color: white;
    font-size: clamp(28px, 6vw, 48px) !important;
  }
  .hero-center-content p  { font-size: 15px !important; }
  .hero-btns { flex-direction: column; gap: 10px; align-items: center; }
  .hero-btns a { width: 100%; max-width: 280px; text-align: center; }
  .hero-stats { gap: 20px; flex-wrap: wrap; justify-content: center; }
  .stat-item  { min-width: 80px; }

  /* Programmes grid: 2 columns */
  .programs-grid { grid-template-columns: 1fr 1fr !important; gap: 16px; }

  /* Hub section */
  .hub-inner { grid-template-columns: 1fr !important; gap: 32px; }
  .hub-schedule { margin-top: 0; }

  /* Portals: 1 column */
  .portals-grid, .portals-grid-3 { grid-template-columns: 1fr !important; max-width: 460px; margin-left: auto; margin-right: auto; }
}

@media (max-width: 560px) {
  /* Hero */
  .hero-center-content { padding: 80px 20px 40px; }
  .hero-center-content h1, .hero-center-content h2, .hero-center-content h1 { font-size: 28px !important; }
  .hero-stats { gap: 14px; }
  .stat-num   { font-size: 22px !important; }
  .stat-label { font-size: 11px !important; }
  .slider-btn { width: 36px !important; height: 36px !important; font-size: 18px !important; }

  /* Programmes: 1 column */
  .programs-grid { grid-template-columns: 1fr !important; }
  .program-card  { padding: 22px 18px !important; }

  /* Hub schedule */
  .schedule-item { flex-direction: column; gap: 2px; padding: 10px 0; }
  .s-time, .s-level { font-size: 12px; }

  /* Section text */
  .section-title { font-size: clamp(22px, 5vw, 32px) !important; }
}

/* ══════════════════════════════════════════════════════════════
   NAV — FULL MOBILE TREATMENT
══════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  /* Language switcher in topbar: hide label, show flag only */
  .topbar-lang-btn span { display: none; }
  .topbar { font-size: 11px; padding: 5px 16px; }
  .topbar span:first-child { display: none; } /* Hide address on mobile */

  /* Nav dropdown */
  .nav-links.open {
    padding: 8px 20px 20px;
    max-height: 90vh;
    overflow-y: auto;
  }
  .nav-link { font-size: 15px; padding: 13px 0; border-bottom: 1px solid var(--border); }
  .nav-link:last-of-type { border-bottom: none; }

  /* Hide lang dropdown arrow on mobile nav */
  .lang-dropdown { right: 0; left: auto; }
}

/* ══════════════════════════════════════════════════════════════
   SECTION GENERAL — ALL PAGES
══════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  section { padding: 48px 20px !important; margin: 8px 20px 0 !important; }
  .section-header { margin-bottom: 28px; }
  .section-title  { font-size: clamp(22px, 5vw, 34px); }
  .section-sub    { font-size: 14px; }
  footer          { margin: 16px 20px 0 !important; }
  .footer-grid    { grid-template-columns: 1fr 1fr !important; gap: 32px; }
  .footer-bottom  { flex-direction: column; text-align: center; gap: 10px; font-size: 11px; }
}

@media (max-width: 560px) {
  section       { padding: 36px 16px !important; margin: 6px 10px 0 !important; }
  footer        { margin: 10px 10px 0 !important; }
  .footer-grid  { grid-template-columns: 1fr !important; }
  .footer-inner { padding: 40px 20px 0 !important; }
}

/* ══════════════════════════════════════════════════════════════
   PAGE HERO BANNERS (About, Programs, Admissions etc.)
══════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .page-hero          { padding: 72px 28px 56px !important; min-height: 340px !important; }
  .page-hero h1       { font-size: clamp(24px, 6vw, 40px) !important; }
  .page-hero p        { font-size: 15px !important; }
}
@media (max-width: 560px) {
  .page-hero          { padding: 56px 20px 44px !important; min-height: 280px !important; }
  .page-hero h1       { font-size: 24px !important; }
}

/* ══════════════════════════════════════════════════════════════
   CONTACT PAGE
══════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .contact-wrap { grid-template-columns: 1fr !important; gap: 32px; }
}

/* ══════════════════════════════════════════════════════════════
   REGISTER PAGE
══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .register-grid { grid-template-columns: 1fr !important; }
  .form-row      { grid-template-columns: 1fr !important; }
}

/* ══════════════════════════════════════════════════════════════
   PORTAL LOGIN PAGES
══════════════════════════════════════════════════════════════ */
@media (max-width: 560px) {
  .portal-login { border-radius: 0 !important; min-height: 100vh; }
  .portal-page  { padding: 0 !important; align-items: flex-start; }
  .login-form   { padding: 20px !important; }
  .portal-back  { margin: 16px; display: inline-block; }
}