/* ================================================================
   JMEM Design System — lokal gehostet, kein CDN (DSGVO-konform)
   Fonts: Space Grotesk (Headings) + DM Sans (Body)
   ================================================================ */

/* --- Space Grotesk (variable, wght 300–700, latin only) --- */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('fonts/space-grotesk/space-grotesk-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --- DM Sans (variable, wght 300–500, normal + italic, latin only) --- */
@font-face {
  font-family: 'DM Sans';
  font-style: italic;
  font-weight: 300 500;
  font-display: swap;
  src: url('fonts/dm-sans/dm-sans-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url('fonts/dm-sans/dm-sans-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ================================================================
   Design Tokens
   ================================================================ */
:root {
  --font-heading: 'Space Grotesk', system-ui, sans-serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  --color-primary:      #ea580c;   /* Sunrise Orange — CTAs, links, primary actions */
  --color-primary-dark: #0c0a09;   /* Near-Black (warm undertone) — hero, navbar */
  --color-primary-mid:  #1c1917;   /* Warm Charcoal */
  --color-accent:       #f97316;   /* Bright Orange — nav underline, highlights */
  --color-warm:         #fff7ed;   /* Warm Cream — style-1 section backgrounds */
  --color-light:        #fafaf9;   /* Off-White — default page background */
  --color-text:         #1c1917;   /* Warm near-black body text */
  --color-muted:        #78716c;   /* Stone grey secondary text */
  --color-border:       #e7e5e4;   /* Warm subtle borders */

  --radius-card: 14px;
  --shadow-card: 0 4px 24px rgba(12, 10, 9, 0.10);
  --shadow-card-hover: 0 12px 40px rgba(12, 10, 9, 0.18);
  --transition-base: 0.25s ease;
}

/* ================================================================
   Base Typography
   ================================================================ */
html {
  font-size: 18px;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
}

h1, h2, h3, h4, h5, h6,
.uk-h1, .uk-h2, .uk-h3, .uk-h4, .uk-h5, .uk-h6 {
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
}

/* Section headings — big, editorial */
section h2 {
  font-size: clamp(2.4rem, 5.5vw, 4.5rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.uk-text-lead {
  font-family: var(--font-body);
  font-size: 1.25rem;
  line-height: 1.65;
  font-style: italic;
  font-weight: 300;
  margin-bottom: 20px;
  color: var(--color-muted);
}

.uk-text-meta {
  font-size: .75rem;
  line-height: 1.4;
  color: var(--color-muted);
}

/* ================================================================
   Navigation
   ================================================================ */
.main-nav .uk-navbar {
  align-items: center;
}

.main-nav .uk-navbar-left {
  display: flex;
  align-items: center;
}

.main-nav .uk-navbar-nav {
  align-items: center;
}

.main-nav .uk-navbar-nav > li.uk-parent > a {
  display: flex;
  align-items: center;
  height: 54px;
  min-height: 54px;
}

.main-nav .uk-navbar-nav > li > a {
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.main-nav li.current {
  font-weight: 700;
}

.main-nav .uk-navbar-nav > li:hover > a,
.uk-navbar-nav > li > a:focus,
.uk-navbar-nav > li > a.uk-open {
  color: rgba(255, 255, 255, 0.75);
}

.main-nav .uk-logo img {
  max-height: 70px;
}

.uk-navbar-nav > li > a,
.uk-navbar-item,
.uk-navbar-toggle {
  height: 54px;
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Nav underline animation */
.main-menu .uk-navbar-nav > li > a {
  position: relative;
}

.main-menu .uk-navbar-nav > li > a::before {
  content: '';
  display: block;
  position: absolute;
  left: 15px;
  right: calc(102% - 15px);
  bottom: 10px;
  height: 2px;
  background-color: var(--color-accent);
  border-radius: 2px;
  transition: right var(--transition-base);
}

.main-menu .uk-navbar-nav > li:hover > a::before,
.uk-navbar-nav > li > a:focus::before,
.uk-navbar-nav > li > a.uk-open::before {
  right: 15px;
}

.uk-dropdown {
  padding: 16px;
  border-radius: 0 0 var(--radius-card) var(--radius-card);
}

/* Locations (p_1026) — direct link, no dropdown */
li.p_1026 .uk-navbar-dropdown { display: none !important; }

/* Reset margin from .p_1135 a page rule bleeding into nav */
.main-nav .uk-navbar-nav li.p_1135 > a {
  margin-bottom: 0;
}

/* ================================================================
   Navbar background — charcoal (overrides uk-background-primary)
   ================================================================ */
#top-head .uk-container {
  background-color: var(--color-primary-dark);
}

/* ================================================================
   Logo area — text-based
   ================================================================ */
.ub-logo {
  padding: 1.225rem 0 0.6rem 2rem;
  background-color: var(--color-primary-dark);
}

.ub-logo-link {
  text-decoration: none;
  display: inline-flex;
  align-items: start;
  gap: 1rem;
}

.ub-ywam-logo {
  height: 44px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.9;
  flex-shrink: 0;
}

.ub-logo-text {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.ub-logo-sup {
  font-size: 0.45em;
  font-weight: 600;
  color: var(--color-primary);
  vertical-align: super;
  letter-spacing: 0.05em;
}

.ub-logo-sub {
  font-family: var(--font-body);
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 0.05rem;
}

/* keep old sub-line class as fallback */
.ub-sub-line {
  font-family: var(--font-heading);
  letter-spacing: 3px;
  font-size: 11px;
  font-weight: 500;
  color: var(--color-muted);
}

/* ================================================================
   Hero
   ================================================================ */
.ub-hero {
  overflow: hidden;
}

.ub-hero h1 {
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 700;
  font-style: normal;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.ub-hero .ub-hero-heading {
  font-family: var(--font-heading) !important;
  font-size: clamp(2.8rem, 6vw, 5rem) !important;
  font-weight: 700 !important;
  font-style: normal !important;
  line-height: 1.55 !important;
  letter-spacing: -0.03em !important;
  margin: 0 0 0.5rem !important;
  color: #fff;
}

.ub-hero .ub-hero-hl {
  display: inline;
  background: linear-gradient(
    to bottom,
    transparent 50%,
    var(--color-primary) 50%
  );
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding: 0 0.12em 0.1em;
}

/* Charcoal gradient overlay over hero image */
.ub-hero-overlay {
  background: linear-gradient(
    135deg,
    rgba(12, 10, 9, 0.84) 0%,
    rgba(28, 25, 23, 0.60) 55%,
    rgba(234, 88, 12, 0.18) 100%
  );
  z-index: 0;
}

/* ensure hero text content is above overlay */
.ub-hero-inner > *:not(.ub-hero-overlay):not(.ub-slant):not(.ub-hero-deco) {
  position: relative;
  z-index: 1;
}

.ub-hero-content {
  z-index: 2;
}

/* Decorative rotating SVG — bottom right, partially cropped */
.ub-hero-deco {
  position: absolute;
  bottom: -8vh;
  right: -6vw;
  height: 100vh;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.3;
  pointer-events: none;
  z-index: 1;
  animation: hero-spin 40s linear infinite;
  transform-origin: center center;
}

@keyframes hero-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(-360deg); }
}

/* Hero content — left-aligned, generous left padding on desktop */
.ub-hero-content {
  width: 100%;
  max-width: 680px;
  padding: 0 2rem 0 clamp(1.5rem, 10vw, 8rem);
  text-align: left;
}

.ub-hero-cta {
  margin-top: 2.5rem;
}

/* ================================================================
   Section labels + homepage component styles
   ================================================================ */

/* Small-caps orange section label above headings */
.ub-section-label {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}

.uk-light .ub-section-label,
.style-2 .ub-section-label {
  color: var(--color-accent);
}

/* Mission steps block — white background */
.ub-steps {
  padding: 5rem 0 6.5rem;
  background: #fff;
}

/* YWAM worldwide CTA wrapper */
.ub-ywam-cta-wrap {
  padding-top: 4rem;
}

/* YWAM worldwide CTA link */
.ub-ywam-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1.1rem 2.4rem;
  background: var(--color-primary-dark);
  color: #fff;
  text-decoration: none;
  border-radius: 100px;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: background var(--transition-base), transform var(--transition-base), box-shadow var(--transition-base);
  box-shadow: 0 4px 20px rgba(12, 10, 9, 0.18);
}

.ub-ywam-cta:hover {
  background: var(--color-primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(234, 88, 12, 0.30);
  text-decoration: none;
}

.ub-ywam-cta-icon {
  opacity: 0.85;
  flex-shrink: 0;
}

.ub-ywam-cta-text {
  flex: 1;
}

.ub-ywam-cta-arrow {
  opacity: 0.6;
  transition: opacity var(--transition-base), transform var(--transition-base);
  flex-shrink: 0;
}

.ub-ywam-cta:hover .ub-ywam-cta-arrow {
  opacity: 1;
  transform: translateX(3px);
}

.ub-steps-grid {
  margin-top: 2.5rem;
}

/* Make grid items flex containers so .ub-step fills them properly */
.ub-steps-grid > div {
  display: flex;
}

/* Step cards */
.ub-step {
  flex: 1;
  padding: 1.75rem 1.5rem 1.75rem 1.75rem;
  background: var(--color-light);
  border-left: 3px solid var(--color-primary);
  border-radius: 0 var(--radius-card) var(--radius-card) 0;
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.ub-step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.ub-step-number {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 700;
  color: rgba(234, 88, 12, 0.20);
  line-height: 1;
  margin-bottom: 0.6rem;
}

.ub-step h3 {
  color: var(--color-text);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.ub-step p {
  color: var(--color-muted);
  font-size: 0.88rem;
  line-height: 1.65;
  margin: 0;
}

/* Steps on dark background (e.g. style-2) */
.style-2 .ub-step {
  background: rgba(255, 255, 255, 0.05);
  border-left-color: var(--color-primary);
  box-shadow: none;
}

.style-2 .ub-step:hover {
  background: rgba(255, 255, 255, 0.09);
  box-shadow: none;
}

.style-2 .ub-step-number { color: rgba(249, 115, 22, 0.35); }
.style-2 .ub-step h3     { color: #fff; }
.style-2 .ub-step p      { color: rgba(255, 255, 255, 0.60); }

/* Mobile: full-width stacking */
@media (max-width: 959px) {
  .ub-steps-grid > * { margin-bottom: 1rem; }
  .ub-steps-grid > *:last-child { margin-bottom: 0; }
}

/* ── Testimonials — Masonry Grid ───────────────────────────────────────── */
.ub-testimonials-masonry {
  columns: 3;
  column-gap: 1.5rem;
  margin-top: 2.5rem;
}

@media (max-width: 959px)  { .ub-testimonials-masonry { columns: 2; } }
@media (max-width: 639px)  { .ub-testimonials-masonry { columns: 1; } }

.ub-testimonial-card {
  display: block;
  break-inside: avoid;
  background: #fff;
  border-radius: var(--radius-card);
  padding: 1.75rem 1.75rem 1.25rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 16px rgba(12, 10, 9, .07);
  transition: transform .22s ease, box-shadow .22s ease;
  position: relative;
}

.ub-testimonial-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(12, 10, 9, .12);
}

/* Every 4th card dark (visual rhythm) */
.ub-testimonial-card:nth-child(4n+1) {
  background: var(--color-primary-dark);
}
.ub-testimonial-card:nth-child(4n+1) .ub-testimonial-quote p { color: rgba(255,255,255,.88); }
.ub-testimonial-card:nth-child(4n+1) .ub-testimonial-mark { color: var(--color-primary); opacity: .55; }
.ub-testimonial-card:nth-child(4n+1) .ub-testimonial-footer { border-top-color: rgba(255,255,255,.12); }
.ub-testimonial-card:nth-child(4n+1) .ub-testimonial-author { color: rgba(255,255,255,.7); }

.ub-testimonial-body {
  position: relative;
}

.ub-testimonial-mark {
  font-family: Georgia, serif;
  font-size: 4.5rem;
  line-height: .7;
  color: var(--color-primary);
  opacity: .18;
  display: block;
  margin-bottom: .1rem;
  user-select: none;
}

.ub-testimonial-quote p {
  font-size: .93rem;
  line-height: 1.78;
  color: var(--color-text);
  margin: 0 0 .5em;
}

.ub-testimonial-quote p:last-child { margin-bottom: 0; }

.ub-testimonial-footer {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin-top: 1.1rem;
  padding-top: .9rem;
  border-top: 1px solid var(--color-border);
}

.ub-testimonial-img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 5px;
  flex-shrink: 0;
}

.ub-testimonial-author {
  font-family: var(--font-heading);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--color-text);
}

/* ── DTS list — editorial horizontal layout ──────────────────────────── */
.ub-dts-list {
  margin-top: 2.5rem;
}

.ub-dts-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 2rem;
  align-items: center;
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background var(--transition-base);
}

.ub-dts-item:first-child {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ub-dts-cal {
  text-align: center;
  flex-shrink: 0;
}

.ub-dts-day {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
}

.ub-dts-mon {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 0.3rem;
}

.ub-dts-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 0.2rem;
}

.ub-dts-loc {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.4);
  margin: 0;
}

.ub-dts-link {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--transition-base);
}

.ub-dts-link:hover {
  color: var(--color-accent);
}

@media (max-width: 639px) {
  .ub-dts-item {
    grid-template-columns: 52px 1fr;
    grid-template-rows: auto auto;
    gap: 1rem;
  }
  .ub-dts-link {
    grid-column: 2;
  }
	.ub-hero-deco {
  		height: 40vh;
		right: -30vw;
	}
}

/* ================================================================
   UIkit primary colour — override all hardcoded #1e87f0 blue
   ================================================================ */

/* Links */
a, .uk-link { color: var(--color-primary); }
a:hover, .uk-link:hover { color: var(--color-accent); }
.uk-link-heading a:hover, a.uk-link-heading:hover { color: var(--color-primary); }

/* Form focus rings */
.uk-input:focus, .uk-select:focus, .uk-textarea:focus { border-color: var(--color-primary); }
.uk-checkbox:focus, .uk-radio:focus { border-color: var(--color-primary); }
.uk-checkbox:checked, .uk-checkbox:indeterminate, .uk-radio:checked {
  background-color: var(--color-primary);
  border-color: transparent;
}

/* Buttons */
.uk-button-primary,
.uk-light .uk-button-primary,
.uk-dark .uk-button-primary {
  background-color: var(--color-primary);
  color: #fff;
  border-color: transparent;
}
.uk-button-primary:hover, .uk-button-primary:focus,
.uk-light .uk-button-primary:hover, .uk-light .uk-button-primary:focus,
.uk-dark .uk-button-primary:hover, .uk-dark .uk-button-primary:focus {
  background-color: var(--color-accent);
  color: #fff;
}
.uk-button-link { color: var(--color-primary); }
.uk-button-link:hover { color: var(--color-accent); }

/* Sections & tiles & cards */
.uk-section-primary { background: var(--color-primary-dark); }
.uk-tile-primary { background: var(--color-primary-dark); }
.uk-card-primary { background: var(--color-primary-dark); color: #fff; }
.uk-card-primary.uk-card-hover:hover { background-color: var(--color-primary-mid); }

/* Alerts, badges, labels */
.uk-alert-primary { background: #fff7ed; color: var(--color-primary); }
.uk-badge { background: var(--color-primary); }

.ub-loc-type-label {
  font-family: var(--font-heading);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin: 0 0 .35rem;
}

.uk-label { background: var(--color-primary); }

/* Nav pills & tabs */
.uk-subnav-pill > .uk-active > a { background-color: var(--color-primary); color: #fff; }
.uk-tab > .uk-active > a { border-color: var(--color-primary); }

/* Notifications */
.uk-notification-message-primary { color: var(--color-primary); }

/* Progress bar */
.uk-progress::-webkit-progress-value { background-color: var(--color-primary); }
.uk-progress::-moz-progress-bar { background-color: var(--color-primary); }
.uk-progress::-ms-fill { background-color: var(--color-primary); }

/* Text & background utilities */
.uk-text-primary { color: var(--color-primary) !important; }
.uk-background-primary { background-color: var(--color-primary-dark) !important; }

/* Wave SVG at bottom of hero */
.ub-slant {
  width: 100%;
  height: 70px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 70' preserveAspectRatio='none'%3E%3Cpath fill='%23ffffff' d='M0,40 C240,20 480,60 720,40 C960,20 1200,60 1440,40 L1440,70 L0,70 Z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

/* Location page: info bar below hero is dark — wave fill matches */
.ub-loc-hero .ub-slant {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 70' preserveAspectRatio='none'%3E%3Cpath fill='%230c0a09' d='M0,40 C240,20 480,60 720,40 C960,20 1200,60 1440,40 L1440,70 L0,70 Z'/%3E%3C/svg%3E");
}

.uk-height-medium {
  height: 420px;
}

/* ================================================================
   Section color styles
   ================================================================ */
.style-1 {
  background-color: var(--color-warm);
}

/* Deep charcoal-to-orange gradient */
.style-2 {
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary-mid) 60%, #292524 100%);
}

.style-3 {
  background-color: var(--color-light);
  background-image: url('images/bg_stripes_1c5d99.png');
  background-size: cover;
  background-attachment: fixed;
  background-position: 30% center;
}

.style-4 {
  box-shadow: inset 0 0 116px -28px rgba(0, 0, 0, 0.75);
}

/* ================================================================
   Cards — modern hover with lift + shadow
   ================================================================ */
.uk-card {
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

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

/* ================================================================
   Buttons
   ================================================================ */
.uk-button {
  font-family: var(--font-heading);
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: 8px;
}

/* ================================================================
   Mobile nav
   ================================================================ */
.mobile-nav .uk-navbar-toggle {
  color: #fff;
}

.uk-offcanvas {
  z-index: 3000;
}

/* ================================================================
   Language switcher
   ================================================================ */
.main-nav .uk-navbar-toggle {
  padding-right: 1rem;
}

.langswitch {
  margin-left: 0;
}

.langswitch li {
  border-left: 1px solid rgba(255, 255, 255, .2);
  padding-left: 10px;
}

/* ================================================================
   Infobox (Location pages)
   ================================================================ */
.location_infobox h1 {
  margin-bottom: 0;
  font-family: var(--font-heading);
}

.location_infobox p {
  margin-top: 0;
  font-size: 1.2em;
}

.location_infobox p.motto {
  font-size: 1.4em;
  font-style: italic;
}

.ub-infobox.uk-sticky-fixed {
  border-bottom: 1px solid var(--color-border);
}

/* UIkit 3.0.0-beta.40: uk-inline-clip has no position:relative, so uk-position-cover
   attaches to the card (.uk-card has position:relative) instead of the image container */
.uk-inline-clip {
  position: relative !important;
}

.uk-card-media-top .uk-inline-clip {
  display: block;
}

.uk-card-media-top .uk-inline-clip img {
  display: block;
  width: 100%;
}

/* ================================================================
   Content helpers
   ================================================================ */
.ub-col_body {
  margin-top: 40px;
}

.ub-stripe-1 {
  position: absolute;
  top: 100%;
  width: 100%;
  height: 0;
  transform: skewY(-1.5deg);
  background-color: var(--color-primary-dark);
}

.ub-stripe-2 {
  position: absolute;
  top: 100%;
  width: 100%;
  height: 0;
  background-color: #fff;
}

/* ================================================================
   Back button (fixed, floating)
   ================================================================ */
.ub_back {
  position: fixed;
  bottom: 10%;
  left: 20px;
  z-index: 100;
}

.ub_back.uk-icon-button {
  height: 60px;
  width: 60px;
}

/* ================================================================
   Map
   ================================================================ */
.leaflet-top {
  z-index: 500 !important;
}

.leaflet-popup-content a:hover {
  color: var(--color-muted);
}

/* ================================================================
   Utility / Misc
   ================================================================ */
#top-head {
  z-index: 1001;
  position: relative;
  top: 0;
  left: 0;
  right: 0;
}

.motto {
  font-style: italic;
}

.align_left {
  float: left;
  padding-right: 20px;
}

.align_right {
  float: right;
  padding-left: 20px;
}

/* body text in 2-col layout */
.uk-column-1-2\@m {
  column-gap: 2.5rem;
}

/* specific page overrides (keep) */
.p_1135 a,
.p_1146 a {
  font-weight: 600;
  margin-bottom: 1em;
}

/* hero style-1 variant (location hero) */
.ub-hero .style-1 {
  overflow: hidden;
  text-shadow: none;
}

/* ================================================================
   Location page
   ================================================================ */

/* Shorter hero — content at bottom-left */
.ub-loc-hero .ub-hero-inner {
  height: 60vh;
  min-height: 340px;
  position: relative;
  display: flex !important;
  align-items: flex-end;
}


.ub-loc-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 820px;
  padding: 0 clamp(1.5rem, 10vw, 8rem) 4.5rem;
}

.ub-loc-hero h1 {
  color: #fff;
  font-size: clamp(2rem, 5vw, 3.8rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: .3rem 0 .5rem;
}

.ub-loc-slogan {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, .72);
  margin: 0;
  line-height: 1.5;
}

/* Info bar — charcoal strip directly below hero */
.ub-loc-infobar {
  background: var(--color-primary-dark);
  padding: 1rem 0;
}

.ub-loc-infobar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .75rem 1.5rem;
}

.ub-loc-address {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  font-size: .88rem;
  color: rgba(255, 255, 255, .72);
}

.ub-loc-address a {
  color: rgba(255, 255, 255, .72);
  text-decoration: none;
  transition: color .2s;
}

.ub-loc-address a:hover {
  color: var(--color-primary);
}

.ub-loc-links {
  display: flex;
  gap: .4rem;
  flex-shrink: 0;
}

.ub-loc-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 6px;
  color: rgba(255, 255, 255, .6);
  background: rgba(255, 255, 255, .07);
  transition: background .2s, color .2s;
  text-decoration: none;
}

.ub-loc-icon:hover {
  background: var(--color-primary);
  color: #fff;
}

/* Body section heading */
.ub-loc-section-h3 {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 2.5rem 0 1rem;
  color: var(--color-text);
}

/* Leaflet map — sticky sidebar */
.ub-loc-map {
  position: sticky;
  top: 100px;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.ub-loc-map .leaflet-container {
  height: 380px;
  border-radius: var(--radius-card);
}

/* Projects grid */
.ub-loc-projects {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (max-width: 639px) {
  .ub-loc-projects { grid-template-columns: 1fr; }
}

.ub-loc-project-card {
  display: block;
  text-decoration: none;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-card);
  transition: transform .22s, box-shadow .22s;
}

.ub-loc-project-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(12, 10, 9, .12);
}

.ub-loc-project-img img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.ub-loc-project-body {
  padding: .9rem 1rem;
}

.ub-loc-project-body strong {
  display: block;
  font-family: var(--font-heading);
  font-size: .95rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: .15rem;
}

.ub-loc-project-body span {
  font-size: .82rem;
  color: var(--color-muted);
}

/* Shared event/outreach card grid */
.ub-loc-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

/* Event cards — dark section */
.ub-loc-event-card {
  display: block;
  text-decoration: none;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .1);
  transition: transform .22s, background .22s;
}

.ub-loc-event-card:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, .1);
}

