:root {
  --color-green-light: #cad87ac8;
  --color-green: #c6e1ae;
  --color-teal: #a3d8cc;
  --color-blue-light: #a4cfdd;
  --color-blue: #b4c9f1;
  --color-blue-dark: #31589c;
  --color-white: #ffffff;
  --color-black: #000000;
  --color-grey-light: #f5f5f5;
  --color-grey: #e0e0e0;
  --font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max-width: 100%;
  --header-height: 70px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 1rem);
}

body {
  font-family: var(--font-family);
  color: var(--color-black);
  background: var(--color-white);
  line-height: 1.6;
  font-size: 16px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--color-black);
}

.event-date {
  display: inline-block;
  background: var(--color-green);
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-right: 0.5rem;
}

.content-badge {
  display: inline-block;
  background: var(--color-blue-light);
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-right: 0.5rem;
}

/* ===== Sections ===== */
.page-section {
  padding: 1rem 0 2rem;
}

.section-heading {
  text-align: center;
  font-size: 1.8rem;
  color: var(--color-black);
  padding: 1.5rem;
  margin: 1rem auto;
  max-width: var(--max-width);
  border-bottom: 3px solid var(--color-green);
  text-transform: uppercase;
}

.section-heading .title-container {
  align-items: center;
}

.section-heading .sub-title {
  border-bottom: none;
}

/* ===== Read More ===== */
.read-more {
  display: inline-block;
  margin-top: 0.75rem;
  color: var(--color-blue-dark);
  font-weight: 500;
  text-decoration: underline;
}

.read-more:hover {
  text-decoration: none;
}

/* ===== Project List ===== */
.project-list {
  list-style: none;
  padding: 0;
}

.project-list li {
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--color-grey-light);
}

.project-list li:last-child {
  border-bottom: none;
}

.project-list a {
  font-weight: 500;
}

.project-list p {
  font-size: 0.9rem;
  margin: 0.2rem 0 0;
}

/* ===== Background Layers ===== */
.bg-layer-1 {
  background-color: rgb(from var(--color-green-light) r g b / 0.2);
}

.bg-layer-2 {
  background-color: rgb(from var(--color-green-light) r g b / 0.5);
}

.bg-layer-3 {
  background-color: rgb(from var(--color-green-light) r g b / 0.8);
  flex-grow: 1;
}

/* ===== Single Page ===== */
.single-page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.page-date {
  color: #666;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.page-content h2,
.page-content h3 {
  color: var(--color-black);
  margin: 1.5rem 0 0.75rem;
}

.page-content p {
  margin-bottom: 1rem;
}

.page-content ul,
.page-content ol {
  margin: 0 0 1rem 1.5rem;
}

/* ===== List Page ===== */
.list-page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* ===== Responsive Global Tweaks ===== */
@media (max-width: 768px) {
  .section-heading {
    font-size: 1.4rem;
  }
}

/* ===== Static Logic Components ===== */

.list-section-title {
  margin: 3rem 0 1.5rem;
  font-size: 1.4rem;
  color: var(--color-black);
  border-bottom: 2px solid var(--color-grey-light);
  padding-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.list-section-title .title-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
}

.list-section-title .sub-title {
  font-size: 0.8em !important;
  opacity: 0.7;
  font-weight: 500;
  text-transform: none;
  letter-spacing: normal;
  font-style: italic;
}

.list-items+.list-section-title {
  margin-top: 6rem;
}

.past-list {
  opacity: 0.85;
}

.no-events-placeholder {
  color: #888;
  font-style: italic;
  padding: 1rem 0;
}

/* --- Language Badges for Fallbacks --- */
.lang-badge {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 3px;
  background: var(--color-blue-dark);
  color: white;
  margin-right: 0.5rem;
  vertical-align: middle;
  text-transform: uppercase;
  opacity: 0.9;
}

.list-item-container {
  list-style: none;
}

/* --- Discover Sub-Sections --- */
.discover-sub-section {
  margin-top: 2rem;
  margin-bottom: 4rem;
}

.sub-section-title {
  font-size: 1.6rem;
  color: var(--color-black);
  margin: 0 auto 2rem auto;
  border-bottom: 3px solid var(--color-blue-light);
  display: table;
  text-align: center;
  max-width: 100%;
  padding-bottom: 0.25rem;
}

.sub-section-title .title-container {
  align-items: center;
}

.sub-section-title .sub-title {
  border-bottom: none;
}

/* --- Bilingual Titles --- */
.title-container {
  display: flex;
  flex-direction: column;
  align-items: inherit;
  gap: 0.4rem;
}

.main-title {
  display: block;
}

.bilingual-content .sub-title {
  display: block;
  font-size: 0.6em;
  font-weight: 400;
  font-style: italic;
  margin-top: 0;
  opacity: 0.9;
  width: fit-content;
  padding-bottom: 0.05rem;
}

/* --- Accessibility Utilities --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--color-blue-dark);
  color: var(--color-white);
  padding: 8px;
  z-index: 100;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
}