:root {
  --bg: #f5f7fb;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --primary: #0b4aa2;
  --primary-2: #083b82;
  --border: rgba(15, 23, 42, 0.10);
  --shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
  --radius: 14px;
  --header-height: 100px;
}

/* Mobile-first global reset */
* { box-sizing: border-box; }
html, body {
  height: 100%;
  overflow-x: hidden;
}
body {
  margin: 0;
  padding-top: var(--header-height);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img {
  max-width: 100%;
  height: auto;
  display: block;
}
/* Prevent overflow: long words and text wrap */
body, p, h1, h2, h3, span, div {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Container: responsive padding */
.container {
  width: 100%;
  max-width: 1320px;
  margin-inline: auto;
  padding-inline: 16px;
}

@media (min-width: 481px) {
  .container { padding-inline: 24px; }
}
@media (min-width: 1025px) {
  .container { padding-inline: 32px; }
}

/* Fixed header: topbar + navbar stay at top when scrolling */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1100;
  overflow: visible;
}

.topbar {
  background: #071221;
  color: rgba(255,255,255,0.88);
  font-size: 13px;
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  flex-wrap: wrap;
}
.topbar__left, .topbar__right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.topbar__item { color: rgba(255,255,255,0.9); }
.topbar__item:hover { color: #fff; text-decoration: underline; }
.socials { display: flex; gap: 10px; }
.socials__link { opacity: 0.9; }
.socials__link:hover { opacity: 1; text-decoration: underline; }
.lang { display: flex; gap: 6px; align-items: center; flex-shrink: 0; }
.lang__link {
  opacity: 0.75;
  min-height: 36px;
  min-width: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 6px;
  background: transparent;
  border: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.lang__link:hover { opacity: 1; }
.lang__link.is-active { opacity: 1; font-weight: 700; }
.lang__sep { opacity: 0.45; }

.navbar {
  position: relative;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
  overflow: visible;
}
.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  padding: 10px 0;
  flex-wrap: nowrap;
  overflow: visible;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.brand__logo { height: 46px; width: auto; max-height: 44px; }
.brand__text {
  font-weight: 800;
  letter-spacing: 0.2px;
  color: #0b214a;
  font-size: clamp(16px, 3.5vw, 22px);
  white-space: nowrap;
}
/* Hamburger: hidden on desktop */
.navbar__toggle {
  display: none;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  min-height: 48px;
  padding: 12px;
  margin: 0;
  border: none;
  background: rgba(11, 74, 162, 0.08);
  border-radius: 12px;
  color: var(--primary);
  cursor: pointer;
  font-size: 24px;
  transition: background 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.navbar__toggle:hover {
  background: rgba(11, 74, 162, 0.14);
}
.navbar__toggle:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.nav {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: nowrap;
  flex-shrink: 0;
}
.nav__link {
  position: relative;
  font-size: 14px;
  padding: 10px 10px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-radius: 12px;
  color: rgba(15, 23, 42, 0.86);
  font-weight: 700;
  letter-spacing: -0.1px;
  transition: background 0.18s ease, color 0.18s ease, transform 0.06s ease;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 6px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(11, 74, 162, 0.0), rgba(11, 74, 162, 0.85), rgba(11, 74, 162, 0.0));
  opacity: 0;
  transform: translateY(2px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.nav__link:hover {
  background: rgba(11, 74, 162, 0.08);
  color: var(--primary);
}
.nav__link:hover::after {
  opacity: 1;
  transform: translateY(0);
}
.nav__link:active { transform: translateY(1px); }

.main { padding-bottom: 60px; }

.hero {
  position: relative;
  min-height: 520px;
  display: grid;
  place-items: stretch;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__image {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.03);
  z-index: 0;
}
.hero__image--placeholder {
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.16), transparent 40%),
    linear-gradient(120deg, #073e7a, #0b4aa2 45%, #071221);
}
.hero__image--fallback { z-index: 0; }
.hero__video {
  position: absolute; inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
.hero__overlay { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.hero__content {
  position: relative;
  z-index: 3;
  padding: 92px 0 78px;
  color: #fff;
}
.hero__title {
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.1;
  margin: 0 0 12px;
  letter-spacing: -0.6px;
}
.hero__subtitle {
  margin: 0 0 20px;
  max-width: 720px;
  color: rgba(255,255,255,0.90);
  font-size: 16px;
}
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 14px;
  transition: transform 0.06s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-2); }
.btn--secondary { background: rgba(11, 74, 162, 0.10); border-color: rgba(11, 74, 162, 0.18); color: var(--primary); }
.btn--secondary:hover { background: rgba(11, 74, 162, 0.14); }
.btn--ghost { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.22); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,0.18); }
.btn--outline { background: transparent; border-color: var(--primary); color: var(--primary); }
.btn--outline:hover { background: rgba(11, 74, 162, 0.08); }

.section { padding: 48px 0; }
.section--alt { background: rgba(255,255,255,0.75); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section.section--alt { padding: 56px 0; }

/* Our products section: 50vh min-height, vertically centered */
.products-section {
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 0;
}
.section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
}
.section__kicker { color: var(--primary); font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; }
.section__title { font-size: 24px; margin: 0; letter-spacing: -0.3px; }
.section__text { color: rgba(15, 23, 42, 0.82); max-width: 680px; }
.link { color: var(--primary); font-weight: 700; }
.link:hover { text-decoration: underline; }

.cards-grid {
  display: grid;
  gap: 14px;
}
.cards-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cards-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.14s ease, box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}
.card:hover {
  transform: translateY(-3px);
  border-color: rgba(11, 74, 162, 0.22);
  box-shadow: 0 22px 54px rgba(15, 23, 42, 0.12);
}
.card:active { transform: translateY(-1px); }
.card__thumb { height: 180px; background: #e9eef7; overflow: hidden; position: relative; }
.card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.card__media {
  height: 200px;
  background: #e9eef7;
  overflow: hidden;
  position: relative;
}
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.thumb-placeholder { height: 100%; background: linear-gradient(135deg, rgba(11,74,162,0.12), rgba(7,18,33,0.06)); }
.thumb-placeholder--announcement { background: linear-gradient(135deg, rgba(11,74,162,0.18), rgba(7,18,33,0.10)); }
.card__date-badge,
.card__badge {
  position: absolute;
  background: rgba(7, 18, 33, 0.85);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 8px;
}
.card__thumb--announcement .card__date-badge,
.card__media .card__date-badge {
  bottom: 10px;
  left: 10px;
}
.card--announcement {
  border-radius: 18px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.04);
}
.card--announcement:hover {
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.1), 0 4px 12px rgba(15, 23, 42, 0.06);
}
.card--announcement .card__media,
.card--announcement .card__thumb--announcement {
  border-radius: 18px 18px 0 0;
}
.cards-grid--announcements .card { display: flex; flex-direction: column; }
.cards-grid--announcements .card__body { flex: 1; display: flex; flex-direction: column; }
.cards-grid--announcements .card__text { flex: 1; }
.cards-grid__empty { grid-column: 1 / -1; }
.card__thumb--news .card__date-badge {
  top: 10px;
  left: 10px;
}
.thumb-placeholder--news { background: linear-gradient(135deg, rgba(11,74,162,0.18), rgba(7,18,33,0.10)); }
.card--announcement,
.card--news-card { display: block; }
.card--news-card { border-radius: 18px; }
.card--news-card .card__thumb { border-radius: 18px 18px 0 0; }
.card__meta { font-size: 13px; color: var(--muted); margin-top: 8px; }
.card__body { padding: 14px 14px 16px; }
.card__title { font-weight: 800; letter-spacing: -0.2px; }
.card__text { color: var(--muted); font-size: 14px; margin-top: 6px; }

