/*
 * NTS Education — Training programs page styles.
 * Extends style.css. Keeps the same tokens: #4154f1 primary, #012970 dark, #1a2540 text.
 */

/* ── Language switcher (header) ─────────── */
.lang-switcher {
  position: relative;
  margin-right: 8px;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 1px solid #e6eaf3;
  border-radius: 6px;
  padding: 6px 12px;
  font-family: inherit;
  font-size: 14px;
  color: #1a2540;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.lang-toggle:hover {
  border-color: #4154f1;
  background: #f5f7fb;
}

.lang-toggle .material-icons {
  font-size: 18px;
}

.lang-menu {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  min-width: 140px;
  background: #fff;
  border: 1px solid #e6eaf3;
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  z-index: 100;
  overflow: hidden;
}

.lang-menu.open {
  display: block;
}

.lang-option {
  display: block;
  width: 100%;
  padding: 10px 16px;
  background: none;
  border: none;
  text-align: left;
  font-family: inherit;
  font-size: 14px;
  color: #1a2540;
  cursor: pointer;
  transition: background 0.15s;
}

.lang-option:hover {
  background: #f5f7fb;
}

.lang-option.active {
  background: #eef1fc;
  color: #4154f1;
  font-weight: 600;
}

/* ── Breadcrumb ─────────────────────────── */
.breadcrumb {
  background: #f5f7fb;
  padding: 12px 0;
  font-size: 14px;
  border-bottom: 1px solid #e6eaf3;
}

.breadcrumb-inner {
  color: #6b7897;
}

.breadcrumb-inner a {
  color: #6b7897;
}

.breadcrumb-inner a:hover {
  color: #4154f1;
}

.breadcrumb-sep {
  margin: 0 8px;
  color: #c5ccdc;
}

.breadcrumb-current {
  color: #1a2540;
  font-weight: 600;
}

/* ── Hero (smaller than index.html's hero) ── */
.training-hero {
  background: linear-gradient(135deg, #eef1fc 0%, #f8f9ff 100%);
  padding: 72px 0 56px;
  text-align: center;
}

.training-hero .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid #d5dcf0;
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 14px;
  color: #4154f1;
  font-weight: 600;
  margin-bottom: 24px;
}

.training-hero .hero-badge .material-icons {
  font-size: 18px;
}

.training-hero .hero-title {
  font-family: 'Nunito', 'Open Sans', sans-serif;
  font-size: 42px;
  font-weight: 800;
  line-height: 1.3;
  color: #012970;
  margin-bottom: 20px;
}

.training-hero .hero-title br + span,
.training-hero .hero-title > span {
  color: #4154f1;
}

.training-hero .hero-subtitle {
  font-size: 17px;
  color: #3c4b6a;
  max-width: 800px;
  margin: 0 auto;
}

/* ── Programs section ───────────────────── */
.programs-section {
  padding: 72px 0;
  background: #fff;
}

.programs-list {
  display: flex;
  flex-direction: column;
  gap: 72px;
  margin-top: 48px;
}

.program-card {
  background: #fff;
  border: 1px solid #e6eaf3;
  border-radius: 12px;
  padding: 40px;
  transition: box-shadow 0.2s, border-color 0.2s;
  scroll-margin-top: 80px;
}

.program-card:hover {
  box-shadow: 0 8px 24px rgba(65, 84, 241, 0.08);
  border-color: #c5ccdc;
}

.program-head {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid #eef1fc;
}

.program-icon {
  font-size: 48px;
  color: #4154f1;
  background: #eef1fc;
  border-radius: 12px;
  padding: 16px;
  flex-shrink: 0;
}

.program-head-text h3 {
  font-family: 'Nunito', 'Open Sans', sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: #012970;
  margin-bottom: 6px;
}

.program-tagline {
  color: #4154f1;
  font-size: 15px;
  font-weight: 500;
}

.program-meta {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 12px 24px;
  margin-bottom: 28px;
  padding: 20px 24px;
  background: #f8f9ff;
  border-radius: 8px;
}

.program-meta dt {
  font-weight: 700;
  color: #1a2540;
  font-size: 14px;
}

.program-meta dd {
  color: #3c4b6a;
  font-size: 14px;
}

.program-section {
  margin-bottom: 24px;
}

.program-section:last-of-type {
  margin-bottom: 32px;
}

.program-section h4 {
  font-family: 'Nunito', 'Open Sans', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: #012970;
  margin-bottom: 12px;
  padding-left: 12px;
  border-left: 3px solid #4154f1;
}

.program-target {
  list-style: none;
  padding: 0;
}

.program-target li {
  padding: 6px 0 6px 28px;
  position: relative;
  color: #3c4b6a;
  font-size: 15px;
}

.program-target li::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 14px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4154f1;
}

.program-curriculum {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.program-curriculum th {
  width: 140px;
  text-align: left;
  padding: 10px 16px;
  background: #f8f9ff;
  border-left: 3px solid #4154f1;
  font-weight: 700;
  color: #012970;
  vertical-align: top;
}

.program-curriculum td {
  padding: 10px 16px;
  color: #3c4b6a;
  vertical-align: top;
  border-bottom: 1px solid #eef1fc;
}

.program-curriculum tr:last-child td,
.program-curriculum tr:last-child th {
  border-bottom: none;
}

.program-summary {
  color: #3c4b6a;
  font-size: 15px;
  line-height: 1.7;
}

.program-cta {
  text-align: center;
  padding-top: 16px;
  border-top: 1px solid #eef1fc;
}

.program-cta .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.program-cta .btn .material-icons {
  font-size: 18px;
}

/* ── Flow section ───────────────────────── */
.flow-section {
  background: #f8f9ff;
  padding: 72px 0;
}

.flow-steps {
  list-style: none;
  padding: 0;
  max-width: 700px;
  margin: 40px auto 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.flow-step {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 28px;
  background: #fff;
  border: 1px solid #e6eaf3;
  border-radius: 8px;
}

.flow-step-num {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  background: #4154f1;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
}

.flow-step-text {
  color: #1a2540;
  font-size: 15px;
}

/* ── Contact section ────────────────────── */
.training-contact {
  background: #fff;
  padding: 72px 0;
}

.training-contact .contact-info {
  margin-top: 32px;
}

/* ── Responsive ─────────────────────────── */
@media (max-width: 768px) {
  .training-hero {
    padding: 48px 0 40px;
  }
  .training-hero .hero-title {
    font-size: 30px;
  }
  .training-hero .hero-subtitle {
    font-size: 15px;
  }

  .program-card {
    padding: 24px;
  }

  .program-head {
    gap: 14px;
    margin-bottom: 20px;
    padding-bottom: 18px;
  }

  .program-icon {
    font-size: 36px;
    padding: 10px;
  }

  .program-head-text h3 {
    font-size: 20px;
  }

  .program-meta {
    grid-template-columns: 1fr;
    gap: 4px 0;
    padding: 16px;
  }

  .program-meta dt {
    margin-top: 8px;
  }

  .program-meta dt:first-child {
    margin-top: 0;
  }

  .program-curriculum th {
    width: 90px;
    font-size: 14px;
    padding: 8px 10px;
  }

  .program-curriculum td {
    font-size: 14px;
    padding: 8px 10px;
  }

  .flow-step {
    padding: 14px 18px;
    gap: 14px;
  }

  .lang-toggle {
    padding: 4px 8px;
    font-size: 13px;
  }
}
