/*
Theme Name: Nera Konjic Final
Theme URI: https://nera-konjic.ba
Author: Udruženje žena Nera
Author URI: https://nera-konjic.ba
Description: Tema za Udruženje žena Nera Konjic - podrška, zajednica, obrazovanje i aktivno djelovanje za jačanje žena u lokalnoj zajednici. Konvertovano iz statičkog HTML/CSS sajta.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nera-tema-final
*/

:root {
  --bg: #f7f8f4;
  --bg-soft: #fdfdf8;
  --card: #ffffff;
  --header-bg: rgba(247, 248, 244, 0.9);
  --shell: #ffffff;
  --brand-yellow: #f3e561;
  --brand-yellow-deep: #e9d74b;
  --brand-sky: #9ad7ea;
  --brand-sky-deep: #6db9d1;
  --brand-blue: #2d7a96;
  --brand-blue-deep: #1e5b7a;
  --brand-ink: #1a3f52;
  --brand-terracotta: #9d5a4a;
  --brand-terracotta-dark: #6d3d35;
  --brand-sage: #6d8a78;
  --brand-sage-deep: #4d655b;
  --brand-rose: #e7c5bc;
  --brand-cream: #f3e7de;
  --text: #1b3747;
  --muted: #56717d;
  --line: #dfeef4;
  --shadow: 0 22px 48px rgba(28, 83, 109, 0.12);
  --footer-bg: #1d1a1a;
  --footer-text: rgba(255, 255, 255, 0.82);
  --hero-overlay-1: rgba(248, 242, 238, 0.55);
  --hero-overlay-2: rgba(255, 255, 255, 0.35);
}

:root[data-theme="dark"] {
  --bg: #0f1720;
  --bg-soft: #121d26;
  --card: #15252f;
  --header-bg: rgba(15, 23, 32, 0.86);
  --shell: #193040;
  --brand-yellow: #f5e86a;
  --brand-yellow-deep: #e8d95e;
  --brand-sky: #9bd8ed;
  --brand-sky-deep: #7ac1dd;
  --brand-blue: #8ad0eb;
  --brand-blue-deep: #d5eaf3;
  --brand-ink: #dfeff7;
  --brand-terracotta: #dca498;
  --brand-terracotta-dark: #f4d2c5;
  --brand-sage: #a9d0c0;
  --brand-sage-deep: #d4f0ea;
  --brand-rose: #d5a9a0;
  --brand-cream: #dfe7da;
  --text: #edf7fb;
  --muted: #bfced7;
  --line: rgba(159, 213, 234, 0.22);
  --shadow: 0 22px 48px rgba(0, 0, 0, 0.34);
  --footer-bg: #090f14;
  --footer-text: rgba(223, 239, 247, 0.8);
}

/* ── DARK MODE ── */

:root[data-theme="dark"] body {
  background: var(--bg);
  color: var(--text);
}

:root[data-theme="dark"] .alt-bg {
  background: rgba(17, 27, 33, 0.96);
}

/* Hero banners on inner pages intentionally look the same in dark mode as
   in light mode, so photos and text stay equally readable in both. */
:root[data-theme="dark"] .page-hero h1 {
  color: #1e5b7a !important;
}

:root[data-theme="dark"] .page-hero p {
  color: #56717d !important;
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(45, 122, 150, 0.18);
}

:root[data-theme="dark"] .page-hero .eyebrow {
  background: rgba(154, 215, 234, 0.26);
  color: #2d7a96 !important;
}

:root[data-theme="dark"] .page-hero .eyebrow-dark {
  background: rgba(45, 122, 150, 0.08);
  color: #2d7a96 !important;
}

:root[data-theme="dark"] .hero-copy h1,
:root[data-theme="dark"] .hero-copy p,
:root[data-theme="dark"] .hero-copy .eyebrow,
:root[data-theme="dark"] .hero-copy .eyebrow-dark {
  color: #153b4b !important;
}

:root[data-theme="dark"] .main-nav a {
  color: var(--muted);
}

:root[data-theme="dark"] .site-footer p,
:root[data-theme="dark"] .site-footer strong,
:root[data-theme="dark"] .footer-wrap p {
  color: var(--footer-text);
}

:root[data-theme="dark"] .section h2,
:root[data-theme="dark"] .section-heading h2,
:root[data-theme="dark"] .two-col h2,
:root[data-theme="dark"] .donation-copy h2,
:root[data-theme="dark"] .post-content h2 {
  color: #ffffff !important;
}

:root[data-theme="dark"] .two-col p,
:root[data-theme="dark"] .donation-copy p,
:root[data-theme="dark"] .post-content p,
:root[data-theme="dark"] .check-list,
:root[data-theme="dark"] .post-meta,
:root[data-theme="dark"] .field label {
  color: var(--muted);
}

:root[data-theme="dark"] .cta-box {
  background: #ffffff;
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.18);
}

:root[data-theme="dark"] .cta-box h2,
:root[data-theme="dark"] .cta-box p,
:root[data-theme="dark"] .cta-box .eyebrow {
  color: #153b4b !important;
}

:root[data-theme="dark"] .hero-card,
:root[data-theme="dark"] .quote-box,
:root[data-theme="dark"] .donor-card,
:root[data-theme="dark"] .timeline-item,
:root[data-theme="dark"] .info-card,
:root[data-theme="dark"] .event-card,
:root[data-theme="dark"] .team-card,
:root[data-theme="dark"] .gallery-card,
:root[data-theme="dark"] .blog-card,
:root[data-theme="dark"] .blog-feature,
:root[data-theme="dark"] .donation-card,
:root[data-theme="dark"] .contact-card,
:root[data-theme="dark"] .contact-form,
:root[data-theme="dark"] .sidebar-card {
  background: #ffffff;
  color: #153b4b !important;
  border-color: rgba(21, 37, 47, 0.08);
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.18);
}

