
:root {
  --blue: #0057a4;
  --blue-dark: #003a70;
  --yellow: #ffd447;
  --yellow-soft: #fff7cc;
  --red: #c1121f;
  --bg: #fefce8;
  --text: #111827;
  --text-muted: #4b5563;
  --card-bg: #ffffff;
  --border: #e5e7eb;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #fff9c4 0, var(--bg) 45%, #ffffff 100%);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: var(--blue-dark);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: linear-gradient(to right, var(--blue-dark), var(--blue));
  color: #f9fafb;
  box-shadow: 0 4px 12px rgba(15,23,42,0.35);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0;
  gap: 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-img {
  height: 52px;
  width: auto;
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  background: #ffffff;
}

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

.logo-title {
  font-weight: 700;
  letter-spacing: 0.05em;
  font-size: 0.95rem;
  text-transform: uppercase;
}

.logo-subtitle {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #e5e7eb;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-links {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 0.75rem;
}

.nav-links a {
  font-size: 0.9rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  color: #e5e7eb;
  text-decoration: none;
  transition: background-color 0.16s ease, color 0.16s ease, transform 0.08s ease;
}

.nav-links a:hover {
  background: rgba(255,255,255,0.12);
  color: #ffffff;
  transform: translateY(-1px);
}

.nav-register {
  margin-left: 0.25rem;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: 0.5rem;
  font-size: 0.75rem;
  color: #e5e7eb;
}

.lang-btn {
  background: transparent;
  border: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  padding: 0.1rem 0.35rem;
  border-radius: 999px;
  transition: background-color 0.16s ease, color 0.16s ease;
}

.lang-btn.active,
.lang-btn:hover {
  background: rgba(255,255,255,0.22);
  color: #111827;
}

.lang-divider {
  opacity: 0.6;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: transparent;
  border: none;
  padding: 0.25rem;
  cursor: pointer;
}
.nav-toggle span {
  width: 20px;
  height: 2px;
  background: #f9fafb;
  border-radius: 999px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: none;
  background: linear-gradient(to right, var(--yellow), #ffe27a);
  color: #1f2937;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(148, 163, 184, 0.6);
  text-decoration: none;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(148, 163, 184, 0.9);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(15,23,42,0.2);
  background: #ffffff;
  color: var(--text);
  font-size: 0.85rem;
  text-decoration: none;
  transition: background-color 0.12s ease, border-color 0.12s ease;
}
.btn-outline:hover {
  background: var(--yellow-soft);
  border-color: var(--yellow);
}

.page-main {
  padding-bottom: 3rem;
}

.hero {
  padding: 2.5rem 0 2rem;
  background: linear-gradient(135deg, rgba(0,87,164,0.12), rgba(255,212,71,0.25));
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(0, 1.4fr);
  gap: 2rem;
  align-items: center;
}

.hero-text h1 {
  font-size: clamp(1.7rem, 2.4vw, 2.2rem);
  margin: 0 0 0.75rem;
  color: var(--blue-dark);
}

.hero-text p {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-panel {
  background: #ffffff;
  border-radius: 1rem;
  border: 2px solid var(--blue);
  padding: 1.25rem 1.4rem;
  box-shadow: 0 18px 38px rgba(15,23,42,0.18);
}

.hero-panel h2 {
  margin-top: 0;
  font-size: 1.1rem;
  color: var(--blue-dark);
}

.hero-panel p {
  margin-bottom: 0.5rem;
  font-size: 0.94rem;
}

.section {
  padding: 2.25rem 0;
}

.section-alt {
  background: rgba(255, 247, 209, 0.8);
}

.section-small {
  padding-top: 1rem;
}

h1, h2, h3 {
  color: var(--blue-dark);
}

h1 {
  font-size: 1.6rem;
  margin: 0 0 1rem;
}
h2 {
  font-size: 1.25rem;
  margin: 0 0 0.6rem;
}
h3 {
  font-size: 1.05rem;
  margin: 1.1rem 0 0.35rem;
}

p {
  margin: 0 0 0.9rem;
  font-size: 0.96rem;
}

.two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  align-items: flex-start;
}

.card {
  background: var(--card-bg);
  border-radius: 1rem;
  border: 1px solid var(--border);
  padding: 1.25rem 1.4rem;
  box-shadow: 0 10px 24px rgba(148, 163, 184, 0.35);
}

.card-title {
  margin-top: 0;
}

.card-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: -0.25rem;
  margin-bottom: 0.75rem;
}

.card-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.7rem;
  border-radius: 999px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  background: var(--red);
  color: #fef2f2;
  margin-bottom: 0.5rem;
}

