:root {
  --navy: #1b2f4e;
  --blue: #2d7cc2;
  --light-blue: #6ba8d0;
  --sky: #daeaf5;
  --white: #ffffff;
  --off-white: #f4f8fc;
  --text: #1a1a2e;
  --text-light: #4a5568;
  --shadow: 0 4px 20px rgba(27, 47, 78, 0.12);
  --radius: 12px;
  --gradient: linear-gradient(135deg, #1b2f4e 0%, #2d7cc2 100%);
  --transition: all 0.3s ease;
}

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

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--white);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

/* ── NAV ── */
nav {
  background: var(--navy);
  padding: 0 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo img { height: 54px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}

.nav-links a {
  color: rgba(255,255,255,0.82);
  padding: 8px 13px;
  font-size: 0.88rem;
  font-weight: 500;
  transition: var(--transition);
  border-radius: 6px;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  background: rgba(255,255,255,0.12);
}

.nav-cta {
  background: var(--blue) !important;
  color: var(--white) !important;
  padding: 8px 20px !important;
  border-radius: 25px !important;
  font-weight: 600 !important;
  margin-left: 6px;
}

.nav-cta:hover { background: #3a8fd8 !important; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 2px;
  background: white;
  transition: var(--transition);
}

/* ── HERO ── */
.hero {
  color: var(--white);
  padding: 110px 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: var(--navy);
}

/* Crossfading Ken Burns slideshow */
.hero-slideshow {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: -8%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: heroSlide 24s infinite;
  will-change: transform, opacity;
}

.hero-slide:nth-child(1) { animation-delay: -1.44s; opacity: 1; }
.hero-slide:nth-child(2) { animation-delay: 8s; }
.hero-slide:nth-child(3) { animation-delay: 16s; }

@keyframes heroSlide {
  0%   { opacity: 0;   transform: scale(1)    translate(0%,  0%);  }
  6%   { opacity: 1; }
  33%  { opacity: 1;   transform: scale(1.12) translate(-2%, 1%);  }
  40%  { opacity: 0;   transform: scale(1.14) translate(-3%, 2%);  }
  100% { opacity: 0;   transform: scale(1)    translate(0%,  0%);  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(27,47,78,0.82) 0%,
    rgba(27,47,78,0.60) 50%,
    rgba(45,124,194,0.55) 100%
  );
  z-index: 1;
}

.hero-inner {
  max-width: 820px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--white);
  padding: 6px 18px;
  border-radius: 25px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 1.4rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.12;
  margin-bottom: 1.2rem;
}

.hero h1 em {
  font-style: normal;
  color: var(--light-blue);
}

.hero p {
  font-size: 1.15rem;
  opacity: 0.88;
  margin-bottom: 2.2rem;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
  cursor: pointer;
}

.btn-primary {
  background: var(--white);
  color: var(--navy);
}

.btn-primary:hover {
  background: var(--sky);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.22);
}

.btn-outline {
  border: 2px solid rgba(255,255,255,0.55);
  color: var(--white);
}

.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.1);
  transform: translateY(-2px);
}

.btn-blue {
  background: var(--blue);
  color: var(--white);
}

.btn-blue:hover {
  background: #3a8fd8;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(45,124,194,0.35);
}

/* ── STATS ── */
.stats {
  background: var(--white);
  padding: 3rem 2rem;
  box-shadow: 0 4px 24px rgba(27,47,78,0.1);
}

.stats-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-num {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--blue);
  line-height: 1;
  display: block;
}

.stat-label {
  color: var(--text-light);
  font-size: 0.88rem;
  margin-top: 4px;
  display: block;
}

/* ── SECTIONS ── */
section { padding: 88px 2rem; }

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-label {
  display: inline-block;
  background: var(--sky);
  color: var(--blue);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(1.7rem, 3.5vw, 2.6rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-desc {
  color: var(--text-light);
  font-size: 1.05rem;
  max-width: 580px;
  margin-bottom: 3rem;
  line-height: 1.7;
}

/* ── TWO COL ── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.two-col-text .section-desc { margin-bottom: 1.5rem; }

.visual-block {
  background: var(--gradient);
  border-radius: 20px;
  padding: 3rem 2.5rem;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.visual-block::before {
  content: '';
  position: absolute;
  top: -30%; right: -20%;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
}

.visual-block h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.visual-block p { opacity: 0.8; font-size: 0.95rem; margin-bottom: 1.5rem; }

.visual-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.visual-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  opacity: 0.9;
}

.visual-list li::before {
  content: '✓';
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  flex-shrink: 0;
}

/* ── CARDS ── */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(27,47,78,0.07);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 36px rgba(27,47,78,0.18);
}

.card-icon {
  width: 56px;
  height: 56px;
  background: var(--sky);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  font-size: 1.5rem;
}

.card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.6rem;
}

