:root {
  /* Color Palette (Stone-like) */
  --bg-body: #fafaf9;
  --bg-white: #ffffff;
  --bg-dark: #1c1917;
  --bg-dark-overlay: rgba(28, 25, 23, 0.4);

  --text-main: #292524;
  --text-muted: #57534e;
  --text-light: #a8a29e;
  --text-white: #ffffff;

  --border-light: #e7e5e4;
  --border-hover: #d6d3d1;

  /* Brand Colors */
  --color-sky: #0284c7;
  --color-sky-light: #d1edff;
  --color-sky-dark: #006db0;
  --color-emerald: #059669;
  --color-emerald-light: #d1fae5;
  --color-violet: #7c3aed;
  --color-violet-light: #ede9fe;
  --color-orange: #ea580c;
  --color-orange-light: #ffedd5;
  --color-amber: #d97706;
  --color-amber-dark: #b45309;
  --color-amber-light: #f1b01a;
  --color-amber-superbright: #ffe9b5;

  /* Spacing & Layout */
  --container-width: 80rem; /* ~1280px */
  --header-height: 6rem;
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;

  /* Fonts */
  --font-sans: 'Inter', sans-serif;
  --tracking-tight: -0.025em;

  /* Sizes (rem based) */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-display: 4.5rem;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

/* Utilities */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.hidden { display: none !important; }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: var(--text-base);
  font-weight: 500;
  transition: all 0.2s;
  color: white;
}


.btn-primary {
  background-color: var(--color-amber);
  color: white;
}
.btn-primary:hover {
  background-color: var(--color-amber-dark);
  transform: translateY(-1px);
}
.btn-white {
  background-color: white;
  color: var(--text-main);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}
.btn-white:hover { background-color: var(--bg-body); }
.btn-glass {
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
}
.btn-glass:hover { background-color: rgba(255, 255, 255, 0.2); }

.fancy-link {
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--color-amber);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s;
}
.fancy-link:hover {
  color: var(--color-amber-dark);
}


.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.badge-amber {
  background-color: rgba(217, 119, 6, 0.2);
  border: 1px solid rgba(217, 119, 6, 0.3);
  color: #fbbf24;
}
.text-amber { color: var(--color-amber); }
.text-orange { color: var(--color-orange); }
.text-violet { color: var(--color-violet); }
.text-emerald { color: var(--color-emerald); }
.text-sky { color: var(--color-amber); }

/* Parallax Background */
.parallax-wrapper {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  filter: blur(1.5px);
  opacity: 0.7;
  -webkit-mask-image: linear-gradient(to bottom, black 70%, transparent 95%);
  mask-image: linear-gradient(to bottom, black 70%, transparent 95%);
  overflow: hidden;
}

.parallax-overlay {
  position: absolute;
  inset: 0;
}

.parallax-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background-color: var(--bg-dark-overlay);
  z-index: 2;
}

.billboard-slides {
  position: absolute;
  inset: 0;
  z-index: 1;
}


.billboard-slides .slide {
  position: absolute;
  inset: 0;
  top: 70px;
  background-size: 100% auto;
  background-position: center top;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 2s ease-in-out;
}

.billboard-slides.home .slide {
  background-size: cover;
  background-position: 50% 60%;
}

@media (min-width: 768px) {
  .billboard-slides.home .slide {
    background-size: cover;
    background-position: 50% 60%;
  }
}




.billboard-slides .slide.active {
  opacity: 1;
}

/* Navigation */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 3px solid var(--color-amber-light);
  height: var(--header-height);
}

.navbar-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  font-size: var(--text-2xl);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  height: 72px;
}
.logo-icon {
  width: 2.5rem;
  height: 2.5rem;
  background-color: var(--bg-dark);
  color: white;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo-text {
  display: none;
  flex-direction: column;
  line-height: 1;
}
@media (min-width: 380px) {
  .logo-text {
    display: flex;
  }
}
.logo-title { font-weight: 700; font-size: var(--text-2xl); letter-spacing: var(--tracking-tight); }
.logo-subtitle { font-size: var(--text-base); color: var(--text-muted); font-weight: 500; margin-top: 2px; }

.nav-link {
  font-weight: 500;
  transition: color 0.2s;
  font-size: var(--text-lg);
  white-space: nowrap;
  transition: all 0.2s ease;
  padding: 0.3rem 0.5rem;
  border-radius: var(--radius-md);
}

.nav-link:hover {
  background-color: rgba(217, 119, 6, 0.05);
  color: var(--color-amber);
}

.nav-links {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: center;
}

.nav-links #nav-links-collapsible {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  background: white;
  border-bottom: 1px solid var(--border-light);
  padding: 1rem;
  display: none; /* Toggled via JS */
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}
.nav-links .active#nav-links-collapsible {
  display: flex;
  padding-top: 72px; /* place for search bar here */
}
#mobile-menu-toggle {
  display: flex;
  padding: 0.5rem;
  color: var(--text-muted);
}
.nav-links .btn-donate {
  flex-shrink: 0;
}

