:root {
  --bg: #f5f7fc;
  --panel: #ffffff;
  --panel-2: #f8faff;
  --text: #17233d;
  --muted: #4c5b7c;
  --accent: #ff6726;
  --accent-2: #7a14ff;
  --border: #d7dff0;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}

.container { width: min(1120px, 92%); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--border);
}

.site-header:has(.main-nav.is-open) {
  z-index: 1000;
}

.nav-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  position: relative;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  flex-shrink: 0;
}

.brand img { width: 240px; height: auto; object-fit: contain; background: transparent; }
.header-actions { display: flex; align-items: center; }
.header-actions .btn { margin-right: 0; }

.main-nav {
  flex: 1;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
}

.main-nav a { color: var(--text); text-decoration: none; font-weight: 600; font-size: 14px; }
.main-nav a:hover { color: var(--accent); }

.header-end {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.header-social {
  display: flex;
  align-items: center;
  gap: 6px;
}

.header-social__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  min-width: 2.75rem;
  padding: 3px;
  border-radius: 8px;
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(23, 35, 61, 0.1);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.header-social__link img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.header-social__link svg {
  display: block;
  width: 100%;
  height: 100%;
  flex-shrink: 0;
}

.header-social__link:hover,
.header-social__link:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(23, 35, 61, 0.16);
  border-color: #c5d2ec;
  outline: none;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
  touch-action: manipulation;
  position: relative;
  z-index: 2;
}

.hero { padding: 64px 0 48px; }
.hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: center; }
.kicker { color: var(--accent); font-weight: 700; margin: 0 0 10px; }
h1, h2, h3 { margin: 0 0 14px; line-height: 1.2; }
h1 { font-size: clamp(30px, 4vw, 46px); }
h2 { font-size: clamp(24px, 3vw, 34px); }
.lead { color: var(--muted); margin-bottom: 16px; }

.hero-media {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #f0f4ff;
  min-height: 280px;
}

.hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
}

.ticks { margin: 0 0 18px; padding-left: 18px; }
.ticks li { margin-bottom: 8px; }

.btn {
  display: inline-block;
  background: var(--accent);
  color: #ffffff;
  text-decoration: none;
  border-radius: 10px;
  padding: 11px 16px;
  font-weight: 700;
  margin-right: 10px;
}
.btn-outline { background: transparent; border: 1px solid var(--accent); color: var(--accent); }

.section { padding: 54px 0; border-top: 1px solid var(--border); }
.section-alt { background: var(--panel); }
.courses-intro { color: var(--muted); margin-top: -2px; }

.featured-courses {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.feature-grid, .courses-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 18px;
}

.card, .course-card {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
}

.course-card {
  background: #ffffff;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.course-card:hover {
  transform: translateY(-3px);
  border-color: #c1ceec;
  box-shadow: 0 10px 24px rgba(33, 52, 90, 0.1);
}

.course-card h3 {
  font-size: 1.12rem;
  margin-bottom: 8px;
  color: #1a2845;
}

.course-card p {
  color: #445779;
  margin-bottom: 0;
}