.card p {
  color: var(--text-light);
  font-size: 0.93rem;
  line-height: 1.65;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--blue);
  font-weight: 600;
  font-size: 0.88rem;
  margin-top: 1rem;
  transition: var(--transition);
}

.card-link:hover { gap: 10px; }

/* ── COURSE CARDS ── */
.course-card {
  border-top: 4px solid var(--blue);
  display: flex;
  flex-direction: column;
}

.course-level {
  display: inline-block;
  background: var(--sky);
  color: var(--blue);
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.8rem;
}

.course-card h3 { color: var(--navy); }
.course-card p { flex: 1; }

.course-meta {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 0.8rem 0;
}

.tag {
  background: rgba(27,47,78,0.07);
  color: var(--text-light);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.76rem;
  font-weight: 500;
}

/* ── PILLAR CARDS ── */
.pillar-card {
  text-align: center;
  border-top: none;
  border-bottom: 4px solid var(--blue);
}

.pillar-card .card-icon {
  margin: 0 auto 1.2rem;
  background: var(--sky);
}

/* ── ALT BACKGROUNDS ── */
.bg-off { background: var(--off-white); }

.bg-navy {
  background: var(--gradient);
  color: var(--white);
}

.bg-navy .section-title { color: var(--white); }
.bg-navy .section-desc { color: rgba(255,255,255,0.78); }

.bg-navy .card {
  background: rgba(255,255,255,0.09);
  border-color: rgba(255,255,255,0.12);
}

.bg-navy .card h3 { color: var(--white); }
.bg-navy .card p { color: rgba(255,255,255,0.72); }
.bg-navy .card-icon { background: rgba(255,255,255,0.15); }

/* ── ACCREDITATIONS ── */
.accred-grid {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
}

.accred-badge {
  background: var(--white);
  border: 2px solid var(--sky);
  border-radius: var(--radius);
  padding: 1rem 1.8rem;
  text-align: center;
  min-width: 130px;
  transition: var(--transition);
}

.accred-badge:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow);
}

.accred-badge strong {
  display: block;
  color: var(--navy);
  font-size: 1rem;
  font-weight: 800;
}

.accred-badge small {
  color: var(--text-light);
  font-size: 0.75rem;
}

/* ── CTA SECTION ── */
.cta-section {
  background: var(--gradient);
  color: var(--white);
  text-align: center;
  padding: 88px 2rem;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -40%; right: -10%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(107,168,208,0.15) 0%, transparent 70%);
}

.cta-inner { position: relative; z-index: 1; max-width: 680px; margin: 0 auto; }

.cta-section h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

.cta-section p {
  opacity: 0.84;
  margin-bottom: 2.2rem;
  font-size: 1.08rem;
}

/* ── PAGE HERO (sub-pages) ── */
.page-hero {
  background: var(--gradient);
  color: var(--white);
  padding: 72px 2rem 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: -30%; right: -10%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(107,168,208,0.15) 0%, transparent 70%);
}

.page-hero-inner { position: relative; z-index: 1; }

.page-hero h1 {
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  font-weight: 800;
  margin-bottom: 0.6rem;
}

.page-hero p {
  opacity: 0.84;
  font-size: 1.08rem;
  max-width: 560px;
  margin: 0 auto;
}

/* ── BREADCRUMB ── */
.breadcrumb {
  background: var(--off-white);
  padding: 12px 2rem;
  font-size: 0.83rem;
  color: var(--text-light);
  border-bottom: 1px solid rgba(27,47,78,0.07);
}

.breadcrumb-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.breadcrumb a { color: var(--blue); }
.breadcrumb a:hover { text-decoration: underline; }

/* ── POLICY LIST ── */
.policy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1rem;
}

.policy-item {
  background: var(--white);
  border: 1px solid rgba(27,47,78,0.1);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius);
  padding: 1.2rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  transition: var(--transition);
  cursor: pointer;
}