:root[data-theme="dark"] .hero-card *,
:root[data-theme="dark"] .quote-box *,
:root[data-theme="dark"] .donor-card *,
:root[data-theme="dark"] .timeline-item *,
:root[data-theme="dark"] .info-card *,
:root[data-theme="dark"] .event-card *,
:root[data-theme="dark"] .team-card *,
:root[data-theme="dark"] .gallery-card *,
:root[data-theme="dark"] .blog-card *,
:root[data-theme="dark"] .blog-feature *,
:root[data-theme="dark"] .donation-card *,
:root[data-theme="dark"] .contact-card *,
:root[data-theme="dark"] .contact-form *,
:root[data-theme="dark"] .sidebar-card * {
  color: #153b4b !important;
}

:root[data-theme="dark"] .hero-card h2,
:root[data-theme="dark"] .hero-card h3,
:root[data-theme="dark"] .hero-card h4,
:root[data-theme="dark"] .donor-card h2,
:root[data-theme="dark"] .donor-card h3,
:root[data-theme="dark"] .quote-box h2,
:root[data-theme="dark"] .quote-box h3,
:root[data-theme="dark"] .timeline-item h2,
:root[data-theme="dark"] .timeline-item h3,
:root[data-theme="dark"] .info-card h2,
:root[data-theme="dark"] .info-card h3,
:root[data-theme="dark"] .event-card h2,
:root[data-theme="dark"] .event-card h3,
:root[data-theme="dark"] .team-card h2,
:root[data-theme="dark"] .team-card h3,
:root[data-theme="dark"] .gallery-card h2,
:root[data-theme="dark"] .gallery-card h3,
:root[data-theme="dark"] .blog-card h2,
:root[data-theme="dark"] .blog-card h3,
:root[data-theme="dark"] .blog-feature h2,
:root[data-theme="dark"] .blog-feature h3,
:root[data-theme="dark"] .blog-feature-copy h2,
:root[data-theme="dark"] .donation-card h2,
:root[data-theme="dark"] .donation-card h3,
:root[data-theme="dark"] .contact-card h2,
:root[data-theme="dark"] .contact-card h3,
:root[data-theme="dark"] .sidebar-card h2,
:root[data-theme="dark"] .sidebar-card h3 {
  color: #153b4b !important;
}

/* form inputs stay dark-themed */
:root[data-theme="dark"] .field input,
:root[data-theme="dark"] .field textarea {
  background: rgba(16, 27, 33, 0.9);
  color: #edf7fb !important;
  border-color: var(--line);
}

:root[data-theme="dark"] .field input::placeholder,
:root[data-theme="dark"] .field textarea::placeholder {
  color: rgba(191, 206, 215, 0.78);
}

/* buttons */
:root[data-theme="dark"] .btn-primary {
  color: #153b4b !important;
}

:root[data-theme="dark"] .btn-secondary,
:root[data-theme="dark"] .theme-toggle,
:root[data-theme="dark"] .donation-btn,
:root[data-theme="dark"] .eyebrow,
:root[data-theme="dark"] .eyebrow-dark,
:root[data-theme="dark"] .mini-badge,
:root[data-theme="dark"] .blog-tag {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(255, 255, 255, 0.35);
  color: #153b4b !important;
}

:root[data-theme="dark"] .donation-btn:hover,
:root[data-theme="dark"] .donation-btn.active {
  background: var(--brand-blue-deep);
  color: #fff;
}

/* .is-active pill background flips to a light pastel in dark mode, so the
   white text set for light mode would otherwise become unreadable. */
:root[data-theme="dark"] .gallery-filter-tab.is-active {
  color: #153b4b;
}

:root[data-theme="dark"] .icon {
  background: rgba(154, 215, 234, 0.12);
}

:root[data-theme="dark"] .event-card,
:root[data-theme="dark"] .team-card,
:root[data-theme="dark"] .info-card,
:root[data-theme="dark"] .blog-card,
:root[data-theme="dark"] .contact-card,
:root[data-theme="dark"] .donation-card,
:root[data-theme="dark"] .gallery-card {
  border-radius: 28px;
  box-shadow: 0 28px 56px rgba(14, 24, 31, 0.24);
}

:root[data-theme="dark"] .sidebar-card {
  box-shadow: 0 16px 34px rgba(14, 24, 31, 0.2);
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}
a {
  text-decoration: none;
}
img {
  max-width: 100%;
  display: block;
}
.container {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.reveal-card {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.reveal-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-card:nth-child(2) {
  transition-delay: 0.08s;
}
.reveal-card:nth-child(3) {
  transition-delay: 0.14s;
}
.reveal-card:nth-child(4) {
  transition-delay: 0.2s;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Skeleton placeholder for lazily-loaded background images (see main.js). */
.lazy-bg {
  position: relative;
  overflow: hidden;
  background-color: var(--line);
}

.lazy-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    transparent 30%,
    rgba(255, 255, 255, 0.5) 50%,
    transparent 70%
  );
  background-size: 200% 100%;
  animation: nera-shimmer 1.4s ease-in-out infinite;
}

.lazy-bg.is-loaded {
  background-color: transparent;
}

.lazy-bg.is-loaded::before {
  content: none;
}

/* Subtle placeholder colour for natively lazy-loaded <img> tags. */
img[loading="lazy"] {
  background-color: var(--line);
}

@keyframes nera-shimmer {
  from {
    background-position: 200% 0;
  }
  to {
    background-position: -200% 0;
  }
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 8px 24px rgba(28, 83, 109, 0.14);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 20px;
  transition: min-height 0.25s ease;
}

.site-header.is-scrolled .nav-wrap {
  min-height: 62px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--brand-terracotta-dark);
}

