/* ============================================================
   UKB037 — Udruženje Kruševljana u Beogradu
   Heritage Modernism theme — v1.0
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;0,900;1,400;1,600&family=Source+Sans+3:wght@300;400;600;700&display=swap');

/* ===== CSS CUSTOM PROPERTIES ===== */
:root {
  /* Bordo (default) theme */
  --nav-bg: #6B1024;
  --nav-text: #FAF5ED;
  --nav-border: transparent;
  --nav-shadow: 0 2px 24px rgba(0,0,0,0.35);
  --hero-bg: #6B1024;
  --hero-text: #FAF5ED;
  --hero-sub: rgba(250,245,237,0.78);
  --body-bg: #FAF7F2;
  --body-text: #2A1A1E;
  --alt-bg: #F0EBE3;
  --card-bg: #FFFFFF;
  --card-border: rgba(0,0,0,0.06);
  --dark-bg: #12090C;
  --dark-text: #FAF5ED;
  --footer-bg: #0D0808;
  --primary: #6B1024;
  --accent: #C9953A;
  --accent-hover: #E8C068;
  --pill-bg: rgba(201,149,58,0.15);
  --pill-text: #B8821E;
  --section-label-color: #C9953A;
  --section-title-color: #2A1A1E;
  --muted: #7A6A6E;
  --border-radius-card: 16px;
  --border-radius-sm: 8px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-card: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-card-hover: 0 16px 56px rgba(0,0,0,0.14);
  --shadow-btn: 0 4px 16px rgba(107,16,36,0.35);
  --cta-bg: linear-gradient(135deg, #6B1024 0%, #3D0A16 100%);
}

body.theme-bela {
  --nav-bg: #FFFFFF;
  --nav-text: #1A1212;
  --nav-border: #E8E0D5;
  --nav-shadow: 0 2px 20px rgba(0,0,0,0.07);
  --hero-bg: #FFFFFF;
  --hero-text: #1A1212;
  --hero-sub: #666;
  --body-bg: #FFFFFF;
  --body-text: #1A1212;
  --alt-bg: #F8F6F3;
  --card-bg: #FFFFFF;
  --card-border: #E8E0D5;
  --dark-bg: #1A1212;
  --dark-text: #FAF5ED;
  --footer-bg: #1A1212;
  --primary: #8B1A2B;
  --accent: #8B1A2B;
  --accent-hover: #6B1024;
  --pill-bg: rgba(139,26,43,0.1);
  --pill-text: #8B1A2B;
  --section-label-color: #8B1A2B;
  --section-title-color: #1A1212;
  --muted: #888;
  --shadow-btn: 0 4px 16px rgba(139,26,43,0.28);
  --cta-bg: linear-gradient(135deg, #8B1A2B 0%, #5A0D1E 100%);
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Source Sans 3', -apple-system, sans-serif;
  font-weight: 400;
  line-height: 1.72;
  color: var(--body-text);
  background: var(--body-bg);
  overflow-x: hidden;
  transition: background var(--transition), color var(--transition);
}

h1, h2, h3, h4, h5 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

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

/* ===== THEME SWITCHER BAR ===== */
.theme-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 36px;
  background: #0D0808;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  z-index: 2000;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.theme-bar__label {
  color: rgba(255,255,255,0.4);
  font-size: 10px;
  letter-spacing: 2px;
}

.theme-bar__btn {
  background: none;
  border: 1.5px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.6);
  padding: 3px 16px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: all 0.25s;
}

.theme-bar__btn:hover,
.theme-bar__btn--active {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.5);
  color: #fff;
}

/* ===== NAVIGATION ===== */
.navbar {
  position: fixed;
  top: 36px; left: 0; right: 0;
  height: 72px;
  background: var(--nav-bg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 56px;
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition), border-color var(--transition);
  box-shadow: var(--nav-shadow);
  border-bottom: 1px solid var(--nav-border);
}

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

.navbar__logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
}

.navbar__brand-text { display: flex; flex-direction: column; }

.navbar__name {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: 20px;
  color: var(--accent);
  letter-spacing: 2px;
  line-height: 1.1;
}

