:root {
  --bg: #f4f7f9;
  --surface: #ffffff;
  --surface-strong: #f9fbfc;
  --ink: #172033;
  --muted: #667085;
  --line: #d9e2ea;
  --primary: #0f766e;
  --primary-dark: #0b4f4a;
  --accent: #d97706;
  --accent-soft: #fff7ed;
  --panel: #102331;
  --shadow: 0 18px 46px rgba(16, 35, 49, 0.13);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(180deg, rgba(15, 118, 110, 0.08), transparent 320px),
    radial-gradient(circle at 90% 10%, rgba(217, 119, 6, 0.12), transparent 260px);
}

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

img {
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(217, 226, 234, 0.9);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
}

.nav-shell,
.hero-inner,
.academy-section,
.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.nav-shell {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand,
.nav-actions,
.hero-actions,
.video-actions,
.footer-contact {
  display: flex;
  align-items: center;
}

.brand {
  min-width: 0;
  gap: 12px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.82rem;
}

.nav-actions {
  gap: 18px;
  color: #344054;
  font-weight: 800;
}

.nav-menu {
  position: relative;
}

.nav-menu-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  color: #344054;
  padding: 0;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.nav-menu-button span {
  font-size: 1rem;
}

.education-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 30;
  width: min(320px, calc(100vw - 32px));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.education-menu-item {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: #fff;
  padding: 12px 14px;
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.education-menu-item:last-child {
  border-bottom: 0;
}

.education-menu-item:hover {
  background: var(--surface-strong);
}

.education-menu-item strong {
  min-width: 28px;
  min-height: 24px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: #eef4f3;
  color: var(--primary-dark);
  padding: 0 8px;
  font-size: 0.78rem;
}

.call-link,
.primary-button,
.secondary-button,
.icon-search-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  padding: 0 16px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
}

.call-link,
.primary-button,
.icon-search-button {
  border: 1px solid var(--primary);
  background: var(--primary);
  color: #fff;
}

.secondary-button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.call-link:hover,
.primary-button:hover,
.secondary-button:hover,
.icon-search-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(16, 35, 49, 0.12);
}

.hero {
  padding: 54px 0 34px;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(340px, 0.97fr);
  gap: 34px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--primary-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 16px;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  line-height: 1;
  letter-spacing: 0;
}

.hero-text {
  max-width: 720px;
  margin-bottom: 24px;
  color: #42526b;
  font-size: 1.08rem;
  line-height: 1.7;
}

.hero-actions {
  gap: 12px;
  flex-wrap: wrap;
}

.hero-search-panel {
  width: min(100%, 720px);
  margin: 18px 0 0;
}

.hero-panel {
  overflow: hidden;
  border: 1px solid rgba(217, 226, 234, 0.86);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.hero-gallery {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  grid-template-rows: 170px 140px;
  gap: 1px;
  background: rgba(255, 255, 255, 0.14);
}

.hero-thumb {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 0;
  padding: 0;
  background: #203848;
  cursor: pointer;
}

.hero-thumb-1 {
  grid-row: span 2;
}

.hero-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  opacity: 0.82;
  transition: transform 220ms ease, opacity 220ms ease;
}

.hero-thumb:hover img {
  transform: scale(1.04);
  opacity: 1;
}

.hero-thumb span {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  overflow: hidden;
  border-radius: var(--radius);
  background: rgba(16, 35, 49, 0.78);
  color: #fff;
  padding: 8px 10px;
  font: 800 0.78rem/1.2 Inter, sans-serif;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(255, 255, 255, 0.14);
}

.hero-stats div {
  min-height: 112px;
  display: grid;
  align-content: center;
  background: #102331;
  padding: 20px;
}

.hero-stats strong {
  color: #fff;
  font-size: 2.2rem;
}

.hero-stats span {
  color: #b7c7d4;
  font-weight: 800;
}

.academy-section {
  padding: 28px 0 70px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.section-heading h2 {
  margin-bottom: 0;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
}

.search-panel {
  display: grid;
  gap: 10px;
  margin: 0 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 16px;
  box-shadow: 0 10px 26px rgba(16, 35, 49, 0.06);
}

.search-panel label {
  color: #344054;
  font-weight: 800;
}

.search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 50px auto;
  gap: 10px;
}

.search-row input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-strong);
  padding: 0 14px;
  color: var(--ink);
  font: inherit;
}

.search-row input:focus {
  outline: 3px solid rgba(15, 118, 110, 0.16);
  border-color: var(--primary);
  background: #fff;
}

.icon-search-button {
  width: 50px;
  padding: 0;
  font-size: 1.4rem;
}

.result-summary {
  min-height: 24px;
  margin: 0 0 10px;
  color: var(--muted);
  font-weight: 800;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  overflow: visible;
  padding: 4px 0 18px;
}