/* Above .main-wrapper (z-index: 20), below .navbar (z-index: 100) */
.mobile-nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(15, 23, 42, 0.45);
  pointer-events: none;
}
.mobile-nav-backdrop.is-active {
  display: block;
  pointer-events: auto;
}
@media (min-width: 960px) {
  .mobile-nav-backdrop,
  .mobile-nav-backdrop.is-active {
    display: none !important;
    pointer-events: none !important;
  }
}
@media (max-width: 959px) {
  body.mobile-nav-open {
    overflow: hidden;
  }
}

@media (min-width: 960px) {
  .nav-links .btn-donate {
    order: 2;
  }
  .nav-links #nav-links-collapsible {
    background: transparent;
    position: static;
    border: none;
    box-shadow: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: row;
    gap: 1rem;
    align-items: center;
    justify-content: center;
  }
  #mobile-menu-toggle {
    display: none;
  }

}

@media (min-width: 1024px) {
  .nav-links {
    gap: 1.5rem;
  }
  #nav-links-collapsible {
    gap: 1.5rem;
  }
}

#search-bar {
  display: none;
  flex-shrink: 1;
}

.active#search-bar {
  /* placing the search bar on top of the menu */
  display: flex;
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
  background: white;
  top: var(--header-height);
  z-index: 1;
  padding: 14px 12px;
}

@media (min-width: 768px) {
  #search-bar {
    display: flex;
  }
}

.search-form { width: 100%; }
.search-form .search-input {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: var(--text-base);
  font-weight: 500;
  background-color: var(--bg-body);
  border: 1px solid var(--border-light);
  color: var(--text-main);
  width: 100%;
  height: 40px;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
  transition: all 0.3s ease;
  width: 200px;
}
.search-form .search-input input {
  border: none;
  outline: none;
  background: transparent;
  width: 100%;
  height: 100%;
  padding: 0 0.25rem;
  font-size: var(--text-base);
  font-weight: 500;

}
.search-form .search-input:focus-within {
  border-color: var(--color-amber);
  box-shadow: 0 0 0 3px var(--color-amber-light);
  width: 230px;
}

/* Hero */
.hero {
  position: relative;
  padding: 8rem 1.5rem 12rem;
  text-align: center;
  color: white;
  min-height: 20vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.hero.home {
  min-height: 65vh;
}
@media (min-width: 1024px) {
  .hero {
    padding-top: 8rem;
    padding-bottom: 7rem;
  }
}
.hero-content {
  position: relative;
  z-index: 10;
  max-width: 56rem;
}
.hero-title {
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: var(--tracking-tight);
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8)
}
@media (min-width: 768px) {
  .hero-title {
    font-size: var(--text-5xl);
  }
}
@media (min-width: 1024px) {
  .hero-title {
    font-size: 4.5rem;
  }
}
.hero-text {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.9);
  max-width: 40rem;
  margin: 0 auto 2.5rem;
  text-shadow: 0 0 3px rgba(0, 0, 0, 0.8)
}
.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Main Card Layout */
.main-wrapper {
  position: relative;
  z-index: 20;
  background-color: var(--bg-white);
  border-top-left-radius: 1.5rem;
  border-top-right-radius: 1.5rem;
  margin-top: -8rem;
  box-shadow: 0 -10px 40px rgba(0,0,0,0.1);
  overflow: hidden;
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}
@media (min-width: 768px) {
  .main-wrapper {
    margin-top: -3rem;
    border-top-left-radius: 3rem;
    border-top-right-radius: 3rem;
  }
}

/* Sections */
.section {
  padding: 4rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
}
.section-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 2.5rem;
}
@media (min-width: 768px) {
  .section-header {
    flex-direction: row;
    align-items: flex-end;
  }
}
.section-title {
  font-size: var(--text-2xl);
  font-weight: 600;
  color: var(--text-main);
  letter-spacing: var(--tracking-tight);
  margin-bottom: .5rem;

}
.section-desc {
  color: var(--text-muted);
  font-size: var(--text-base);
}

/* Grid System (Pillars) */
.pillars-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) {
  .pillars-grid {
    /* Tablet View: 2 Columns */
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .pillars-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 2rem;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}
.card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

.card-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: transform 0.3s;
}
.card:hover .card-icon { transform: scale(1.1); }

/* Icon Colors */
.bg-sky { background-color: var(--color-sky-light); color: var(--color-sky); }
.bg-emerald { background-color: var(--color-emerald-light); color: var(--color-emerald); }
.bg-violet { background-color: var(--color-violet-light); color: var(--color-violet); }
.bg-orange { background-color: var(--color-orange-light); color: var(--color-orange); }

