:root {
  --surface: rgba(255, 255, 255, 0.78);
  --surface-strong: rgba(255, 255, 255, 0.9);
  --primary: #2f8f46;
  --primary-dark: #1e6531;
  --primary-soft: #dff3d9;
  --accent: #f7ca68;
  --text: #1f3525;
  --muted: #5d7263;
  --shadow: 0 24px 60px rgba(35, 84, 45, 0.15);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --max-width: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Nunito", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(187, 230, 167, 0.8), transparent 30%),
    radial-gradient(circle at right 20%, rgba(247, 202, 104, 0.28), transparent 22%),
    linear-gradient(180deg, #e7f7e0 0%, #f7fbf2 44%, #eef8e9 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  border-radius: 50%;
  filter: blur(8px);
  opacity: 0.45;
}

body::before {
  top: -8rem;
  left: -6rem;
  width: 18rem;
  height: 18rem;
  background: rgba(70, 152, 86, 0.22);
}

body::after {
  right: -4rem;
  bottom: 4rem;
  width: 15rem;
  height: 15rem;
  background: rgba(247, 202, 104, 0.24);
}

.page-shell {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
  padding: 1.25rem 0 4rem;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--primary-dark);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.brand-mark {
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: linear-gradient(135deg, #47a55b, #2d7b40);
  color: white;
  box-shadow: 0 12px 28px rgba(47, 143, 70, 0.25);
  font-family: "Baloo 2", cursive;
  font-size: 1.45rem;
  line-height: 1;
}

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

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: flex-end;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: rgba(47, 143, 70, 0.08);
  color: var(--primary-dark);
  text-decoration: none;
  font-weight: 800;
  transition: transform 180ms ease, background-color 180ms ease;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link.is-active {
  transform: translateY(-2px);
  background: rgba(47, 143, 70, 0.16);
}

.hero,
.page-hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.9), rgba(233, 248, 228, 0.88)),
    linear-gradient(120deg, rgba(68, 150, 83, 0.08), rgba(247, 202, 104, 0.05));
  box-shadow: var(--shadow);
  isolation: isolate;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.9fr);
  gap: 2rem;
  padding: 3rem;
}

.page-hero {
  padding: 2.6rem;
}

.hero::before,
.hero::after,
.page-hero::before,
.page-hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  z-index: -1;
}

.hero::before,
.page-hero::before {
  width: 18rem;
  height: 18rem;
  right: -5rem;
  top: -6rem;
  background: rgba(75, 163, 91, 0.14);
}

.hero::after,
.page-hero::after {
  width: 12rem;
  height: 12rem;
  left: 48%;
  bottom: -6rem;
  background: rgba(247, 202, 104, 0.18);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  background: rgba(47, 143, 70, 0.1);
  color: var(--primary-dark);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.76rem;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Baloo 2", cursive;
  line-height: 1;
}

h1 {
  margin-top: 1rem;
  font-size: clamp(3rem, 7vw, 5.4rem);
  color: var(--primary-dark);
}

h2 {
  color: var(--primary-dark);
}

.lead,
.page-hero p,
.hero p {
  margin: 1rem 0 0;
  max-width: 42rem;
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--muted);
}

.hero-actions,
.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.8rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.3rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  background: linear-gradient(135deg, var(--primary), #4cab61);
  color: white;
  box-shadow: 0 14px 28px rgba(47, 143, 70, 0.24);
}

.button-secondary {
  color: var(--primary-dark);
  background: rgba(47, 143, 70, 0.1);
}