.navbar__tagline {
  font-size: 10px;
  color: var(--nav-text);
  opacity: 0.6;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 300;
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.navbar__links a {
  font-size: 12px;
  font-weight: 600;
  color: var(--nav-text);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 2px;
}

.navbar__links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1.5px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.navbar__links a:hover { color: var(--accent); }
.navbar__links a:hover::after { width: 100%; }

.navbar__cta {
  background: var(--accent);
  color: #fff !important;
  padding: 9px 24px;
  border-radius: var(--border-radius-sm);
  font-size: 12px !important;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: background var(--transition), transform 0.2s;
  box-shadow: var(--shadow-btn);
}

.navbar__cta:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.navbar__cta::after { display: none !important; }

.navbar__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
}

.navbar__hamburger span {
  width: 24px; height: 2px;
  background: var(--nav-text);
  border-radius: 2px;
  display: block;
  transition: all 0.3s;
}

.navbar__hamburger.is-open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.navbar__hamburger.is-open span:nth-child(2) { opacity: 0; }
.navbar__hamburger.is-open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile menu */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 998;
}

.mobile-menu-overlay.is-visible { display: block; }

.mobile-menu {
  display: none;
  position: fixed;
  top: 108px; left: 0; right: 0;
  background: var(--nav-bg);
  padding: 16px 28px 24px;
  flex-direction: column;
  gap: 0;
  z-index: 999;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: background var(--transition);
}

.mobile-menu.is-open { display: flex; }

.mobile-menu__close {
  align-self: flex-end;
  background: none;
  border: none;
  color: var(--nav-text);
  font-size: 24px;
  line-height: 1;
  padding: 4px 8px;
  margin-bottom: 8px;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.mobile-menu__close:hover { opacity: 1; }

.mobile-menu a {
  color: var(--nav-text);
  font-size: 16px;
  font-weight: 600;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  letter-spacing: 0.5px;
}

.mobile-menu a:last-child { border-bottom: none; }

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 148px 24px 80px;
  background: var(--hero-bg);
  color: var(--hero-text);
  position: relative;
  overflow: hidden;
  transition: background var(--transition), color var(--transition);
}

/* Grain texture overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: -100%;
  width: 300%; height: 300%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.04;
  pointer-events: none;
  animation: grain 8s steps(10) infinite;
}

/* Radial glow on bordo theme */
body:not(.theme-bela) .hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(0,0,0,0.2) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 15%, rgba(201,149,58,0.07) 0%, transparent 50%);
  pointer-events: none;
}

@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  10% { transform: translate(-2%, -3%); }
  20% { transform: translate(3%, 1%); }
  30% { transform: translate(-1%, 4%); }
  40% { transform: translate(4%, -2%); }
  50% { transform: translate(-3%, 3%); }
  60% { transform: translate(2%, -4%); }
  70% { transform: translate(-4%, 1%); }
  80% { transform: translate(3%, -1%); }
  90% { transform: translate(-2%, 4%); }
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
}

.hero__logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin-bottom: 36px;
}

.hero__seal {
  width: 130px; height: 130px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(201,149,58,0.5);
  box-shadow: 0 0 0 6px rgba(201,149,58,0.1), 0 12px 48px rgba(0,0,0,0.4);
  animation: fadeInScale 0.8s ease both;
}

body.theme-bela .hero__seal {
  border-color: rgba(139,26,43,0.3);
  box-shadow: 0 0 0 6px rgba(139,26,43,0.07), 0 8px 36px rgba(139,26,43,0.15);
}

.hero__grb {
  width: 100px; height: 100px;
  object-fit: contain;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,0.35));
  animation: fadeInScale 0.8s 0.1s ease both;
}

body.theme-bela .hero__grb {
  filter: drop-shadow(0 4px 12px rgba(139,26,43,0.25));
}

@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.88) translateY(16px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.hero__pretitle {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeUp 0.7s 0.35s ease forwards;
}

body.theme-bela .hero__pretitle { color: var(--primary); }

.hero__title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 900;
  font-size: clamp(40px, 7vw, 80px);
  line-height: 1.03;
  color: var(--hero-text);
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp 0.7s 0.5s ease forwards;
}

.hero__title em {
  font-style: normal;
  color: var(--accent);
  display: block;
}

body.theme-bela .hero__title em { color: var(--primary); }

.hero__subtitle {
  font-size: 18px;
  font-weight: 300;
  color: var(--hero-sub);
  max-width: 520px;
  margin: 0 auto 44px;
  line-height: 1.75;
  opacity: 0;
  animation: fadeUp 0.7s 0.65s ease forwards;
}

