:root {
  --green: #073b2d;
  --green2: #0e6b45;
  --red: #c94f4f;
  --cream: #f6f1e8;
  --ink: #1e2522;
  --muted: #69736f;
  --line: #e6e9e6;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family:
    Inter,
    system-ui,
    -apple-system,
    Segoe UI,
    sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.6;
}
a {
  text-decoration: none;
  color: inherit;
}
.container {
  width: min(1120px, 92%);
  margin: auto;
}
.nav {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  z-index: 20;
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--green);
  font-size: 1.2rem;
}
.brand-logo {
  display: block;
  width: auto;
  height: 89px;
  max-width: 200px;
}
.brand-admin {
  color: #fff;
}
.brand-admin .brand-logo {
  height: 46px;
}
.menu {
  display: flex;
  gap: 24px;
  align-items: center;
  font-size: 0.95rem;
}
.nav-toggle {
  display: none;
  width: 52px;
  height: 52px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  color: var(--green);
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(7, 59, 45, 0.08);
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 700;
  cursor: pointer;
}
.btn-primary {
  background: var(--green);
  color: #fff;
}
.btn-primary:hover {
  background: var(--green2);
}
.btn-light {
  background: #fff;
  color: var(--green);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}
.btn-outline {
  border: 1px solid var(--line);
  color: var(--green);
  background: white;
}
.hero {
  padding: 70px 0 40px;
  background:
    radial-gradient(circle at 15% 0, #e8f5ee, transparent 25%),
    linear-gradient(180deg, #fff, #fafafa);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 44px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  color: var(--red);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.75rem;
}
.hero h1 {
  font-size: clamp(2.3rem, 6vw, 5.2rem);
  line-height: 0.96;
  margin: 12px 0 18px;
  letter-spacing: -0.06em;
}
.lead {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 640px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.photo-stack {
  position: relative;
  min-height: 480px;
}
.photo {
  position: absolute;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.13);
  background: #ddd;
}
.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.photo.one {
  inset: 0 80px 120px 0;
}
.photo.two {
  right: 0;
  bottom: 60px;
  width: 52%;
  height: 250px;
}
.photo.hero-single {
  inset: 20px 10px 110px 40px;
}
.card-float {
  position: absolute;
  left: 8%;
  bottom: 0;
  background: white;
  border-radius: 24px;
  padding: 22px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.12);
  max-width: 330px;
}
.section {
  padding: 74px 0;
}
.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
  margin: 0 0 12px;
  letter-spacing: -0.04em;
}
.section-title .accent {
  color: var(--red);
}
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.feature-card,
.course-card,
.event-card,
.admin-card {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.04);
}
.feature-card {
  padding: 26px;
}
.feature-card h3,
.course-card h3,
.event-card h3 {
  margin: 0 0 10px;
  font-size: 1.35rem;
}
.muted {
  color: var(--muted);
}
.image-top {
  height: 220px;
  background: #eee;
  overflow: hidden;
}
.image-top img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-body {
  padding: 22px;
}
.pill {
  display: inline-flex;
  border-radius: 999px;
  background: #eef7f2;
  color: var(--green);
  padding: 6px 10px;
  font-size: 0.78rem;
  font-weight: 800;
  margin-bottom: 12px;
}
.dark-band {
  background: var(--green);
  color: white;
  border-radius: 36px;
  padding: 40px;
}
.dark-band .muted {
  color: #d4e5dd;
}
.form {
  display: grid;
  gap: 14px;
}
.field {
  display: grid;
  gap: 8px;
}
.field-label {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink);
}
.field-help {
  font-size: 0.82rem;
  color: var(--muted);
}
.field-error {
  font-size: 0.82rem;
  color: #9f1d1d;
}
.checkbox-field {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}
.admin-image-preview {
  width: min(100%, 320px);
  border-radius: 22px;
  border: 1px solid var(--line);
  display: block;
}
.about-photo-layout {
  position: relative;
  min-height: 520px;
}
.about-photo-main {
  position: absolute;
  inset: 0 80px 90px 0;
}
.about-photo-accent {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 46%;
  height: 230px;
  border: 10px solid rgba(255, 255, 255, 0.94);
}
.input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 13px 15px;
  font: inherit;
  background: #fff;
}
textarea {
  min-height: 120px;
}
.footer {
  background: #edf1eb;
  padding: 46px 0;
  margin-top: 70px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.6fr;
  gap: 30px;
}
.small {
  font-size: 0.86rem;
}
.admin-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  min-height: 100vh;
}
.sidebar {
  background: var(--green);
  color: #fff;
  padding: 24px;
}
.sidebar a {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  margin: 3px 0;
  color: #eaf4ef;
}
.sidebar .brand {
  display: flex;
}
.sidebar .brand:hover {
  background: none;
}
.sidebar a:hover {
  background: rgba(255, 255, 255, 0.12);
}
.admin-main {
  padding: 28px;
  background: #f8faf9;
}
.table-wrap {
  background: white;
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: auto;
}
.table {
  width: 100%;
  border-collapse: collapse;
}
.table th,
.table td {
  padding: 13px 15px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.alert {
  padding: 12px 16px;
  border-radius: 14px;
  margin-bottom: 15px;
}
.alert-success {
  background: #e8f8ef;
  color: #075d35;
}
.alert-error {
  background: #fdeeee;
  color: #9f1d1d;
}
@media (max-width: 850px) {
  .nav-inner {
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
  }
  .brand {
    flex: 1 1 auto;
    min-width: 0;
  }
  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    flex: 0 0 auto;
    margin-left: auto;
  }
  .menu {
    display: none;
    width: 100%;
    order: 3;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.08);
  }
  .menu.menu-open {
    display: flex;
  }
  .menu a {
    width: 100%;
  }
  .menu .btn {
    width: 100%;
  }
  .hero-grid,
  .grid-2,
  .grid-3,
  .footer-grid,
  .admin-layout {
    grid-template-columns: 1fr;
  }
  .photo-stack {
    min-height: 400px;
  }
  .photo.one {
    right: 0;
  }
  .photo.two {
    display: none;
  }
  .photo.hero-single {
    inset: 0 0 110px 0;
  }
  .card-float {
    left: 0;
    right: 0;
    max-width: none;
  }
  .about-photo-layout {
    min-height: auto;
    display: grid;
    gap: 18px;
  }
  .about-photo-main,
  .about-photo-accent {
    position: relative;
    inset: auto;
    width: 100%;
    height: 260px;
  }
  .section-head {
    display: block;
  }
  .sidebar {
    position: relative;
  }
  .hero h1 {
    font-size: 3rem;
  }
  .brand-logo {
    height: 110px;
  }
  .brand-admin .brand-logo {
    height: 40px;
  }
}