.logo strong {
  display: block;
  font-size: 1.1rem;
  letter-spacing: 0.14em;
}

.logo small {
  display: block;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.brand-logo {
  width: 58px;
  height: 58px;
  display: block;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 10px 20px rgba(28, 83, 109, 0.12);
  transition:
    width 0.25s ease,
    height 0.25s ease;
}

.site-header.is-scrolled .brand-logo {
  width: 44px;
  height: 44px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.main-nav a {
  position: relative;
  color: var(--muted);
  font-weight: 600;
  transition: color 0.2s ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: var(--brand-blue-deep);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.main-nav a:hover {
  color: var(--brand-blue);
}

.main-nav a:hover::after {
  transform: scaleX(1);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}

.section-heading h2 {
  margin-bottom: 0;
}

.theme-toggle {
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  cursor: pointer;
}

.header-search {
  position: relative;
}

.search-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
}

.search-toggle svg {
  width: 18px;
  height: 18px;
  display: block;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .search-toggle-label {
    display: none;
  }
  .search-toggle {
    width: 42px;
    height: 42px;
    padding: 0;
    border-radius: 50%;
    justify-content: center;
  }
}

.site-search-form {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 55;
  display: flex;
  gap: 8px;
  width: min(320px, 80vw);
  padding: 10px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    visibility 0.2s ease;
}

.site-search-form.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.site-search-form input[type="search"] {
  flex: 1;
  min-width: 0;
  padding: 0.6rem 0.8rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--text);
  font: inherit;
}

.site-search-form button {
  border: none;
  border-radius: 10px;
  padding: 0.6rem 0.9rem;
  background: var(--brand-blue-deep);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.site-search-form-static {
  position: static;
  opacity: 1;
  visibility: visible;
  transform: none;
  margin: 22px auto 0;
  box-shadow: none;
  background: transparent;
  border: none;
  padding: 0;
  max-width: 420px;
}

@media (max-width: 860px) {
  .site-search-form {
    left: 50%;
    right: auto;
    transform: translate(-50%, -8px);
    width: min(320px, 90vw);
  }

  .site-search-form.is-open {
    transform: translate(-50%, 0);
  }
}

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: var(--brand-blue-deep);
  color: #fff;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    visibility 0.25s ease;
  z-index: 60;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--brand-blue);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px) scale(1.01);
}

.btn:active {
  transform: translateY(0) scale(0.97);
  transition-duration: 0.1s;
}

.btn-primary {
  background: linear-gradient(
    135deg,
    var(--brand-yellow),
    var(--brand-yellow-deep)
  );
  color: var(--brand-blue-deep);
  box-shadow: 0 12px 24px rgba(243, 229, 97, 0.28);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.52);
  color: var(--brand-blue-deep);
  border: 1px solid rgba(45, 122, 150, 0.22);
}

.btn-secondary.light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}

.hero {
  padding: 94px 0 78px;
  background:
    linear-gradient(
      120deg,
      rgba(247, 248, 244, 0.88),
      rgba(157, 215, 234, 0.55)
    ),
    url("https://images.unsplash.com/photo-1529156069898-49953e39b3ac?auto=format&fit=crop&w=1400&q=80")
      center/cover no-repeat;
}

@media (min-width: 861px) {
  .hero {
    background-attachment: fixed;
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 40px;
  align-items: center;
}

.hero-copy h1,
.section h2,
.cta-box h2,
.page-hero h1 {
  margin: 0 0 18px;
  color: var(--brand-blue-deep);
  font-family: "Cormorant Garamond", serif;
  line-height: 0.98;
  letter-spacing: -0.02em;
}

.hero-copy h1,
.page-hero h1 {
  text-shadow: 0 2px 18px rgba(255, 255, 255, 0.85);
}

.hero-copy h1 {
  font-size: clamp(3rem, 5vw, 5rem);
  animation: nera-fade-up 0.9s ease both;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: rgba(154, 215, 234, 0.26);
  color: var(--brand-blue);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow-dark {
  background: rgba(45, 122, 150, 0.08);
}

.hero-copy p,
.two-col p,
.info-card p,
.event-content p,
.team-card p,
.cta-box p,
.site-footer p,
.page-hero p {
  color: var(--muted);
}

.hero-copy p,
.page-hero p {
  text-shadow: 0 1px 14px rgba(255, 255, 255, 0.75);
}

.page-hero p {
  display: inline-block;
  margin-top: 6px;
  padding: 14px 24px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(45, 122, 150, 0.18);
  text-shadow: none;
}

.hero-copy p {
  font-size: 1.08rem;
  max-width: 560px;
}

.hero-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 28px;
}

.hero-social {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.hero-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--card);
  color: var(--brand-blue-deep);
  box-shadow: var(--shadow);
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
}

.hero-social-link svg {
  width: 15px;
  height: 15px;
  display: block;
}

.hero-social-link:hover {
  transform: translateY(-2px) scale(1.05);
  color: #fff;
}