.card__icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(11, 74, 162, 0.10);
  border: 1px solid rgba(11, 74, 162, 0.16);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  overflow: hidden;
  color: var(--primary);
  font-weight: 900;
}
.card__icon img { width: 26px; height: 26px; object-fit: contain; }

.card--training-name {
  display: flex;
  min-height: 240px;
}
.card--training-name .card__body--centered {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 14px 14px 16px;
}
.card--training-name .card__fullname {
  margin: 0;
  font-weight: 800;
  font-size: 1.15rem;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
  align-items: center;
}
.media-img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.media-placeholder {
  height: 320px;
  border-radius: var(--radius);
  border: 1px dashed rgba(15, 23, 42, 0.25);
  display: grid;
  place-items: center;
  color: var(--muted);
  background: rgba(255,255,255,0.6);
}

.news-layout {
  display: grid;
  grid-template-columns: 1.6fr 0.8fr;
  gap: 14px;
}
.news-item {
  display: block;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.65);
  transition: transform 0.14s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.news-item:hover {
  background: #fff;
  border-color: rgba(11, 74, 162, 0.18);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
  transform: translateY(-2px);
}
.news-item__title { font-weight: 800; }
.news-item__meta { margin-top: 6px; font-size: 13px; color: var(--muted); }

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
}
.meta--big { margin-bottom: 10px; }
.dot { opacity: 0.5; }

