:root {
  --bg: #050505;
  --bg-soft: #161616;
  --card: #ffffff;
  --text: #171717;
  --muted: #666666;
  --brand: #111111;
  --brand-dark: #000000;
  --accent: #6f6f6f;
  --light: #f5f5f5;
  --border: #dedede;
  --success: #2f2f2f;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
  --radius: 22px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: Inter, Arial, sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.65;
}

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

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

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 10px;
  background: #fff;
  color: #000;
  padding: 10px;
  z-index: 999;
}

.skip-link:focus {
  left: 10px;
}

/* Top Bar */
.top-bar {
  background: #111;
  color: #fff;
  font-size: 0.92rem;
  padding: 8px 0;
  border-bottom: 1px solid #2a2a2a;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.top-bar a {
  color: #fff;
  opacity: 0.92;
}

.top-bar a:hover {
  opacity: 1;
  color: #d9d9d9;
}

/* Header */
/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 99;
  background: #000;
  border-bottom: 1px solid #2a2a2a;
}

.nav {
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  color: #fff;
}

.logo img {
  width: 132px;
  height: auto;
  border-radius: 10px;
}

.logo span {
  display: none;
}

/* Main Menu */
.menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu li {
  position: relative;
  list-style: none;
}

.menu a {
  display: block;
  padding: 11px 15px;
  border-radius: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 0.94rem;
  text-decoration: none;
  transition: 0.25s ease;
}

.menu a:hover,
.menu a.active {
  background: #fff;
  color: #000;
}

/* Dropdown */
.has-dropdown > a::after {
  content: " ▾";
  font-size: 0.75rem;
  margin-left: 4px;
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: #111;
  border: 1px solid #333;
  border-radius: 0 0 14px 14px;
  padding: 8px 0;
  margin: 0;
  list-style: none;
  display: none;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35);
}

.dropdown li {
  width: 100%;
  list-style: none;
}

.dropdown a {
  padding: 12px 18px;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 0;
  white-space: nowrap;
}

.dropdown a:hover {
  background: #fff;
  color: #000;
}

.has-dropdown:hover .dropdown {
  display: block;
}

/* Hamburger */
.hamburger {
  display: none;
  border: 1px solid #333;
  background: #111;
  border-radius: 12px;
  padding: 10px;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 23px;
  height: 2px;
  background: #fff;
  margin: 5px 0;
}

/* Tablet / Mobile */
@media (max-width: 980px) {
  .nav {
    height: 74px;
  }

  .logo img {
    width: 112px;
  }

  .hamburger {
    display: block;
  }

  .menu {
    position: fixed;
    top: 74px;
    left: 0;
    right: 0;
    background: #000;
    border-top: 1px solid #333;
    padding: 14px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    z-index: 999;
  }

  .menu.open {
    display: flex;
  }

  .menu a {
    padding: 15px 16px;
    border-radius: 8px;
    border-bottom: 1px solid #1f1f1f;
  }

  .has-dropdown > a::after {
    float: right;
  }

  .dropdown {
    position: static;
    display: none;
    min-width: 100%;
    background: #171717;
    border: none;
    border-radius: 10px;
    box-shadow: none;
    padding: 6px 0;
    margin: 4px 0 8px;
  }

  .has-dropdown:hover .dropdown {
    display: none;
  }

  .has-dropdown.open .dropdown {
    display: block;
  }

  .dropdown a {
    padding-left: 30px;
    color: #e8e8e8;
    border-bottom: none;
  }
}

/* Main Menu */
.menu {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.menu li {
  position: relative;
}

.menu a {
  display: block;
  padding: 10px 14px;
  border-radius: 12px;
  color: #fff;
  font-weight: 700;
  font-size: 0.94rem;
  transition: all 0.25s ease;
}

.menu a:hover,
.menu a.active {
  background: #fff;
  color: #000;
}

/* Dropdown Menu */
.has-dropdown > a::after {
  content: " ▾";
  font-size: 0.75rem;
  margin-left: 4px;
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: #111;
  border: 1px solid #333;
  border-radius: 0 0 14px 14px;
  padding: 8px 0;
  list-style: none;
  display: none;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35);
}

.dropdown li {
  width: 100%;
}

.dropdown a {
  padding: 12px 18px;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 0;
  white-space: nowrap;
}

.dropdown a:hover {
  background: #fff;
  color: #000;
}

.has-dropdown:hover .dropdown {
  display: block;
}

