.topbar {
  width: min(1240px, calc(100% - 34px));
  height: 78px;
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  border: 1px solid rgba(255,255,255,0.5);
  background: rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(22px);
  border-radius: 26px;
  box-shadow: var(--shadow-md);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: white;
  font-weight: 900;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 12px 24px rgba(20,184,166,0.28);
}

.brand strong {
  display: block;
  font-size: 18px;
  color: var(--primary);
}

.brand span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav a {
  padding: 11px 13px;
  border-radius: 999px;
  color: #334155;
  font-size: 14px;
  font-weight: 700;
  transition: 0.25s ease;
}

.nav a:hover {
  background: rgba(20, 184, 166, 0.12);
  color: var(--primary);
}

.nav-toggle {
  display: none;
}

.hero-pro {
  min-height: 100vh;
  position: relative;
  padding: 150px 24px 90px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(2,6,23,0.88), rgba(15,23,42,0.62)),
   url("../media/hero/Background.jpg") center/cover no-repeat;
  z-index: -3;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 25%, rgba(20,184,166,0.35), transparent 26%),
    radial-gradient(circle at 80% 20%, rgba(124,58,237,0.32), transparent 28%),
    linear-gradient(180deg, transparent 70%, #f8fafc 100%);
}

.hero-shape {
  position: absolute;
  border-radius: 999px;
  filter: blur(10px);
  opacity: 0.5;
  z-index: -1;
}

.shape-one {
  width: 260px;
  height: 260px;
  background: var(--accent);
  top: 180px;
  right: 8%;
}

.shape-two {
  width: 180px;
  height: 180px;
  background: var(--gold);
  bottom: 120px;
  left: 7%;
}

.hero-grid {
  width: min(1240px, 100%);
  margin: auto;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  align-items: center;
  gap: 40px;
}

.hero-copy {
  color: white;
}

.eyebrow {
  display: inline-flex;
  padding: 9px 14px;
  border-radius: 999px;
  color: white;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(16px);
  margin-bottom: 20px;
}

.hero-copy h1 {
  max-width: 850px;
  font-size: clamp(42px, 6.2vw, 86px);
  line-height: 0.96;
  letter-spacing: -0.075em;
  font-weight: 900;
}

.hero-copy h1 span {
  display: block;
  color: #99f6e4;
}

.hero-copy p {
  max-width: 680px;
  margin-top: 22px;
  font-size: 19px;
  line-height: 1.8;
  color: rgba(255,255,255,0.86);
}

.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 14px;
  max-width: 620px;
  margin-top: 34px;
}

.hero-stats div {
  padding: 18px;
  border-radius: 22px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.22);
  backdrop-filter: blur(16px);
}

.hero-stats strong {
  display: block;
  font-size: 28px;
  font-weight: 900;
  color: white;
}

.hero-stats span {
  display: block;
  color: rgba(255,255,255,0.76);
  font-size: 13px;
  margin-top: 5px;
}

.course-panel {
  position: relative;
  overflow: hidden;
  padding: 30px;
  border-radius: 36px;
  color: white;
  background: rgba(15,23,42,0.64);
  border: 1px solid rgba(255,255,255,0.22);
  backdrop-filter: blur(24px);
  box-shadow: var(--shadow-lg);
}

.course-panel h2 {
  position: relative;
  font-size: 28px;
  margin-bottom: 20px;
  z-index: 2;
}

.info-row {
  position: relative;
  padding: 17px 0;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  z-index: 2;
}

.info-row span,
.supervisors span {
  display: block;
  color: #99f6e4;
  font-size: 12px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  font-weight: 900;
  margin-bottom: 7px;
}

.info-row strong {
  line-height: 1.45;
}

.supervisors {
  position: relative;
  margin-top: 20px;
  z-index: 2;
}

.supervisors p {
  margin-top: 10px;
  color: rgba(255,255,255,0.9);
  font-weight: 700;
}

.panel-glow {
  position: absolute;
  width: 260px;
  height: 260px;
  background: rgba(20,184,166,0.28);
  border-radius: 999px;
  top: -80px;
  right: -90px;
  filter: blur(10px);
}

