* {
  box-sizing: border-box;
}

:root {
  --background: #2b180d;
  --background-soft: #3a2416;
  --surface: rgba(14, 7, 3, 0.22);
  --surface-strong: rgba(16, 8, 3, 0.34);
  --card: rgba(248, 244, 236, 0.96);
  --card-strong: rgba(38, 27, 21, 0.94);
  --border: rgba(255, 255, 255, 0.1);
  --border-soft: rgba(99, 72, 54, 0.12);
  --foreground: #f7f1e6;
  --foreground-soft: rgba(247, 241, 230, 0.76);
  --foreground-muted: rgba(247, 241, 230, 0.64);
  --card-foreground: #3d2b22;
  --card-muted: #765f53;
  --primary: #eda34b;
  --primary-strong: #ffb457;
  --primary-foreground: #23150d;
  --secondary: #342722;
  --success: #dff7e8;
  --success-foreground: #18613c;
  --danger: #ffe2e2;
  --danger-foreground: #8b1e1e;
  --shadow-soft: 0 22px 70px rgba(0, 0, 0, 0.18);
  --shadow-card: 0 24px 54px rgba(0, 0, 0, 0.18);
  --radius-panel: 32px;
  --radius-card: 30px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  font-family: "Sora", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background:
    radial-gradient(circle at top right, rgba(255, 159, 67, 0.18), transparent 30%),
    radial-gradient(circle at bottom left, rgba(88, 183, 134, 0.12), transparent 26%),
    linear-gradient(180deg, #2a170d 0%, #251208 100%);
  color: var(--foreground);
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: auto;
  pointer-events: none;
  z-index: -1;
  border-radius: 999px;
  filter: blur(30px);
}

body::before {
  top: -140px;
  right: -140px;
  width: 320px;
  height: 320px;
  background: rgba(237, 163, 75, 0.12);
}

body::after {
  bottom: -180px;
  left: -140px;
  width: 360px;
  height: 360px;
  background: rgba(99, 171, 119, 0.1);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.shell {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.page {
  padding: 1.5rem 0 4rem;
}

.page-stack {
  display: grid;
  gap: 2.75rem;
}

.stack-xs,
.stack-sm,
.stack-md,
.stack-lg {
  display: grid;
}

.stack-xs {
  gap: 0.5rem;
}

.stack-sm {
  gap: 0.75rem;
}

.stack-md {
  gap: 1rem;
}

.stack-lg {
  gap: 1.5rem;
}

.surface-panel,
.panel,
.auth-card,
.table-card,
.form-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-panel);
  background: var(--surface);
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
}

.panel-body,
.auth-card,
.table-card,
.form-card {
  padding: 1.5rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--border);
  background: rgba(42, 23, 13, 0.88);
  backdrop-filter: blur(24px);
}

.site-header-inner,
.admin-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.brand {
  max-width: 220px;
  color: var(--primary);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.nav-links,
.admin-nav {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.nav-link,
.admin-nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  color: var(--foreground-soft);
  font-size: 0.93rem;
  font-weight: 500;
}

.nav-link:hover,
.admin-nav-link:hover {
  color: var(--foreground);
  background: rgba(255, 255, 255, 0.05);
}

.nav-link.is-active,
.admin-nav-link.is-active {
  background: var(--primary);
  color: var(--primary-foreground);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--foreground);
  cursor: pointer;
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}

.mobile-nav {
  display: none;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.28s ease, opacity 0.28s ease, margin 0.28s ease;
}

.mobile-nav.is-open {
  margin-top: 0.25rem;
  max-height: 24rem;
  opacity: 1;
}

.mobile-nav-panel {
  display: grid;
  gap: 0.5rem;
  padding: 0.75rem 0 1rem;
}

.mobile-nav-panel .nav-link {
  justify-content: flex-start;
  min-height: 48px;
  padding-inline: 1rem;
  border-radius: 20px;
  background: rgba(8, 4, 2, 0.22);
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0 2.5rem;
  color: var(--foreground-muted);
}

.site-footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-align: center;
}

.site-footer p {
  margin: 0;
  line-height: 1.8;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 34px;
  padding: 0.45rem 0.85rem;
  border: 1px solid rgba(237, 163, 75, 0.2);
  border-radius: 999px;
  background: rgba(237, 163, 75, 0.16);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.badge-dark {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.22);
  color: var(--foreground);
}

.badge-soft {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.08);
  color: var(--foreground);
}