.card-title {
  font-size: var(--text-xl);
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-main);
  letter-spacing: var(--tracking-tight);
}
.card-text {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.6;
  flex-grow: 1;
}
.card-link {
  font-size: var(--text-sm);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.card-link.sky, .text-sky { color: var(--color-amber); }
.card-link.emerald,.text-emerald { color: var(--color-emerald); }
.card-link.violet,.text-violet { color: var(--color-violet); }
.card-link.orange,.text-orange { color: var(--color-orange); }

/* Featured Card */
.card-featured {
  background-color: var(--bg-dark);
  border: none;
  position: relative;
  overflow: hidden;
}
@media (min-width: 768px) {
  .card-featured {
    grid-column: span 2;
  }
}
@media (min-width: 1024px) {
  .card-featured {
    grid-column: span 2;
  }
}
.card-featured:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
}

.featured-bg-icon {
  position: absolute;
  top: 0; right: 0;
  opacity: 0.1;
  transform: translate(20%, -20%);
  color: white;
}
.card-featured .card-content {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1.5rem;
  height: 100%;
}
@media (min-width: 768px) {
  .card-featured .card-content {
    justify-content: space-between;
  }
}
.card-featured .card-text {
  color: white;
}
.card-featured .card-title {
  color: var(--color-amber);
}
.card-featured .btn {
  background-color: var(--color-amber);
  flex-shrink: 0;
}
@media (min-width: 768px) {
  .card-featured .btn {
    align-self: center;
  }
}
.card-featured .btn:hover {
  background-color: #f59e0b;
}


/* Calendar */
.schedule-events-wrap {
  margin-top: 2.5rem;
}
.schedule-events-heading {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}
.schedule-year-empty {
  color: var(--text-muted);
  margin: 0 0 1rem;
}
.schedule-year-pagination {
  margin-top: 1.75rem;
  justify-content: flex-start;
}
/* Dedicated schedule page: year list as cards (header: date + title; tags below) */
.schedule-events-wrap .schedule-year-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0;
}
.schedule-events-wrap .schedule-year-list-item {
  margin-bottom: 0;
  padding-left: 0;
  border-left: none;
  list-style: none;
}
.schedule-events-wrap .schedule-event-card {
  padding: 1rem 1.125rem;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.schedule-events-wrap .schedule-event-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 1px 3px rgba(28, 25, 23, 0.06);
}
.schedule-events-wrap .schedule-event-header {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.schedule-events-wrap .schedule-event-date {
  display: block;
  font-size: var(--text-base);
  color: var(--text-muted);
  font-weight: 500;
  margin: 0;
}
.schedule-events-wrap .schedule-event-title {
  font-size: var(--text-xl);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: var(--tracking-tight);
  color: var(--text-main);
  margin: 0;
}
.schedule-events-wrap .schedule-event-title-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}
.schedule-events-wrap .schedule-event-title-link:hover {
  color: var(--color-amber-dark);
}
.calendar-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) {
  .calendar-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.cal-card {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}
.cal-card.past {
  background: #f5f5f4;
}
.cal-card.past .event-name {
  color: var(--text-muted);
}
.cal-card.current {
  border: 2px solid var(--color-amber-light);
}
.cal-card.current:hover {
  border-color: var(--color-amber);
}

.tag-current {
  position: absolute;
  top: 0; right: 0;
  background: var(--color-amber-light);
  color: var(--color-amber);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  border-bottom-left-radius: 0.5rem;
  text-transform: uppercase;
}
.cal-head {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 0.75rem;
  margin-bottom: 1rem;
}
.cal-title { font-size: var(--text-sm); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); }
.cal-date { font-size: var(--text-xs); color: var(--text-light); }
/* Landing: home calendar columns only (inside .calendar-grid) */
.calendar-grid .event-list > li {
  position: relative;
  padding-left: 1rem;
  border-left: 2px solid var(--border-light);
  margin-bottom: 1rem;
}
.calendar-grid .event-list > li:last-child { margin-bottom: 0; }
.calendar-grid .event-list > li.highlight { border-color: var(--color-amber); }
.calendar-grid .event-list > li.highlight-amber { border-color: var(--color-amber); }
.cal-placeholder { font-size: var(--text-sm); color: var(--text-muted); text-align: center; padding: 1rem; font-style: italic; }
.event-day { display: block; font-size: var(--text-xs); color: var(--text-muted); margin-bottom: 0.125rem; }
.event-name { display: block; font-size: var(--text-sm); font-weight: 600; color: var(--text-main); }