.list {
  display: grid;
  gap: 10px;
}
.list__item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  padding: 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.75);
  transition: transform 0.14s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.list__item:hover {
  background: #fff;
  border-color: rgba(11, 74, 162, 0.16);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
  transform: translateY(-2px);
}
.list__title { font-weight: 800; }
.list__meta { color: var(--muted); font-size: 13px; text-align: right; }

.pagination { margin-top: 28px; }
.pagination__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.pagination__current { font-size: 14px; color: var(--muted); font-weight: 600; }
.pagination__link {
  padding: 12px 18px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--primary);
  font-weight: 700;
  font-size: 14px;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.pagination__link:hover {
  background: rgba(11, 74, 162, 0.08);
  border-color: rgba(11, 74, 162, 0.25);
}

/* Certificates registry */
.certificates-search { margin-bottom: 24px; }
.certificates-search__row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.certificates-search__input {
  flex: 1;
  min-width: 220px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 15px;
  outline: none;
}
.certificates-search__input:focus {
  border-color: rgba(11, 74, 162, 0.35);
  box-shadow: 0 0 0 4px rgba(11, 74, 162, 0.10);
}

.certificates-table-wrap {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
}
.certificates-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.certificates-table th {
  text-align: left;
  padding: 14px 18px;
  background: rgba(11, 74, 162, 0.06);
  font-weight: 800;
  color: var(--text);
  border-bottom: 2px solid var(--border);
}
.certificates-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.certificates-table tbody tr:hover {
  background: rgba(11, 74, 162, 0.04);
}
.certificates-table tbody tr:last-child td { border-bottom: none; }
.certificates-table__link {
  display: block;
  color: var(--primary);
  font-weight: 600;
}
.certificates-table__link:hover { text-decoration: underline; }
.certificates-table__empty {
  text-align: center;
  color: var(--muted);
  padding: 32px 18px !important;
}

/* Training section */
.training-section {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 24px 28px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
}
.training-section__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(11, 74, 162, 0.15);
}
.training-section__title {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: var(--text);
}
.training-section__btn { flex-shrink: 0; }
.training-section--certificates .training-section__title { margin-bottom: 20px; }
.training-list-wrap {
  background: rgba(15, 23, 42, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.training-list { display: flex; flex-direction: column; }
.training-list__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition: background 0.2s ease;
  min-height: 56px;
}
.training-list__item:last-child { border-bottom: none; }
.training-list__item:hover { background: rgba(11, 74, 162, 0.04); }
.training-list__main { flex: 1; min-width: 0; }
.training-list__name {
  display: block;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -0.02em;
  line-height: 1.4;
}
.training-list__meta {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}
.training-list__action {
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  padding: 8px 14px;
  border-radius: 10px;
  background: rgba(11, 74, 162, 0.08);
  transition: background 0.2s ease;
}
.training-list__item:hover .training-list__action { background: rgba(11, 74, 162, 0.12); }
/* Kurs haqida / course info block */
.course-info-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 769px) {
  .course-info-block:has(.course-info-block__media) {
    grid-template-columns: 320px 1fr;
    gap: 28px;
    align-items: start;
  }
}
.course-info-block__media { order: -1; }
.course-info-block__img {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--border);
}
.course-info-block__title {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.35;
}
.course-info-block__meta {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 16px;
}
.course-info-block__description {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(15, 23, 42, 0.9);
}
.course-info-block__requirements { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); }
.course-info-block__subtitle {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 800;
}
.course-info-block__requirements-text {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(15, 23, 42, 0.88);
}