.button,
button.button,
input.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 40px;
  padding: 0.65rem 1rem;
  border: 0;
  border-radius: 18px;
  background: var(--primary);
  color: var(--primary-foreground);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
}

.button:hover,
button.button:hover,
input.button:hover {
  transform: translateY(-1px);
  background: var(--primary-strong);
}

.button.secondary {
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(0, 0, 0, 0.16);
  color: var(--foreground);
}

.button.secondary:hover {
  background: rgba(0, 0, 0, 0.28);
}

.button.ghost {
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: transparent;
  color: var(--foreground);
}

.button.ghost:hover {
  background: rgba(255, 255, 255, 0.06);
}

.button.linkish {
  min-height: auto;
  padding: 0;
  background: transparent;
  color: var(--primary);
}

.button.linkish:hover {
  background: transparent;
  color: var(--primary-strong);
  transform: none;
}

.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.section-heading {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.section-kicker {
  margin: 0;
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.section-title {
  margin: 0;
  color: var(--foreground);
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.section-subtitle {
  max-width: 760px;
  margin: 0;
  color: var(--foreground-soft);
  line-height: 1.8;
}

.hero-banner {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 580px;
  border: 1px solid var(--border);
  border-radius: 36px;
  background: rgba(0, 0, 0, 0.26);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.28);
}

.hero-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: rgba(30, 16, 8, 0.92);
  background-image: var(
    --hero-active-image,
    linear-gradient(135deg, rgba(44, 20, 8, 0.8), rgba(23, 11, 4, 0.86))
  );
  background-size: cover;
  background-position: center 34%;
  background-repeat: no-repeat;
  transform: scale(1.14);
  filter: blur(14px) saturate(1.08) contrast(1.02) brightness(0.84);
}

.hero-backgrounds,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-backgrounds {
  z-index: 0;
  opacity: 0;
  pointer-events: none;
}

.hero-background {
  opacity: 0;
  transform: scale(1.05);
  overflow: hidden;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.hero-background.is-active {
  opacity: 0.06;
  transform: scale(1);
}

.hero-background::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(112deg, rgba(20, 8, 2, 0.08) 0%, rgba(20, 8, 2, 0.02) 44%, rgba(20, 8, 2, 0.12) 100%),
    radial-gradient(circle at 78% 18%, rgba(237, 163, 75, 0.08), transparent 28%);
}

.hero-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 32%;
  filter: saturate(1.22) contrast(1.05) brightness(0.88);
  transform: scale(1.04);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(98deg, rgba(18, 7, 2, 0.58) 0%, rgba(24, 9, 2, 0.42) 30%, rgba(24, 9, 2, 0.2) 58%, rgba(24, 9, 2, 0.1) 100%),
    linear-gradient(180deg, rgba(26, 10, 2, 0.04) 0%, rgba(26, 10, 2, 0.24) 100%),
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.12), transparent 28%),
    radial-gradient(circle at bottom left, rgba(101, 163, 13, 0.08), transparent 24%);
  z-index: 1;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 2rem;
  min-height: 580px;
  padding: 1.5rem;
}

.hero-stage {
  position: relative;
  min-height: 460px;
  display: grid;
  align-content: space-between;
}

