:root {
  --bg: #f7f6f2;
  --ink: #101418;
  --muted: #5b6670;
  --brand-blue: #1f4e8c;
  --brand-teal: #1f7a8c;
  --brand-gold: #f2b233;
  --brand-green: #1f6f3d;
  --surface: #ffffff;
  --line: #e4e7eb;
  --shadow: 0 14px 40px rgba(13, 24, 38, 0.12);
}

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

html,
body {
  max-width: 100vw;
  overflow-x: hidden;
}

body {
  background: radial-gradient(1200px 600px at 10% -10%, rgba(31, 78, 140, 0.08), transparent 55%),
    radial-gradient(900px 500px at 90% 0%, rgba(31, 122, 140, 0.08), transparent 50%),
    var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
}

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

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

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

.header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(16px);
  background: rgba(247, 246, 242, 0.92);
  border-bottom: 1px solid rgba(228, 231, 235, 0.7);
  box-shadow: 0 2px 12px rgba(13, 24, 38, 0.06);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 700;
  letter-spacing: 0.2px;
  cursor: pointer;
  transition: opacity 0.2s;
}

.brand:hover {
  opacity: 0.8;
}

.brand img {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  box-shadow: 0 8px 22px rgba(31, 78, 140, 0.28);
  transition: transform 0.2s, box-shadow 0.2s;
}

.brand:hover img {
  transform: scale(1.05);
  box-shadow: 0 10px 26px rgba(31, 78, 140, 0.34);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: 0.4px;
  line-height: 1.2;
}

.brand-sub {
  font-size: 0.825rem;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.3;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  gap: 24px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.1px;
}

.nav-links a {
  transition: color 0.2s, transform 0.2s;
  cursor: pointer;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--brand-blue);
  transition: width 0.2s;
}

.nav-links a:hover {
  color: var(--brand-blue);
  transform: translateY(-1px);
}

.nav-links a:hover::after {
  width: 100%;
}

.cta {
  padding: 12px 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-teal));
  color: white;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.2px;
  box-shadow: 0 10px 22px rgba(31, 78, 140, 0.26);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  border: none;
  display: inline-block;
  white-space: nowrap;
}

.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(31, 78, 140, 0.34);
  background: linear-gradient(135deg, #1a4178, #1a6378);
}

.hero {
  padding: 70px 0 50px;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.2rem, 2.5vw + 1.2rem, 3.4rem);
  line-height: 1.1;
}

.hero p {
  margin-top: 16px;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.badge {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(31, 122, 140, 0.1);
  color: var(--brand-teal);
  font-weight: 600;
  font-size: 0.9rem;
}

.hero-card {
  background: var(--surface);
  border-radius: 22px;
  padding: 22px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(31, 78, 140, 0.1);
}

.hero-card img {
  border-radius: 16px;
  border: 1px solid var(--line);
}

.hero-buttons {
  display: flex;
  gap: 12px;
  margin-top: 26px;
  flex-wrap: wrap;
}

.cta-secondary {
  background: #1f6f3d;
}

.section {
  padding: 56px 0;
}

.section-title {
  font-size: clamp(1.6rem, 1vw + 1.2rem, 2.2rem);
  margin-bottom: 12px;
  font-weight: 700;
}

.section-sub {
  color: var(--muted);
  max-width: 680px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 26px;
}

.card {
  background: var(--surface);
  border-radius: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  box-shadow: 0 8px 20px rgba(31, 78, 140, 0.08);
  transition: transform 0.2s, box-shadow 0.2s;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(31, 78, 140, 0.12);
}

.card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  font-weight: 700;
}

.card p,
.card a {
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

.contact-layout .card {
  height: auto;
}

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 26px;
  margin-top: 24px;
  align-items: stretch;
}

.list {
  display: grid;
  gap: 10px;
  color: var(--muted);
}

.list strong {
  color: var(--ink);
}

.cta-strip {
  background: linear-gradient(135deg, rgba(31, 78, 140, 0.1), rgba(31, 122, 140, 0.1));
  border-radius: 20px;
  padding: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(31, 78, 140, 0.14);
}

.cta-strip p {
  color: var(--muted);
  max-width: 520px;
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 22px;
}

.course-card {
  background: var(--surface);
  border-radius: 18px;
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(31, 78, 140, 0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}

.course-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(31, 78, 140, 0.14);
}

.course-card img {
  width: 100%;
  height: 170px;
  object-fit: cover;
}

.course-card .content {
  padding: 16px 18px 20px;
}

.gallery-grid img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  border-radius: 14px;
}

@media (max-width: 600px) {
  .gallery-grid img {
    height: 260px;
  }
}

.footer {
  padding: 48px 0 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(135deg, #0f2847, #1a3a5c);
  color: #f7f9fb;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  margin-bottom: 32px;
}

.footer p {
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.6;
  margin-bottom: 8px;
}

.footer p:last-child {
  margin-bottom: 0;
}

.footer h3 {
  color: #ffffff;
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: 0.3px;
}

.form {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.input,
.textarea {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  font-family: inherit;
  font-size: 1rem;
}

.input:focus,
.textarea:focus {
  outline: none;
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(31, 78, 140, 0.1);
}

.textarea {
  min-height: 120px;
  resize: vertical;
}

.small {
  font-size: 0.9rem;
  color: var(--muted);
}

.notice {
  padding: 16px;
  border-radius: 14px;
  border: 1px dashed rgba(31, 78, 140, 0.3);
  background: rgba(31, 78, 140, 0.05);
  color: var(--muted);
  margin-top: 16px;
}

.nav-mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--ink);
  padding: 4px;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}

.nav-mobile-toggle:hover {
  background: rgba(31, 78, 140, 0.08);
  color: var(--brand-blue);
}

@media (max-width: 720px) {
  .nav {
    align-items: center;
    padding: 16px 0;
  }

  .brand img {
    width: 48px;
    height: 48px;
  }

  .brand-name {
    font-size: 1rem;
  }

  .brand-sub {
    font-size: 0.8rem;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 16px 4%;
    background: rgba(247, 246, 242, 0.98);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    gap: 14px;
    box-shadow: 0 6px 20px rgba(13, 24, 38, 0.08);
    z-index: 29;
    max-height: 70vh;
    overflow-y: auto;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    font-size: 1rem;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(228, 231, 235, 0.5);
    border-radius: 8px;
    transition: background-color 0.2s, color 0.2s;
    color: var(--ink);
    font-weight: 600;
  }

  .nav-links a:hover {
    background-color: rgba(31, 78, 140, 0.08);
    color: var(--brand-blue);
  }

  .nav-links a:last-child {
    border-bottom: none;
  }

  .nav-mobile-toggle {
    display: block;
    z-index: 31;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .cta {
    width: 100%;
    text-align: center;
  }

  .cta-strip {
    flex-direction: column;
    text-align: center;
  }

  .cta-strip .cta {
    width: auto;
  }

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