:root {
  --navy: #071527;
  --navy-2: #10233c;
  --gold: #c9a14a;
  --gold-2: #e4c875;
  --beige: #f4efe5;
  --soft: #f6f7f8;
  --white: #ffffff;
  --ink: #172033;
  --muted: #647086;
  --line: #dde2e8;
  --shadow: 0 24px 70px rgba(7, 21, 39, 0.14);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  flex: 0 0 auto;
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.language-option {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.64);
  cursor: pointer;
  font: inherit;
  padding: 0.45rem 0.18rem;
  transition: color 160ms ease;
}

.language-option:hover,
.language-option:focus-visible,
.language-option.active {
  color: #d6af62;
}

.language-option:focus-visible {
  outline: 2px solid #d6af62;
  outline-offset: 2px;
  border-radius: 2px;
}

.language-switcher-floating {
  position: fixed;
  z-index: 100;
  top: 1rem;
  right: 1rem;
  padding: 0.4rem 0.7rem;
  border: 1px solid rgba(214, 175, 98, 0.45);
  border-radius: 999px;
  background: #071527;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

body.menu-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  letter-spacing: 0;
  line-height: 1.04;
}

h1 {
  max-width: 840px;
  margin-bottom: 22px;
  color: var(--white);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(3.1rem, 8vw, 6.8rem);
}

h2 {
  margin-bottom: 18px;
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 4rem);
}

h3 {
  color: var(--navy);
  font-size: 1.22rem;
  line-height: 1.24;
}

.container {
  width: min(100% - 36px, var(--max));
  margin-inline: auto;
}

section {
  scroll-margin-top: 88px;
}

.section-dark {
  color: rgba(255, 255, 255, 0.82);
  background: var(--navy);
}

.section-dark h2,
.section-dark h3 {
  color: var(--white);
}

.section-white {
  background: var(--white);
}

.section-light {
  background: linear-gradient(180deg, var(--white), var(--soft));
}

.section-soft {
  background: var(--beige);
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  background: rgba(7, 21, 39, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(18px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  width: min(100% - 34px, 1240px);
  margin-inline: auto;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  width: 190px;
}

.brand img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-menu a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 12px;
  color: rgba(255, 255, 255, 0.78);
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 700;
  transition: color 180ms ease, background 180ms ease;
}

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

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--white);
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-open .nav-toggle span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.menu-open .nav-toggle span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.hero {
  position: relative;
  display: grid;
  min-height: calc(100svh - 76px);
  overflow: hidden;
  isolation: isolate;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  z-index: -2;
  background-image: url("image/home-hero-1920.webp");
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
}

.hero-overlay {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(7, 21, 39, 0.94) 0%, rgba(7, 21, 39, 0.76) 48%, rgba(7, 21, 39, 0.42) 100%),
    linear-gradient(180deg, rgba(7, 21, 39, 0.08), rgba(7, 21, 39, 0.76));
}

.hero-content {
  align-self: center;
  padding: 92px 0 72px;
}

.eyebrow,
.section-kicker,
.course-category {
  color: var(--gold-2);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-subtitle {
  max-width: 760px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.08rem, 2vw, 1.42rem);
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.16);
}

.btn-gold {
  color: #171103;
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
}

.btn-ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.07);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.64);
}

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

.trust-line {
  max-width: 760px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
  font-weight: 700;
}

.about,
.why,
.courses,
.upcoming,
.corporate,
.hrdc,
.trainer,
.testimonials,
.contact {
  padding: 96px 0;
}

.two-column,
.corporate-layout,
.trainer-layout,
.contact-layout,
.hrdc-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(36px, 6vw, 78px);
  align-items: center;
}

.lead-copy {
  color: #405067;
  font-size: 1.08rem;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 30px;
}

.metrics div {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.metrics strong,
.metrics span {
  display: block;
}

.metrics strong {
  color: var(--navy);
  font-size: 1.7rem;
}

.metrics span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 42px;
}

.section-heading.wide {
  max-width: 880px;
}

.section-heading p:not(.section-kicker) {
  color: inherit;
  opacity: 0.78;
  font-size: 1.05rem;
}

.feature-grid,
.course-grid,
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.feature-card,
.course-card,
.testimonial-card,
.benefit-panel,
.enquiry-form {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 12px 36px rgba(7, 21, 39, 0.06);
}