.hero-social-link.hero-social-facebook:hover {
  background: #1877f2;
}

.hero-social-link.hero-social-instagram:hover {
  background: radial-gradient(
    circle at 30% 110%,
    #fdf497,
    #fd5949 45%,
    #d6249f 60%,
    #285aeb 90%
  );
}

.hero-social-link.hero-social-youtube:hover {
  background: #ff0000;
}

.hero-card {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(45, 122, 150, 0.14);
  border-radius: 28px;
  padding: 30px 26px;
  box-shadow: var(--shadow);
}

.mini-badge {
  display: inline-block;
  margin-bottom: 18px;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(154, 215, 234, 0.22);
  color: var(--brand-blue-deep);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
}

.hero-card h3 {
  margin: 0 0 18px;
  font-size: 1.8rem;
  color: var(--brand-blue-deep);
}

.hero-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.section {
  padding: 96px 0;
}
.alt-bg {
  background: #fff9f5;
}

.two-col {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 38px;
  align-items: center;
}

.two-col h2,
.section h2,
.cta-box h2 {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
}

.stats-box {
  display: grid;
  gap: 18px;
}

.stat-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 24px 18px;
  text-align: center;
  box-shadow: var(--shadow);
}

.stat-item strong {
  display: block;
  color: var(--brand-blue);
  font-size: clamp(2rem, 4vw, 2.6rem);
}

.stat-item span {
  color: var(--muted);
}

.card-grid,
.events-grid,
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.info-card,
.event-card,
.team-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.info-card {
  padding: 26px 22px;
}

.icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(157, 90, 74, 0.08);
  font-size: 1.7rem;
  margin-bottom: 18px;
}

.info-card h3,
.event-content h3,
.team-card h3 {
  margin: 0 0 12px;
  color: var(--brand-blue-deep);
}

a.event-card {
  display: block;
  text-decoration: none;
  color: inherit;
}

.event-image {
  height: 220px;
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  background-size: cover;
  background-position: center;
}

.event-image.one {
  background-image: linear-gradient(135deg, #d7b9a4, #f7ebdf);
}
.event-image.two {
  background-image: linear-gradient(135deg, #dfe9df, #f7faf6);
}
.event-image.three {
  background-image: linear-gradient(135deg, #d7c3bf, #f7e7e2);
}

.event-card,
.info-card,
.team-card,
.gallery-card,
.contact-card,
.contact-form,
.testimonial-card {
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.event-card:hover,
.info-card:hover,
.team-card:hover,
.gallery-card:hover,
.contact-card:hover,
.contact-form:hover,
.testimonial-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 26px 52px rgba(89, 57, 47, 0.12);
  border-color: rgba(157, 90, 74, 0.25);
}

.event-content {
  padding: 22px 20px 24px;
}

.event-date {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--brand-blue-deep);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.team-card {
  padding: 22px 18px 26px;
  text-align: center;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 28px 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.testimonial-quote-icon {
  font-family: "Cormorant Garamond", serif;
  font-size: 3rem;
  line-height: 1;
  color: var(--brand-terracotta);
}

.testimonial-text {
  flex: 1;
  margin: 0;
  font-style: italic;
  color: var(--text);
  overflow-wrap: break-word;
  word-break: break-word;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.testimonial-avatar {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    var(--brand-rose),
    var(--brand-terracotta)
  );
  background-size: cover;
  background-position: center;
}

.testimonial-author strong {
  display: block;
  color: var(--brand-blue-deep);
}

.testimonial-author span {
  color: var(--muted);
  font-size: 0.85rem;
}

/* Stacked-card testimonials: the active card sits in normal flow (so it
   defines the stack's height), while the next 1-2 cards are absolutely
   positioned just behind/below it, peeking out to hint more are coming.
   See nera_tema_render_testimonials(). */
.testimonials-carousel {
  position: relative;
  margin-top: 32px;
  padding-bottom: 34px;
}

.testimonials-carousel[data-testimonial-carousel] {
  padding-left: 54px;
  padding-right: 54px;
}

.testimonials-stack {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
}

.testimonials-stack .testimonial-card {
  position: absolute;
  inset: 0 0 auto;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.9);
  transition:
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.4s ease;
}

.testimonials-stack .testimonial-card.is-active {
  position: relative;
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
  z-index: 3;
}

.testimonials-stack .testimonial-card.is-queue-1 {
  opacity: 1;
  transform: translateY(16px) scale(0.94);
  z-index: 2;
}

.testimonials-stack .testimonial-card.is-queue-2 {
  opacity: 0.55;
  transform: translateY(30px) scale(0.88);
  z-index: 1;
}

.testimonial-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: var(--card);
  color: var(--brand-blue-deep);
  box-shadow: var(--shadow);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.testimonial-arrow:hover {
  background: var(--brand-blue-deep);
  color: #fff;
  transform: translateY(-50%) scale(1.08);
}

.testimonial-arrow-prev {
  left: 0;
}

.testimonial-arrow-next {
  right: 0;
}

@media (max-width: 640px) {
  .testimonials-carousel[data-testimonial-carousel] {
    padding-left: 44px;
    padding-right: 44px;
  }
  .testimonial-arrow {
    width: 34px;
    height: 34px;
    font-size: 1.15rem;
  }
}

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
}

.testimonial-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--line);
  cursor: pointer;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.testimonial-dot.is-active {
  background: var(--brand-blue-deep);
  transform: scale(1.25);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  margin-top: 30px;
}

.gallery-card {
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.gallery-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition:
    transform 0.45s ease,
    filter 0.35s ease;
}

.gallery-card:hover img {
  transform: scale(1.08);
  filter: saturate(1.08);
}

.gallery-card a.lightbox-trigger {
  display: block;
  cursor: zoom-in;
}

.gallery-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 30px 0 6px;
}