.hero__actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.7s 0.8s ease forwards;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: 32px; left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  opacity: 0;
  animation: fadeUp 0.7s 1.1s ease forwards;
}

.hero__scroll-dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  margin: 4px auto;
  animation: scrollBounce 2s ease-in-out infinite;
}

.hero__scroll-dot:nth-child(2) { animation-delay: 0.15s; opacity: 0.6; }
.hero__scroll-dot:nth-child(3) { animation-delay: 0.3s; opacity: 0.3; }

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 36px;
  border-radius: var(--border-radius-sm);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: 2px solid transparent;
  transition: all 0.25s ease;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: var(--shadow-btn);
}

.btn--primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(107,16,36,0.4);
}

body.theme-bela .btn--primary {
  box-shadow: 0 4px 16px rgba(139,26,43,0.3);
}

.btn--outline {
  background: transparent;
  color: var(--hero-text);
  border-color: rgba(255,255,255,0.4);
}

.btn--outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.7);
}

body.theme-bela .btn--outline {
  color: var(--primary);
  border-color: var(--primary);
}

body.theme-bela .btn--outline:hover {
  background: var(--primary);
  color: #fff;
}

/* ===== STATS ===== */
.stats {
  background: var(--dark-bg);
  padding: 52px 24px;
  transition: background var(--transition);
}

.stats__grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stats__item { }

.stats__number {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: 52px;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}

body.theme-bela .stats__number { color: #E8C068; }

.stats__label {
  font-size: 12px;
  font-weight: 300;
  color: var(--dark-text);
  opacity: 0.6;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* ===== SECTION BASE ===== */
.section {
  padding: 100px 24px;
  transition: background var(--transition);
}

.section__inner {
  max-width: 1240px;
  margin: 0 auto;
}

.section__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--section-label-color);
  margin-bottom: 12px;
}

.section__title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: clamp(32px, 4vw, 52px);
  color: var(--section-title-color);
  margin-bottom: 56px;
  line-height: 1.08;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== NEWS ===== */
.section--news { background: var(--body-bg); }

.news-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 24px;
}

.news-card {
  background: var(--card-bg);
  border-radius: var(--border-radius-card);
  overflow: hidden;
  border: 1px solid var(--card-border);
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
}

.news-card--featured {
  grid-row: 1 / 3;
}

.news-card__image {
  width: 100%;
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.news-card--featured .news-card__image {
  aspect-ratio: 4/3;
}

.news-card__image img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.news-card__body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-card--featured .news-card__body { padding: 32px; }

.news-card__pill {
  display: inline-block;
  background: var(--pill-bg);
  color: var(--pill-text);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 14px;
  width: fit-content;
}

.news-card__title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: 20px;
  line-height: 1.3;
  color: var(--body-text);
  margin-bottom: 10px;
  flex: 1;
}

.news-card--featured .news-card__title { font-size: 28px; }

.news-card__meta {
  font-size: 12px;
  color: var(--muted);
  font-weight: 300;
  margin-top: auto;
  padding-top: 12px;
}

.news-card__read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 16px;
  transition: gap 0.2s;
}

.news-card__read-more:hover { gap: 10px; }

/* ===== EVENTS ===== */
.section--events { background: var(--alt-bg); }

.events-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.event-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 22px;
  background: var(--card-bg);
  border-radius: 12px;
  border: 1px solid var(--card-border);
  border-left: 4px solid var(--accent);
  margin-bottom: 16px;
  transition: transform var(--transition), box-shadow var(--transition);
}

body.theme-bela .event-card { border-left-color: var(--primary); }

.event-card:hover {
  transform: translateX(5px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.08);
}

.event-card__date {
  min-width: 58px;
  text-align: center;
  background: var(--primary);
  color: #FAF5ED;
  border-radius: var(--border-radius-sm);
  padding: 10px 8px;
  flex-shrink: 0;
  transition: background var(--transition);
}

.event-card__day {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: 28px;
  line-height: 1;
  display: block;
}

.event-card__month {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  opacity: 0.85;
  display: block;
  margin-top: 2px;
}

.event-card__info h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 5px;
  color: var(--body-text);
  line-height: 1.3;
}

.event-card__info p {
  font-size: 13px;
  color: var(--muted);
  font-weight: 300;
}

.event-card__location {
  font-size: 12px;
  color: var(--section-label-color);
  font-weight: 600;
  margin-top: 6px;
}