/* News Grid */
.news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
}
@media (min-width: 768px) {
  .news-grid {
    grid-template-columns: 1fr;
    max-width: 40rem;
    margin: 0 auto;
  }
}
@media (min-width: 1024px) {
  .news-grid {
    grid-template-columns: repeat(3, 1fr);
    max-width: none;
    gap: 4rem 3rem;
  }
}
.news-item {
  display: flex;
  flex-direction: column;
  height: 100%;
  group: 'news';
}
@media (min-width: 768px) {
  .news-item {
    flex-direction: row;
    gap: 1.5rem;
    align-items: center;
  }
}
@media (min-width: 1024px) {
  .news-item {
    flex-direction: column;
    gap: 0;
  }
}
.news-item-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  width: 100%;
}
.news-img-wrap {
  aspect-ratio: 4/3;
  border: 1px solid var(--border-light);
  background-color: #f5f5f5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 1.25rem;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
@media (min-width: 768px) {
  .news-img-wrap {
    width: 40%;
    margin-bottom: 0;
    flex-shrink: 0;
  }
}
@media (min-width: 1024px) {
  .news-img-wrap {
    width: 100%;
    margin-bottom: 1.25rem;
  }
}
.news-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.news-item:hover .news-img { transform: scale(1.05); }

.meta-tags {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.3rem;
  margin-bottom: 0.3rem;
}

.tag {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.125rem 0.625rem;
  border-radius: var(--radius-full);
  color: #fff;
}
.meta-date { font-size: 0.7rem; color: var(--text-light); font-weight: 500; }
.news-title {
  font-size: var(--text-xl);
  font-weight: 600;
  margin-bottom: 0.5rem;
  line-height: 1.3;
  letter-spacing: var(--tracking-tight);
}
.news-excerpt {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}
@media (min-width: 768px) {
  .news-excerpt {
    -webkit-line-clamp: 2;
  }
}
@media (min-width: 1024px) {
  .news-excerpt {
    -webkit-line-clamp: 3;
  }
}


.section figure.section-img-wrap {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  margin: 1rem auto;
}
.section figure.section-img-wrap img {
  margin: 0;
}
@media (min-width: 768px) {
  .section-img-wrap {
    width: 80%;
  }
}
@media (min-width: 1024px) {
  .section-img-wrap {
    width: 60%;
    margin-bottom: 1.25rem;
  }
}

/* Inline full HTML: pasted YouTube URLs rendered as embed */
.content-youtube-embed {
  position: relative;
  width: 100%;
  max-width: 48rem;
  margin: 1.25rem auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000;
}
.content-youtube-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.read-more {
  font-size: var(--text-sm);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--text-main);
  margin-top: auto;
}
.breadcrumbs {
  font-size: var(--text-sm);
  color: var(--text-light);
  margin-bottom: 1rem;
}
.breadcrumbs a {
  color: var(--text-main);
}

.section-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 30px auto;
}
@media (min-width: 768px) {
  .section-gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 1024px) {
  .section-gallery {
    max-width: 80%;
    grid-template-columns: repeat(4, 1fr);
  }
}
.section-gallery .gallery-img-link {
  aspect-ratio: 4/3;
  display: block;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  background-color: #f5f5f5;
  transition: transform 0.3s ease;
}
.section-gallery .gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.section-gallery .gallery-img-link:hover {
  transform: scale(1.05);
}
.section-gallery .gallery-img-link:active {
  transform: scale(0.95);
}

/* Attachment tiles */
.attachments {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 2rem;
}
.attachment-tile {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 0.75rem 1rem 0.75rem 4rem;
  border-radius: var(--radius-md);
  border-width: 1px;
  border-style: solid;
  border-color: rgba(0, 0, 0, 0.05);
  min-height: 3.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  color: var(--text-main);
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
  max-width: 30rem;
}
.attachment-tile:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.08);
}
.attachment-badge {
  position: absolute;
  top: 0.4rem;
  left: 0.4rem;
  padding: 0.15rem 0.4rem;
  font-size: 0.55rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-radius: 0.3rem;
  opacity: 0.8;
  backdrop-filter: blur(4px);
}
.attachment-icon {
  position: absolute;
  top: -0.5rem;
  left: -0.5rem;
  font-size: 4rem;
  line-height: 1;
  opacity: 0.18;
  pointer-events: none;
  user-select: none;
}
.attachment-label {
  flex: 1;
  font-size: var(--text-base);
  font-weight: 500;
  line-height: 1.3;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.attachment-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}