.hero-card {
  align-self: end;
  padding: 1.4rem;
  border-radius: 28px;
  background: var(--surface-strong);
  border: 1px solid rgba(47, 143, 70, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.hero-card-title {
  margin: 0;
  font-size: 1rem;
  color: var(--primary-dark);
  font-weight: 800;
}

.hero-card p {
  margin: 0.8rem 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.hero-card p:first-of-type {
  margin-top: 1rem;
}

.hero-card-list {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.75rem;
}

.hero-card-list li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.85rem 0.95rem;
  border-radius: 18px;
  background: var(--primary-soft);
}

.hero-card-list strong {
  display: block;
  font-size: 0.98rem;
}

.hero-card-list span {
  display: block;
  font-size: 0.88rem;
  color: var(--muted);
}

.dot {
  flex: none;
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #ef9f34);
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3.25rem;
  margin-bottom: 1.4rem;
}

.section-header p {
  margin: 0.35rem 0 0;
  color: var(--muted);
  max-width: 42rem;
  line-height: 1.65;
}

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

.category-card,
.content-card {
  position: relative;
  overflow: hidden;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid rgba(47, 143, 70, 0.1);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.category-card::before,
.content-card::before {
  content: "";
  position: absolute;
  inset: auto -2.5rem -2.5rem auto;
  width: 9rem;
  height: 9rem;
  border-radius: 50%;
  background: rgba(47, 143, 70, 0.08);
}

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

.category-top h2 {
  font-size: 1.9rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(47, 143, 70, 0.1);
  color: var(--primary-dark);
  font-weight: 800;
}

.category-description,
.content-card p {
  margin: 0 0 1.2rem;
  color: var(--muted);
  line-height: 1.7;
}

.link-list {
  display: grid;
  gap: 0.9rem;
}

.link-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(227, 245, 221, 0.95), rgba(255, 255, 255, 0.95));
  border: 1px solid rgba(47, 143, 70, 0.14);
  text-decoration: none;
  color: inherit;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.link-card:hover,
.link-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(47, 143, 70, 0.28);
  box-shadow: 0 16px 24px rgba(35, 84, 45, 0.12);
}

.link-card strong {
  display: block;
  font-size: 1.05rem;
  color: var(--primary-dark);
}

.link-card span {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.94rem;
  color: var(--muted);
}

.link-arrow {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  background: white;
  color: var(--primary);
  font-size: 1.2rem;
  font-weight: 800;
  box-shadow: 0 10px 18px rgba(47, 143, 70, 0.12);
}

.empty-state {
  padding: 1rem 1.1rem;
  border-radius: var(--radius-md);
  background: rgba(47, 143, 70, 0.07);
  color: var(--muted);
  line-height: 1.6;
}

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

.program-section {
  margin-top: 2rem;
}

.program-section h2 {
  font-size: 2rem;
}

.program-section p {
  margin: 0.7rem 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.program-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.program-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border-radius: 28px;
  background: var(--surface-strong);
  border: 1px solid rgba(47, 143, 70, 0.1);
  box-shadow: var(--shadow);
}

.program-image {
  position: relative;
  min-height: 220px;
  display: block;
  overflow: hidden;
  background: linear-gradient(145deg, #dcefd4, #edf7e7);
}

.program-image::before,
.program-image::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.program-image::before {
  width: 170px;
  height: 170px;
  right: -30px;
  top: -50px;
  background: rgba(255, 255, 255, 0.35);
}

.program-image::after {
  width: 160px;
  height: 160px;
  left: -35px;
  bottom: -75px;
  background: rgba(247, 202, 104, 0.2);
}

.program-thumb {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
}

.program-meta {
  position: relative;
  z-index: 1;
  padding: 1.35rem 1.35rem 1.5rem;
}

.program-meta h3 {
  font-size: 1.65rem;
}

.program-meta p {
  margin: 0.75rem 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.program-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.1rem;
}

.program-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.15rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), #4cab61);
  color: white;
  text-decoration: none;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease;
  box-shadow: 0 14px 28px rgba(47, 143, 70, 0.2);
}

.program-link:hover,
.program-link:focus-visible {
  transform: translateY(-2px);
}

.program-url {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.05rem;
  border-radius: 999px;
  background: rgba(47, 143, 70, 0.08);
  color: var(--primary-dark);
  text-decoration: none;
  font-weight: 800;
}

.visual-big {
  background:
    radial-gradient(circle at 80% 22%, rgba(255, 255, 255, 0.82) 0 18px, transparent 19px),
    linear-gradient(145deg, #d4ead0, #eff7ea);
}

.visual-big strong::before {
  content: "Új";
  display: block;
  margin-bottom: 0.4rem;
  font-size: 1rem;
  letter-spacing: 0.08rem;
  color: #f0a93d;
}

.visual-teacher {
  background:
    radial-gradient(circle at 25% 24%, rgba(255, 255, 255, 0.82) 0 14px, transparent 15px),
    linear-gradient(145deg, #d8ebd2, #f2f8ed);
}

.visual-teacher strong::before {
  content: "Óra";
  display: block;
  margin-bottom: 0.4rem;
  font-size: 1rem;
  letter-spacing: 0.08rem;
  color: #f0a93d;
}

.visual-family {
  background:
    radial-gradient(circle at 72% 20%, rgba(255, 255, 255, 0.84) 0 14px, transparent 15px),
    linear-gradient(145deg, #d8edd3, #f5faef);
}

.visual-family strong::before {
  content: "Otthon";
  display: block;
  margin-bottom: 0.4rem;
  font-size: 1rem;
  letter-spacing: 0.08rem;
  color: #f0a93d;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--primary-dark);
  font-weight: 800;
  text-decoration: none;
}

.footer {
  margin-top: 2.5rem;
  padding: 1.2rem 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 920px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 2rem;
  }

  .category-grid,
  .content-grid,
  .program-gallery {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(calc(100% - 1rem), var(--max-width));
    padding-bottom: 2.5rem;
  }

  .topbar {
    padding-bottom: 1.2rem;
  }

  .hero,
  .page-hero {
    padding: 1.4rem;
    border-radius: 26px;
  }

  h1 {
    font-size: clamp(2.5rem, 16vw, 3.8rem);
  }

  .section-header {
    margin-top: 2.5rem;
  }

  .section-header,
  .category-top,
  .link-card {
    align-items: start;
  }

  .link-card {
    flex-direction: column;
  }

  .link-arrow {
    width: 2.3rem;
    height: 2.3rem;
  }

  .program-thumb {
    min-height: 190px;
  }
}