/* Čarapanija magazine box */
.magazine-box {
  background: linear-gradient(145deg, #6B1024, #3D0A16);
  border-radius: 20px;
  padding: 44px 36px;
  color: #FAF5ED;
  position: relative;
  overflow: hidden;
}

body.theme-bela .magazine-box {
  background: linear-gradient(145deg, #8B1A2B, #5A0D1E);
}

.magazine-box::before {
  content: '"';
  position: absolute;
  top: -20px; right: 20px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 200px;
  font-weight: 900;
  color: rgba(201,149,58,0.08);
  line-height: 1;
  pointer-events: none;
}

.magazine-box__icon { font-size: 40px; margin-bottom: 20px; }

.magazine-box h3 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: 30px;
  color: #E8C068;
  margin-bottom: 14px;
}

.magazine-box p {
  font-size: 15px;
  font-weight: 300;
  opacity: 0.78;
  line-height: 1.72;
  margin-bottom: 28px;
}

.magazine-box .btn--outline {
  color: #fff;
  border-color: rgba(255,255,255,0.4);
}

.magazine-box .btn--outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.7);
}

/* ===== GALLERY ===== */
.section--gallery {
  background: var(--dark-bg);
  padding: 100px 0;
  transition: background var(--transition);
}

.section--gallery .section__label { color: var(--accent); }
.section--gallery .section__title { color: #FAF5ED; }

.section--gallery .section__inner--header {
  padding: 0 56px;
  margin-bottom: 40px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 260px 200px;
  gap: 4px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.gallery-item:nth-child(1) {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-item__placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
  transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-item__placeholder { transform: scale(1.06); }

.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img { transform: scale(1.06); }

.gallery-item__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(107,16,36,0.7) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.35s ease;
  display: flex;
  align-items: flex-end;
  padding: 24px;
}

.gallery-item:hover .gallery-item__overlay { opacity: 1; }

.gallery-item__caption {
  color: #FAF5ED;
  font-size: 14px;
  font-weight: 600;
}

.gallery-more {
  text-align: center;
  padding: 36px 56px 0;
}

.gallery-more a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(250,245,237,0.7);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(201,149,58,0.4);
  padding-bottom: 3px;
  transition: color var(--transition), border-color var(--transition);
}

.gallery-more a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ===== ABOUT ===== */
.section--about { background: var(--body-bg); }

.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-visual {
  background: linear-gradient(145deg, #6B1024 0%, #3D0A16 100%);
  border-radius: 20px;
  padding: 52px 40px;
  text-align: center;
  color: #FAF5ED;
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 72px rgba(107,16,36,0.32);
}

.about-visual::before {
  content: '';
  position: absolute;
  inset: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(ellipse at 70% 30%, rgba(201,149,58,0.08) 0%, transparent 60%);
  pointer-events: none;
}

.about-visual__seal {
  width: 140px; height: 140px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 22px;
  border: 3px solid rgba(201,149,58,0.4);
  position: relative;
  z-index: 1;
}

.about-visual h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.about-visual p {
  font-size: 14px;
  font-weight: 300;
  opacity: 0.72;
  line-height: 1.75;
  position: relative;
  z-index: 1;
}

.about-visual__year {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.12);
  position: relative;
  z-index: 1;
}

.about-visual__year-label {
  font-size: 10px;
  opacity: 0.45;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 300;
}

.about-visual__year-number {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 900;
  font-size: 52px;
  color: #E8C068;
  line-height: 1;
  margin-top: 4px;
}

.about-text { }

.about-text p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 18px;
}

.pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 28px;
}

.pillar {
  padding: 18px;
  background: var(--card-bg);
  border-radius: 12px;
  border: 1px solid var(--card-border);
  border-top: 3px solid var(--accent);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
}

body.theme-bela .pillar { border-top-color: var(--primary); }

.pillar:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
}

.pillar__icon { font-size: 22px; margin-bottom: 10px; }

.pillar h5 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: 17px;
  color: var(--body-text);
  margin-bottom: 4px;
}

.pillar p {
  font-size: 12px;
  color: var(--muted);
  font-weight: 300;
  line-height: 1.55;
}

/* ===== CTA ===== */
.section--cta {
  background: var(--cta-bg);
  padding: 100px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: background var(--transition);
}

.section--cta::before {
  content: '';
  position: absolute;
  inset: -50%;
  width: 200%; height: 200%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.03;
  pointer-events: none;
}