.feature-strip {
  width: min(1240px, calc(100% - 34px));
  margin: -40px auto 90px;
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.split-section {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 34px;
  align-items: center;
}

.lead {
  font-size: 20px;
  line-height: 1.9;
  color: #475569;
}

.check-list {
  list-style: none;
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.check-list li {
  position: relative;
  padding-left: 32px;
  color: #334155;
  font-weight: 700;
  line-height: 1.6;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: white;
  font-size: 12px;
  background: var(--accent);
}

.center {
  text-align: center;
}

.center p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 16px;
}

.resource-grid,
.scenario-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.scenario-zone {
  width: min(1240px, calc(100% - 34px));
  padding: 70px 34px;
  border-radius: 44px;
  background:
    radial-gradient(circle at top right, rgba(20,184,166,0.3), transparent 30%),
    linear-gradient(135deg, #020617, #0f172a 70%, #111827);
  box-shadow: var(--shadow-lg);
}

.video-panel {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: center;
  background: white;
  padding: 24px;
  border-radius: 34px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

.video-panel video {
  width: 100%;
  border-radius: 24px;
  background: #020617;
}

.video-content span {
  color: var(--accent);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 13px;
}

.video-content h3 {
  margin-top: 10px;
  font-size: 32px;
  color: var(--primary);
}

.video-content p {
  margin-top: 14px;
  color: #475569;
  line-height: 1.8;
  font-size: 17px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.site-footer {
  padding: 50px 28px;
  background: #020617;
  color: white;
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 26px;
}

.site-footer h2 {
  font-size: 34px;
}

.site-footer p {
  color: #cbd5e1;
  margin-top: 8px;
  line-height: 1.7;
}

@media (max-width: 1050px) {
  .nav {
    display: none;
    position: absolute;
    top: 88px;
    right: 0;
    left: 0;
    background: rgba(255,255,255,0.94);
    border-radius: 24px;
    box-shadow: var(--shadow-md);
    padding: 14px;
    flex-direction: column;
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    width: 100%;
    text-align: center;
  }

  .nav-toggle {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: var(--primary);
    color: white;
    font-size: 22px;
    cursor: pointer;
  }

  .hero-grid,
  .split-section,
  .video-panel,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .feature-strip,
  .resource-grid,
  .scenario-grid,
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .course-panel {
    max-width: 640px;
  }
}

@media (max-width: 640px) {
  .topbar {
    top: 10px;
    width: calc(100% - 20px);
    height: 70px;
    border-radius: 20px;
    padding: 0 14px;
  }

  .brand span {
    display: none;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
  }

  .hero-pro {
    padding: 125px 16px 65px;
  }

  .hero-copy h1 {
    font-size: 42px;
  }

  .hero-copy p {
    font-size: 16px;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .feature-strip,
  .resource-grid,
  .scenario-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .section {
    width: calc(100% - 24px);
    margin: 60px auto;
  }

  .scenario-zone {
    width: calc(100% - 24px);
    padding: 45px 18px;
    border-radius: 30px;
  }
}

/* Force hero background on all devices */
.hero-pro {
  position: relative;
  overflow: hidden;
  background-image:
    linear-gradient(135deg, rgba(2,6,23,0.76), rgba(15,23,42,0.56)),
    url("../media/hero/Background.jpg") !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
}

.hero-bg {
  display: block !important;
  position: absolute !important;
  inset: 0 !important;
  background-image:
    linear-gradient(135deg, rgba(2,6,23,0.76), rgba(15,23,42,0.56)),
    url("../media/hero/Background.jpg") !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  z-index: -3 !important;
}

@media (max-width: 1024px) {
  .hero-pro {
    min-height: auto !important;
    padding-top: 120px !important;
    background-image:
      linear-gradient(135deg, rgba(2,6,23,0.78), rgba(15,23,42,0.62)),
      url("../media/hero/Background.jpg") !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
  }

  .hero-bg {
    display: block !important;
    background-image:
      linear-gradient(135deg, rgba(2,6,23,0.78), rgba(15,23,42,0.62)),
      url("../media/hero/Background.jpg") !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
  }
}

@media (max-width: 640px) {
  .hero-pro {
    background-position: center top !important;
  }

  .hero-bg {
    background-position: center top !important;
  }
}