:root {
  --background: #f8f1e7;
  --foreground: #1f2937;
  --primary: #7f1d1d;
  --primary-dark: #6f1d1b;
  --accent: #12343b;
  --surface: #ffffff;
  --surface-soft: #fff8f1;
  --muted: #6b7280;
  --border: #eadfd4;
  --shadow: 0 18px 40px rgba(79, 32, 21, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--foreground);
  background:
    radial-gradient(circle at top left, rgba(191, 54, 54, 0.08), transparent 22%),
    linear-gradient(180deg, #f7efe5 0%, #f8f1e7 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.page-shell {
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 64px;
}

.site-header,
.panel,
.content-section {
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.site-header {
  position: sticky;
  top: 16px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 22px 28px;
  border-radius: 34px;
  background: var(--surface);
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 240px;
}

.brand-logo {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--primary) 0%, #b91c1c 100%);
  color: white;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.brand-kicker,
.brand-title,
.section-kicker,
.hero-kicker,
.announcement-date {
  margin: 0;
}

.brand-kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: #1f2937;
}

.brand-title {
  margin-top: 4px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #111827;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex: 1;
}

.nav-link,
.nav-trigger {
  position: relative;
  background: none;
  border: 0;
  padding: 10px 0;
  font-size: 15px;
  font-weight: 700;
  color: #1f2937;
  cursor: pointer;
}

.nav-link-active {
  color: var(--primary);
}

.nav-link-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  border-radius: 999px;
  background: var(--primary);
}

.nav-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nav-chevron {
  font-size: 10px;
  color: var(--muted);
  transition: transform 0.18s ease;
}

.nav-dropdown {
  position: relative;
}

.nav-menu {
  position: absolute;
  left: 0;
  top: calc(100% - 2px);
  min-width: 240px;
  padding-top: 14px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, visibility 0.18s ease, transform 0.18s ease;
  transform: translateY(8px);
}

.nav-dropdown:hover .nav-menu,
.nav-dropdown:focus-within .nav-menu,
.nav-dropdown.open .nav-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-dropdown:hover .nav-chevron,
.nav-dropdown:focus-within .nav-chevron,
.nav-dropdown.open .nav-chevron {
  transform: rotate(180deg);
}

.nav-menu a {
  display: block;
  padding: 14px 16px;
  background: var(--surface);
  color: #4b5563;
}

.nav-menu a:first-child {
  border-radius: 22px 22px 0 0;
}

.nav-menu a:last-child {
  border-radius: 0 0 22px 22px;
}

.nav-menu a + a {
  border-top: 1px solid #f1ebe3;
}

.nav-menu::before {
  content: "";
  display: block;
  border: 1px solid var(--border);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12);
}

.nav-menu > a {
  position: relative;
  z-index: 1;
}

.nav-menu {
  filter: drop-shadow(0 18px 36px rgba(15, 23, 42, 0.1));
}

.nav-menu a:hover {
  color: var(--primary);
  background: #fbf7f3;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.soft-pill,
.login-pill,
.hero-primary,
.hero-secondary,
.service-chip,
.summary-button {
  border-radius: 999px;
}

.soft-pill {
  border: 1px solid var(--border);
  background: white;
  color: var(--primary);
  height: 42px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
  cursor: pointer;
}

.soft-pill-lang {
  padding-inline: 16px;
}

.login-pill,
.hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: white;
  font-weight: 700;
}

.login-pill {
  height: 44px;
  padding: 0 20px;
}

.hero-grid,
.dual-section,
.contact-grid {
  display: grid;
  gap: 24px;
}

.hero-grid {
  margin-top: 24px;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
}

.hero-panel,
.info-panel,
.panel,
.content-section {
  border-radius: 34px;
}