.section--cta h2 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 900;
  font-size: clamp(32px, 4.5vw, 56px);
  color: #FAF5ED;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}

.section--cta p {
  font-size: 18px;
  font-weight: 300;
  color: rgba(250,245,237,0.75);
  max-width: 480px;
  margin: 0 auto 40px;
  line-height: 1.72;
  position: relative;
  z-index: 1;
}

.section--cta .btn--primary {
  background: #FAF5ED;
  color: var(--primary);
  border-color: #FAF5ED;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  position: relative;
  z-index: 1;
}

.section--cta .btn--primary:hover {
  background: #fff;
  transform: translateY(-2px);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--footer-bg);
  padding: 72px 56px 32px;
  transition: background var(--transition);
}

.footer__grid {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.footer__brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.footer__brand-logo img {
  width: 36px; height: 36px;
  object-fit: contain;
}

.footer__brand-name {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--accent);
  letter-spacing: 1px;
}

.footer__brand-desc {
  font-size: 13px;
  font-weight: 300;
  color: rgba(255,255,255,0.38);
  line-height: 1.72;
  max-width: 260px;
}

.footer__col h5 {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 20px;
}

.footer__col a {
  display: block;
  font-size: 13px;
  font-weight: 300;
  color: rgba(255,255,255,0.42);
  margin-bottom: 10px;
  transition: color var(--transition);
}

.footer__col a:hover { color: var(--accent); }

.footer__bottom {
  max-width: 1240px;
  margin: 28px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(255,255,255,0.25);
  flex-wrap: wrap;
  gap: 8px;
}

.footer__bottom a { color: var(--accent); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .navbar { padding: 0 32px; }
  .navbar__links { gap: 20px; }
  .news-grid { grid-template-columns: 1fr 1fr; }
  .news-card--featured { grid-row: 1; grid-column: 1 / 3; }
  .about-layout { gap: 48px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .navbar { padding: 0 20px; }
  .navbar__links, .navbar__cta { display: none; }
  .navbar__hamburger { display: flex; }

  .section { padding: 72px 20px; }
  .section--gallery { padding: 72px 0; }
  .section--gallery .section__inner--header { padding: 0 20px; }
  .gallery-more { padding: 28px 20px 0; }

  .stats { padding: 36px 20px; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .stats__number { font-size: 40px; }

  .news-grid { grid-template-columns: 1fr; }
  .news-card--featured { grid-row: auto; grid-column: auto; }

  .events-layout { grid-template-columns: 1fr; gap: 32px; }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(3, 180px);
  }
  .gallery-item:nth-child(1) { grid-column: 1 / 3; grid-row: auto; }

  .about-layout { grid-template-columns: 1fr; gap: 40px; }
  .about-visual { padding: 40px 28px; }

  .footer { padding: 56px 20px 28px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer__bottom { flex-direction: column; text-align: center; }

  .hero { padding: 128px 20px 64px; }
  .hero__logos { gap: 18px; }
  .hero__seal { width: 90px; height: 90px; }
  .hero__grb { width: 72px; height: 72px; }

  .pillars { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stats__number { font-size: 34px; }
  .hero__actions { flex-direction: column; align-items: center; }
  .hero__actions .btn { width: 100%; max-width: 280px; }
  .footer__grid { grid-template-columns: 1fr; }
  .pillars { gap: 10px; }
  .gallery-grid { grid-template-rows: repeat(3, 140px); }
}

/* ===== CONTENT PAGES ===== */
.page-header {
  padding: 140px 24px 64px;
  background: var(--hero-bg);
  color: var(--hero-text);
  text-align: center;
  transition: background var(--transition), color var(--transition);
}

.page-header h1 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 900;
  font-size: clamp(36px, 5vw, 64px);
  margin-bottom: 16px;
}

.page-header p {
  font-size: 18px;
  font-weight: 300;
  opacity: 0.75;
  max-width: 560px;
  margin: 0 auto;
}

.content-body {
  max-width: 820px;
  margin: 0 auto;
  padding: 72px 24px;
  font-size: 16px;
  line-height: 1.82;
  color: var(--body-text);
}

.content-body h2 {
  font-size: clamp(24px, 3vw, 36px);
  margin: 48px 0 20px;
  color: var(--section-title-color);
}

.content-body h3 { font-size: 22px; margin: 36px 0 16px; }
.content-body p { margin-bottom: 20px; }
.content-body img { border-radius: var(--border-radius-card); margin: 32px 0; }

/* ===== FORM STYLES ===== */
.form-field { margin-bottom: 24px; }

.form-field label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--card-border);
  border-radius: var(--border-radius-sm);
  background: var(--card-bg);
  color: var(--body-text);
  font-family: 'Source Sans 3', sans-serif;
  font-size: 15px;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(201,149,58,0.15);
}