.course-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.badge {
  background: #eef2ff;
  color: #3f4f74;
  border: 1px solid #dbe3fb;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.badge-career { background: #eafaf0; border-color: #c9f2d8; color: #1d6b3e; }
.badge-diploma { background: #f0edff; border-color: #ddd6ff; color: #4b3ca6; }

.duration {
  color: #5f6f91;
  font-size: 0.84rem;
  font-weight: 700;
}

.course-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.course-meta span {
  background: #f6f8ff;
  border: 1px solid #e1e7f8;
  color: #4f6188;
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 0.8rem;
  font-weight: 600;
}

.featured {
  border: 1px solid #cfdcf7;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.course-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}

.course-actions .btn {
  margin-right: 0;
  padding: 8px 12px;
  font-size: 0.9rem;
}

.text-link {
  color: #36508f;
  font-weight: 700;
  text-decoration: none;
}

.text-link:hover { text-decoration: underline; }

.feature-card {
  padding: 0;
  overflow: hidden;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.feature-card img {
  width: 100%;
  height: 235px;
  object-fit: cover;
  display: block;
  border-radius: 8px 8px 0 0;
}

.feature-card-body {
  margin: -14px 12px 0;
  background: #ffffff;
  border: 1px solid #d7dce8;
  border-radius: 10px;
  padding: 16px 16px 14px;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.feature-card-body h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
  color: #1f2b44;
}

.feature-meta {
  margin: 0;
  color: #4b5b78;
  font-size: 1.02rem;
  font-weight: 500;
}

.insights-section {
  background: #e9edf3;
}

.insights-section h2 {
  color: #2c3547;
  font-weight: 700;
}

.insights-section > .container > p {
  color: #5e6778;
  margin-top: -2px;
  margin-bottom: 4px;
  font-size: 1.05rem;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
}

.section-photo {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #fff;
  min-height: 320px;
}

.section-photo img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  display: block;
}

.registration-proof {
  margin-top: 10px;
}

.registration-proof img {
  width: min(260px, 100%);
  height: auto;
  border: 1px solid #d4dced;
  border-radius: 10px;
  display: block;
  background: #fff;
}

.faq-list details {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 10px;
}
.faq-list summary { cursor: pointer; font-weight: 700; }

.faq-intro {
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 52rem;
  margin-bottom: 1rem;
}

.faq-answer {
  margin-top: 0.5rem;
  padding-top: 0.35rem;
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.55;
}

.faq-answer p {
  margin: 0 0 0.65rem;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

.faq-answer ul {
  margin: 0 0 0.65rem 1.1rem;
  padding: 0;
}

.faq-answer li {
  margin-bottom: 0.35rem;
}

.reviews-section {
  background: #f7f9ff;
}

.reviews-intro {
  margin-top: -2px;
  margin-bottom: 14px;
  color: var(--muted);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.review-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 3px 10px rgba(28, 44, 82, 0.08);
}

.review-card .stars {
  margin: 0 0 8px;
  color: #f4b400;
  letter-spacing: 1px;
  font-size: 1.02rem;
}

.review-card p {
  margin: 0 0 10px;
  color: #304364;
}

.review-card h3 {
  margin: 0 0 4px;
  font-size: 1.02rem;
  color: #15243f;
}

.review-card small {
  color: #5f7194;
}

.enquiry-section {
  background: #ffffff;
}

.lead-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 12px;
}

.lead-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 700;
  color: #2d3e62;
  font-size: 0.92rem;
}

.lead-form input,
.lead-form select,
.lead-form textarea {
  border: 1px solid #d6def1;
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  color: #17233d;
  background: #fbfcff;
}

.lead-form textarea {
  resize: vertical;
}

.lead-form .full {
  grid-column: 1 / -1;
}

.image-placeholder {
  min-height: 220px;
  border-radius: 16px;
  border: 2px dashed #b5c4e8;
  display: grid;
  place-items: center;
  color: #687ba8;
  background: linear-gradient(135deg, #f3f7ff, #ecf2ff);
  text-align: center;
  padding: 16px;
}
.image-placeholder.tall { min-height: 320px; }

.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0 54px;
  background: #eef3ff;
}
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; }
.site-footer p { margin: 0 0 8px; color: var(--muted); }
.copyright { margin-top: 12px; font-size: 0.84rem; }

.map-wrap {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  margin-top: 8px;
  background: #fff;
}

.map-wrap iframe {
  width: 100%;
  height: 220px;
  border: 0;
  display: block;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.legal-links a {
  color: #38518f;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}

.legal-links a:hover {
  text-decoration: underline;
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 20, 40, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 14px;
  z-index: 2000;
}

.popup-overlay.is-open {
  display: flex;
}

.popup-card {
  width: min(520px, 100%);
  background: #ffffff;
  border: 1px solid #d6def1;
  border-radius: 14px;
  padding: 18px;
  position: relative;
  box-shadow: 0 16px 36px rgba(27, 41, 70, 0.22);
}

.popup-card h3 {
  margin-bottom: 8px;
}

.popup-card p {
  margin: 0 0 12px;
  color: #4e6187;
}

.popup-close {
  position: absolute;
  top: 8px;
  right: 10px;
  border: 0;
  background: transparent;
  font-size: 1.6rem;
  cursor: pointer;
  color: #61759e;
}

.curriculum-hero {
  background: #f2f6ff;
}

.curriculum-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.curriculum-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.curriculum-card h2 {
  font-size: 1.28rem;
  margin-bottom: 8px;
}

.curriculum-card p {
  margin: 0 0 10px;
  color: #445a7e;
}

.detail-hero {
  background: #f2f6ff;
}

.detail-wrap {
  display: grid;
  gap: 16px;
}

.detail-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
}

.detail-card h2 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.detail-card h3 {
  font-size: 1rem;
  margin: 12px 0 8px;
  color: #23365d;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 12px;
}

.detail-meta span {
  background: #f6f8ff;
  border: 1px solid #e1e7f8;
  color: #4f6188;
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 0.82rem;
  font-weight: 600;
}

.curriculum-cta {
  margin-top: 8px;
  margin-right: 0;
}

.curriculum-hero-inner {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.curriculum-card.is-active {
  border-color: #ff8f5c;
  box-shadow: 0 14px 30px rgba(255, 103, 38, 0.22);
  transform: translateY(-3px);
  background: linear-gradient(180deg, #ffffff 0%, #fff7f2 100%);
}

@media (max-width: 900px) {
  .nav-wrap {
    justify-content: space-between;
  }

  .brand {
    min-width: 0;
    flex: 1;
  }

  .menu-toggle { display: inline-block; }
  .brand img { width: 160px; max-width: 52vw; }
  .header-actions .btn {
    padding: 8px 10px;
    font-size: 0.82rem;
  }

  .header-social__link {
    width: 2.4rem;
    height: 2.4rem;
    min-width: 2.4rem;
    padding: 2px;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: auto;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px;
    flex-direction: column;
    min-width: 180px;
    z-index: 20;
    box-shadow: 0 12px 28px rgba(23, 35, 61, 0.18);
  }
  .main-nav.is-open { display: flex; }
  .hero-grid, .split, .footer-grid, .lead-form { grid-template-columns: 1fr; }
  .feature-grid, .courses-grid, .reviews-grid { grid-template-columns: 1fr; }
  .featured-courses { grid-template-columns: 1fr; }
  .curriculum-grid { grid-template-columns: 1fr; }
}