.feature-card {
  min-height: 254px;
  padding: 28px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.feature-card:hover,
.course-card:hover,
.testimonial-card:hover,
.schedule-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.card-number {
  display: block;
  margin-bottom: 46px;
  color: var(--gold);
  font-weight: 800;
}

.feature-card p,
.course-card dd,
.testimonial-card p,
.corporate-copy p,
.hrdc p,
.trainer-copy p,
.contact p {
  color: var(--muted);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

.filter-btn {
  min-height: 42px;
  padding: 0 15px;
  color: var(--navy);
  border: 1px solid rgba(16, 35, 60, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.filter-btn:hover,
.filter-btn.active {
  color: var(--white);
  border-color: var(--navy);
  background: var(--navy);
}

.course-grid {
  grid-template-columns: repeat(3, 1fr);
}

.course-card {
  display: flex;
  flex-direction: column;
  min-height: 390px;
  padding: 26px;
  transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

.course-card[hidden] {
  display: none;
}

.course-card h3 {
  min-height: 62px;
  margin-bottom: 22px;
}

.course-card dl {
  display: grid;
  gap: 16px;
  margin: auto 0 0;
}

.course-card dt {
  color: var(--navy);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.course-card dd {
  margin: 4px 0 0;
  font-size: 0.92rem;
}

.course-card-link {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-top: 22px;
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 900;
}

.schedule-grid {
  display: grid;
  gap: 16px;
}

.schedule-card {
  display: grid;
  grid-template-columns: 136px 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.schedule-card:hover {
  border-color: rgba(228, 200, 117, 0.45);
}

.schedule-date {
  display: grid;
  place-items: center;
  min-height: 104px;
  border: 1px solid rgba(228, 200, 117, 0.42);
  border-radius: var(--radius);
  color: var(--navy);
  background: var(--gold-2);
  text-align: center;
}

.schedule-date span {
  display: block;
  font-size: 1.75rem;
  font-weight: 900;
  line-height: 1;
}

.schedule-date small {
  font-weight: 900;
}

.schedule-date.tba span {
  font-size: 1.42rem;
}

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

.schedule-card p {
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.7);
}

.schedule-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.schedule-meta span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.78rem;
  font-weight: 800;
}

.schedule-meta .status {
  color: var(--navy);
  background: var(--gold-2);
}

.text-link {
  color: var(--gold-2);
  font-weight: 900;
  white-space: nowrap;
}

.corporate-layout {
  align-items: stretch;
}

.corporate-copy {
  align-self: center;
}

.benefit-panel {
  padding: 34px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.92)),
    url("image/home-hero-960.webp") center / cover;
}

.check-list {
  display: grid;
  gap: 14px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 32px;
  color: #405067;
  font-weight: 700;
}

.check-list li::before {
  content: "";
  position: absolute;
  top: 0.45em;
  left: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: inset 0 0 0 4px var(--beige);
}

.hrdc-layout {
  grid-template-columns: 240px 1fr;
}

.hrdc-logo {
  display: grid;
  place-items: center;
  align-self: center;
  justify-self: center;
  width: 100%;
  max-width: 240px;
  aspect-ratio: 1;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 16px 48px rgba(7, 21, 39, 0.1);
}

.hrdc-logo img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.note {
  padding-left: 18px;
  border-left: 4px solid var(--gold);
  font-weight: 700;
}

.trainer-layout {
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1fr);
}

.trainer-image {
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  background: var(--navy);
  box-shadow: var(--shadow);
}

.trainer-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% center;
}

.trainer-copy h3 {
  margin-bottom: 2px;
  font-size: 1.65rem;
}

.role {
  margin-bottom: 22px;
  color: var(--gold) !important;
  font-weight: 900;
}

.testimonial-grid {
  grid-template-columns: repeat(3, 1fr);
}

.testimonial-card {
  min-height: 210px;
  padding: 28px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.testimonial-card p {
  font-size: 1.02rem;
}

.testimonial-card span {
  color: var(--navy);
  font-weight: 900;
}

.client-logos {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-top: 30px;
}

.client-logos span {
  display: grid;
  place-items: center;
  min-height: 78px;
  border: 1px dashed rgba(16, 35, 60, 0.22);
  border-radius: var(--radius);
  color: #7c8798;
  background: rgba(255, 255, 255, 0.58);
  font-size: 0.86rem;
  font-weight: 800;
}

.contact-layout {
  align-items: start;
}

.registration-section {
  padding: 96px 0;
}

.registration-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(36px, 6vw, 78px);
  align-items: start;
}

.registration-intro {
  padding-top: 6px;
}

.registration-form {
  gap: 18px;
}

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

.form-help {
  margin-top: -6px;
  margin-bottom: 4px;
  color: var(--muted);
}

.checkbox-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--muted);
  font-weight: 700;
}

