:root {
  --bg: #f7f8fb;
  --surface: #ffffff;
  --surface-strong: #eaf1ff;
  --text: #1f2937;
  --muted: #4b5563;
  --primary: #02850b;
  --primary-strong: #006402;
  --border: #d1d5db;
  --shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: linear-gradient(180deg, #eef2ff 0%, #f7f8fb 100%);
  color: var(--text);
}

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

.page-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-size: cover;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(209, 213, 219, 0.8);
}

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

.logo {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: #ffffff;
}

.logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
}

.brand-subtitle {
  margin: 0.1rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.lang-switch {
  border: 1px solid var(--border);
  background: white;
  color: var(--text);
  border-radius: 999px;
  padding: 0.65rem 1rem;
  cursor: pointer;
  font-weight: 700;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: white;
  cursor: pointer;
  padding: 0;
}

.menu-toggle-line {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  margin: 4px auto;
  border-radius: 999px;
}

.navigation {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0;
  background: rgba(255, 255, 255, 0.78);
  border-radius: 24px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  border-bottom: 1px solid rgba(209, 213, 219, 0.8);
}

.navigation a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--text);
  padding: 0.9rem 1rem;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid transparent;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.navigation a:hover,
.navigation a:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(29, 78, 216, 0.16);
  box-shadow: 0 12px 30px rgba(29, 78, 216, 0.08);
}

.navigation a.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.content-grid {
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  padding: 1.5rem 1.5rem 2rem;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  flex: 1;
  min-height: 100%;
}

.main-column {
  display: grid;
  gap: 1.5rem;
}

.sponsor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.sponsor-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.sponsor-card:hover,
.sponsor-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(2, 133, 11, 0.3);
}

.sponsor-card img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.content-block {
  background: var(--surface);
  border-radius: 24px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.content-block h2 {
  margin-top: 0;
}

.home-hero-figure {
  margin: 1.25rem 0 0;
  display: flex;
  justify-content: center;
}

.home-hero-image {
  width: auto;
  max-width: 100%;
  height: 700px;
  max-height: 700px;
  border-radius: 20px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}

.gallery-table {
  width: 100%;
  border-collapse: collapse;
}

.gallery-table td {
  padding: 1rem;
  vertical-align: top;
}

.gallery-table figure {
  margin: 0;
  overflow: hidden;
  border-radius: 20px;
  background: #f8fafc;
}

.gallery-table img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.gallery-table figcaption {
  padding: 0.75rem 0.85rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.contact-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.contact-label {
  margin: 0 0 0.45rem;
  font-weight: 700;
}

.sidebar {
  position: relative;
}

.panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: var(--surface);
  border-radius: 24px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  position: sticky;
  top: 1rem;
}

.panel-head h3,
.event-form h4 {
  margin: 0;
}

.event-list {
  display: grid;
  gap: 0.85rem;
}

.event-card {
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
}

.event-card h4 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.event-card time,
.event-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.event-card button {
  margin-top: 0.7rem;
  background: transparent;
  border: 1px solid #ef4444;
  color: #ef4444;
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  cursor: pointer;
}

.panel-divider {
  height: 1px;
  background: var(--border);
  border-radius: 999px;
}

.event-form label {
  display: grid;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.event-form input,
.event-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  font: inherit;
  color: var(--text);
  background: #f8fafc;
}

.primary-button {
  width: 100%;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 14px;
  padding: 0.95rem 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease;
}

.primary-button:hover,
.primary-button:focus-visible {
  background: var(--primary-strong);
}

.site-footer {
  margin-top: auto;
  padding: 1.25rem 1.5rem;
  display: flex;
  position: sticky;
  bottom: 0;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.88);
  border-top: 1px solid rgba(209, 213, 219, 0.8);
}

.social-links {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 0.5rem 1.1rem;
  align-items: start;
  margin-top: 0;
}

.social-group {
  display: grid;
  justify-items: center;
  gap: 0.2rem;
}

.social-group-title {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--muted);
}

.social-links a {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid transparent;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.social-links a:hover {
  transform: translateY(-2px);
  border-color: rgba(29, 78, 216, 0.16);
}

.social-links svg {
  width: 20px;
  height: 20px;
  fill: var(--text);
}

@media (min-width: 900px) {
  .content-grid {
    grid-template-columns: minmax(0, 1.4fr) 0.75fr;
    gap: 1.75rem;
  }
}

@media (max-width: 720px) {
  .menu-toggle {
    display: inline-block;
  }

  .navigation {
    display: none;
    grid-template-columns: 1fr;
  }

  .navigation.is-open {
    display: grid;
  }

  .navigation {
    border-radius: 16px;
  }

  .panel {
    position: static;
  }
}

@media (max-width: 520px) {
  .topbar,
  .navigation,
  .site-footer {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .site-footer {
    gap: 0.35rem;
    align-items: flex-start;
  }

  .social-links {
    grid-template-columns: repeat(2, max-content);
    justify-content: start;
    gap: 0.4rem 0.9rem;
  }

  .navigation {
    grid-template-columns: 1fr;
  }
}