.tab {
  min-height: 44px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 0 16px;
  color: #344054;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.tab-count {
  min-width: 26px;
  min-height: 24px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: #eef4f3;
  color: var(--primary-dark);
  padding: 0 8px;
  font-size: 0.78rem;
}

.tab[aria-selected="true"] {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.tab[aria-selected="true"] .tab-count {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

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

.video-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 10px 24px rgba(16, 35, 49, 0.07);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.video-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(16, 35, 49, 0.12);
}

.thumb-button {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  display: block;
  padding: 0;
  background: #d9e2ea;
  cursor: pointer;
}

.thumb-button img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.thumb-button::after {
  position: absolute;
  inset: auto 0 0;
  height: 45%;
  content: "";
  background: linear-gradient(180deg, transparent, rgba(16, 35, 49, 0.55));
}

.play-badge {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
}

.play-badge span {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.94);
  color: #fff;
  font-size: 1.35rem;
  padding-left: 4px;
  box-shadow: 0 12px 30px rgba(16, 35, 49, 0.25);
}

.video-card-body {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.video-card h3 {
  min-height: 54px;
  margin-bottom: 0;
  font-size: 1rem;
  line-height: 1.35;
}

.video-meta,
.video-count {
  margin-bottom: 0;
  font-size: 0.9rem;
  font-weight: 800;
}

.video-meta {
  color: var(--primary-dark);
}

.video-count {
  color: var(--muted);
}

.video-actions {
  gap: 10px;
  flex-wrap: wrap;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  padding: 24px;
}

.modal.is-open {
  display: grid;
  place-items: center;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 35, 49, 0.78);
}

.modal-dialog {
  position: relative;
  width: min(960px, 100%);
  border-radius: var(--radius);
  background: #fff;
  padding: 20px;
  box-shadow: var(--shadow);
}

.modal-dialog h2 {
  max-width: calc(100% - 54px);
  margin-bottom: 16px;
  font-size: 1.25rem;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
}

.icon-button {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 1.4rem;
  cursor: pointer;
}

.video-frame {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius);
  background: #0f172a;
}

.video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.empty-state {
  grid-column: 1 / -1;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 32px;
  color: var(--muted);
  text-align: center;
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #102331;
  color: #fff;
  padding: 34px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-footer .eyebrow {
  color: #9ccfca;
}

.footer-brand-link {
  display: inline-flex;
  font-size: 1.25rem;
  font-weight: 800;
}

.footer-contact {
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  font-style: normal;
}

.footer-contact a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  padding: 0 12px;
  color: #e6edf3;
  font-weight: 800;
}

.whatsapp-link {
  background: #128c7e;
}

.whatsapp-icon,
.whatsapp-icon svg {
  width: 20px;
  height: 20px;
}

.whatsapp-icon {
  display: inline-flex;
  color: #fff;
}

.whatsapp-icon svg,
.floating-whatsapp svg {
  fill: currentColor;
}

.scroll-top-button,
.floating-whatsapp {
  position: fixed;
  bottom: 22px;
  z-index: 50;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  box-shadow: var(--shadow);
}

.scroll-top-button {
  right: 22px;
  border: 0;
  background: var(--accent);
  cursor: pointer;
  font: inherit;
  font-size: 1.35rem;
  font-weight: 900;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.floating-whatsapp {
  right: 82px;
  background: #128c7e;
}

.floating-whatsapp svg {
  width: 28px;
  height: 28px;
}

.scroll-top-button.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    max-width: 680px;
  }

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

@media (max-width: 640px) {
  .nav-shell,
  .hero-inner,
  .academy-section,
  .footer-inner {
    width: min(100% - 22px, 1180px);
  }

  .nav-shell {
    min-height: 68px;
  }

  .brand small,
  .nav-actions > a:not(.call-link) {
    display: none;
  }

  .call-link,
  .primary-button,
  .secondary-button {
    min-height: 42px;
    padding: 0 12px;
    font-size: 0.92rem;
  }

  .hero {
    padding-top: 38px;
  }

  h1 {
    font-size: 2.25rem;
  }

  .hero-gallery {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 150px 110px;
  }

  .hero-thumb-1 {
    grid-column: span 2;
    grid-row: auto;
  }

  .hero-thumb-4 {
    display: none;
  }

  .hero-stats,
  .video-grid,
  .search-row {
    grid-template-columns: 1fr;
  }

  .icon-search-button {
    width: 100%;
  }

  .section-heading {
    display: block;
  }

  .modal {
    padding: 10px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-contact {
    justify-content: flex-start;
  }

  .floating-whatsapp {
    right: 76px;
  }
}