.certificate-detail-overlay {
  min-height: calc(100vh - 120px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: rgba(15, 23, 42, 0.06);
}
.certificate-detail-section {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
}
.certificate-detail-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.1), 0 2px 8px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}
.certificate-detail-card--inactive { opacity: 0.92; }
.certificate-detail-card__header {
  padding: 28px 28px 20px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(11, 74, 162, 0.06), rgba(255,255,255,0.5));
}
.certificate-detail-card__title {
  margin: 0 0 4px;
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
}
.certificate-detail-card__subtitle {
  margin: 0 0 20px;
  font-size: 14px;
  color: var(--muted);
}
.certificate-detail-card__body { padding: 24px 28px; }
.certificate-detail-list { margin: 0; display: grid; gap: 14px; }
.certificate-detail-list__row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  align-items: baseline;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}
.certificate-detail-list__row:last-child { border-bottom: none; padding-bottom: 0; }
.certificate-detail-list__term {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.certificate-detail-list__value {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}
.certificate-detail-card__footer {
  padding: 18px 28px;
  border-top: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.02);
}

.page-hero {
  padding: 28px 0;
  background: linear-gradient(135deg, rgba(11, 74, 162, 0.12), rgba(255,255,255,0.55));
  border-bottom: 1px solid var(--border);
}
.page-hero__title {
  margin: 0 0 6px;
  font-size: clamp(22px, 5vw, 30px);
  letter-spacing: -0.3px;
  line-height: 1.3;
}
.breadcrumbs { color: var(--muted); font-size: 13px; word-break: break-word; }
.breadcrumbs a { color: var(--primary); }
.breadcrumbs a:hover { text-decoration: underline; }

.content {
  background: rgba(255,255,255,0.75);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}
.content__text { line-height: 1.7; }
.content__image {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--border);
  margin: 12px 0;
}
.announcement-detail__image {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 20px;
}
.lead { font-size: 16px; color: rgba(15, 23, 42, 0.86); font-weight: 700; }

.contact {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 14px;
}
.contact__info, .contact__form {
  background: rgba(255,255,255,0.75);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}
.contact__line { margin: 8px 0; color: rgba(15, 23, 42, 0.86); }
.form__row { display: grid; gap: 8px; margin-bottom: 12px; }
.form__label { font-weight: 800; font-size: 13px; color: rgba(15, 23, 42, 0.85); }
.form__input, .form__textarea {
  width: 100%;
  border: 1px solid var(--border);
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff;
  outline: none;
}
.form__input:focus, .form__textarea:focus { border-color: rgba(11, 74, 162, 0.35); box-shadow: 0 0 0 4px rgba(11, 74, 162, 0.10); }

.messages { padding: 14px 0 0; }
.message {
  padding: 12px 14px;
  border-radius: 12px;
  margin-bottom: 10px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.85);
}
.message-success { border-color: rgba(16, 185, 129, 0.35); }
.message-error { border-color: rgba(239, 68, 68, 0.35); }

.footer {
  background: #071221;
  color: rgba(255,255,255,0.88);
  border-top: 1px solid rgba(255,255,255,0.08);
}
.footer__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 16px;
  padding: 36px 0;
}
.footer__brand { font-weight: 900; font-size: 18px; margin-bottom: 10px; }
.footer__text { word-break: break-word; }
.footer a { color: rgba(255,255,255,0.92); }
.footer a:hover { text-decoration: underline; }
.footer__socials { margin-top: 12px; display: flex; gap: 12px; flex-wrap: wrap; }
.map-embed iframe { width: 100%; height: 260px; border: 0; border-radius: 14px; max-width: 100%; }
.contact__map { margin-top: 16px; }
.contact__map .map-embed iframe { height: 280px; }
.map-placeholder {
  height: 260px;
  border-radius: 14px;
  border: 1px dashed rgba(255,255,255,0.20);
  display: grid;
  place-items: center;
  color: rgba(255,255,255,0.75);
}
.footer__bottom { border-top: 1px solid rgba(255,255,255,0.08); }
.footer__bottom-inner { padding: 14px 0; font-size: 13px; color: rgba(255,255,255,0.72); }