.gallery-filter-tab {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  font-weight: 700;
  font-size: 0.88rem;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

.gallery-filter-tab:hover {
  border-color: var(--brand-blue-deep);
  color: var(--brand-blue-deep);
}

.gallery-filter-tab.is-active {
  background: var(--brand-blue-deep);
  border-color: var(--brand-blue-deep);
  color: #fff;
}

.gallery-card figcaption {
  padding: 16px 18px 18px;
  color: var(--brand-terracotta-dark);
  font-weight: 700;
}

.gallery-card figcaption a {
  color: var(--brand-blue-deep);
}

.gallery-single-layout {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 28px;
  align-items: start;
}

.gallery-single-main > img,
.gallery-single-main > a.lightbox-trigger > img {
  width: 100%;
  min-height: 520px;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.gallery-single-main > a.lightbox-trigger {
  display: block;
}

.gallery-single-content {
  margin-top: 24px;
}

.gallery-single-extra {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.gallery-single-extra-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: var(--shadow);
}

@media (max-width: 640px) {
  .gallery-single-extra {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.blog-feature {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 30px;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.blog-feature-image {
  min-height: 420px;
  background-size: cover;
  background-position: center;
  background-image: linear-gradient(
    135deg,
    rgba(154, 215, 234, 0.7),
    rgba(243, 229, 97, 0.7)
  );
}

.blog-feature-copy {
  padding: 24px 28px 30px;
}

.blog-feature-copy h2 {
  margin-top: 0;
  color: var(--brand-blue-deep);
  font-size: clamp(2.1rem, 4vw, 3rem);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 26px;
}

.blog-card {
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.blog-image {
  height: 180px;
  background-size: cover;
  background-position: center;
}

.blog-image.one {
  background-image: linear-gradient(
    135deg,
    rgba(154, 215, 234, 0.7),
    rgba(255, 255, 255, 0.25)
  );
}
.blog-image.two {
  background-image: linear-gradient(
    135deg,
    rgba(243, 229, 97, 0.7),
    rgba(255, 255, 255, 0.2)
  );
}
.blog-image.three {
  background-image: linear-gradient(
    135deg,
    rgba(109, 185, 209, 0.7),
    rgba(255, 255, 255, 0.2)
  );
}
.blog-image.four {
  background-image: linear-gradient(
    135deg,
    rgba(243, 229, 97, 0.7),
    rgba(154, 215, 234, 0.5)
  );
}

.blog-content {
  padding: 20px 20px 24px;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 40px;
}

.pagination button,
.pagination a.page-numbers,
.pagination span.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: none;
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s;
}

.pagination button:hover:not(:disabled),
.pagination a.page-numbers:hover {
  border-color: var(--brand-blue-deep);
  color: var(--brand-blue-deep);
}

.pagination button.is-active,
.pagination span.page-numbers.current {
  background: var(--brand-blue-deep);
  border-color: var(--brand-blue-deep);
  color: #fff;
}

.pagination button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.blog-tag {
  display: inline-block;
  margin-bottom: 10px;
  padding: 0.38rem 0.7rem;
  border-radius: 999px;
  background: rgba(154, 215, 234, 0.2);
  color: var(--brand-blue-deep);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.blog-content h3 {
  margin: 0 0 12px;
  color: var(--brand-blue-deep);
  font-size: 1.45rem;
}

.term-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.term-badges .blog-tag {
  margin-bottom: 0;
  text-decoration: none;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.term-badges .blog-tag:hover {
  background: var(--brand-blue-deep);
  color: #fff;
}

.blog-content p {
  color: var(--muted);
  margin: 0 0 16px;
}

.blog-content a {
  color: var(--brand-blue);
  font-weight: 700;
}

.post-header {
  padding-top: 72px;
}

.post-meta {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 12px;
}

.facebook-share-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 0.65rem 1.2rem;
  border-radius: 999px;
  background: #1877f2;
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.facebook-share-link:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 12px 24px rgba(24, 119, 242, 0.28);
}

.facebook-share-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  font-style: italic;
  line-height: 1;
}

.post-feature-image {
  margin: 30px auto 0;
  width: min(1200px, calc(100% - 32px));
  height: 480px;
  border-radius: 28px;
  background-size: cover;
  background-position: center;
  background-image: linear-gradient(
    135deg,
    rgba(154, 215, 234, 0.7),
    rgba(243, 229, 97, 0.5)
  );
  box-shadow: var(--shadow);
}

.post-content-wrap {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 28px;
  padding-top: 44px;
  padding-bottom: 80px;
}

.post-content {
  color: var(--text);
  font-size: 1.06rem;
}

.post-content p {
  margin: 0 0 1.2rem;
  color: var(--muted);
}

.post-content h2 {
  margin: 2rem 0 1rem;
  color: var(--brand-blue-deep);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.post-content blockquote {
  margin: 1.8rem 0;
  padding: 22px 24px;
  border-left: 4px solid var(--brand-yellow);
  background: rgba(243, 229, 97, 0.12);
  color: var(--brand-blue-deep);
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  line-height: 1.2;
}

.post-sidebar,
.gallery-single-side {
  display: grid;
  gap: 16px;
  align-content: start;
}

@media (min-width: 981px) {
  .post-sidebar,
  .gallery-single-side {
    position: sticky;
    top: 96px;
  }
}

.sidebar-card {
  position: relative;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 20px 18px 16px;
  font-size: 0.92rem;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.sidebar-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-yellow), var(--brand-sky));
}

.sidebar-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 52px rgba(28, 83, 109, 0.16);
}

.sidebar-card h3 {
  margin-top: 0;
  margin-bottom: 14px;
  font-size: 1rem;
  color: var(--brand-blue-deep);
}

.sidebar-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 2px;
}

.sidebar-card a,
.sidebar-card li {
  color: var(--muted);
}

/* Full-row nav links inside a plain <ul><li><a>…</a></li></ul> card
   (e.g. "Nera Narativ", "O nama"), as opposed to the plain-text <li>s used
   for event/gallery detail lists. */
.sidebar-card ul li a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 -10px;
  padding: 11px 10px;
  border-radius: 10px;
  color: var(--brand-blue-deep);
  font-weight: 600;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    padding-left 0.2s ease;
}

.sidebar-card ul li a::after {
  content: "\2192";
  flex-shrink: 0;
  opacity: 0;
  transform: translateX(-4px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.sidebar-card ul li a:hover,
.sidebar-card ul li a:focus-visible {
  background: rgba(154, 215, 234, 0.18);
  color: var(--brand-blue);
  padding-left: 14px;
}

.sidebar-card ul li a:hover::after,
.sidebar-card ul li a:focus-visible::after {
  opacity: 1;
  transform: translateX(0);
}

.sidebar-card ul li + li {
  border-top: 1px solid var(--line);
  padding-top: 2px;
}

.avatar {
  width: 140px;
  height: 140px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    var(--brand-rose),
    var(--brand-terracotta)
  );
  background-size: cover;
  background-position: center;
}

.avatar-two {
  background-image: linear-gradient(135deg, #bfd0c2, var(--brand-sage));
}
.avatar-three {
  background-image: linear-gradient(135deg, #e0d2c4, #a96e5a);
}

.cta-section {
  padding: 96px 0 120px;
}

.cta-box {
  background: linear-gradient(
    135deg,
    var(--brand-blue-deep),
    var(--brand-sky-deep)
  );
  border-radius: 30px;
  padding: 52px 30px;
  text-align: center;
  color: #fff;
  box-shadow: var(--shadow);
}

.cta-box h2,
.cta-box p {
  color: #fff;
}

.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 36px 0 48px;
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-wrap strong {
  color: #fff;
  font-size: 1.05rem;
}

.page-hero {
  padding: 88px 0 60px;
  background: linear-gradient(
    135deg,
    var(--hero-overlay-1),
    var(--hero-overlay-2)
  );
}

@media (max-width: 860px) {
  .page-hero {
    background-attachment: scroll !important;
  }
}

.narrow {
  max-width: 760px;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  display: inline-block;
  clip-path: inset(0 100% 0 0);
  animation: nera-typewriter-reveal 1.6s steps(24, end) forwards;
}

/* Cursor only becomes visible once the reveal wipe uncovers it, so it lands
   right after the last character instead of tracking the wipe edge. Blinks
   a few times, then fades away for good. */
.page-hero h1::after {
  content: "";
  display: inline-block;
  width: 0.08em;
  height: 0.85em;
  margin-left: 0.06em;
  vertical-align: -0.05em;
  background: currentColor;
  opacity: 0;
  animation: nera-caret-blink 3s step-end 1.6s forwards;
}

@keyframes nera-fade-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes nera-typewriter-reveal {
  to {
    clip-path: inset(0 0 0 0);
  }
}

@keyframes nera-caret-blink {
  0%,
  14%,
  28%,
  42%,
  57%,
  71%,
  85% {
    opacity: 1;
  }
  7%,
  21%,
  35%,
  50%,
  64%,
  78%,
  100% {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-copy h1 {
    animation: none;
  }
  .page-hero h1 {
    animation: none;
    clip-path: none;
  }
  .page-hero h1::after {
    display: none;
  }
  .reveal-card {
    transition: none;
    opacity: 1;
    transform: none;
  }
  .lazy-bg::before {
    animation: none;
    content: none;
  }
  .site-header,
  .nav-wrap,
  .brand-logo {
    transition: none;
  }
  .gallery-card img,
  .gallery-card:hover img {
    transition: none;
    transform: none;
  }
  .hero,
  .page-hero {
    background-attachment: scroll !important;
  }
  .main-nav {
    transition: none !important;
  }
  .main-nav a::after {
    transition: none;
  }
  .testimonials-stack .testimonial-card {
    transition: none;
  }
  .testimonial-arrow {
    transition: none;
  }
  .reading-progress {
    transition: none;
  }
  .form-message {
    animation: none;
  }
}

.quote-box {
  background: linear-gradient(135deg, #fff, #f9efe8);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 26px 22px;
  box-shadow: var(--shadow);
}

.quote-box p {
  margin: 0;
  color: var(--brand-blue-deep);
  font-size: 1.35rem;
  font-family: "Cormorant Garamond", serif;
  line-height: 1.3;
}

.timeline {
  margin-top: 28px;
  display: grid;
  gap: 18px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px 20px;
  box-shadow: var(--shadow);
}

.timeline-item span {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(154, 215, 234, 0.22);
  color: var(--brand-blue-deep);
  font-weight: 800;
}

.timeline-item h3 {
  margin: 0 0 8px;
  color: var(--brand-blue-deep);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 26px;
  align-items: start;
}

.donors-strip {
  position: relative;
  margin-top: -2.5rem;
  padding: 0 0 1rem;
  z-index: 2;
}

.donors-strip-inner {
  display: grid;
  gap: 1.5rem;
  padding: 1.5rem;
  border: 1px solid rgba(45, 122, 150, 0.12);
  border-radius: 30px;
  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.98),
      rgba(243, 231, 222, 0.82)
    ),
    radial-gradient(
      circle at top right,
      rgba(154, 215, 234, 0.18),
      transparent 48%
    );
  box-shadow: 0 18px 38px rgba(28, 83, 109, 0.12);
}

.donors-strip-copy h2 {
  margin: 0.5rem 0 0;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
}

.donors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}

.donor-card {
  min-height: 132px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem;
  text-align: center;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(45, 122, 150, 0.1);
  box-shadow: 0 12px 28px rgba(28, 83, 109, 0.08);
}

.donor-card img {
  max-width: 100%;
  max-height: 56px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.donor-logo {
  transition:
    opacity 0.45s ease,
    transform 0.45s ease;
}

.donor-logo-pending {
  opacity: 0;
  transform: translateY(8px);
}

.donor-logo.is-loaded {
  opacity: 1;
  transform: translateY(0);
}

.donor-card span {
  font-weight: 700;
  color: var(--brand-ink);
  line-height: 1.35;
}

:root[data-theme="dark"] .donors-strip-inner {
  background:
    linear-gradient(135deg, rgba(17, 27, 33, 0.96), rgba(24, 38, 46, 0.92)),
    radial-gradient(
      circle at top right,
      rgba(154, 215, 234, 0.14),
      transparent 48%
    );
  border-color: rgba(154, 215, 234, 0.14);
}

@media (min-width: 900px) {
  .donors-strip-inner {
    grid-template-columns: minmax(220px, 0.9fr) minmax(0, 2.1fr);
    align-items: center;
  }
}

@media (max-width: 700px) {
  .donors-strip {
    margin-top: -1.5rem;
  }

  .donors-strip-inner {
    padding: 1.15rem;
    border-radius: 24px;
  }

  .donors-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .donors-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.donation-grid {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 30px;
  align-items: center;
}

.donation-card,
.contact-card,
.contact-form {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 24px 22px;
}

.contact-card h3 {
  margin-top: 0;
  color: var(--brand-terracotta-dark);
}

.donation-copy h2 {
  margin-top: 0;
  font-size: clamp(2.2rem, 4vw, 3rem);
  color: var(--brand-blue-deep);
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 12px;
  color: var(--muted);
}

.check-list li {
  position: relative;
  padding-left: 28px;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--brand-blue);
  font-weight: 800;
}

.donation-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 20px;
}

.donation-btn {
  border: 1px solid rgba(45, 122, 150, 0.18);
  background: #f7fbfd;
  color: var(--brand-blue-deep);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.donation-btn:hover,
.donation-btn.active {
  background: var(--brand-blue-deep);
  color: #fff;
  border-color: var(--brand-blue-deep);
}

.full-width {
  width: 100%;
}

.map-section {
  width: 100%;
  line-height: 0;
}

.map-embed {
  display: block;
  width: 100%;
  height: 450px;
  border: 0;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
  color: var(--muted);
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.field label {
  font-weight: 600;
  color: var(--brand-blue-deep);
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(45, 122, 150, 0.18);
  background: #fff;
  font: inherit;
  color: var(--text);
}

.field textarea {
  resize: vertical;
}

.form-message {
  padding: 14px 18px;
  border-radius: 14px;
  margin-bottom: 20px;
  font-weight: 600;
  animation: nera-toast-in 0.5s ease;
}

@keyframes nera-toast-in {
  from {
    opacity: 0;
    transform: translateY(-14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-message.success {
  background: rgba(109, 138, 120, 0.16);
  color: var(--brand-sage-deep);
}

.form-message.error {
  background: rgba(157, 90, 74, 0.14);
  color: var(--brand-terracotta-dark);
}

/* honeypot field - hidden from real users, catches bots */
.nera-hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  z-index: 9999;
  background: linear-gradient(
    90deg,
    var(--brand-yellow-deep),
    var(--brand-blue-deep)
  );
  transition: width 0.1s linear;
}

/* ── Lightbox (galerija) ── */
.nera-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.nera-lightbox[hidden] {
  display: none;
}

.nera-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 20, 28, 0.86);
}

.nera-lightbox-figure {
  position: relative;
  z-index: 1;
  max-width: min(1100px, 92vw);
  max-height: 88vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.nera-lightbox-img {
  max-width: 100%;
  max-height: 78vh;
  border-radius: 16px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.nera-lightbox-caption {
  margin: 0;
  color: #fff;
  font-weight: 600;
  text-align: center;
}

.nera-lightbox-close,
.nera-lightbox-prev,
.nera-lightbox-next {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--brand-blue-deep);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    background 0.2s ease;
}

.nera-lightbox-close:hover,
.nera-lightbox-prev:hover,
.nera-lightbox-next:hover {
  background: #fff;
  transform: scale(1.06);
}

.nera-lightbox-prev:hover,
.nera-lightbox-next:hover {
  transform: translateY(-50%) scale(1.06);
}

.nera-lightbox-close {
  top: 20px;
  right: 20px;
}

.nera-lightbox-prev {
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.nera-lightbox-next {
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

@media (max-width: 640px) {
  .nera-lightbox-prev,
  .nera-lightbox-next {
    width: 38px;
    height: 38px;
    font-size: 1.1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nera-lightbox-close,
  .nera-lightbox-prev,
  .nera-lightbox-next {
    transition: none;
  }
}

@media (max-width: 860px) {
  .main-nav {
    display: flex;
    position: fixed;
    top: 0;
    right: 0;
    width: 72vw;
    max-width: 280px;
    height: auto;
    max-height: 100vh;
    z-index: 9999;
    background: var(--bg-soft);
    border-left: 1px solid var(--line);
    border-radius: 0 0 0 16px;
    box-shadow: -4px 4px 24px rgba(0, 0, 0, 0.18);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0;
    padding: 60px 28px 32px;
    transform: translateX(100%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      transform 0.32s ease,
      opacity 0.32s ease,
      visibility 0.32s ease;
  }

  .main-nav.open {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .main-nav a {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text);
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
    width: 100%;
    opacity: 0;
    transform: translateY(8px);
    transition:
      opacity 0.3s ease,
      transform 0.3s ease;
  }

  .main-nav.open a {
    opacity: 1;
    transform: translateY(0);
  }

  .main-nav.open a:nth-child(1) {
    transition-delay: 0.06s;
  }
  .main-nav.open a:nth-child(2) {
    transition-delay: 0.1s;
  }
  .main-nav.open a:nth-child(3) {
    transition-delay: 0.14s;
  }
  .main-nav.open a:nth-child(4) {
    transition-delay: 0.18s;
  }
  .main-nav.open a:nth-child(5) {
    transition-delay: 0.22s;
  }

  .main-nav a:last-child {
    border-bottom: none;
  }

  .nav-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text);
    line-height: 1;
  }

  .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    order: 10;
  }

  .hamburger span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--text);
    border-radius: 2px;
    transition: background 0.2s;
  }

  .nav-donate-btn {
    display: none;
  }

  .theme-toggle {
    font-size: 0.7rem;
    padding: 6px 10px;
    min-width: unset;
    white-space: nowrap;
  }
  .site-header .btn-primary {
    font-size: 0.75rem;
    padding: 8px 14px;
    min-width: unset;
    width: auto;
  }

  .section-heading {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero-grid,
  .two-col,
  .card-grid,
  .events-grid,
  .team-grid,
  .contact-grid,
  .gallery-grid,
  .donation-grid,
  .blog-feature,
  .blog-grid,
  .gallery-single-layout,
  .post-content-wrap {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero {
    padding-top: 72px;
  }
  .btn:not(.theme-toggle):not(.hamburger):not(.header-donate) {
    width: 100%;
  }
}

@media (min-width: 861px) {
  .hamburger {
    display: none;
  }
  .nav-close {
    display: none;
  }
}

/* ── Sljedeći događaj: sidebar card image ── */
.sidebar-next-event-image {
  display: block;
  height: 140px;
  margin-bottom: 14px;
  border-radius: 16px;
  background-size: cover;
  background-position: center;
}

/* ── Sljedeći događaj: scrolling ticker below the hero banner ── */
.event-ticker {
  display: block;
  background: linear-gradient(90deg, #1e5b7a, #2d7a96);
  text-decoration: none;
}

.event-ticker-inner {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 48px;
}

.event-ticker-track {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  animation: nera-ticker-scroll 32s linear infinite;
  will-change: transform;
}

.event-ticker:hover .event-ticker-track,
.event-ticker:focus-within .event-ticker-track {
  animation-play-state: paused;
}

.event-ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 32px;
  white-space: nowrap;
  color: #fff;
  text-decoration: none;
  font-size: 0.92rem;
}

.event-ticker-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.event-ticker-arrow {
  font-weight: 700;
}

/* Track holds two copies of the event list side by side; sliding it left by
   exactly half its width loops seamlessly no matter how many events there are. */
@keyframes nera-ticker-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .event-ticker-track {
    animation: none;
    left: 0;
  }
}

/* ── Next-event popup ── */
.event-popup {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.event-popup[hidden] {
  display: none;
}

.event-popup-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 63, 82, 0.55);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.event-popup-box {
  position: relative;
  width: 100%;
  max-width: 460px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--card);
  border-radius: 24px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(16px) scale(0.98);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}

.event-popup.is-open .event-popup-overlay {
  opacity: 1;
}

.event-popup.is-open .event-popup-box {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.event-popup-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  color: var(--brand-blue-deep);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  z-index: 1;
}

.event-popup-close:hover {
  background: #fff;
}

.event-popup-image {
  height: 180px;
  border-radius: 24px 24px 0 0;
  background-size: cover;
  background-position: center;
}

.event-popup-content {
  padding: 26px 26px 28px;
}

.event-popup-content .event-date {
  display: block;
  margin-top: 10px;
}

.event-popup-content h3 {
  margin: 6px 0 10px;
  color: var(--brand-blue-deep);
}

.event-popup-content p {
  color: var(--muted);
}

.event-popup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

@media (max-width: 480px) {
  .event-popup-box {
    max-width: 100%;
  }
  .event-popup-actions .btn {
    flex: 1 1 auto;
  }
}

:root[data-theme="dark"] .event-popup-box {
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.34);
}

:root[data-theme="dark"] .event-popup-close {
  background: rgba(21, 37, 47, 0.85);
  color: var(--brand-sky);
}

:root[data-theme="dark"] .event-popup-close:hover {
  background: var(--card);
}

