:root {
  --ink: #10201d;
  --muted: #5d6d68;
  --paper: #f7fbfa;
  --white: #ffffff;
  --teal: #0f766e;
  --green: #6a9b3f;
  --gold: #d9a441;
  --line: rgba(16, 32, 29, 0.12);
  --shadow: 0 24px 70px rgba(16, 32, 29, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

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

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  background: rgba(247, 251, 250, 0.86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.navbar {
  width: min(1160px, calc(100% - 32px));
  height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--white);
  background: linear-gradient(135deg, var(--teal), var(--green));
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
  white-space: nowrap;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  color: #273c37;
  font-size: 15px;
  font-weight: 600;
}

.nav-links a {
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover {
  color: var(--teal);
  transform: translateY(-2px);
}

.nav-cta {
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 10px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  background: var(--ink);
}

.hero-bg,
.hero-bg img,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  animation: slowZoom 16s ease-in-out infinite alternate;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(9, 25, 22, 0.88) 0%, rgba(9, 25, 22, 0.62) 42%, rgba(9, 25, 22, 0.18) 100%),
    linear-gradient(180deg, rgba(9, 25, 22, 0.24) 0%, rgba(9, 25, 22, 0.62) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding-top: 110px;
  max-width: 1160px;
}

.hero-content h1 {
  max-width: 760px;
  color: var(--white);
  text-shadow: 0 18px 48px rgba(0, 0, 0, 0.34);
  animation: textRise 0.9s ease both 0.18s;
}

.hero-content .eyebrow {
  color: #9ee7d4;
  animation: textRise 0.8s ease both 0.05s;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(40px, 7vw, 78px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 10px;
  font-size: 21px;
  line-height: 1.25;
}

.hero-copy {
  max-width: 590px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 19px;
  animation: textRise 0.9s ease both 0.32s;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
  animation: textRise 0.9s ease both 0.46s;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 22px;
  border-radius: 8px;
  font-weight: 800;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.btn:hover {
  transform: translateY(-4px) scale(1.02);
}

.btn.primary {
  color: var(--white);
  background: var(--teal);
  box-shadow: 0 16px 34px rgba(15, 118, 110, 0.28);
}

.btn.secondary {
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(12px);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
  animation: textRise 0.9s ease both 0.58s;
}

.hero-stats span {
  padding: 13px 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
  backdrop-filter: blur(12px);
}

.hero-stats strong {
  color: #9ee7d4;
}

.section {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 92px 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-copy {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.intro-grid,
.course-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.intro-grid {
  grid-template-columns: repeat(3, minmax(240px, 320px));
  justify-content: center;
  padding: 0 28px;
}

.intro-card,
.course-card,
.contact-card,
.admission-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 18px 54px rgba(16, 32, 29, 0.08);
}

.intro-card,
.course-card {
  position: relative;
  overflow: hidden;
  padding: 28px;
  min-height: 230px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.course-card {
  display: flex;
  flex-direction: column;
}

.intro-card::after,
.course-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.52) 45%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.65s ease;
  pointer-events: none;
}

.intro-card:hover,
.course-card:hover {
  transform: translateY(-10px) scale(1.01);
  border-color: rgba(15, 118, 110, 0.35);
  box-shadow: var(--shadow);
}

.intro-card:hover::after,
.course-card:hover::after {
  transform: translateX(120%);
}

.icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  border-radius: 8px;
  color: var(--white);
  background: var(--green);
  font-weight: 900;
}

.intro-card p,
.course-card p,
.split-copy p,
.admission-box p,
.contact-main > p:not(.eyebrow) {
  color: var(--muted);
  margin: 0;
}

.split {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  align-items: center;
  gap: 52px;
}

.image-panel {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.image-panel.visible {
  animation: softFloat 5s ease-in-out infinite;
}

.image-panel img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.image-panel:hover img {
  transform: scale(1.06);
}

.split-copy p {
  margin-top: 18px;
  font-size: 18px;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  gap: 14px;
}

.check-list li {
  position: relative;
  padding: 14px 16px 14px 44px;
  border-radius: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  font-weight: 700;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 20px;
  width: 12px;
  height: 7px;
  border-left: 3px solid var(--teal);
  border-bottom: 3px solid var(--teal);
  transform: rotate(-45deg);
}

.courses {
  width: 100%;
  max-width: none;
  padding: 92px max(16px, calc((100% - 1160px) / 2));
  background: #e9f3ef;
}

.course-card a {
  display: inline-block;
  margin-top: auto;
  color: var(--teal);
  font-weight: 800;
  padding-top: 22px;
}

.course-duration {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin-bottom: 16px;
  padding: 5px 10px;
  border-radius: 8px;
  color: var(--white);
  background: var(--teal);
  font-size: 13px;
  font-weight: 800;
}

.facility-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.facility-item {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 88px;
  padding: 22px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.6);
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.facility-item:hover {
  transform: translateX(10px);
  background: var(--white);
  box-shadow: 0 16px 36px rgba(16, 32, 29, 0.08);
}

.facility-item strong {
  color: var(--gold);
  font-size: 28px;
}

.facility-item span {
  font-size: 18px;
  font-weight: 700;
}

.admission {
  width: 100%;
  max-width: none;
  padding: 92px max(16px, calc((100% - 1160px) / 2));
  background: var(--ink);
}

.admission-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  padding: 40px;
  background: linear-gradient(135deg, #ffffff, #edf7f5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.admission-box:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.admission-box div {
  max-width: 710px;
}

.contact-card {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 0;
  overflow: hidden;
  padding: 0;
}

.contact-main {
  padding: 42px;
}

.contact-form {
  display: grid;
  gap: 16px;
  width: min(100%, 560px);
  margin-top: 30px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fcfb;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.contact-form:hover {
  transform: translateY(-4px);
  border-color: rgba(15, 118, 110, 0.24);
  box-shadow: 0 18px 44px rgba(16, 32, 29, 0.1);
}

.form-row {
  display: grid;
  gap: 8px;
}

.form-row.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.contact-form label {
  color: #203a35;
  font-size: 14px;
  font-weight: 800;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: rgba(15, 118, 110, 0.55);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.1);
  transform: translateY(-2px);
}

.contact-form .btn {
  width: fit-content;
  border: 0;
  cursor: pointer;
}

.contact-details {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 14px;
  min-height: 100%;
  padding: 68px 34px 52px;
  text-align: center;
  color: var(--white);
  background:
    linear-gradient(145deg, rgba(15, 118, 110, 0.95), rgba(16, 32, 29, 0.98)),
    var(--ink);
  animation: glowPulse 5s ease-in-out infinite;
}

.contact-details a,
.contact-details span {
  width: 100%;
  padding: 14px 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.92);
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.contact-details h3 {
  margin-bottom: 8px;
  color: var(--white);
  font-size: 30px;
}

.contact-details .contact-label {
  margin: 0;
  color: #9ee7d4;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.contact-details .contact-call {
  display: inline-flex;
  justify-content: center;
  margin-top: 12px;
  color: var(--ink);
  background: var(--white);
  border-color: var(--white);
}

.footer {
  padding: 58px 16px 0;
  color: rgba(255, 255, 255, 0.78);
  border-top: 1px solid var(--line);
  background: #10201d;
}

.footer p {
  margin: 0;
}

.footer-grid {
  width: min(1160px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.35fr 0.75fr 1.05fr 0.65fr;
  gap: 34px;
}

.footer-col h3 {
  margin: 0 0 18px;
  color: var(--white);
  font-size: 18px;
}

.footer-brand .brand {
  margin-bottom: 18px;
}

.footer-brand .brand strong,
.footer-brand .brand small {
  color: var(--white);
}

.footer-brand p {
  max-width: 360px;
}

.footer-links,
.footer-contact {
  display: grid;
  gap: 11px;
}

.footer-links a,
.footer-contact a,
.footer-contact span {
  color: rgba(255, 255, 255, 0.76);
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-links a:hover,
.footer-contact a:hover {
  color: #9ee7d4;
  transform: translateX(4px);
}

.social-links {
  display: flex;
  gap: 12px;
}

.social {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--white);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.social:hover {
  transform: translateY(-4px) scale(1.05);
}

.social svg {
  width: 23px;
  height: 23px;
  fill: currentColor;
}

.social.instagram {
  background: linear-gradient(135deg, #f58529, #dd2a7b 52%, #8134af);
  box-shadow: 0 14px 28px rgba(221, 42, 123, 0.28);
}

.social.facebook {
  background: #1877f2;
  box-shadow: 0 14px 28px rgba(24, 119, 242, 0.24);
}

.footer-bottom {
  width: min(1160px, 100%);
  margin: 42px auto 0;
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
  color: rgba(255, 255, 255, 0.62);
}

.footer-bottom a {
  color: #9ee7d4;
  font-weight: 800;
}

.reveal {
  opacity: 0;
  transform: translateY(34px) scale(0.98);
  filter: blur(6px);
  transition:
    opacity 0.8s ease var(--reveal-delay, 0ms),
    transform 0.8s ease var(--reveal-delay, 0ms),
    filter 0.8s ease var(--reveal-delay, 0ms);
}

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

.section-heading.reveal {
  transform: translateY(28px);
}

.image-panel.reveal {
  transform: translateX(-34px) scale(0.97);
}

.split-copy.reveal {
  transform: translateX(34px) scale(0.98);
}

.image-panel.reveal.visible,
.split-copy.reveal.visible {
  transform: translateX(0) scale(1);
}

.form-sent {
  animation: formPop 0.75s ease;
}

@keyframes slowZoom {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.08);
  }
}

@keyframes textRise {
  from {
    opacity: 0;
    transform: translateY(22px);
    filter: blur(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes softFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes glowPulse {
  0%,
  100% {
    box-shadow: inset 0 0 0 rgba(255, 255, 255, 0), 0 0 0 rgba(15, 118, 110, 0);
  }
  50% {
    box-shadow: inset 0 0 44px rgba(255, 255, 255, 0.06), 0 18px 44px rgba(15, 118, 110, 0.16);
  }
}

@keyframes formPop {
  0%,
  100% {
    transform: translateY(-4px) scale(1);
  }
  45% {
    transform: translateY(-6px) scale(1.018);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 860px) {
  .navbar {
    height: 68px;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 76px;
    display: grid;
    gap: 6px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
  }

  .nav-links.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-links a {
    padding: 12px;
    border-radius: 8px;
  }

  .nav-links a:hover {
    background: #edf7f5;
  }

  .hero {
    min-height: 86vh;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(9, 25, 22, 0.84) 0%, rgba(9, 25, 22, 0.72) 58%, rgba(9, 25, 22, 0.36) 100%),
      linear-gradient(90deg, rgba(9, 25, 22, 0.88) 0%, rgba(9, 25, 22, 0.26) 100%);
  }

  .hero-content {
    padding-top: 106px;
  }

  .intro-grid,
  .split,
  .facility-list,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .intro-grid {
    padding: 0;
  }

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

  .section,
  .courses,
  .admission {
    padding-top: 70px;
    padding-bottom: 70px;
  }

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

  .admission-box {
    align-items: flex-start;
    flex-direction: column;
    padding: 28px;
  }
}

@media (max-width: 520px) {
  .brand strong {
    max-width: 180px;
    white-space: normal;
    line-height: 1.15;
  }

  .brand small {
    display: none;
  }

  h1 {
    font-size: 38px;
  }

  .hero-copy {
    font-size: 17px;
  }

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

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

  .intro-card,
  .course-card {
    padding: 24px;
  }

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

  .footer {
    padding-top: 42px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .contact-main,
  .contact-details {
    padding: 26px;
  }

  .contact-details {
    padding-top: 42px;
    padding-bottom: 38px;
  }

  .contact-form {
    padding: 18px;
  }

  .form-row.two-col {
    grid-template-columns: 1fr;
  }

  .contact-form .btn {
    width: 100%;
  }
}