.empty-state {
  padding: 16px;
  border-radius: var(--radius);
  border: 1px dashed rgba(15, 23, 42, 0.25);
  color: var(--muted);
  background: rgba(255,255,255,0.6);
}

.person { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 14px; }
.person__photo img { width: 110px; height: 110px; object-fit: cover; border-radius: 14px; border: 1px solid var(--border); }
.person__name { font-weight: 900; }
.person__pos { color: var(--muted); margin-top: 2px; }
.person__meta { margin-top: 10px; font-size: 13px; color: rgba(15, 23, 42, 0.80); }
.accordion { padding: 0 14px 14px; }
.accordion__item { border-top: 1px solid var(--border); padding-top: 10px; margin-top: 10px; }
.accordion__title { font-weight: 900; margin-bottom: 6px; }
.accordion__content { color: rgba(15, 23, 42, 0.82); font-size: 14px; }

/* Leadership list: card as link */
.card--person-link { color: inherit; display: block; }
.card--person-link:hover { border-color: rgba(11, 74, 162, 0.22); }
.card--person-link .person__body { flex: 1; min-width: 0; }

/* ========== Leadership detail page ========== */
.leader-detail-section { padding-top: 32px; padding-bottom: 56px; }

.leader-detail {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 32px;
  align-items: start;
}

/* Left: portrait in large rounded card (20–24px) */
.leader-detail__photo-wrap {
  position: sticky;
  top: 80px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.04);
}
.leader-detail__photo {
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  max-height: 480px;
  background: linear-gradient(135deg, rgba(11, 74, 162, 0.12), rgba(7, 18, 33, 0.06));
}
.leader-detail__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.leader-detail__photo-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(11, 74, 162, 0.18), rgba(7, 18, 33, 0.10));
}

/* Right: content in clean white card with soft shadow */
.leader-detail__content-card {
  min-width: 0;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px 32px 32px;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.04);
}
.leader-detail__header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
.leader-detail__title-block { flex: 1; min-width: 0; }
.leader-detail__name {
  margin: 0 0 6px;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.3px;
  line-height: 1.25;
}
.leader-detail__position {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
  font-weight: 600;
}
.leader-detail__contact {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  font-size: 14px;
  color: rgba(15, 23, 42, 0.88);
  flex-shrink: 0;
}
.leader-detail__contact a { color: var(--primary); }
.leader-detail__contact a:hover { text-decoration: underline; }
.leader-detail__contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
}
.leader-detail__contact-icon { font-size: 16px; opacity: 0.9; }

/* Tabs: pill style, modern, active underline */
.leader-detail__tabs-wrap {
  margin-bottom: 24px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.leader-detail__tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  min-width: min-content;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}
.leader-detail__tab {
  padding: 10px 18px 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  font-family: inherit;
  white-space: nowrap;
  flex-shrink: 0;
}
.leader-detail__tab:hover {
  color: var(--text);
  background: rgba(15, 23, 42, 0.07);
}
.leader-detail__tab.is-active {
  color: var(--primary);
  background: rgba(11, 74, 162, 0.08);
  border-color: rgba(11, 74, 162, 0.25);
  border-bottom: 3px solid var(--primary);
  margin-bottom: -3px;
  padding-bottom: 9px;
}
.leader-detail__panels { min-height: 140px; }
.leader-detail__panel { display: none; }
.leader-detail__panel.is-active { display: block; }
.leader-detail__panel-content {
  font-size: 15px;
  line-height: 1.75;
  color: rgba(15, 23, 42, 0.9);
  max-width: 65ch;
}
.leader-detail__panel-content p { margin: 0 0 1em; }
.leader-detail__panel-content p:last-child { margin-bottom: 0; }
.leader-detail__panel-content h1,
.leader-detail__panel-content h2,
.leader-detail__panel-content h3 {
  margin: 1.25em 0 0.5em;
  font-weight: 800;
  line-height: 1.3;
}
.leader-detail__panel-content h1:first-child,
.leader-detail__panel-content h2:first-child,
.leader-detail__panel-content h3:first-child { margin-top: 0; }
.leader-detail__empty { color: var(--muted); font-style: italic; }

