:root {
  --accent: #f7631b;
  --accent-dark: #d94d08;
  --ink: #222;
  --muted: #777;
  --paper: #fff;
  --soft: #f9f9ff;
  --footer: #04091e;
  --line: #eee;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--muted);
  font-family: "Poppins", Arial, sans-serif;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.625;
}

body.menu-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color .25s ease, background .25s ease, border-color .25s ease, transform .25s ease;
}

a:hover {
  color: var(--accent);
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.22;
}

p {
  margin: 0 0 16px;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.container {
  width: min(1140px, calc(100% - 32px));
  margin: 0 auto;
}

.container-fluid {
  width: 100%;
}

.overlay {
  position: absolute;
  inset: 0;
  background: rgba(4, 9, 30, .72);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--paper);
  box-shadow: 0 1px 14px rgba(0, 0, 0, .08);
}

.header-top {
  background: var(--footer);
  color: #fff;
  font-size: 12px;
}

.top-row,
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.top-row {
  min-height: 38px;
  gap: 18px;
}

.social-links,
.footer-social {
  display: flex;
  align-items: center;
  gap: 7px;
}

.social-links a,
.footer-social a {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  background: rgba(255, 255, 255, .1);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.social-links a:hover,
.footer-social a:hover {
  background: var(--accent);
  color: #fff;
}

.contact-strip {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
}

.main-menu {
  background: #fff;
}

.nav-row {
  min-height: 78px;
  gap: 22px;
}

.logo img {
  width: 258px;
  max-height: 62px;
  object-fit: contain;
}

.primary-nav > ul {
  display: flex;
  align-items: center;
  gap: 2px;
}

.primary-nav li {
  position: relative;
}

.primary-nav a {
  display: block;
  color: #222;
  font-size: 12px;
  font-weight: 500;
  padding: 30px 12px;
  text-transform: uppercase;
}

.primary-nav a:hover {
  color: var(--accent);
}

.dropdown {
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 210px;
  background: #fff;
  box-shadow: 0 8px 26px rgba(0, 0, 0, .14);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease;
}

.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown,
.menu-item-has-children:hover > .sub-menu,
.menu-item-has-children:focus-within > .sub-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.dropdown a,
.sub-menu a {
  padding: 12px 18px;
  text-transform: none;
  border-bottom: 1px solid #f1f1f1;
}

.sub-menu {
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 210px;
  background: #fff;
  box-shadow: 0 8px 26px rgba(0, 0, 0, .14);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease;
}

.menu-toggle {
  display: none;
  border: 0;
  background: var(--accent);
  color: #fff;
  padding: 10px 16px;
  font: inherit;
  font-weight: 600;
}

.hero {
  position: relative;
  min-height: 620px;
  background: url("../img/banner-bg.jpg") center/cover no-repeat;
  display: flex;
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-top: 40px;
}

.hero h1 {
  max-width: 900px;
  color: #fff;
  font-size: clamp(32px, 4.6vw, 58px);
  line-height: 1.18;
  text-transform: uppercase;
}

.primary-btn,
.enquiry-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin-top: 26px;
  padding: 0 30px;
  border: 1px solid transparent;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
}

.primary-btn:hover,
.enquiry-form button:hover {
  border-color: var(--accent);
  background: #fff;
  color: var(--accent);
}

.updates-bar {
  background: var(--accent);
  color: #fff;
}

.updates-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 24px;
  min-height: 54px;
}

.updates-inner strong {
  color: #fff;
  white-space: nowrap;
  text-transform: uppercase;
}

.ticker {
  overflow: hidden;
  min-width: 0;
}

.ticker-track {
  display: inline-flex;
  gap: 44px;
  white-space: nowrap;
  animation: ticker 24s linear infinite;
}

.ticker-track span::before {
  content: "•";
  margin-right: 12px;
  color: #fff;
}

@keyframes ticker {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(-100%);
  }
}

.feature-area {
  margin-top: -72px;
  position: relative;
  z-index: 2;
  padding-bottom: 60px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.feature-card {
  background: #fff;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .1);
}

.feature-card h4 {
  background: rgba(4, 9, 30, .88);
  color: #fff;
  padding: 22px 28px;
  text-align: center;
}

.feature-card p {
  min-height: 138px;
  padding: 28px 28px 0;
  text-align: center;
}

.feature-card a {
  display: block;
  padding: 0 28px 28px;
  color: var(--ink);
  font-weight: 500;
  text-align: center;
}

.section {
  padding: 96px 0;
}

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

.section-title {
  max-width: 760px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-title.left {
  margin: 0 0 24px;
  text-align: left;
}

.section-title h2 {
  margin-bottom: 10px;
  font-size: 36px;
}

.course-grid,
.news-grid,
.gallery-grid,
.compact-grid,
.mini-panels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.course-card,
.news-card,
.compact-grid article,
.mini-panels article {
  background: #fff;
  border: 1px solid var(--line);
}

.course-card {
  overflow: hidden;
}

.course-card img,
.news-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.course-meta {
  display: flex;
  justify-content: space-between;
  margin: -50px 18px 20px;
  padding: 14px 16px;
  position: relative;
  z-index: 1;
  background: rgba(247, 99, 27, .92);
  color: #fff;
}

.course-card h4,
.course-card p,
.news-card h3,
.news-card p,
.news-card .meta {
  padding-left: 20px;
  padding-right: 20px;
}

.course-card h4 {
  min-height: 68px;
  margin-bottom: 14px;
  color: #222;
}

.course-card p {
  padding-bottom: 24px;
}

.info-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

.info-row > img {
  width: 100%;
  height: 480px;
  object-fit: cover;
}

.info-copy {
  padding: 54px 7vw;
}

.info-copy h2 {
  margin-bottom: 24px;
  font-size: 34px;
}

.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 54px;
}

.rounded-photo {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
}

.video-panel {
  position: relative;
  min-height: 340px;
  overflow: hidden;
  background: #111;
}

.video-panel > img {
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: cover;
  opacity: .7;
}

.video-panel a {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.video-panel a img {
  width: 56px;
}

.compact-grid article {
  padding: 28px;
}

.compact-grid img {
  height: 170px;
  margin: 0 auto 22px;
  object-fit: contain;
}

.compact-grid h3,
.mini-panels h3 {
  margin-bottom: 14px;
}

.cta-section {
  position: relative;
  padding: 96px 0;
  background: url("../img/s-bg.jpg") center/cover no-repeat;
  color: #fff;
}

.cta-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 390px;
  gap: 80px;
  align-items: center;
}

.cta-section h2,
.cta-section h3,
.cta-section h4 {
  color: #fff;
}

.cta-section h2 {
  margin-bottom: 22px;
  font-size: 42px;
}

.benefits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 34px;
}