.policy-item:hover {
  border-left-color: var(--navy);
  box-shadow: var(--shadow);
  transform: translateX(4px);
}

.policy-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
}

.policy-item h4 {
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 2px;
}

.policy-item p {
  font-size: 0.8rem;
  color: var(--text-light);
}

/* ── TEAM ── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.team-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--transition);
}

.team-card:hover { transform: translateY(-5px); }

.team-avatar {
  width: 100%;
  height: 180px;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  color: rgba(255,255,255,0.35);
}

.team-info { padding: 1.3rem; }
.team-info h4 { font-weight: 700; color: var(--navy); margin-bottom: 3px; }
.team-info p { color: var(--text-light); font-size: 0.83rem; }

/* ── INFO BOX ── */
.info-box {
  background: var(--sky);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  margin-bottom: 2rem;
}

.info-box p { color: var(--text); font-size: 0.95rem; }

/* ── NUMBERED LIST ── */
.step-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  counter-reset: steps;
}

.step-list li {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  counter-increment: steps;
}

.step-num {
  width: 36px;
  height: 36px;
  background: var(--blue);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.step-list li div h4 {
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}

.step-list li div p {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* ── FOOTER ── */
footer {
  background: #111f35;
  color: rgba(255,255,255,0.78);
  padding: 64px 2rem 0;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 3rem;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand img { height: 58px; margin-bottom: 1.1rem; display: block; }

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.75;
  opacity: 0.7;
  margin-bottom: 1.5rem;
  max-width: 280px;
}

.social-links { display: flex; gap: 10px; }

.social-link {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  transition: var(--transition);
  color: white;
}

.social-link:hover { background: var(--blue); }

.footer-col h4 {
  color: var(--white);
  font-weight: 700;
  margin-bottom: 1.1rem;
  font-size: 0.93rem;
  letter-spacing: 0.3px;
}

.footer-col ul { list-style: none; }

.footer-col ul li { margin-bottom: 0.65rem; }

.footer-col ul li a {
  color: rgba(255,255,255,0.6);
  font-size: 0.86rem;
  transition: var(--transition);
}

.footer-col ul li a:hover { color: var(--light-blue); }

.footer-contact p {
  font-size: 0.86rem;
  opacity: 0.7;
  margin-bottom: 0.65rem;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  line-height: 1.5;
}

.footer-contact p span { flex-shrink: 0; margin-top: 2px; }

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  opacity: 0.45;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ── DIVIDER ── */
.divider {
  width: 60px;
  height: 4px;
  background: var(--blue);
  border-radius: 2px;
  margin-bottom: 1.5rem;
}

/* ── IMAGES ── */
.section-photo {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 16px 48px rgba(27,47,78,0.22);
  display: block;
  object-fit: cover;
}

.card-header-img {
  display: block;
  width: calc(100% + 4rem);
  margin: -2rem -2rem 1.5rem;
  height: 190px;
  object-fit: cover;
  border-radius: var(--radius) var(--radius) 0 0;
}

.photo-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
}

.photo-gallery img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
  transition: var(--transition);
}

.photo-gallery img:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 28px rgba(27,47,78,0.22);
}

.gallery-tall { height: 458px !important; }

.img-caption {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  background: rgba(27,47,78,0.88);
  backdrop-filter: blur(6px);
  border-radius: 10px;
  padding: 1rem 1.2rem;
  color: white;
  font-size: 0.85rem;
  line-height: 1.5;
}

.img-wrapper { position: relative; }

@media (max-width: 768px) {
  .photo-gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery-tall { height: 220px !important; }
  .card-header-img { height: 150px; }
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .two-col { gap: 3rem; }
}

@media (max-width: 768px) {
  .hamburger { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    padding: 1rem;
    gap: 0.2rem;
    border-top: 1px solid rgba(255,255,255,0.08);
  }

  .nav-links.open { display: flex; }

  .nav-links a {
    padding: 12px 16px;
    width: 100%;
  }

  .two-col {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }

  section { padding: 64px 1.5rem; }
  .hero { padding: 80px 1.5rem; }
  .cta-section { padding: 64px 1.5rem; }
}

@media (max-width: 480px) {
  .stats-inner { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .hero-btns { flex-direction: column; align-items: center; }
  .hero-btns .btn { width: 100%; text-align: center; max-width: 280px; }
}