body.theme-bela .form-field input:focus,
body.theme-bela .form-field textarea:focus {
  box-shadow: 0 0 0 3px rgba(139,26,43,0.12);
}

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

/* ===== ARTICLE/VEST PAGE ===== */
.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.article-meta time {
  font-size: 13px;
  color: var(--muted);
  font-weight: 300;
}

/* ===== UTILITY ===== */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.text-center { text-align: center; }
.text-accent { color: var(--accent); }
.mt-auto { margin-top: auto; }

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

/* ===== TAG / PILL ===== */
.tag {
  display: inline-block;
  background: var(--pill-bg);
  color: var(--pill-text);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 14px;
  width: fit-content;
}

/* ===== NEWS CARD img alias ===== */
.news-card__img {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  flex-shrink: 0;
}
.news-card__img img { width: 100%; height: 100%; object-fit: cover; }
.news-card--featured .news-card__img { aspect-ratio: 4/3; }

.news-card__excerpt {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 8px;
  flex: 1;
}

/* ===== NEWS GRID LISTING (all same size) ===== */
.news-grid--listing {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  grid-template-rows: auto;
}
.news-grid--listing .news-card--featured { grid-row: auto; }

/* ===== ARTICLE DETAIL ===== */
.article-detail__header {
  padding: 120px 24px 64px;
  background: var(--hero-bg);
  color: var(--hero-text);
  text-align: center;
  transition: background var(--transition);
}

.article-detail__title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 900;
  font-size: clamp(32px, 5vw, 60px);
  line-height: 1.1;
  margin-bottom: 20px;
  color: var(--hero-text);
}

.article-detail__meta {
  font-size: 13px;
  opacity: 0.75;
  margin-top: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.article-detail__hero {
  margin: 48px auto 0;
}

.article-detail__img {
  width: 100%;
  border-radius: var(--border-radius-card);
  max-height: 520px;
  object-fit: cover;
  display: block;
}

.article-detail__body {
  padding: 64px 24px 80px;
  font-size: 17px;
  line-height: 1.82;
  color: var(--body-text);
}

.article-detail__body h2 { font-size: clamp(22px, 3vw, 32px); margin: 40px 0 16px; color: var(--section-title-color); }
.article-detail__body h3 { font-size: 20px; margin: 32px 0 12px; }
.article-detail__body p { margin-bottom: 20px; }
.article-detail__body img { border-radius: var(--border-radius-card); margin: 28px 0; max-width: 100%; }

.article-detail__footer {
  padding: 0 24px 80px;
}

/* ===== EVENT CARD BODY ===== */
.event-card__body { flex: 1; }

.event-card__title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--body-text);
  margin-bottom: 8px;
  line-height: 1.3;
}

.event-card__title a { color: inherit; text-decoration: none; }
.event-card__title a:hover { color: var(--accent); }

.event-card__link {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}
.event-card__link:hover { color: var(--accent); }

.event-card--full {
  padding: 20px 24px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-card);
  margin-bottom: 16px;
  transition: transform var(--transition), box-shadow var(--transition);
}
.event-card--full:hover { transform: translateY(-3px); box-shadow: var(--shadow-card-hover); }

.events-list { max-width: 820px; margin: 0 auto; }

/* ===== EVENT DETAIL ===== */
.event-detail__header {
  padding: 120px 24px 64px;
  background: var(--hero-bg);
  color: var(--hero-text);
  text-align: center;
  transition: background var(--transition);
}

.event-detail__title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 900;
  font-size: clamp(32px, 5vw, 60px);
  margin-bottom: 16px;
  color: var(--hero-text);
}

.event-detail__meta {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 15px;
  opacity: 0.8;
  margin-top: 16px;
}

.event-detail__body {
  padding: 64px 24px 80px;
  font-size: 17px;
  line-height: 1.82;
  color: var(--body-text);
}

