:root {
  --bg: #f5f7fc;
  --surface: #ffffff;
  --surface-soft: #f9fbff;
  --ink: #20283a;
  --muted: #68748f;
  --line: #e1e8f4;
  --brand: #ff7a21;
  --brand-2: #ff9f62;
  --brand-3: #2d62c9;
  --radius: 14px;
  --shadow: 0 14px 28px rgba(34, 55, 109, 0.1);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 16px;
  color: var(--ink);
  background: radial-gradient(900px 380px at -12% -8%, rgba(45, 98, 201, 0.08), transparent 45%), radial-gradient(860px 340px at 110% 0%, rgba(255, 122, 33, 0.08), transparent 44%), var(--bg);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

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

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

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

.icon {
  width: 1em;
  height: 1em;
  display: inline-block;
  fill: currentColor;
  flex: 0 0 auto;
}

.icon-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.icon-badge {
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #eef3ff;
  color: #3b5cb2;
  border: 1px solid #d5e1fa;
  margin-bottom: 0.48rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(245, 247, 252, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.brand img {
  width: auto;
  height: 40px;
  max-width: 210px;
}

.brand span {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.nav-links a {
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
  background: linear-gradient(125deg, var(--brand), var(--brand-2));
}

.nav-toggle {
  display: none;
  flex-direction: column;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  width: 42px;
  height: 38px;
  padding: 0;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 16px;
  height: 2px;
  background: #394563;
  margin: 2px 0;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-wrap.is-open .nav-toggle span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-wrap.is-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.nav-wrap.is-open .nav-toggle span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.hero {
  padding: 1rem 0 1.5rem;
}

.hero-shell {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: clamp(1rem, 2.3vw, 1.6rem);
}

.hero-grid, .hero-shell {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1.12fr 0.88fr;
  align-items: center;
}

.hero-content h1 {
  margin: 0.65rem 0 0.9rem;
  font-family: "Sora", "Manrope", sans-serif;
  font-size: clamp(2rem, 5vw, 3.1rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.pill {
  display: inline-block;
  border-radius: 999px;
  background: #fff2e8;
  color: #cc5b12;
  border: 1px solid #ffd4b6;
  font-size: 13px;
  font-weight: 700;
  padding: 0.3rem 0.72rem;
}

.lead {
  color: var(--muted);
  font-size: 16px;
  max-width: 62ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.6rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  padding: 0.74rem 1rem;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(125deg, var(--brand), var(--brand-2));
  box-shadow: 0 10px 18px rgba(255, 122, 33, 0.23);
}

.btn-ghost {
  color: #35415f;
  background: #fff;
  border: 1px solid #d5deef;
}

.tag-row {
  margin-top: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.tag-row a {
  background: #f2f6ff;
  border: 1px solid #dde6fa;
  color: #4260a6;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  padding: 0.38rem 0.68rem;
}

.hero-card {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: radial-gradient(circle at 84% 18%, rgba(126, 132, 235, 0.18), transparent 42%), #fff;
  box-shadow: 0 14px 24px rgba(48, 67, 121, 0.16);
  padding: 0.62rem;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.hero-card img {
  border-radius: 12px;
  width: 100%;
  min-height: 280px;
  object-fit: contain;
}

.hero-card--guru::before {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  right: -48px;
  top: -20px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 122, 33, 0.24), rgba(255, 122, 33, 0.02));
}

.hero-card--guru::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  left: -72px;
  bottom: -72px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(45, 98, 201, 0.18), rgba(45, 98, 201, 0.02));
}

.hero-figure {
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease, filter 0.3s ease;
  transform-origin: center bottom;
}

.hero-card--guru:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 34px rgba(48, 67, 121, 0.2);
}

.hero-card--guru:hover .hero-figure {
  transform: scale(1.03);
  filter: drop-shadow(0 8px 14px rgba(58, 80, 148, 0.22));
}

.hero-card--guru.is-pop .hero-figure {
  animation: hero-pop 420ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes hero-pop {
  0% {
    transform: scale(1);
  }
  45% {
    transform: scale(1.06);
  }
  100% {
    transform: scale(1);
  }
}
.section {
  padding: 1.7rem 0;
}

.section-accent {
  background: linear-gradient(180deg, rgba(255, 122, 33, 0.08), rgba(45, 98, 201, 0.03));
  border-top: 1px solid #f1d5bf;
  border-bottom: 1px solid #dbe3f4;
}

.news-strip {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: 1.1fr 1fr 1fr;
  align-items: stretch;
}

.news-intro, .news-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 8px 18px rgba(50, 71, 127, 0.08);
}

.news-intro h2 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.news-intro p {
  color: var(--muted);
  margin: 0 0 0.8rem;
}

.news-date {
  font-size: 12px;
  color: #ff7a21;
  font-weight: 800;
  letter-spacing: 0.06em;
  margin: 0 0 0.3rem;
}

.news-item h3 {
  font-size: 1.03rem;
  margin: 0 0 0.4rem;
}

.news-item p {
  color: var(--muted);
  margin: 0;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.7rem;
}

.section-head h2 {
  margin: 0;
  font-size: 1.7rem;
}

.section-head a {
  color: #3f61b0;
  font-size: 15px;
  font-weight: 700;
}

.course-grid {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.course-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(50, 71, 127, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
}

.course-card h3 .icon-badge,
.card h3 .icon-badge {
  margin-right: 0.5em;
}

.course-card:hover {
  transform: translateY(-3px);
  border-color: #c4d2f4;
  box-shadow: 0 14px 24px rgba(58, 77, 130, 0.16);
}

.course-card img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  background: #f3f6ff;
}

.course-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.9rem;
  min-height: 190px;
}

.course-card h3 {
  margin: 0;
  font-size: 1.02rem;
}

.course-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.read-more {
  margin-top: 0.66rem;
  display: inline-flex;
  color: var(--brand);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.callout {
  background: linear-gradient(120deg, #fff7ef, #f7f9ff);
  border: 1px solid #ffd7bd;
  color: #2d3752;
  border-radius: 16px;
  padding: 1.3rem;
  box-shadow: 0 10px 20px rgba(67, 85, 135, 0.09);
}

.callout h2 {
  margin: 0 0 0.55rem;
  font-size: 1.65rem;
}

.callout p {
  color: #5b6784;
  margin: 0 0 0.8rem;
}

.site-footer {
  margin-top: 1.2rem;
  border-top: 1px solid var(--line);
  padding: 1.6rem 0 1.9rem;
  background: linear-gradient(160deg, #ffffff, #f7faff);
}

.footer-wrap {
  display: grid;
  gap: 1rem;
}

.footer-rich {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1.3fr 0.9fr 1fr;
  align-items: start;
}

.footer-brand strong {
  display: block;
  margin-bottom: 0.32rem;
  font-size: 1.05rem;
}

.footer-brand p {
  margin: 0 0 0.6rem;
  color: var(--muted);
}

.footer-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #4b6eba;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.28rem 0.58rem;
  border: 1px solid #cfdbf4;
  border-radius: 999px;
  background: #f4f8ff;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 0.45rem 0.75rem;
  color: #60708f;
}

.footer-links a {
  font-size: 0.93rem;
  font-weight: 600;
}

.footer-contact p {
  margin: 0.12rem 0 0.5rem;
  color: var(--muted);
}

.contact-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-list li {
  margin: 0 0 0.35rem;
}

.contact-list a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #4663aa;
  font-weight: 700;
  font-size: 0.9rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
  border-top: 1px solid #dfe6f5;
  padding-top: 0.9rem;
  color: #7a88a4;
  font-size: 0.88rem;
}

.footer-links a:hover {
  color: #3f61b0;
}

.list-plain {
  margin: 0;
  padding-left: 1rem;
}

.list-plain li {
  margin: 0.42rem 0;
  color: #61708f;
}

/* legacy classes for inner pages */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 8px 18px rgba(50, 71, 127, 0.08);
}

.card h3 {
  margin: 0 0 0.42rem;
  font-size: 1rem;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.card-link {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card-link:hover {
  transform: translateY(-3px);
  border-color: #c4d2f4;
  box-shadow: 0 14px 24px rgba(58, 77, 130, 0.16);
}

.split {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.1rem;
}

.list-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.95rem;
}

.list-panel ul {
  margin: 0;
  padding-left: 1rem;
}

.list-panel li {
  margin: 0.45rem 0;
  color: #70809f;
}

.register-shell {
  display: grid;
  grid-template-columns: 1fr 0.94fr;
  gap: 1rem;
}

.register-form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 12px 24px rgba(48, 67, 121, 0.12);
  padding: 1rem;
}

.register-field {
  margin-bottom: 0.82rem;
}

.register-field label {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.register-field input,
.register-field textarea {
  width: 100%;
  border: 1px solid #cfdbf4;
  border-radius: 10px;
  padding: 0.72rem 0.78rem;
  font: inherit;
  color: var(--ink);
  background: #fdfefe;
}

.register-field textarea {
  min-height: 140px;
  resize: vertical;
}

.register-field input:focus,
.register-field textarea:focus {
  outline: 0;
  border-color: #8ba6e7;
  box-shadow: 0 0 0 3px rgba(71, 108, 195, 0.14);
}

.field-error {
  min-height: 1rem;
  margin-top: 0.2rem;
  color: #b42318;
  font-size: 0.82rem;
  font-weight: 600;
}

.form-status {
  margin-bottom: 0.8rem;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 0.92rem;
  display: none;
}

.form-status:not(:empty) {
  display: block;
}

.form-status--error {
  background: #fff2f0;
  border-color: #f7c1b9;
  color: #912018;
}

.form-status--success {
  background: #f0fcf4;
  border-color: #b7ebc7;
  color: #17663a;
}

.register-help {
  background: linear-gradient(150deg, #f7f9ff, #fff7ef);
  border: 1px solid #dfe8fb;
  border-radius: 14px;
  padding: 1rem;
}

.register-help h3 {
  margin: 0 0 0.44rem;
  font-size: 1.08rem;
}

.register-help p {
  margin: 0 0 0.58rem;
  color: var(--muted);
}

@media (max-width: 920px) {
  .hero-shell,
  .hero-grid,
  .news-strip,
  .grid-3,
  .grid-2,
  .split,
  .register-shell {
    grid-template-columns: 1fr;
  }
  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
    position: relative;
    z-index: 45;
  }
  .nav-links {
    width: min(320px, 86vw);
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin-top: 0;
    padding: 1rem;
    border-left: 1px solid var(--line);
    background: #fff;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    height: 100dvh;
    min-height: 100vh;
    z-index: 30;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;
    transform: translateX(100%);
    transition: transform 0.22s ease;
    box-shadow: -18px 0 36px rgba(52, 67, 112, 0.26);
  }
  .nav-wrap.is-open .nav-links {
    transform: translateX(0);
  }
  .nav-wrap.is-open .nav-toggle {
    position: fixed;
    top: 18px;
    right: 14px;
    z-index: 45;
    background: #fff;
  }
  .nav-links a {
    width: 100%;
    font-size: 14px;
  }
  .course-grid {
    grid-template-columns: 1fr;
  }
  .footer-rich {
    grid-template-columns: 1fr;
  }
  .footer-links {
    grid-template-columns: 1fr 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  .course-card__body {
    min-height: auto;
  }
  .hero-grid .btn,
  .container.callout .btn {
    width: 100%;
  }
  body.nav-open {
    overflow: hidden;
    height: 100%;
  }
  body.nav-open::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(20, 27, 44, 0.4);
    z-index: 20;
  }
}