.hero-slide {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-copy {
  display: grid;
  gap: 1.5rem;
  max-width: 72%;
}

.hero-label-row,
.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.hero-eyebrow {
  margin: 0;
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.hero-title {
  max-width: 10.5ch;
  margin: 0;
  color: #ffffff;
  font-size: clamp(2.2rem, 6vw, 4.4rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.04em;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.hero-description {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1rem;
  line-height: 1.9;
}

.hero-stats {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hero-stat,
.info-card {
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 26px;
  background: rgba(0, 0, 0, 0.18);
  color: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(8px);
}

.hero-stat-value,
.info-value {
  display: block;
  margin-top: 0.45rem;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
}

.hero-stat-label,
.info-label {
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-sidebar {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 1rem;
}

.hero-preview-viewport {
  --hero-scrollbar-cut: 26px;
  overflow: hidden;
}

.hero-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.hero-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.hero-dot {
  width: 18px;
  height: 6px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
}

.hero-dot.is-active {
  width: 40px;
  background: var(--primary);
}

.hero-arrow-row {
  display: flex;
  gap: 0.5rem;
}

.hero-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.22);
  color: var(--foreground);
  cursor: pointer;
}

.hero-arrow:hover {
  background: rgba(0, 0, 0, 0.34);
}

.hero-preview-list {
  display: grid;
  gap: 0.75rem;
  width: calc(100% + var(--hero-scrollbar-cut));
  max-height: 400px;
  overflow-y: auto;
  padding-right: var(--hero-scrollbar-cut);
  margin-right: calc(var(--hero-scrollbar-cut) * -1);
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.hero-preview-list::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.hero-preview {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  min-height: 116px;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 26px;
  background: rgba(0, 0, 0, 0.18);
  color: var(--foreground);
  text-align: left;
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.hero-preview:hover {
  background: rgba(0, 0, 0, 0.3);
}

.hero-preview.is-active {
  border-color: rgba(237, 163, 75, 0.45);
  background: rgba(0, 0, 0, 0.36);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

.hero-preview-image {
  height: 100%;
}

.hero-preview-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
}

.hero-preview-copy {
  display: grid;
  align-content: center;
  gap: 0.4rem;
  padding: 1rem;
}

.hero-preview-eyebrow {
  margin: 0;
  color: rgba(237, 163, 75, 0.9);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.hero-preview-title {
  margin: 0;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
}

.hero-preview-meta {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.78rem;
  line-height: 1.6;
}

.cards-grid,
.gallery-grid,
.media-grid,
.two-columns,
.info-grid {
  display: grid;
  gap: 1.5rem;
}

.card-link {
  display: flex;
  height: 100%;
}

.card-link:hover .card {
  transform: translateY(-4px);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
}

.card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-card);
  background: var(--card);
  color: var(--card-foreground);
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  min-height: 0;
  overflow: hidden;
  background: rgba(42, 23, 13, 0.18);
}

.card-media-fallback {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(237, 163, 75, 0.78), rgba(42, 23, 13, 0.8));
}

.card-image,
.detail-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.card-link:hover .card-image {
  transform: scale(1.04);
}

.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
}

.card-body > :last-child {
  margin-top: auto;
}

.card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.card-kicker {
  color: rgba(132, 95, 67, 0.82);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.card-title {
  margin: 0;
  color: var(--card-foreground);
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  display: -webkit-box;
  min-height: 3.45rem;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-text {
  margin: 0;
  color: var(--card-muted);
  font-size: 0.96rem;
  line-height: 1.8;
  display: -webkit-box;
  min-height: 5.2rem;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.published-by {
  margin: 0;
  color: rgba(126, 94, 67, 0.88);
  font-size: 0.82rem;
  line-height: 1.7;
  min-height: 2.8rem;
}

.card-footer {
  display: grid;
  gap: 0.75rem;
  padding: 1rem 1.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--card-strong);
  color: rgba(247, 241, 230, 0.88);
  font-size: 0.82rem;
}

.card-footer-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.card-footer-item {
  line-height: 1.7;
}

.card-footer-item strong {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.detail-panel {
  padding: 1.5rem;
}

.detail-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.detail-copy {
  display: grid;
  gap: 1.5rem;
}

.detail-title {
  margin: 0;
  color: #ffffff;
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.detail-lead {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.1rem;
  line-height: 1.9;
}

.detail-description {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.9;
}

.detail-image-wrap {
  overflow: hidden;
  min-height: 300px;
  border-radius: 32px;
}

.section-block {
  display: grid;
  gap: 1.5rem;
}

.regional-info-panel {
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(18, 8, 3, 0.4), rgba(237, 163, 75, 0.08));
}

.matura-card {
  border-color: rgba(237, 163, 75, 0.32);
}

.matura-card-media {
  display: grid;
  place-items: center;
  padding: 1.75rem;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 248, 224, 0.96)),
    radial-gradient(circle at 30% 20%, rgba(237, 163, 75, 0.24), transparent 34%);
}

.matura-card-logo {
  width: min(180px, 72%);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 18px 30px rgba(42, 23, 13, 0.2));
}

.matura-card .card-text {
  min-height: 5.2rem;
  font-weight: 700;
}

.matura-hero-logo-wrap {
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.95);
}

.matura-hero-logo {
  width: min(260px, 70%);
  height: auto;
  object-fit: contain;
}

.matura-document {
  overflow: hidden;
  padding: clamp(1.25rem, 4vw, 3rem);
  border-radius: 32px;
  background: #fffdf8;
  color: #111111;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.22);
}

.matura-document-header {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 1.2rem;
}

.matura-document-header img {
  width: 180px;
  height: auto;
}

.matura-document h2 {
  margin: 0;
  color: #ed1c24;
  font-size: clamp(1.25rem, 3vw, 1.85rem);
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
}

.matura-document-body {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  font-weight: 700;
  line-height: 1.48;
}

.matura-document-body p {
  margin: 0 0 1rem;
}

.matura-document strong {
  color: #ed1c24;
  font-weight: 800;
}

.matura-lead {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.matura-campaign-image {
  float: left;
  width: min(52%, 560px);
  margin: 0.35rem 1.25rem 0.75rem 0;
}

.matura-campaign-image img {
  width: 100%;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.matura-contact {
  clear: both;
  padding-top: 0.25rem;
}

.empty-state {
  padding: 2rem;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--foreground-soft);
  line-height: 1.8;
  grid-column: 1 / -1;
}

.map-card,
.event-panel,
.media-card,
.gallery-preview {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: var(--shadow-soft);
}

.map-frame iframe,
.video-frame iframe {
  display: block;
  width: 100%;
  min-height: 320px;
  border: 0;
}

.media-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.25rem;
}

.media-card-body > :last-child {
  margin-top: auto;
}

.media-card-title,
.event-title {
  margin: 0;
  color: #ffffff;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.3;
  display: -webkit-box;
  min-height: 3.5rem;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.media-card-text,
.event-summary,
.event-address {
  margin: 0;
  color: var(--foreground-soft);
  line-height: 1.8;
}

.media-card-text {
  display: -webkit-box;
  min-height: 5.4rem;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.event-month-group {
  display: grid;
  gap: 1rem;
}

.event-month-title {
  margin: 0;
  color: #ffffff;
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1.2;
  text-transform: capitalize;
}

.event-stack {
  display: grid;
  gap: 1rem;
}

.event-panel {
  padding: 1.25rem;
}

.event-panel-top {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.event-date-chip {
  align-self: flex-start;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  background: rgba(0, 0, 0, 0.18);
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.7;
}

.event-meta-stack {
  display: grid;
  gap: 0.5rem;
}

.gallery-preview img {
  width: 100%;
}

.gallery-media {
  aspect-ratio: 16 / 10;
  min-height: 0;
  background: rgba(0, 0, 0, 0.14);
}

.gallery-media img,
.gallery-media iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

.gallery-carousel {
  display: grid;
  gap: 1rem;
}

.gallery-carousel-stage {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 32px;
  background: rgba(0, 0, 0, 0.5);
}

.gallery-carousel-slide {
  display: none;
  aspect-ratio: 16 / 9;
}

.gallery-carousel-slide.is-active {
  display: block;
}

.gallery-carousel-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.36);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}

.gallery-carousel-arrow:hover {
  background: rgba(0, 0, 0, 0.54);
}

.gallery-carousel-arrow.is-prev {
  left: 1rem;
}

.gallery-carousel-arrow.is-next {
  right: 1rem;
}

.gallery-carousel-thumbs {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.gallery-carousel-thumbs::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.gallery-carousel-thumb {
  position: relative;
  flex: 0 0 112px;
  height: 84px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  opacity: 0.82;
  cursor: pointer;
  transition: opacity 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.gallery-carousel-thumb:hover {
  opacity: 0.95;
}

.gallery-carousel-thumb.is-active {
  border-color: rgba(237, 163, 75, 0.95);
  opacity: 1;
  box-shadow: 0 0 0 2px rgba(237, 163, 75, 0.25);
}

.gallery-carousel-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-carousel-info-wrap {
  position: relative;
}

.gallery-carousel-info {
  display: none;
  padding: 1.15rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.04);
}

.gallery-carousel-info.is-active {
  display: grid;
  gap: 0.75rem;
}

.gallery-carousel-info .media-card-title,
.gallery-carousel-info .media-card-text,
.gallery-carousel-info .published-by {
  min-height: 0;
}

.gallery-carousel-info .media-card-title,
.gallery-carousel-info .media-card-text {
  display: block;
  overflow: visible;
}

.flash,
.error-box {
  padding: 1rem 1.15rem;
  border-radius: 20px;
  margin-bottom: 1rem;
}

.flash {
  background: var(--success);
  color: var(--success-foreground);
}

.error-box {
  background: var(--danger);
  color: var(--danger-foreground);
}

.error-list {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

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

th,
td {
  padding: 0.95rem 0.8rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

th {
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

td {
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.7;
}

label {
  display: block;
  margin-bottom: 0.45rem;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 600;
}

input[type="text"],
input[type="password"],
input[type="url"],
input[type="datetime-local"],
input[type="file"],
select,
textarea {
  width: 100%;
  padding: 0.88rem 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  background: rgba(255, 250, 242, 0.97);
  color: #2a170d;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

select {
  appearance: auto;
  -webkit-appearance: menulist;
  -moz-appearance: auto;
}

select option {
  color: #2a170d;
  background: #fffaf2;
}

select option:checked,
select option:focus,
select option:hover {
  background: #f7b14a;
  color: #1d120a;
}

select:focus,
input[type="text"]:focus,
input[type="password"]:focus,
input[type="url"]:focus,
input[type="datetime-local"]:focus,
input[type="file"]:focus,
textarea:focus {
  outline: none;
  border-color: rgba(247, 177, 74, 0.9);
  box-shadow:
    0 0 0 4px rgba(247, 177, 74, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: rgba(255, 255, 255, 0.42);
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
}

.checkbox-row label {
  margin: 0;
}

.field-hint,
.muted {
  margin: 0;
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.94rem;
  line-height: 1.8;
}

.form-grid {
  display: grid;
  gap: 1rem;
}

.admin-shell {
  padding: 2rem 0 4rem;
}

.admin-header {
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(18, 8, 3, 0.92), rgba(43, 23, 13, 0.88));
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.24);
}

.admin-meta {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.8;
}

.admin-title {
  margin-top: 0.75rem;
  font-size: clamp(2rem, 4vw, 2.8rem);
}

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

.auth-layout {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 4rem);
}

.auth-card {
  width: min(520px, 100%);
}

.auth-card h1 {
  margin-top: 0;
}

.auth-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
}

@media (min-width: 768px) {
  .section-heading {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }

  .section-heading .section-subtitle {
    max-width: 460px;
  }

  .site-footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    text-align: left;
  }

  .cards-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: 1fr;
  }

  .gallery-grid,
  .media-grid,
  .two-columns,
  .info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 1fr;
  }

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

  .detail-grid {
    grid-template-columns: 1fr 0.95fr;
  }

  .event-panel-top {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }

  .event-date-chip {
    max-width: 260px;
  }
}

@media (max-width: 1023px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 100%;
  }

  .hero-sidebar {
    justify-content: flex-start;
  }

  .hero-preview-viewport {
    overflow: visible;
  }

  .hero-preview-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    max-height: none;
    overflow: visible;
    margin-right: 0;
    padding-right: 0;
  }
}