/* ===== GALERIJA LISTING ===== */
.galerija-card {
  position: relative;
  border-radius: var(--border-radius-card);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  transition: transform var(--transition);
}
.galerija-card:hover { transform: scale(1.02); }

.galerija-card__img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

.galerija-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  opacity: 0;
  transition: opacity var(--transition);
}
.galerija-card:hover .galerija-card__overlay { opacity: 1; }

.galerija-card__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.galerija-card__meta { font-size: 12px; color: rgba(255,255,255,0.75); }

.galerija-grid-listing {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

/* ===== GALLERY DETAIL ===== */
.gallery-detail__header {
  padding: 120px 24px 64px;
  background: var(--hero-bg);
  color: var(--hero-text);
  text-align: center;
  transition: background var(--transition);
}

.gallery-detail__title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 900;
  font-size: clamp(32px, 5vw, 60px);
  margin-bottom: 16px;
  color: var(--hero-text);
}

.gallery-detail__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  padding: 0 24px 80px;
  max-width: 1240px;
  margin: 48px auto 0;
}

.gallery-detail__img {
  width: 100%;
  border-radius: var(--border-radius-card);
  object-fit: cover;
  aspect-ratio: 4/3;
  display: block;
  transition: transform var(--transition);
}
.gallery-detail__img:hover { transform: scale(1.02); }

/* ===== DOKUMENT CARD ===== */
.dokument-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-card);
  transition: transform var(--transition), box-shadow var(--transition);
}
.dokument-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-card-hover); }

.dokument-card__icon { font-size: 32px; flex-shrink: 0; }

.dokument-card__body { flex: 1; min-width: 0; }

.dokument-card__title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: 20px;
  color: var(--body-text);
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dokument-card__meta { font-size: 12px; color: var(--muted); }

.dokument-card__download { flex-shrink: 0; }

.dokument-list {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0 24px 80px;
}

/* ===== PAGINATION ===== */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 48px 24px 80px;
  flex-wrap: wrap;
}

.pagination__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  background: var(--card-bg);
  border: 1.5px solid var(--card-border);
  border-radius: var(--border-radius-sm);
  color: var(--body-text);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition);
  cursor: pointer;
}
.pagination__btn:hover { background: var(--alt-bg); border-color: var(--accent); color: var(--accent); }
.pagination__btn--active { background: var(--accent); border-color: var(--accent); color: #fff; }
.pagination__btn--active:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
.pagination__btn--disabled { opacity: 0.38; pointer-events: none; }

/* ===== AUTH / LOGIN PAGES ===== */

/* Wrap the Bootstrap row/col in a styled container */
#main-content > .row {
  min-height: calc(100vh - 108px);
  background: var(--body-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 24px 80px;
  margin: 0;
  position: relative;
}

/* Bordo radial glow background on auth pages */
body:not(.theme-bela) #main-content > .row::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(107,16,36,0.18) 0%, transparent 65%);
  pointer-events: none;
}

#main-content > .row > .col-md-6,
#main-content > .row > [class*="col-"] {
  width: 100%;
  max-width: 460px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 44px 40px;
  box-shadow: 0 24px 72px rgba(0,0,0,0.1);
  float: none;
  margin: 0 auto;
  position: relative;
}

body.theme-bela #main-content > .row > .col-md-6,
body.theme-bela #main-content > .row > [class*="col-"] {
  box-shadow: 0 4px 32px rgba(0,0,0,0.10), 0 1px 4px rgba(0,0,0,0.06);
  border-color: #d1c9c0;
}

/* Auth form header */
.auth-form h1 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: 32px;
  color: var(--body-text);
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.auth-form hr {
  border: none;
  border-top: 1px solid var(--card-border);
  margin: 20px 0 28px;
}

/* Bootstrap form classes → Heritage Modernism */
.mb-3, .form-group { margin-bottom: 20px; }

.form-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 7px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--card-border);
  border-radius: var(--border-radius-sm);
  background: var(--card-bg);
  color: var(--body-text);
  font-family: 'Source Sans 3', sans-serif;
  font-size: 15px;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(201,149,58,0.15);
}

body.theme-bela .form-control:focus {
  box-shadow: 0 0 0 3px rgba(139,26,43,0.12);
}

/* Input group (password toggle) */
.input-group {
  display: flex;
  gap: 0;
}

.input-group .form-control {
  border-radius: var(--border-radius-sm) 0 0 var(--border-radius-sm);
  flex: 1;
}