/* Header Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hamburger {
  display: none;
  border: 1px solid #333;
  background: #111;
  border-radius: 12px;
  padding: 10px;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 23px;
  height: 2px;
  background: #fff;
  margin: 5px 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 13px 22px;
  font-weight: 800;
  cursor: pointer;
  transition: 0.25s;
  background: #111;
  color: #fff;
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.18);
}

.btn:hover {
  transform: translateY(-2px);
  background: #000;
}

.btn.secondary {
  background: #fff;
  color: #111;
  border: 1px solid #bdbdbd;
  box-shadow: none;
}

.btn.secondary:hover {
  background: #f1f1f1;
}

.btn.dark {
  background: #333;
}

.btn.small {
  padding: 10px 16px;
  font-size: 0.9rem;
}

.btn.full {
  width: 100%;
}

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  background: linear-gradient(135deg, #000 0%, #151515 55%, #3a3a3a 100%);
  color: #fff;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../images/hero-education.jpg") center/cover no-repeat;
  opacity: 0.22;
  z-index: -2;
  filter: grayscale(1);
}

.hero::after {
  content: "";
  position: absolute;
  width: 620px;
  height: 620px;
  right: -220px;
  top: -180px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  z-index: -1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  min-height: 660px;
  padding: 88px 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 8px 13px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.9rem;
}

.hero h1,
.page-hero h1 {
  font-size: clamp(2.5rem, 5vw, 5.2rem);
  line-height: 1.03;
  letter-spacing: -0.06em;
  margin: 20px 0;
}

.hero p {
  font-size: 1.18rem;
  color: #e5e5e5;
  max-width: 720px;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.hero-card {
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
  border-radius: 28px;
  padding: 26px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  border: 1px solid #dcdcdc;
}

.hero-card img {
  height: 150px;
  width: auto;
  margin: auto;
  background: #000;
  border-radius: 18px;
  padding: 18px;
}

.quick-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 20px;
}

.stat {
  background: #f5f5f5;
  border: 1px solid #dedede;
  border-radius: 18px;
  padding: 18px;
}

.stat strong {
  font-size: 1.6rem;
  display: block;
  color: #111;
}

/* Sections */
.section {
  padding: 86px 0;
}

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

.section.dark {
  background: #050505;
  color: #fff;
}

.section-head {
  max-width: 780px;
  margin: 0 auto 42px;
  text-align: center;
}

.section-head.left {
  text-align: left;
  margin-left: 0;
}

.section-head h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin-bottom: 14px;
}

.section-head p {
  color: var(--muted);
  font-size: 1.08rem;
}

.dark .section-head p {
  color: #cbd5e1;
}

/* Grids */
.grid {
  display: grid;
  gap: 24px;
}

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

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

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

/* Cards */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 10px 26px rgba(12, 28, 54, 0.06);
  transition: 0.25s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.card h3 {
  font-size: 1.35rem;
  margin-bottom: 10px;
}

.card p {
  color: var(--muted);
}

.icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: #f0f0f0;
  color: #111;
  font-size: 1.5rem;
  margin-bottom: 18px;
}

.list {
  list-style: none;
  margin-top: 18px;
}

.list li {
  padding: 9px 0 9px 30px;
  position: relative;
  color: #475467;
}

.list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #111;
  font-weight: 900;
}

.dark .card {
  color: var(--text);
}

/* Page Hero */
.page-hero {
  background: linear-gradient(135deg, #000, #333);
  color: #fff;
  padding: 86px 0;
}

.page-hero p {
  max-width: 820px;
  color: #e5e5e5;
  font-size: 1.15rem;
}

.breadcrumb {
  font-size: 0.9rem;
  color: #d8d8d8;
  margin-bottom: 12px;
}

.breadcrumb a {
  color: #fff;
}

/* Images */
.image-band {
  min-height: 330px;
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(0, 0, 0, 0.18)),
    url("../images/training-classroom.jpg") center/cover no-repeat;
  box-shadow: var(--shadow);
  filter: grayscale(1);
}