.enquiry-form {
  padding: 38px 30px;
  background: rgba(247, 99, 27, .92);
}

.enquiry-form h3 {
  margin-bottom: 24px;
  text-align: center;
}

.enquiry-form input {
  width: 100%;
  height: 44px;
  margin-bottom: 12px;
  border: 0;
  padding: 0 16px;
  color: var(--ink);
  font: inherit;
}

.enquiry-form button {
  width: 100%;
  margin-top: 10px;
  cursor: pointer;
}

.news-card {
  padding-bottom: 24px;
}

.news-card .meta {
  margin: 18px 0 12px;
  color: #999;
  font-size: 12px;
}

.news-card h3 {
  margin-bottom: 12px;
  font-size: 18px;
}

.details-link {
  display: inline-block;
  margin-left: 20px;
  color: var(--accent);
  font-weight: 500;
}

.gallery-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 28px;
}

.gallery-controls button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  padding: 10px 18px;
  cursor: pointer;
  font: inherit;
  font-weight: 500;
}

.gallery-controls button.active,
.gallery-controls button:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.gallery-item {
  position: relative;
  min-height: 220px;
  border: 0;
  overflow: hidden;
  background: #ddd;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  transition: transform .35s ease, opacity .35s ease;
}

.gallery-item:hover img {
  opacity: .84;
  transform: scale(1.04);
}

.gallery-item span {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  background: rgba(4, 9, 30, .8);
  color: #fff;
  padding: 9px 12px;
  font-weight: 500;
}

.mini-panels article {
  padding: 30px;
}

.footer-area {
  padding: 86px 0 34px;
  background: var(--footer);
  color: #777;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr .9fr 1.5fr .9fr;
  gap: 34px;
}

.footer-area h4 {
  margin-bottom: 22px;
  color: #fff;
  font-weight: 500;
}

.footer-area li {
  margin-bottom: 10px;
}

.footer-area a {
  color: #777;
}

.footer-area a:hover,
.footer-bottom a {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 48px;
}

.footer-bottom p {
  margin: 0;
}

.lightbox {
  width: min(900px, calc(100% - 32px));
  border: 0;
  padding: 0;
  background: #fff;
  box-shadow: 0 20px 80px rgba(0, 0, 0, .4);
}

.lightbox::backdrop {
  background: rgba(0, 0, 0, .72);
}

.lightbox img {
  width: 100%;
  max-height: 76vh;
  object-fit: contain;
  background: #111;
}

.lightbox p {
  margin: 0;
  padding: 18px 22px;
  color: var(--ink);
  font-weight: 500;
}

.lightbox-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  border: 0;
  background: var(--accent);
  color: #fff;
  width: 34px;
  height: 34px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

@media (max-width: 980px) {
  .menu-toggle {
    display: inline-flex;
  }

  .primary-nav {
    position: fixed;
    inset: 116px 0 auto;
    max-height: calc(100vh - 116px);
    overflow: auto;
    background: #fff;
    border-top: 1px solid var(--line);
    transform: translateY(-130%);
    transition: transform .25s ease;
  }

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

  .primary-nav > ul,
  .feature-grid,
  .course-grid,
  .news-grid,
  .gallery-grid,
  .compact-grid,
  .mini-panels,
  .info-row,
  .two-column,
  .cta-grid,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .primary-nav > ul {
    display: grid;
    gap: 0;
  }

  .primary-nav a {
    padding: 14px 24px;
    border-bottom: 1px solid var(--line);
  }

  .dropdown,
  .sub-menu {
    position: static;
    min-width: 0;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    box-shadow: none;
    background: var(--soft);
  }

  .dropdown a,
  .sub-menu a {
    padding-left: 42px;
  }

  .hero {
    min-height: 520px;
  }

  .feature-area {
    margin-top: 0;
    padding-top: 40px;
  }

  .cta-grid,
  .info-row,
  .two-column,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .top-row,
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .contact-strip {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 8px 16px;
  }

  .logo img {
    width: 210px;
  }

  .primary-nav {
    top: 132px;
    max-height: calc(100vh - 132px);
  }

  .hero h1 {
    font-size: 32px;
  }

  .updates-inner {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 10px 0;
  }

  .feature-grid,
  .course-grid,
  .news-grid,
  .gallery-grid,
  .compact-grid,
  .mini-panels,
  .benefits {
    grid-template-columns: 1fr;
  }

  .feature-card p {
    min-height: auto;
  }

  .section {
    padding: 68px 0;
  }

  .section-title h2,
  .info-copy h2 {
    font-size: 28px;
  }

  .cta-section h2 {
    font-size: 32px;
  }

  .info-copy {
    padding: 42px 24px;
  }
}