/* ========== Responsive breakpoints ========== */
/* Mobile: <= 480px */
/* Small tablets: 481px–768px */
/* Tablets: 769px–1024px */
/* Desktop: >= 1025px */

/* Mobile: hamburger menu, single column */
@media (max-width: 768px) {
  :root { --header-height: 80px; }
  body { padding-top: var(--header-height); }

  .topbar__left .topbar__item:not(:first-child) { display: none; }
  .topbar__inner { padding: 6px 0; gap: 8px; }
  .topbar__left .topbar__item:first-child { font-size: 12px; }

  .navbar__toggle {
    display: flex;
    position: relative;
    z-index: 1300;
  }
  .navbar {
    z-index: 1200;
  }
  .navbar__inner {
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
  }
  .brand__logo { height: 38px; max-height: 38px; }
  .brand__text { font-size: clamp(14px, 3.5vw, 18px); }

  .nav-backdrop {
    position: fixed;
    inset: 0;
    top: var(--header-height);
    background: rgba(7, 18, 33, 0.4);
    z-index: 1195;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
  }
  .nav-backdrop.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 20px 16px;
    overflow-y: auto;
    z-index: 1200;
    transform: translateX(-100%);
    transition: transform 0.25s ease, visibility 0.25s ease, opacity 0.25s ease;
    visibility: hidden;
    pointer-events: none;
    box-shadow: 4px 0 24px rgba(15, 23, 42, 0.15);
  }
  .nav.is-open {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
  }
  .nav__link {
    padding: 14px 16px;
    min-height: 48px;
    border-radius: 12px;
    font-size: 15px;
    white-space: normal;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  }
  .nav__link::after { display: none; }

  .hero { min-height: 380px; }
  .hero__content { padding: 48px 0 40px; }
  .hero__title { font-size: clamp(22px, 5vw, 28px); }
  .hero__subtitle { font-size: 14px; max-width: 100%; }
  .hero__actions { gap: 10px; }

  .section { padding: 32px 0; }
  .section.section--alt { padding: 40px 0; }
  .section__title { font-size: 20px; }
  .section__head { flex-direction: column; align-items: flex-start; gap: 8px; }

  .cards-grid--4, .cards-grid--3 { grid-template-columns: 1fr; gap: 12px; }
  .card__thumb { height: 160px; }
  .card__media { height: 180px; }
  .card__body { padding: 12px 12px 14px; }
  .card__title { font-size: 0.95rem; }

  .split { grid-template-columns: 1fr; gap: 16px; }
  .media-img, .media-placeholder { height: 260px; }

  .news-layout { grid-template-columns: 1fr; gap: 12px; }

  .contact { grid-template-columns: 1fr; gap: 16px; }
  .contact__info, .contact__form { padding: 16px; }
  .form__input, .form__textarea { min-height: 44px; padding: 12px 14px; }

  .footer__grid { grid-template-columns: 1fr; gap: 24px; padding: 28px 0; }
  .footer__bottom-inner { padding: 12px 0; font-size: 12px; }
  .map-embed iframe, .map-placeholder { height: 240px; min-height: 220px; }
  .contact__map .map-embed iframe { height: 260px; }

  .leader-detail {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .leader-detail__photo-wrap { position: static; }
  .leader-detail__photo { max-height: 360px; border-radius: 18px; }
  .leader-detail__content-card { padding: 20px; border-radius: 16px; }
  .leader-detail__header { flex-direction: column; align-items: flex-start; gap: 12px; }
  .leader-detail__contact { align-items: flex-start; }
  .leader-detail__name { font-size: 22px; }
  .leader-detail__position { font-size: 14px; }
  .leader-detail__tabs-wrap { margin-bottom: 20px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .leader-detail__tabs { flex-wrap: nowrap; min-width: min-content; padding-bottom: 4px; }
  .leader-detail__tab {
    padding: 10px 16px 12px;
    font-size: 13px;
    white-space: nowrap;
    min-height: 44px;
  }
  .leader-detail__tab.is-active { padding-bottom: 8px; margin-bottom: -2px; }

  .page-hero { padding: 20px 0; }
  .page-hero__title { font-size: 22px; }

  .content { padding: 14px; }
  .content__image, .announcement-detail__image { max-height: 280px; margin-bottom: 16px; }
  .lead { font-size: 15px; }

  .person { grid-template-columns: 80px 1fr; gap: 12px; padding: 12px; }
  .person__photo img { width: 80px; height: 80px; }
  .person__name { font-size: 0.95rem; }

  .training-section { padding: 18px 16px 22px; }
  .training-section__head { flex-direction: column; align-items: flex-start; }
  .training-section__title { font-size: 20px; }
  .training-list__item {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 16px;
    gap: 12px;
  }
  .training-list__action { align-self: flex-end; }
  .course-info-block__img { max-height: 220px; }

  .certificates-table-wrap { overflow: visible; }
  .certificates-table { font-size: 14px; min-width: 0; display: block; }
  .certificates-table thead { display: none; }
  .certificates-table tbody { display: block; }
  .certificates-table tbody tr {
    display: block;
    padding: 14px;
    margin-bottom: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--card);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
  }
  .certificates-table tbody tr:hover { background: rgba(11, 74, 162, 0.04); }
  .certificates-table td {
    display: block;
    padding: 6px 0;
    border: none;
  }
  .certificates-table td.certificates-table__empty {
    padding: 32px 14px;
    text-align: center;
  }
  .certificates-table td.certificates-table__empty::before { display: none; }
  .certificates-table td::before {
    content: attr(data-label);
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 2px;
  }
  .certificates-table__link { font-size: 15px; }

  .certificate-detail-list__row { grid-template-columns: 1fr; gap: 4px; }
  .certificate-detail-card__header,
  .certificate-detail-card__body,
  .certificate-detail-card__footer { padding: 20px; }
  .certificate-detail-card__title { font-size: 18px; }
  .certificate-detail-overlay { padding: 16px; min-height: auto; }
}