.attachment-size {
  font-size: 0.7rem;
  color: var(--text-light);
  line-height: 1;
}
.attachment-download-icon {
  width: 1rem;
  height: 1rem;
  color: var(--text-muted);
  opacity: 0.7;
}
.attachment-tile:hover .attachment-download-icon {
  color: var(--text-main);
  opacity: 1;
}
.attachment-tile .attachment-badge {
  background-color: rgba(0, 0, 0, 0.2);
  color: rgba(255, 255, 255, 0.95);
}
/* Extension-based gradients and colors */
.attachment-tile-pdf {
  background: linear-gradient(145deg, #fef2f2 0%, #fee2e2 100%);
  border-color: rgba(185, 28, 28, 0.08);
}
.attachment-tile-pdf .attachment-badge {
  background-color: rgba(185, 28, 28, 0.7);
}
.attachment-tile-doc,
.attachment-tile-docx {
  background: linear-gradient(145deg, #f0f9ff 0%, #e0f2fe 100%);
  border-color: rgba(2, 132, 199, 0.08);
}
.attachment-tile-doc .attachment-badge,
.attachment-tile-docx .attachment-badge {
  background-color: rgba(2, 132, 199, 0.7);
}
.attachment-tile-xls,
.attachment-tile-xlsx {
  background: linear-gradient(145deg, #ecfdf5 0%, #d1fae5 100%);
  border-color: rgba(5, 150, 105, 0.08);
}
.attachment-tile-xls .attachment-badge,
.attachment-tile-xlsx .attachment-badge {
  background-color: rgba(5, 150, 105, 0.7);
}
.attachment-tile-zip,
.attachment-tile-rar,
.attachment-tile-7z {
  background: linear-gradient(145deg, #fffbeb 0%, #fef3c7 100%);
  border-color: rgba(217, 119, 6, 0.08);
}
.attachment-tile-zip .attachment-badge,
.attachment-tile-rar .attachment-badge,
.attachment-tile-7z .attachment-badge {
  background-color: rgba(217, 119, 6, 0.7);
}
.attachment-tile-txt,
.attachment-tile-rtf {
  background: linear-gradient(145deg, #fafafa 0%, #f5f5f4 100%);
  border-color: rgba(87, 83, 78, 0.06);
}
.attachment-tile-txt .attachment-badge,
.attachment-tile-rtf .attachment-badge {
  background-color: rgba(87, 83, 78, 0.6);
}
.attachment-tile:not(.attachment-tile-pdf):not(.attachment-tile-doc):not(.attachment-tile-docx):not(.attachment-tile-xls):not(.attachment-tile-xlsx):not(.attachment-tile-zip):not(.attachment-tile-rar):not(.attachment-tile-7z):not(.attachment-tile-txt):not(.attachment-tile-rtf) {
  background: linear-gradient(145deg, #fafafa 0%, #f5f5f5 100%);
}

/* Footer */
.footer {
  background-color: var(--bg-body);
  border-top: 1px solid var(--border-light);
}

/* Footer Logos - full width, white bg */
.footer-logos {
  width: 100%;
  background-color: var(--bg-white);
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-light);
}
@media (min-width: 768px) {
  .footer-logos {
    padding: 3rem 1.5rem;
  }
}
.footer-logos-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}
.logo-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.logo-group-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.logo-list {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-evenly;
  width: 100%;
  gap: 2rem;
}
@media (min-width: 768px) {
  .logo-list {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-evenly;
    width: 100%;
    }
}
.logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 6rem;
  flex-shrink: 0;
  text-decoration: none;
  color: inherit;
}
.logo-item img {
  height: 100%;
  width: auto;
  max-width: 8rem;
  object-fit: contain;
  vertical-align: middle;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.footer-content {
  padding: 3rem 1.5rem;
}
.footer-content p {
  font-size: var(--text-md);
  margin: 2rem 0;
  color: var(--text-muted);
}
.footer-content p a {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 600;
}
@media (min-width: 1024px) {
  .footer-content {
    padding: 4rem;
  }
}
.footer-links-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.footer-heading {
  font-size: var(--text-md);
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.footer-link-list li { margin-bottom: 0.5rem; }
.footer-link-list a, .footer-link-list span {
  font-size: var(--text-md);
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}
.footer-link-list a:hover { text-decoration: underline; color: var(--text-main); }
.socials {
  display: flex;
  gap: 1rem;
  font-size: var(--text-md); color: var(--text-muted);
  margin-bottom: 2rem;
  align-items: center;
}

.socials a {
  display: flex;
  align-items: center;
  color: var(--text-muted);
  transition: color 0.2s;
}
.socials a:hover { color: var(--text-main); }

.map-container {
  position: relative;
  height: 16rem;
  background-color: #e5e5e5;
  overflow: hidden;
  filter: grayscale(100%);
}
@media (min-width: 768px) {
  .map-container {
    height: auto;
  }
}
.map-marker {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.marker-dot {
  width: 2rem; height: 2rem;
  background-color: var(--color-amber);
  border: 2px solid white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.marker-label {
  position: absolute;
  top: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.7rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Subsections / Section Children */
.section-children {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}


@media (min-width: 768px) {
  .section-children {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .section-children {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* 404 */
.page-404 {
  text-align: center;
  padding-top: 2.5rem;
  padding-bottom: 4rem;
}
.page-404 .breadcrumbs {
  text-align: left;
  margin-bottom: 2rem;
}
.page-404-inner {
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
}
.page-404-inner > p {
  text-align: left;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}
.page-404-title {
  margin: 0 0 1.75rem;
  text-align: center;
  line-height: 1.1;
  letter-spacing: var(--tracking-tight);
}
.page-404-num {
  display: block;
  font-size: clamp(4.5rem, 18vw, 9rem);
  font-weight: 700;
  line-height: 0.95;
  color: var(--color-amber);
  opacity: 0.92;
  user-select: none;
  margin-bottom: 0.75rem;
}
.page-404-headline {
  display: block;
  font-size: clamp(1.5rem, 4.5vw, 2.35rem);
  font-weight: 700;
  color: var(--text-main);
}
.page-404-lead {
  font-size: var(--text-lg);
}
.page-404-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 0.5rem;
}
.page-404-home {
  flex-shrink: 0;
}
.page-404-search-form {
  width: 100%;
  max-width: 22rem;
  min-width: 0;
}
.page-404-search-form .search-input {
  width: 100%;
  max-width: none;
}
.page-404-search-form .search-input:focus-within {
  width: 100%;
}
@media (min-width: 480px) {
  .page-404-actions {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 1.25rem;
  }
  .page-404-search-form {
    flex: 1 1 12rem;
    max-width: 22rem;
    width: auto;
  }
}
/* Media queries have been moved to 1_nav.css and 2_layout.css */
/* Lightbox Modal */
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-content-wrapper {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
    position: absolute;
    bottom: -40px;
    left: 0;
    width: 100%;
    text-align: center;
    color: white;
    font-size: 1rem;
    text-shadow: 0 1px 2px black;
}

/* Controls */
.lightbox-btn {
    position: absolute;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 10px;
    transition: transform 0.2s, opacity 0.2s;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
}

.lightbox-btn:hover {
    transform: scale(1.1);
    opacity: 1;
}

.lightbox-close {
    top: 20px;
    right: 20px;
}

.lightbox-prev {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-prev:hover, .lightbox-next:hover {
    transform: translateY(-50%) scale(1.1);
}

/* Loading Spinner */
.lightbox-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    border: 5px solid #FFF;
    border-bottom-color: transparent;
    border-radius: 50%;
    display: none;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}

.lightbox-loader.active {
    display: block;
}

@keyframes rotation {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Video specific */
.lightbox-video-container {
    width: 80vw;
    height: 80vh;
    max-width: 1280px;
    background: black;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-video-container iframe,
.lightbox-video-container video {
    width: 100%;
    height: 100%;
    border: none;
}

/* Gallery Video Overlay */
.gallery-img-link {
    position: relative;
    display: block;
}

.video-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 2;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.gallery-img-link:hover .video-overlay {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}
/* Semantic Content Styles (Rich Text) */
.semantic {
  color: var(--text-main);
  line-height: 1.7;
  font-size: var(--text-base);
}

/* Typography */
.semantic h1,
.semantic h2,
.semantic h3,
.semantic h4,
.semantic h5,
.semantic h6 {
  color: var(--text-main);
  font-weight: 600;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1.3;
  letter-spacing: var(--tracking-tight);
}

.semantic h1:first-child,
.semantic h2:first-child,
.semantic h3:first-child {
  margin-top: 0;
}

.semantic h1 { font-size: 2.25rem; }
.semantic h2 { font-size: 1.875rem; border-bottom: 1px solid var(--border-light); padding-bottom: 0.5rem; }
.semantic h3 { font-size: 1.5rem; margin-top: 1.5rem; margin-bottom: .5rem; }
.semantic h4 { font-size: 1.25rem; margin-top: 1.25rem; margin-bottom: .5rem; }
.semantic h5 { font-size: 1.125rem; margin-top: 1rem; margin-bottom: .25rem; }
.semantic h6 { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.05em; }

.semantic p {
  margin-bottom: 1.5rem;
}

.semantic strong,
.semantic b {
  font-weight: 600;
  color: var(--text-dark);
}

/* Links */
.semantic a {
  color: var(--color-amber);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
  transition: all 0.2s;
}

.semantic a:hover {
  color: var(--color-orange);
  text-decoration-color: transparent;
}

.semantic a.btn {
  color: white;
  text-decoration: none;
}

/* Lists */
.semantic ul,
.semantic ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.semantic li {
  margin-bottom: 0.5rem;
  padding-left: 0.5rem;
}

.semantic ul {
  list-style-type: disc;
}

.semantic ol {
  list-style-type: decimal;
}

.semantic ul ul,
.semantic ol ol,
.semantic ul ol,
.semantic ol ul {
  margin-top: 0.5rem;
  margin-bottom: 0;
}

/* Blockquotes */
.semantic blockquote {
  border-left: 4px solid var(--color-amber);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--text-muted);
  background-color: #fffbeb; /* light amber background */
  padding: 1.5rem;
  border-radius: 0 0.5rem 0.5rem 0;
}

/* Tables */
.semantic table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
  font-size: 0.95em;
}

.semantic th,
.semantic td {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-light);
  text-align: left;
}

.semantic th {
  background-color: #f9fafb;
  font-weight: 600;
  color: var(--text-main);
}

.semantic tr:nth-child(even) {
  background-color: #fafafa;
}

/* Images and Media */
.semantic img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  margin: 1.5rem 0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.semantic img.plain {
  border-radius: 0;
  border: 0;
  box-shadow: none;
}

.semantic img.smaller {
  width: 80%;
  margin-left: auto;
  margin-right: auto;
  display: block;
}

.semantic figure {
  margin: 2rem 0;
}

.semantic figcaption {
  font-size: var(--text-sm);
  color: var(--text-muted);
  text-align: center;
  margin-top: 0.5rem;
}

/* Code */
.semantic code {
  background-color: #f3f4f6;
  padding: 0.2rem 0.4rem;
  border-radius: 0.25rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.875em;
  color: var(--color-violet);
}

.semantic pre {
  background-color: #1f2937;
  color: #f3f4f6;
  padding: 1.25rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

.semantic pre code {
  background-color: transparent;
  padding: 0;
  color: inherit;
  font-size: 0.875em;
}

/* Horizontal Rule */
.semantic hr {
  border: 0;
  border-top: 1px solid var(--border-light);
  margin: 3rem 0;
}

.semantic .krs-box {
  background-color: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1rem;
  font-weight: 600;
  color: var(--text-main);
  letter-spacing: var(--tracking-tight);
  margin-bottom: 1rem;
  border-style: dashed;
  border-color: var(--border-light);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
  max-width: 30rem;
  text-align: center;
}
.semantic .krs-box strong {
  display: block;
  font-size: 1.5em;
  font-weight: bold;
  letter-spacing: 1px;
}
@media (min-width: 768px) {
  .semantic .krs-box {
    margin: 0 auto 1rem auto;
  }
  .semantic .krs-box strong {
    font-size: 2.5em;
    letter-spacing: 3px;
  }
}
.semantic .cta-link {
  text-align: center;
}
.semantic .cta-link a {
  display: block;
  color: white;
  text-align: center;
  background-color: var(--color-amber);
  color: white;
  padding: 10px 12px;
  text-decoration: none;
  border-radius: var(--radius-md);
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.2s, transform 0.1s;
  max-width: 40rem;
}
@media (min-width: 768px) {
  .semantic .cta-link a {
    display: inline-block;
    padding: 15px 30px;
    font-size: 1.1em;
  }
}
.semantic .cta-link.blue a {
  background-color: var(--color-sky);
}
.semantic .cta-link.white a {
  background-color: white;
  color: var(--color-amber);
}
.semantic .cta-link a:hover {
  transform: translateY(-1px);
  opacity: 0.9;
  text-decoration: none;
}


.semantic .highlight-box {
  background-color: var(--color-amber-superbright);
  border-left: 4px solid var(--color-amber);
  margin: 20px 0;
  max-width: 960px;
  border-radius: 0 8px 8px 0;
  padding: 10px 20px;
}

.semantic .highlight-box h2 {
  border: none;
}

@media (min-width: 768px) {
  .semantic .highlight-box {
    padding: 15px 50px;
  }
}

.semantic .search-results-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.semantic .search-result-item {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-light);
}

.semantic .search-result-item:last-child {
  border-bottom: none;
}

.semantic .search-result-item > a {
  font-weight: 600;
  font-size: 1.05em;
}

.semantic .search-result-item .badge {
  margin-left: 0.5rem;
}

.semantic .search-result-item p {
  margin: 0.5rem 0 0;
  color: var(--text-muted);
  font-size: 0.95em;
  line-height: 1.4;
}
/* Contact form (scheme: contact + DB form row) */

.contact-form-wrap {
  margin-top: 2rem;
  max-width: 36rem;
}

.contact-form-flash {
  padding: 0.875rem 1rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  font-size: var(--text-sm);
  line-height: 1.5;
}

.contact-form-flash--ok {
  background-color: var(--color-emerald-light);
  color: var(--color-emerald);
  border: 1px solid var(--color-emerald);
}

.contact-form-flash--err {
  background-color: var(--color-orange-light);
  color: var(--color-orange);
  border: 1px solid var(--color-orange);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-form-field {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.contact-form-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-main);
}

.contact-form-required {
  color: var(--color-orange);
  text-decoration: none;
  font-weight: 700;
}

.contact-form-control {
  width: 100%;
  padding: 0.625rem 0.875rem;
  font-size: var(--text-base);
  font-family: var(--font-sans);
  color: var(--text-main);
  background-color: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.contact-form-control:focus {
  outline: none;
  border-color: var(--color-amber);
  box-shadow: 0 0 0 3px var(--color-amber-superbright);
}

.contact-form-control--textarea {
  resize: vertical;
  min-height: 8rem;
  line-height: 1.6;
}

.contact-form-field--error .contact-form-control {
  border-color: var(--color-orange);
}

.contact-form-error {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--color-orange);
}

.contact-form-hint {
  margin: 0;
  font-size: var(--text-xs);
  color: var(--text-muted);
  line-height: 1.45;
}

.contact-form-field--antispam .contact-form-control {
  max-width: 14rem;
}

.contact-form-actions {
  margin-top: 0.5rem;
}

.contact-form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  font-size: var(--text-base);
  font-weight: 600;
  font-family: var(--font-sans);
  color: var(--text-white);
  background-color: var(--color-amber);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
}

.contact-form-submit:hover {
  background-color: var(--color-amber-dark);
}

.contact-form-submit:active {
  transform: translateY(1px);
}

.contact-form-submit:focus-visible {
  outline: 2px solid var(--color-amber-dark);
  outline-offset: 2px;
}
/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 4rem;
  flex-wrap: wrap;
}

.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.75rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  color: var(--text-main);
  font-weight: 500;
  font-size: var(--text-sm);
  background-color: white;
  transition: all 0.2s;
}

.page-link:hover {
  background-color: #f9fafb;
  border-color: var(--color-amber);
  color: var(--color-amber);
  text-decoration: none;
}

.page-link.active {
  background-color: var(--color-amber);
  border-color: var(--color-amber);
  color: white;
  cursor: default;
}

.page-link.active:hover {
  background-color: var(--color-amber);
  color: white;
}

.page-link.disabled {
  color: var(--text-muted);
  cursor: not-allowed;
  opacity: 0.6;
}

.page-link.disabled:hover {
  background-color: white;
  border-color: var(--border-light);
  color: var(--text-muted);
}





.action-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* =========================================
  GŁÓWNY PRZYCISK WSPARCIA
  ========================================= */
.btn-donate {
  display: inline-flex;
  align-items: center;
  height: 48px;
  box-sizing: border-box;
  background-color: #d97706;
  color: #ffffff;
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 0 4px 0 20px;
  border-radius: 999px;
  box-shadow: 0 4px 6px rgba(217, 119, 6, 0.2);
  transition: all 0.3s ease;
  position: relative;
  animation: pulse-shadow 3s infinite;
}

.btn-donate:hover {
  background-color: #b45309;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(217, 119, 6, 0.3);
}

.btn-text {
  margin-right: 14px;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.icon-circle {
  width: 40px;
  height: 40px;
  background-color: #ffffff;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  display: flex;
  justify-content: center;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.icon-track {
  display: flex;
  flex-direction: column;
  width: 100%;
  animation: slide-icons 10s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

.icon-slide {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.icon-slide svg {
  width: 24px;
  height: 24px;
}

.pit-text {
  font-family: 'Arial Black', sans-serif;
  font-weight: 900;
  fill: #cd141a;
}

.pit-sub {
  font-family: Arial, sans-serif;
  font-weight: bold;
  fill: #d97706;
}

/* =========================================
  OKRĄGŁE PRZYCISKI POMOCNICZE (A+, Kontrast, FB)
  ========================================= */
.btn-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 2px 4px rgba(0,0,0,0.03);
  display: flex;
  justify-content: center;
  align-items: center;
  color: #4b5563;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  padding: 0;
}

.btn-icon:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.08);
  border-color: #d1d5db;
  color: #111827;
}

.btn-icon.fb:hover {
  color: #1877F2;
  border-color: #1877F2;
}

.btn-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn-icon .filled-icon {
  fill: currentColor;
  stroke: none;
}

.icon-text {
  font-family: serif;
  font-weight: 900;
  font-size: 1.1rem;
  letter-spacing: -0.5px;
}

/* =========================================
  ANIMACJE
  ========================================= */
@keyframes slide-icons {
  0%, 45% { transform: translateY(0); }
  50%, 95% { transform: translateY(-40px); }
  100% { transform: translateY(0); }
}

@keyframes pulse-shadow {
  0% { box-shadow: 0 0 0 0 rgba(217, 119, 6, 0.4); }
  70% { box-shadow: 0 0 0 12px rgba(217, 119, 6, 0); }
  100% { box-shadow: 0 0 0 0 rgba(217, 119, 6, 0); }
}

.methods-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin: 40px 0;
}

@media (min-width: 768px) {
  .methods-grid {
      grid-template-columns: 1fr 1fr;
  }
}

.method-card {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  padding: 30px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.method-card:hover {
  box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.method-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
}

/* Kolorystyczne rozróżnienie kart */
.method-card.tax::before { background-color: #3182ce; }
.method-card.donate::before { background-color: #d97706; }

.method-title {
  color: #1a365d;
  margin-top: 0;
  font-size: 1.6em;
  margin-bottom: 15px;
  line-height: 1.3;
}

.krs-number {
  display: block;
  font-size: 2.2em;
  font-weight: bold;
  color: #3182ce;
  margin: 5px 0;
  letter-spacing: 2px;
}

/* Siatka przycisków kwot dla darowizn */
.amounts-grid {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  margin-top: auto;
  gap: 10px;
  padding-top: 20px;
}

.amounts-grid a {
  flex: 1 1 25%;
  display: block;
  text-align: center;
  text-decoration: none;
  padding: 10px 5px;
  border-radius: var(--radius-md);
  font-weight: bold;
  font-size: 1em;
  transition: background-color 0.2s, transform 0.1s;
  background-color: var(--color-amber);
  border: none;
  color: white;
}
@media (min-width: 768px) {
  .amounts-grid a {
    padding: 15px 30px;
    font-size: 1.1em;
  }
}
.amounts-grid a:hover {
  transform: translateY(-1px);
  background-color: var(--color-amber-dark);
  text-decoration: none;
  color: white;
}