.news-grid,
.library-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr);
  gap: 1.4rem;
}

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

.media-item {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.video-placeholder,
.image-placeholder {
  border-radius: 0.75rem;
  border: 1px dashed rgba(148,163,184,0.9);
  padding: 0.6rem 0.75rem;
  background: #f9fafb;
}

.howto-list {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.link-list {
  margin: 0.35rem 0 0;
  padding-left: 1.1rem;
  font-size: 0.9rem;
}

.curriculum-level {
  margin-bottom: 1.4rem;
  padding: 1rem 1.1rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(0,87,164,0.35);
  background: #ffffff;
}

.curriculum-level h2 {
  margin-top: 0;
}

.curriculum-level ul {
  margin: 0.35rem 0 0.35rem 1.2rem;
  padding: 0;
  font-size: 0.9rem;
}

.tenets-list {
  margin: 0.6rem 0 0;
  padding-left: 1.35rem;
  font-size: 0.9rem;
}

.belt-meaning {
  margin: 0.6rem 0 0.6rem;
  padding-left: 1.1rem;
  font-size: 0.9rem;
}

.philo-section {
  margin-bottom: 1.75rem;
}

.contact-details p {
  margin-bottom: 0.7rem;
  font-size: 0.95rem;
}

.form {
  width: 100%;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0.8rem;
}

.form-row label {
  font-size: 0.86rem;
  color: var(--text-muted);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
textarea {
  border-radius: 0.6rem;
  border: 1px solid var(--border);
  padding: 0.45rem 0.6rem;
  background: #ffffff;
  color: var(--text);
  font-size: 0.9rem;
  outline: none;
}

input:focus,
textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 1px rgba(0,87,164,0.4);
}

textarea {
  resize: vertical;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem 1rem;
  margin-bottom: 0.5rem;
}

.form-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.checkbox input {
  margin-top: 0.15rem;
}

.consent-block {
  margin-bottom: 0.6rem;
}

.form-logo-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.form-logo {
  height: 60px;
  width: auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  background: #ffffff;
}

.form-logo-text {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.4rem;
}

.pill {
  font-size: 0.8rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(0,87,164,0.35);
  color: var(--blue-dark);
  background: #ffffff;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: #fef9c3;
  padding: 1rem 0 1.2rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

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

.footer-info a {
  color: var(--text-muted);
}

@media (max-width: 860px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }
  .two-column {
    grid-template-columns: minmax(0, 1fr);
  }
  .form-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .main-nav {
    position: absolute;
    inset: 100% 0 auto;
    padding: 0.6rem 1.25rem 0.9rem;
    background: linear-gradient(to bottom, var(--blue-dark), var(--blue));
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
    transform-origin: top;
    transform: scaleY(0);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.16s ease, opacity 0.16s ease;
  }
  .main-nav.nav-open {
    transform: scaleY(1);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }
  .nav-register {
    margin-left: 0;
  }
  .nav-toggle {
    display: flex;
  }
}

@media (max-width: 480px) {
  .hero {
    padding-top: 1.7rem;
  }
  .header-inner {
    padding-inline: 0.25rem;
  }
}