/* Small tablets: 2 columns */
@media (min-width: 481px) and (max-width: 768px) {
  .cards-grid--4, .cards-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { min-height: 420px; }
  .map-embed iframe, .map-placeholder { height: 280px; }
  .contact__map .map-embed iframe { height: 300px; }
}

/* Tablets: 2 columns, compact spacing; navbar slightly smaller to prevent wrap */
@media (min-width: 769px) and (max-width: 1024px) {
  :root { --header-height: 92px; }
  .navbar__inner { gap: 8px; }
  .brand__text { font-size: clamp(15px, 3vw, 18px); }
  .nav__link { font-size: 13px; padding: 10px 8px; }
  .nav { gap: 6px; }
  .cards-grid--4, .cards-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: 1fr; }
  .news-layout { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .leader-detail {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .leader-detail__photo-wrap { position: static; }
  .leader-detail__photo { max-height: 420px; }
  .leader-detail__content-card { padding: 24px; }
  .leader-detail__header { flex-direction: column; align-items: flex-start; }
  .leader-detail__contact { align-items: flex-start; }
}

/* Desktop: nav visible, hamburger hidden, hide mobile backdrop */
@media (min-width: 769px) {
  .navbar__toggle { display: none !important; }
  .nav-backdrop { display: none !important; }
  .nav {
    position: static;
    transform: none;
    visibility: visible;
    flex-direction: row;
    padding: 0;
    overflow: visible;
    background: transparent;
    box-shadow: none;
  }
}

/* Desktop: 3-4 columns */
@media (min-width: 1025px) {
  :root { --header-height: 100px; }
  .cards-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cards-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Very small mobile: <= 480px */
@media (max-width: 480px) {
  .cards-grid--4, .cards-grid--3 { grid-template-columns: 1fr; }
  .hero { min-height: 360px; }
  .hero__content { padding: 40px 0 36px; }
  .hero__title { font-size: 20px; }
  .map-embed iframe, .map-placeholder { height: 220px; min-height: 200px; }
  .contact__map .map-embed iframe { height: 240px; }
  .section__title { font-size: 18px; }
  .page-hero__title { font-size: 20px; }
}