.checkbox-row input {
  width: auto;
  margin-top: 4px;
}

.form-note {
  min-height: 24px;
  margin: 0;
  color: var(--navy);
  font-weight: 800;
}

.page-hero {
  padding: 96px 0 76px;
}

.contact-details {
  display: grid;
  gap: 12px;
  margin: 26px 0;
}

.contact-details a {
  color: rgba(255, 255, 255, 0.86);
  font-weight: 800;
}

.enquiry-form {
  display: grid;
  gap: 16px;
  padding: 30px;
  color: var(--ink);
}

.enquiry-form h3 {
  margin-bottom: 4px;
}

.enquiry-form label {
  display: grid;
  gap: 7px;
  color: var(--navy);
  font-size: 0.88rem;
  font-weight: 900;
}

.enquiry-form input,
.enquiry-form select,
.enquiry-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 13px 14px;
  color: var(--ink);
  background: var(--soft);
  font: inherit;
}

.enquiry-form select {
  appearance: auto;
  cursor: pointer;
}

.enquiry-form input::placeholder,
.enquiry-form textarea::placeholder {
  color: #8b95a6;
}

.enquiry-form textarea {
  resize: vertical;
}

.floating-whatsapp {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  padding: 0 18px;
  border-radius: 999px;
  color: var(--white);
  background: #1f9d55;
  box-shadow: 0 14px 34px rgba(31, 157, 85, 0.34);
  font-size: 0.9rem;
  font-weight: 900;
}

.footer {
  color: rgba(255, 255, 255, 0.72);
  background: #050d19;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 82px;
}

.footer p {
  margin: 0;
}

.footer a {
  color: var(--gold-2);
  font-weight: 900;
}

@media (max-width: 1060px) {
  .nav-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 76px;
    right: 0;
    left: 0;
    display: grid;
    gap: 0;
    max-height: calc(100svh - 76px);
    padding: 16px;
    background: rgba(7, 21, 39, 0.98);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateY(-120%);
    transition: transform 220ms ease;
    overflow: auto;
  }

  .menu-open .nav-menu {
    transform: translateY(0);
  }

  .nav-menu a {
    min-height: 52px;
    justify-content: center;
    font-size: 1rem;
  }

  .feature-grid,
  .course-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .about,
  .why,
  .courses,
  .upcoming,
  .corporate,
  .hrdc,
  .trainer,
  .testimonials,
  .contact {
    padding: 74px 0;
  }

  .two-column,
  .corporate-layout,
  .trainer-layout,
  .contact-layout,
  .hrdc-layout,
  .registration-shell {
    grid-template-columns: 1fr;
  }

  .metrics,
  .testimonial-grid,
  .client-logos {
    grid-template-columns: 1fr;
  }

  .schedule-card {
    grid-template-columns: 1fr;
  }

  .schedule-date {
    width: 142px;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 28px, var(--max));
  }

  .brand {
    width: 158px;
  }

  .hero {
    min-height: calc(100svh - 76px);
  }

  .hero-media {
    background-image: url("image/home-hero-960.webp");
  }

  .hero-content {
    padding: 70px 0 58px;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(7, 21, 39, 0.9) 0%, rgba(7, 21, 39, 0.86) 58%, rgba(7, 21, 39, 0.74) 100%);
  }

  h1 {
    font-size: 3.18rem;
  }

  h2 {
    font-size: 2.18rem;
  }

  .hero-actions,
  .contact-actions {
    display: grid;
  }

  .btn {
    width: 100%;
  }

  .feature-grid,
  .course-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .feature-card,
  .course-card,
  .testimonial-card,
  .benefit-panel,
  .enquiry-form,
  .schedule-card {
    padding: 22px;
  }

  .course-card {
    min-height: auto;
  }

  .course-card h3 {
    min-height: 0;
  }

  .filter-bar {
    flex-wrap: nowrap;
    margin-inline: -14px;
    padding: 0 14px 4px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .filter-btn {
    flex: 0 0 auto;
    scroll-snap-align: start;
  }

  .trainer-image {
    aspect-ratio: 16 / 12;
  }

  .floating-whatsapp {
    right: 14px;
    bottom: 14px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 20px 0;
  }
}