.hero-panel {
  padding: 42px 38px;
  background: linear-gradient(135deg, var(--primary-dark) 0%, #ab2a25 100%);
  color: white;
  box-shadow: 0 20px 40px rgba(111, 29, 27, 0.24);
}

.hero-kicker,
.section-kicker,
.pale {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.hero-kicker,
.pale,
.search-card p,
.announcement-date {
  color: #fce7c6;
}

.hero-panel h1,
.dark-panel h2 {
  margin: 16px 0 0;
  font-size: clamp(38px, 4vw, 56px);
  line-height: 1.08;
}

.hero-copy,
.dark-panel p,
.info-card p,
.gallery-card p,
.announcement-item p:last-child,
.section-heading p:last-child,
.summary-card li,
.agenda-card li {
  font-size: 15px;
  line-height: 1.85;
}

.hero-copy {
  margin-top: 16px;
  max-width: 720px;
  color: rgba(255, 248, 240, 0.92);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

.hero-primary,
.hero-secondary {
  padding: 14px 22px;
}

.hero-secondary {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: white;
  font-weight: 700;
}

.search-card {
  margin-top: 34px;
  padding: 18px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.search-card p {
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 700;
}

.search-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: white;
  border-radius: 999px;
  padding: 8px;
}

.search-pill input {
  border: 0;
  outline: 0;
  width: 100%;
  min-width: 0;
  padding: 8px 14px;
  color: #374151;
  background: transparent;
}

.search-pill button {
  border: 0;
  background: var(--primary);
  color: white;
  padding: 11px 18px;
  cursor: pointer;
  border-radius: 999px;
  font-weight: 700;
}

.info-panel,
.warm-panel {
  padding: 32px;
  background: #f7ebdf;
}

.section-kicker {
  color: var(--primary);
}

.stats-grid,
.feature-grid,
.dark-grid,
.gallery-grid {
  display: grid;
  gap: 16px;
}

.stats-grid {
  margin-top: 22px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stat-card,
.info-card,
.gallery-card,
.announcement-item,
.dark-box,
.program-chip,
.agenda-card,
.summary-card {
  border: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.stat-card {
  padding: 18px;
  border-radius: 24px;
  background: white;
}

.stat-card span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.stat-card strong {
  display: block;
  margin-top: 8px;
  font-size: 32px;
}

.agenda-card {
  margin-top: 20px;
  padding: 22px;
  border-radius: 26px;
  background: white;
}

.agenda-title,
.info-card h3,
.gallery-card h3,
.announcement-item h3,
.section-heading h2 {
  margin: 0;
}

.agenda-title {
  font-size: 15px;
  font-weight: 800;
}

.agenda-card ul,
.summary-card ul {
  margin: 14px 0 0;
  padding-left: 18px;
}

.content-section,
.white-panel,
.summary-card {
  background: white;
}

.content-section {
  margin-top: 42px;
  padding: 34px;
}

.section-heading h2 {
  margin-top: 6px;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.16;
  color: #111827;
}

.section-heading p:last-child {
  margin: 10px 0 0;
  max-width: 760px;
  color: var(--muted);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

.service-chip,
.program-chip {
  display: inline-flex;
  align-items: center;
  background: white;
  color: #374151;
  font-weight: 700;
}

.service-chip {
  padding: 12px 18px;
  border: 1px solid #ebd8be;
}

.dual-section {
  margin-top: 42px;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
}

.panel {
  padding: 34px;
}

.announcement-list,
.program-list {
  margin-top: 24px;
  display: grid;
  gap: 16px;
}

.announcement-item {
  padding: 22px;
  border-radius: 28px;
  background: #fbf7f3;
}

.announcement-date {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--primary);
}

.announcement-item h3 {
  margin-top: 8px;
  font-size: 22px;
  color: #111827;
}

.program-chip {
  padding: 18px 20px;
  border-radius: 24px;
  background: white;
}

.feature-grid {
  margin-top: 28px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.info-card {
  padding: 24px;
  border-radius: 28px;
}

.info-card h3,
.gallery-card h3 {
  font-size: 20px;
  color: #111827;
}

.info-card p,
.gallery-card p {
  margin: 12px 0 0;
  color: var(--muted);
}

.dark-panel,
.summary-card {
  color: white;
  background: linear-gradient(180deg, #7f1d1d 0%, #6f1d1b 100%);
}

.dark-panel p,
.dark-box span,
.summary-card li,
.summary-card .section-kicker {
  color: rgba(255, 245, 238, 0.88);
}

.dark-grid {
  margin-top: 28px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dark-box {
  padding: 20px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.1);
}

.dark-box span {
  display: block;
  font-size: 13px;
}

.dark-box strong {
  display: block;
  margin-top: 8px;
  font-size: 19px;
}

.gallery-grid {
  margin-top: 28px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gallery-card {
  padding: 18px;
  border-radius: 28px;
}

.gallery-thumb {
  height: 164px;
  display: flex;
  align-items: end;
  padding: 14px;
  border-radius: 22px;
  background: linear-gradient(135deg, #f8d9c0 0%, #f4efe9 100%);
}

.gallery-thumb span {
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 999px;
  background: white;
  color: var(--primary);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.contact-section {
  margin-bottom: 36px;
}

.contact-grid {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.78fr);
}

.summary-card {
  padding: 28px;
  border-radius: 30px;
  align-self: stretch;
}

.summary-button {
  margin-top: 18px;
}

@media (max-width: 1180px) {
  .site-header {
    position: static;
    flex-direction: column;
    align-items: stretch;
  }

  .brand-block,
  .header-actions,
  .main-nav {
    justify-content: center;
  }
}

@media (max-width: 980px) {
  .page-shell {
    width: min(100% - 24px, 1280px);
    padding-top: 18px;
  }

  .hero-grid,
  .dual-section,
  .contact-grid,
  .feature-grid,
  .gallery-grid,
  .two-col,
  .dark-grid {
    grid-template-columns: 1fr;
  }

  .site-header {
    padding: 20px;
  }

  .main-nav {
    gap: 18px;
  }

  .nav-menu {
    min-width: 220px;
  }
}

@media (max-width: 640px) {
  .hero-panel,
  .info-panel,
  .panel,
  .content-section {
    padding: 22px;
  }

  .site-header {
    border-radius: 28px;
  }

  .main-nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .header-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .search-pill {
    flex-direction: column;
    align-items: stretch;
    border-radius: 24px;
  }

  .search-pill button {
    width: 100%;
  }

  .nav-dropdown {
    width: 100%;
  }

  .nav-trigger,
  .nav-link {
    width: 100%;
    justify-content: space-between;
  }

  .nav-menu {
    position: static;
    min-width: 100%;
    padding-top: 8px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    display: none;
    filter: none;
  }

  .nav-dropdown.open .nav-menu {
    display: block;
  }
}
