html {
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(135deg, #8bc53a 0%, #3c9c74 40%, #0367a9 100%);
  color: #10213f;
}

.layout {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid #dbe9ff;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-image {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #8bc53a;
}

.logo-text {
  color: #0367a9;
  font-weight: 800;
  line-height: 1;
}

.logo small {
  color: #2f5e7f;
  font-weight: 600;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  text-decoration: none;
  color: #17466d;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 10px;
  transition: 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  background: #eaf4ff;
  color: #0367a9;
}

.cta-link {
  background: #8bc53a;
  color: #ffffff !important;
}

main {
  max-width: 1180px;
  margin: 16px auto 0;
  padding: 28px 20px 60px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 18px;
}

main section {
  scroll-margin-top: 92px;
}

.hero-title {
  font-size: clamp(40px, 7vw, 86px);
  font-weight: 900;
  letter-spacing: 4px;
  margin-bottom: 28px;
}

.hero-title .green {
  color: #8bc53a;
}

.hero-title .blue {
  color: #0367a9;
}

.info-card {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 24px;
  background: #0367a9;
  color: #ffffff;
  border-radius: 22px;
  padding: 24px;
  margin-bottom: 30px;
}

.info-card img {
  width: 100%;
  height: 220px;
  border-radius: 14px;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.3);
}

.info-card p {
  line-height: 1.65;
  font-size: 18px;
}


.section-image {
  width: 100%;
  max-height: 540px;
  object-fit: cover;
  border-radius: 16px;
  border: 2px solid #dbe9ff;
  margin: 8px 0 14px;
  box-shadow: 0 8px 20px rgba(3, 103, 169, 0.12);
}

.section-title {
  font-size: 30px;
  color: #0367a9;
  text-align: center;
  margin: 30px 0 20px;
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}

.event-card {
  border: 1px solid #d5e7ff;
  border-radius: 14px;
  padding: 16px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(3, 103, 169, 0.08);
}

.event-card h3 {
  color: #2d6a10;
  margin-bottom: 8px;
}

.upcoming-card {
  text-decoration: none;
  color: inherit;
  display: block;
}

.upcoming-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(3, 103, 169, 0.16);
}

.event-badge {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: #ffffff;
  background: #8bc53a;
  border-radius: 999px;
  padding: 4px 10px;
}

.event-badge.muted {
  background: #6f8ca7;
}

.countdown {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.countdown span {
  border: 1px solid #d5e7ff;
  border-radius: 8px;
  padding: 5px 8px;
  font-size: 14px;
  font-weight: 700;
  color: #0367a9;
  background: #f3f9ff;
}

.content-block {
  background: #f5f9ff;
  border: 1px solid #deebff;
  border-radius: 16px;
  padding: 18px;
  line-height: 1.65;
  margin-bottom: 20px;
}

.content-block p {
  margin-bottom: 10px;
}

.category-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}

.category-button {
  text-decoration: none;
  padding: 11px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #0367a9 0%, #0d83cc 100%);
  color: #ffffff;
  font-weight: 800;
  letter-spacing: 0.2px;
  border: 1px solid #0f7fc5;
  box-shadow: 0 7px 14px rgba(3, 103, 169, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.category-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(3, 103, 169, 0.28);
  background: linear-gradient(135deg, #025d98 0%, #0b76b8 100%);
}

.event-list,
.related-events {
  list-style: none;
  display: grid;
  gap: 10px;
}

.event-list {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.past-event-item {
  list-style: none;
}

.event-link {
  text-decoration: none;
  color: #244c75;
  font-weight: 600;
}

.event-link-card {
  display: grid;
  gap: 4px;
  background: #ffffff;
  border: 1px solid #dbe9ff;
  border-radius: 12px;
  padding: 12px;
  min-height: 92px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.event-link-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(3, 103, 169, 0.12);
  border-color: #9bc8ef;
  color: #0367a9;
}

.event-link-title {
  font-weight: 800;
  color: #0f3b63;
}

.event-link-meta {
  font-size: 13px;
  color: #4a6e90;
}

.event-link:hover {
  color: #0367a9;
}

.return-links {
  margin-top: 14px;
  display: grid;
  gap: 8px;
}

.form-section {
  display: grid;
  gap: 14px;
}


.hidden-frame {
  width: 0;
  height: 0;
  border: 0;
  visibility: hidden;
}

form {
  display: grid;
  gap: 12px;
}

.contact-form-compact {
  max-width: 680px;
  margin: 0 auto;
}

input,
textarea,
select {
  border: 1px solid #cfe0ff;
  border-radius: 10px;
  padding: 11px 12px;
  font-size: 16px;
  font-family: inherit;
}

button {
  background: #8bc53a;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 12px;
  font-weight: 700;
  cursor: pointer;
}

button:hover {
  background: #73aa2f;
}

.form-status {
  min-height: 20px;
  font-size: 14px;
  font-weight: 700;
}

.form-status.success {
  color: #2d6a10;
}

.form-status.pending {
  color: #0367a9;
}

.form-status.error {
  color: #b42318;
}

.page-header {
  color: #0367a9;
  font-size: 34px;
  margin-bottom: 10px;
}

.back-link {
  text-decoration: none;
  color: #0367a9;
  font-weight: 700;
}

.inline {
  display: inline-block;
  margin-top: 10px;
}

@media (max-width: 760px) {
  .topbar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .logo {
    justify-content: center;
  }

  .nav-links {
    justify-content: center;
  }

  .category-buttons {
    justify-content: center;
  }

  .category-button {
    width: 100%;
    text-align: center;
  }

  .info-card {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 52px;
    text-align: center;
  }


.section-title {
    font-size: 24px;
  }
}


.site-footer {
  margin: 22px auto 0;
  max-width: 1180px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid #dbe9ff;
  border-radius: 16px;
  padding: 18px 20px;
  color: #1a3f64;
  line-height: 1.55;
  text-align: center;
}

.site-footer p {
  margin: 4px 0;
}


@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