@media (max-width: 767px) {
  .page {
    padding-top: 1rem;
  }

  .page-stack {
    gap: 2rem;
  }

  .brand {
    font-size: 1.2rem;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
  }

  .mobile-nav {
    display: block;
  }

  .hero-banner {
    min-height: 0;
  }

  .hero-grid {
    min-height: 0;
    padding: 1rem;
  }

  .hero-banner::before {
    background-position: center 28%;
    transform: scale(1.08);
    filter: blur(12px) saturate(1.06) contrast(1.02) brightness(0.82);
  }

  .hero-stage {
    min-height: 560px;
  }

  .hero-title {
    max-width: 100%;
    -webkit-line-clamp: 2;
  }

  .hero-stats,
  .card-footer-grid,
  .hero-preview-list,
  .cards-grid,
  .gallery-grid,
  .media-grid,
  .two-columns,
  .info-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .hero-preview {
    min-height: 108px;
  }

  .regional-info-panel {
    padding: 1.15rem;
    border-radius: 28px;
  }

  .matura-document {
    border-radius: 28px;
  }

  .matura-document-header {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .matura-document-header img {
    width: 150px;
  }

  .matura-campaign-image {
    float: none;
    width: 100%;
    margin: 0 0 1rem;
  }

  .gallery-carousel-stage {
    border-radius: 28px;
  }

  .gallery-carousel-arrow {
    width: 38px;
    height: 38px;
    border-radius: 16px;
  }

  .gallery-carousel-arrow.is-prev {
    left: 0.75rem;
  }

  .gallery-carousel-arrow.is-next {
    right: 0.75rem;
  }

  .gallery-carousel-thumb {
    flex-basis: 96px;
    height: 72px;
    border-radius: 18px;
  }

  .hero-cta-row,
  .inline-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button,
  button.button,
  input.button {
    width: 100%;
  }

  .surface-panel,
  .panel,
  .auth-card,
  .table-card,
  .form-card,
  .detail-panel,
  .event-panel,
  .map-card,
  .media-card,
  .gallery-preview {
    border-radius: 28px;
  }

  .detail-image-wrap {
    min-height: 240px;
    border-radius: 28px;
  }
}