.ub-loc-event-card > img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.ub-loc-event-card-body {
  padding: .9rem 1rem;
}

.ub-loc-event-card-body strong {
  display: block;
  font-family: var(--font-heading);
  font-size: .95rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: .3rem;
}

.ub-loc-event-card-body time {
  font-size: .78rem;
  color: var(--color-primary);
  font-weight: 600;
  letter-spacing: .03em;
}

/* Outreach cards — light section */
.ub-loc-outreach-card {
  display: block;
  text-decoration: none;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-card);
  transition: transform .22s, box-shadow .22s;
}

.ub-loc-outreach-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(12, 10, 9, .12);
}

.ub-loc-outreach-card > img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.ub-loc-outreach-card-body {
  padding: .9rem 1rem;
}

.ub-loc-outreach-card-body strong {
  display: block;
  font-family: var(--font-heading);
  font-size: .95rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: .3rem;
}

.ub-loc-outreach-card-body time {
  font-size: .78rem;
  color: var(--color-primary);
  font-weight: 600;
  letter-spacing: .03em;
  display: block;
}

.ub-loc-outreach-loc {
  font-size: .78rem;
  color: var(--color-muted);
  margin-top: .2rem;
  display: block;
}

/* RSS feed list */
.ub-loc-rss-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}

.ub-loc-rss-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
  padding: .85rem 0;
  border-bottom: 1px solid var(--color-border);
}

.ub-loc-rss-item a {
  font-size: .95rem;
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
  transition: color .2s;
}

.ub-loc-rss-item a:hover {
  color: var(--color-primary);
}

.ub-loc-rss-date {
  font-size: .78rem;
  color: var(--color-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Image gallery — CSS grid with lightbox */
.ub-loc-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: .75rem;
  margin-top: 1.5rem;
}

.ub-loc-gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  border-radius: 8px;
  transition: opacity .2s, transform .2s;
}

.ub-loc-gallery-item:hover img {
  opacity: .85;
  transform: scale(1.02);
}