/* Tabs */
.tabs {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.tab-btn {
  border: 1px solid #d0d0d0;
  background: #fff;
  border-radius: 999px;
  padding: 11px 18px;
  font-weight: 800;
  cursor: pointer;
}

.tab-btn.active {
  background: #111;
  color: #fff;
  border-color: #111;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

/* Courses */
.course-toolbar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.course-toolbar input,
.course-toolbar select,
.form-control {
  width: 100%;
  border: 1px solid #d9e2f1;
  border-radius: 14px;
  padding: 13px 14px;
  font: inherit;
}

.course-toolbar input {
  flex: 1 1 280px;
}

.course-toolbar select {
  flex: 0 1 260px;
}

.course-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.course-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
}

.course-item strong {
  display: block;
  margin-bottom: 6px;
}

.tag {
  display: inline-flex;
  background: #f1f1f1;
  color: #111;
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 0.78rem;
  font-weight: 800;
}

/* Steps */
.steps {
  counter-reset: step;
}

.step {
  position: relative;
  padding-left: 80px;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #111;
  color: #fff;
  font-weight: 900;
  font-size: 1.2rem;
}

.process-line {
  position: relative;
}

.process-line::before {
  content: "";
  position: absolute;
  left: 25px;
  top: 54px;
  bottom: 20px;
  width: 2px;
  background: #d9d9d9;
}

/* FAQ */
.faq-item {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  background: #fff;
  border: 0;
  padding: 18px 22px;
  font-weight: 900;
  display: flex;
  justify-content: space-between;
  cursor: pointer;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
  padding: 0 22px;
}

.faq-item.open .faq-answer {
  max-height: 240px;
  padding-bottom: 20px;
}

.faq-answer p {
  color: var(--muted);
}

/* CTA */
.cta {
  background: linear-gradient(135deg, #000, #3a3a3a);
  color: #fff;
  border-radius: 30px;
  padding: 46px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 22px;
  align-items: center;
}

.cta p {
  color: #ededed;
}

.cta .btn {
  background: #fff;
  color: #111;
  box-shadow: none;
}

/* Contact */
.contact-wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
}

.contact-card {
  background: #050505;
  color: #fff;
  border-radius: 26px;
  padding: 32px;
}

.contact-card a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-form {
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: 26px;
  padding: 30px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-weight: 800;
  margin-bottom: 7px;
}

textarea.form-control {
  min-height: 135px;
  resize: vertical;
}

.form-message {
  margin-top: 12px;
  font-weight: 800;
}

.map-placeholder {
  min-height: 280px;
  border-radius: 24px;
  background: linear-gradient(135deg, #f5f5f5, #dcdcdc),
    url("../images/map-placeholder.jpg") center/cover no-repeat;
  display: grid;
  place-items: center;
  color: #111;
  font-weight: 900;
  text-align: center;
  padding: 24px;
  filter: grayscale(1);
}

/* Footer */
.footer {
  background: #050505;
  color: #d4d4d4;
  padding: 64px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 30px;
}

.footer img {
  width: 140px;
  background: #000;
  border-radius: 10px;
  margin-bottom: 14px;
}

.footer h4 {
  color: #fff;
  margin-bottom: 14px;
}

.footer ul {
  list-style: none;
}

.footer li {
  margin: 8px 0;
}

.footer a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 36px;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

/* Back To Top */
.back-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 0;
  background: #111;
  color: #fff;
  font-weight: 900;
  box-shadow: var(--shadow);
  display: none;
  cursor: pointer;
}

.back-top.show {
  display: block;
}

/* Reveal Animation */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: 0.6s;
}

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

/* Tablet */
@media (max-width: 980px) {
  .hero-grid,
  .grid-2,
  .grid-3,
  .grid-4,
  .contact-wrap,
  .footer-grid,
  .cta {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    min-height: auto;
    padding: 68px 0;
  }

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

  .nav {
    height: 74px;
  }

  .hamburger {
    display: block;
  }

  .nav .btn.small {
    display: none;
  }

  .menu {
    position: fixed;
    top: 118px;
    left: 4%;
    right: 4%;
    background: #000;
    border: 1px solid #333;
    border-radius: 20px;
    padding: 14px;
    box-shadow: var(--shadow);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .menu.open {
    display: flex;
  }

  .menu a {
    padding: 14px 16px;
    border-radius: 12px;
    border-bottom: 1px solid #1f1f1f;
  }

  .has-dropdown > a::after {
    float: right;
  }

  .dropdown {
    position: static;
    display: none;
    min-width: 100%;
    background: #171717;
    border: 0;
    border-radius: 12px;
    box-shadow: none;
    padding: 6px 0;
    margin: 4px 0 8px;
  }

  .has-dropdown:hover .dropdown {
    display: none;
  }

  .has-dropdown.open .dropdown {
    display: block;
  }

  .dropdown a {
    padding: 12px 22px;
    color: #e8e8e8;
    font-size: 0.9rem;
    border-bottom: 0;
  }
}

/* Mobile */
@media (max-width: 620px) {
  .top-bar .container {
    justify-content: center;
    text-align: center;
  }

  .hero-buttons,
  .cta .btn {
    width: 100%;
  }

  .btn {
    width: 100%;
  }

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

  .section {
    padding: 62px 0;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 2.45rem;
  }

  .quick-stats {
    grid-template-columns: 1fr;
  }

  .cta {
    padding: 28px;
  }

  .logo img {
    width: 112px;
  }

  .menu {
    top: 110px;
  }
}