.input-group .btn-secondary {
  background: var(--alt-bg);
  border: 1.5px solid var(--card-border);
  border-left: none;
  border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
  padding: 0 14px;
  color: var(--muted);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.input-group .btn-secondary:hover {
  background: var(--card-border);
  color: var(--body-text);
}

/* Checkbox */
.form-check {
  display: flex;
  align-items: center;
  gap: 10px;
}

.form-check-input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  cursor: pointer;
  flex-shrink: 0;
}

.form-check-label {
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
}

/* Bootstrap primary button → Heritage Modernism */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 13px 24px;
  background: var(--primary);
  color: #fff;
  border: 2px solid var(--primary);
  border-radius: var(--border-radius-sm);
  font-family: 'Source Sans 3', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-btn);
  margin-top: 8px;
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(107,16,36,0.35);
}

/* Validation errors */
.text-danger {
  color: #e53e3e;
  font-size: 12px;
  margin-top: 4px;
  display: block;
}

/* Auth page links */
.auth-form a,
#main-content > .row a {
  color: var(--accent);
  font-weight: 600;
  transition: color var(--transition);
}

.auth-form a:hover,
#main-content > .row a:hover {
  color: var(--accent-hover);
}

/* "Back to site" style link below the form */
#main-content > .row p {
  font-size: 13px;
  color: var(--muted);
  margin-top: 16px;
  text-align: center;
}

/* Decorative accent bar at top of auth card */
#main-content > .row > [class*="col-"]::before {
  content: '';
  position: absolute;
  top: 0; left: 40px; right: 40px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-hover));
  border-radius: 0 0 4px 4px;
}

@media (max-width: 768px) {
  #main-content > .row {
    padding: 40px 16px 60px;
    align-items: flex-start;
    padding-top: 120px;
  }

  #main-content > .row > [class*="col-"] {
    padding: 32px 24px;
  }

  #main-content > .row > [class*="col-"]::before {
    left: 24px; right: 24px;
  }
}

/* ─── Membership Form ──────────────────────────────────────────────────────── */

.membership-page__header {
  background: linear-gradient(135deg, var(--primary) 0%, #3D0A16 100%);
  padding: 72px 24px 56px;
  text-align: center;
  margin-bottom: 0;
}

.membership-page__title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 700;
  color: #fff;
  margin: 0 0 16px;
}

.membership-page__subtitle {
  font-size: 16px;
  color: rgba(255,255,255,0.72);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

.container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
}

.membership-form-wrapper {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius);
  padding: 48px;
  margin: 48px auto;
}

body.theme-bela .membership-form-wrapper {
  background: #fff;
  border-color: #e2e8f0;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}

.membership-form__section {
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--card-border);
}

.membership-form__section:last-of-type {
  border-bottom: none;
  margin-bottom: 24px;
  padding-bottom: 0;
}

.membership-form__section-title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary);
  display: inline-block;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-error {
  display: block;
  font-size: 12px;
  color: #e53e3e;
  margin-top: 5px;
}

.form-group--checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.form-checkbox {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--primary);
  cursor: pointer;
  flex-shrink: 0;
}

.form-checkbox-label {
  font-size: 14px;
  color: var(--text);
  line-height: 1.5;
  cursor: pointer;
}

.form-checkbox-label a {
  color: var(--primary);
  text-decoration: underline;
}

.membership-form__actions {
  text-align: center;
  padding-top: 8px;
}

.btn--large {
  padding: 16px 48px;
  font-size: 15px;
  letter-spacing: 1.5px;
}

.membership-form__note {
  font-size: 13px;
  color: var(--muted);
  margin-top: 16px;
}

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

@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
  .membership-form-wrapper { padding: 28px 20px; }
}

/* ─── Admin bar ──────────────────────────────────────────────────────────── */
.admin-bar {
  background: #1e293b;
  color: #94a3b8;
  font-size: 12px;
  padding: 5px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-sans);
}
.admin-bar__user {
  color: #e2e8f0;
  font-weight: 600;
  margin-right: auto;
}
.admin-bar__link {
  color: #94a3b8;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 12px;
  font-family: inherit;
  padding: 0;
  transition: color 0.15s;
}
.admin-bar__link:hover { color: #e2e8f0; }
.admin-bar__logout { border-left: 1px solid #334155; padding-left: 16px; }
