/* ============================================
   URALIC KESKUS - CUSTOM STYLES v2.0
   Joy From Africa inspired redesign
   ============================================ */

/* ============================================
   PRELOADER
   ============================================ */
.preloader {
  position: fixed;
  inset: 0;
  background: var(--color-bg-dark);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transition: opacity 0.6s var(--ease-out), visibility 0.6s;
}

.preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-text {
  position: relative;
  display: flex;
  gap: 0.05em;
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  color: var(--color-text-light);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  overflow: hidden;
}

.preloader-letter {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  animation: letterReveal 0.5s var(--ease-out) forwards;
}

.preloader-letter:nth-child(1) { animation-delay: 0.1s; }
.preloader-letter:nth-child(2) { animation-delay: 0.18s; }
.preloader-letter:nth-child(3) { animation-delay: 0.26s; }
.preloader-letter:nth-child(4) { animation-delay: 0.34s; }
.preloader-letter:nth-child(5) { animation-delay: 0.42s; }
.preloader-letter:nth-child(6) { animation-delay: 0.50s; }

@keyframes letterReveal {
  0% {
    opacity: 0;
    transform: translateY(20px);
    color: var(--color-brand-green);
  }
  40% {
    opacity: 1;
    transform: translateY(0);
    color: var(--color-brand-green);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    color: var(--color-text-light);
  }
}

/* ============================================
   NAVIGATION
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.5rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  mix-blend-mode: difference;
  background: transparent;
  transition: padding 0.4s var(--ease-out);
}

.site-header.scrolled {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
}

.site-branding {
  flex-shrink: 0;
}

.site-branding a,
.site-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #fff !important;
  text-decoration: none;
}

.custom-logo {
  height: 36px;
  width: auto;
  filter: none;
  transition: height var(--transition-base);
}

.site-header.scrolled .custom-logo {
  height: 30px;
}

/* Navigation */
.main-navigation {
  flex: 1;
  display: none;
}

.nav-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu > li {
  display: flex;
  align-items: center;
}

.nav-menu > li + li::before {
  content: '';
  display: block;
  width: 1px;
  height: 14px;
  background: var(--color-text, #1A1410);
  opacity: 0.35;
  flex-shrink: 0;
}

.nav-menu > li > a {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.nav-menu a {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff !important;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  position: relative;
  transition: color 0.3s, text-decoration-color 0.3s, opacity var(--transition-fast);
}

.nav-menu a:hover {
  color: var(--color-brand-green) !important;
  text-decoration-color: var(--color-brand-green);
}

.nav-menu .current-menu-item > a {
  text-decoration-color: var(--color-brand-green);
}

.nav-menu a::after {
  display: none;
}

/* Header Right */
.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Language Switcher */
.language-switcher {
  display: flex;
  gap: 0.75rem;
}

.language-switcher a {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.5) !important;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.3s;
}

.language-switcher a:hover,
.language-switcher a.active {
  color: #fff !important;
}

/* Search Toggle */
.search-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.search-toggle:hover {
  opacity: 0.7;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 200;
}

.hamburger {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 24px;
}

.hamburger .line {
  display: block;
  width: 100%;
  height: 1.5px;
  background-color: var(--color-text, #1A1410);
  transition: all 0.3s var(--ease-out);
  transform-origin: center;
}

.mobile-menu-toggle.active .line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.mobile-menu-toggle.active .line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active .line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Navigation */
.mobile-navigation {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--color-bg-dark);
  z-index: 999;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--ease-out);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-navigation.active {
  max-height: 100vh;
  overflow-y: auto;
}

.mobile-nav-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text-light);
  opacity: 0.7;
  padding: 0.5rem;
  line-height: 1;
  transition: opacity 0.2s;
  z-index: 10;
}

.mobile-nav-close:hover {
  opacity: 1;
}

.mobile-navigation-inner {
  text-align: center;
  padding: 2rem;
}

.mobile-nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-nav-menu li {
  margin-bottom: 0;
}

.mobile-nav-menu a {
  display: block;
  padding: 1rem 0;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 400;
  color: var(--color-text-light);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.mobile-nav-menu a:hover {
  color: var(--color-brand-green);
}

.mobile-language-switcher {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.mobile-social {
  display: flex;
  gap: 1.5rem;
  margin-top: 2rem;
  justify-content: center;
}

.mobile-social a {
  color: rgba(255,255,255,0.5);
  transition: color var(--transition-fast);
}

.mobile-social a:hover {
  color: var(--color-brand-green);
}

/* Search Overlay */
.search-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(26, 20, 16, 0.95);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-base);
  backdrop-filter: blur(10px);
}

.search-overlay.active {
  display: flex;
  opacity: 1;
}

.search-overlay-inner {
  width: 100%;
  max-width: 600px;
  padding: 2rem;
}

.search-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: transparent;
  border: none;
  color: white;
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
}

.search-form-wrapper input[type="search"] {
  width: 100%;
  padding: 1.5rem;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.3);
  color: var(--color-text-light);
  outline: none;
}

.search-form-wrapper input[type="search"]::placeholder {
  color: rgba(255,255,255,0.3);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 9rem 3rem 6rem;
  background: #D0E3B3;
  overflow: hidden;
}

.hero-bg {
  display: none;
}

.hero-bg img {
  display: none;
}

@keyframes heroKenBurns {
  to { transform: scale(1); }
}

.hero-overlay {
  display: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  text-align: center;
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #27211D;
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeIn 0.8s var(--ease-out) 0.2s forwards;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  font-weight: 400;
  line-height: 1.05;
  color: #27211D;
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeIn 0.8s var(--ease-out) 0.4s forwards;
}

@keyframes heroFadeIn {
  to { opacity: 1; transform: translateY(0); }
}

.hero-title em {
  font-style: italic;
  color: #27211D;
}

.hero-description {
  font-size: 1.05rem;
  font-weight: 300;
  color: #27211D;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
  margin-bottom: 2.5rem;
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeIn 0.8s var(--ease-out) 0.6s forwards;
}

.hero-cta {
  display: flex;
  justify-content: center;
  margin-top: 0;
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeIn 0.8s var(--ease-out) 0.85s forwards;
}

/* fix gap-jump on btn hover inside hero */
.hero-cta .btn:hover {
  gap: 0.75rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeIn 0.8s var(--ease-out) 0.8s forwards;
}

/* ── Hero News List ─────────────────────────────────────────────────────── */
.hero-news {
  margin: 3rem auto 0;
  max-width: 680px;
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeIn 0.8s var(--ease-out) 0.8s forwards;
}

.hero-news-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(186, 227, 183, 0.8);
  margin-bottom: 1rem;
}

.hero-news-line {
  display: block;
  width: 28px;
  height: 1px;
  background: #BAE3B7;
  flex-shrink: 0;
}

.hero-news-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid rgba(246, 241, 235, 0.12);
}

.hero-news-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(246, 241, 235, 0.12);
  text-decoration: none;
  transition: background 0.2s;
}

.hero-news-item:hover .hero-news-title {
  color: #BAE3B7;
}
.hero-news-item:hover .hero-news-arrow {
  transform: translateX(4px);
}

.hero-news-cat {
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #BAE3B7;
  white-space: nowrap;
  flex-shrink: 0;
}

.hero-news-title {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 300;
  color: rgba(246, 241, 235, 0.9);
  line-height: 1.35;
  transition: color 0.2s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-news-arrow {
  flex-shrink: 0;
  color: rgba(246, 241, 235, 0.4);
  transition: transform 0.2s, color 0.2s;
  display: flex;
  align-items: center;
}
.hero-news-arrow svg {
  width: 13px;
  height: 13px;
}
.hero-news-item:hover .hero-news-arrow {
  color: #BAE3B7;
}

@media (max-width: 768px) {
  .hero-news-cat { display: none; }
  .hero-news-item { grid-template-columns: 1fr auto; }
  .hero-news-title { white-space: normal; }
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 3rem;
  right: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  color: rgba(246, 241, 235, 0.4);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  z-index: 2;
  opacity: 0;
  animation: heroFadeIn 0.8s var(--ease-out) 3.2s forwards;
}

.hero-scroll-indicator .scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--color-brand-green), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.2); }
}

/* ============================================
   LANGUAGE MARQUEE
   ============================================ */
.marquee-section {
  padding: 2rem 0;
  overflow: hidden;
  background: var(--color-bg);
}

.marquee-track {
  display: flex;
  white-space: nowrap;
  animation: marqueeScroll 40s linear infinite;
  will-change: transform;
}

.marquee-item {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-style: italic;
  color: var(--color-text-muted);
  padding: 0 1.5rem;
  flex-shrink: 0;
}

.marquee-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-brand-green);
  vertical-align: middle;
  margin: 0 1rem;
}

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================
   PAGE & ARCHIVE HERO
   ============================================ */
.page-hero,
.archive-hero {
  padding-top: calc(var(--header-height) + 4rem);
  padding-bottom: 3rem;
  background: var(--color-bg);
}

.page-hero .page-title,
.archive-hero .archive-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3.5rem);
  color: var(--color-text);
}

/* ============================================
   MISSION SECTION
   ============================================ */
.mission-logos {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-top: 2.5rem;
}

.mission-logo {
  height: 100px;
  width: auto;
  transition: transform 0.3s var(--ease-out), opacity 0.3s;
}

.mission-logo-link {
  display: inline-block;
}

.mission-logo-link:hover .mission-logo {
  transform: scale(1.05);
  opacity: 0.85;
}

.mission-section h2 {
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  line-height: 1.3;
  max-width: 480px;
}

.mission-section h2 em {
  color: var(--color-accent-deep);
  font-style: italic;
}

.mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  max-width: var(--container-max-width);
  margin: 0 auto;
}

.mission-section .section-eyebrow {
  color: var(--color-text-muted);
}

.mission-section .section-eyebrow::before {
  background: var(--color-brand-green);
  width: 50px;
  height: 2px;
}

.mission-text p {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--color-text-muted);
}

.mission-image-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
}

.mission-image-wrapper img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out);
}

.mission-image-wrapper:hover img {
  transform: scale(1.05);
}

.mission-stat-overlay {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  background: rgba(26, 20, 16, 0.85);
  backdrop-filter: blur(10px);
  padding: 1.5rem 2rem;
  border-radius: var(--radius-sm);
}

.mission-stat-overlay .mission-stat-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--color-brand-green);
  line-height: 1;
  display: block;
}

.mission-stat-overlay .mission-stat-label {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: rgba(246, 241, 235, 0.7);
  margin-top: 0.25rem;
  display: block;
}

/* ============================================
   PROJECTS SECTION
   ============================================ */
.projects-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3rem;
}

.projects-header h2 {
  margin-bottom: 0;
}

/* Eyebrow on light sections: same dark color as view-all-link, not muted */
.section-eyebrow.light {
  color: var(--color-text);
}

.view-all-link {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap 0.3s var(--ease-out), color 0.2s;
}

.view-all-link:hover {
  gap: 1rem;
  color: var(--color-text);
}

.view-all-link-dark {
  color: var(--color-text);
}

.view-all-link-dark:hover {
  color: var(--color-brand-green);
}

/* Project Filter Tabs */
.project-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}

.project-tab {
  padding: 0.5rem 1.5rem;
  background: transparent;
  border: 1.5px solid var(--color-border, #ddd);
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 0.03em;
}

.project-tab:hover {
  border-color: var(--color-accent-deep);
  color: var(--color-accent-deep);
}

.project-tab.active {
  background: var(--color-brand-green);
  border-color: var(--color-brand-green);
  color: var(--color-bg-dark);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

/* Project archive now uses same 3-col vertical cards as news archive */
.post-type-archive-project .projects-grid {
  grid-template-columns: repeat(3, 1fr);
}


.other-projects-title {
  text-align: center;
  color: var(--color-accent-deep);
  margin-bottom: 3rem;
}

/* ============================================
   NEWS SECTION
   ============================================ */
.news-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3rem;
}

.news-header h2 {
  margin-bottom: 0;
}

.news-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2.5rem;
}

.news-featured {
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.news-featured-link {
  display: block;
  text-decoration: none;
}

.news-featured-image-wrapper {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.news-featured-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease-out);
}

.news-featured:hover .news-featured-image {
  transform: scale(1.04);
}

.news-featured-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,20,16,0.95) 0%, rgba(26,20,16,0.4) 40%, transparent 70%);
  z-index: 1;
}

.news-featured-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2.5rem;
  z-index: 2;
}

.news-featured-date {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-brand-green);
  margin-bottom: 0.75rem;
  display: block;
}

.news-featured-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--color-text-light);
  line-height: 1.3;
  margin-bottom: 0;
}

.news-list {
  display: flex;
  flex-direction: column;
}

.news-list-item {
  padding: 1.75rem 0;
  border-left: 3px solid transparent;
  transition: padding-left 0.4s var(--ease-out), border-color 0.4s var(--ease-out);
  text-decoration: none;
  display: block;
}

.news-list-item:first-child {
}


.news-list-item:hover {
  padding-left: 1.25rem;
  border-left-color: var(--color-brand-green);
}

.news-list-item .news-date,
.news-list-item .news-list-date {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

.news-list-item h4 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1.4;
  margin-bottom: 0.35rem;
  color: var(--color-text);
}

.news-list-item p {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  font-weight: 300;
  margin-bottom: 0;
}

/* ============================================
   PODCAST SECTION
   ============================================ */
.podcast-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.podcast-info p {
  font-size: 0.95rem;
  font-weight: 300;
  color: rgba(246, 241, 235, 0.6);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.podcast-episodes {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.episode-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem 1.5rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s;
}

.episode-card:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(186, 227, 183, 0.3);
}

.episode-play {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-brand-green);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s var(--ease-out);
}

.episode-card:hover .episode-play {
  transform: scale(1.1);
}

.episode-play svg {
  width: 14px;
  height: 14px;
  fill: var(--color-bg-dark);
  margin-left: 2px;
}

.episode-info {
  flex: 1;
}

.episode-info .ep-num {
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-brand-green);
}

.episode-info h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 400;
  color: var(--color-text-light);
  margin-top: 0.15rem;
  margin-bottom: 0;
}

.episode-duration {
  font-size: 0.75rem;
  color: rgba(246, 241, 235, 0.4);
  font-weight: 300;
}

.podcast-visual {
  position: relative;
}

.podcast-visual-img {
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.podcast-visual-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.waveform {
  position: absolute;
  bottom: -1.5rem;
  left: -1.5rem;
  right: 2rem;
  height: 60px;
  display: flex;
  align-items: flex-end;
  gap: 3px;
  padding: 1rem;
  background: rgba(26, 20, 16, 0.8);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-sm);
}

.waveform-bar {
  flex: 1;
  background: var(--color-brand-green);
  border-radius: 1px;
  animation: waveformPulse 1.2s ease-in-out infinite alternate;
}

@keyframes waveformPulse {
  0% { height: 20%; }
  100% { height: 90%; }
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background-color: var(--color-bg-dark);
  color: var(--color-text-light);
  padding-top: 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 2fr;
  gap: 3rem;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding) 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand .logo,
.footer-logo {
  margin-bottom: 1.25rem;
}

.footer-logo img:not(.footer-logo-img) {
  height: 32px;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer-logo img.footer-logo-img {
  height: 48px;
  width: auto;
  filter: none !important;
}

.footer-description {
  font-size: 0.85rem;
  font-weight: 300;
  color: rgba(246, 241, 235, 0.5);
  line-height: 1.7;
  max-width: 320px;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  color: rgba(255,255,255,0.6);
  transition: all var(--transition-fast);
}

.social-link:hover {
  background-color: var(--color-brand-green);
  color: var(--color-bg-dark);
  transform: translateY(-2px);
}

.footer-title {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-brand-green);
  margin-bottom: 1.25rem;
}

.footer-menu,
.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-menu li,
.footer-links li {
  margin-bottom: 0.4rem;
}

.footer-menu a,
.footer-links a {
  font-size: 0.85rem;
  font-weight: 300;
  color: rgba(246, 241, 235, 0.6);
  text-decoration: none;
  padding: 0.3rem 0;
  display: block;
  transition: color 0.3s, padding-left 0.3s var(--ease-out);
}

.footer-menu a:hover,
.footer-links a:hover {
  color: var(--color-brand-green);
  padding-left: 0.5rem;
}

.footer-contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-contact-list li {
  color: rgba(246, 241, 235, 0.6);
  font-size: 0.85rem;
  font-weight: 300;
  margin-bottom: 0.5rem;
}

.footer-contact-list a {
  color: rgba(246, 241, 235, 0.6);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-contact-list a:hover {
  color: var(--color-brand-green);
}

/* ============================================
   FOOTER CONTACT FORM
   ============================================ */
.footer-contact-col {
  display: flex;
  flex-direction: column;
  scroll-margin-top: calc(var(--header-height) + 1rem);
}

.footer-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.footer-form-group {
  display: flex;
  flex-direction: column;
}

.footer-form-group + .footer-form-group {
  margin-bottom: 0.75rem;
}

.footer-form-input {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  color: rgba(246, 241, 235, 0.9);
  font-family: var(--font-body);
  font-size: 0.85rem;
  padding: 0.7rem 1rem;
  transition: border-color 0.2s, background 0.2s;
  width: 100%;
  outline: none;
}

.footer-form-input::placeholder {
  color: rgba(246, 241, 235, 0.35);
}

.footer-form-input:focus {
  border-color: var(--color-brand-green);
  background: rgba(255, 255, 255, 0.09);
}

.footer-form-textarea {
  resize: vertical;
  min-height: 90px;
  margin-bottom: 0.75rem;
}

.footer-form-submit {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-brand-green);
  color: var(--color-bg-dark);
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: var(--font-weight-medium);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.7rem 1.5rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  align-self: flex-start;
}

.footer-form-submit:hover {
  background: #9dd49a;
  transform: translateY(-1px);
}

.footer-form-alert {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
}

.footer-form-success {
  background: rgba(74, 155, 94, 0.15);
  border: 1px solid rgba(74, 155, 94, 0.4);
  color: var(--color-brand-green);
}

.footer-form-error {
  background: rgba(200, 60, 60, 0.12);
  border: 1px solid rgba(200, 60, 60, 0.3);
  color: #e07070;
}

.contact-item {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  color: rgba(246, 241, 235, 0.6);
  font-size: 0.85rem;
  font-weight: 300;
  align-items: flex-start;
}

.contact-item svg {
  flex-shrink: 0;
  margin-top: 0.2rem;
  color: var(--color-brand-green);
}

.contact-item a {
  color: rgba(246, 241, 235, 0.6);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.contact-item a:hover {
  color: var(--color-brand-green);
}

.footer-bottom {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 2rem var(--container-padding);
  border-top: none;
  font-size: 0.7rem;
  font-weight: 300;
  color: #fff;
  text-align: center;
}

.footer-bottom-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.copyright {
  margin: 0;
}

.footer-tagline {
  margin: 0;
}

.footer-legal {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.footer-legal a {
  color: rgba(246, 241, 235, 0.3);
  text-decoration: none;
  font-size: 0.7rem;
  transition: color var(--transition-fast);
}

.footer-legal a:hover {
  color: var(--color-brand-green);
}

/* ============================================
   BACK TO TOP
   ============================================ */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  background-color: var(--color-brand-green);
  color: var(--color-bg-dark);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-base);
  z-index: 999;
}

.back-to-top.visible {
  display: flex;
}

.back-to-top:hover {
  background-color: #a0d69c;
  transform: translateY(-4px);
}

/* ============================================
   WP ADMIN BAR TOGGLE
   ============================================ */
.wp-admin-bar-toggle {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  width: 40px;
  height: 40px;
  background-color: rgba(26, 20, 16, 0.6);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  font-size: 18px;
  line-height: 1;
  transition: all 0.3s;
  backdrop-filter: blur(4px);
}

.wp-admin-bar-toggle:hover {
  background-color: rgba(26, 20, 16, 0.85);
  transform: scale(1.1);
}

body.admin-bar-hidden #wpadminbar { display: none !important; }
body.admin-bar-hidden { margin-top: 0 !important; }
body.admin-bar-hidden .site-header { top: 0 !important; }

/* ============================================
   ABOUT / MEIST PAGE
   ============================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 5rem;
  align-items: start;
  max-width: var(--container-max-width);
  margin: 0 auto;
}

/* 2/3 text + 1/3 gallery side-by-side layout */
.about-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 56px;
  align-items: start;
}

.about-layout--no-gallery {
  grid-template-columns: 1fr;
  max-width: 800px;
}

.about-text-col {
  min-width: 0;
}

.about-gallery-col {
  position: sticky;
  top: 100px;
  min-width: 0;
  overflow: hidden;
}

/* Legacy full-width fallback */
.about-content-full {
  max-width: 100%;
}

.about-heading {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: var(--color-text);
  margin-bottom: 2rem;
}

.about-lead {
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.8;
  color: var(--color-text);
  margin-bottom: 1.5rem;
}

.about-content .text-muted,
.about-text-col .text-muted {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

.about-cta {
  margin-top: 2.5rem;
}

.about-social {
  margin-top: 2rem;
}

.about-social .text-muted {
  margin-bottom: 0.75rem;
}

.about-social-links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.about-social-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.2s;
}

.about-social-link:hover {
  color: var(--color-accent-deep, #3D8B5E);
}

.about-sidebar-card {
  padding: 2rem;
  background: var(--color-bg);
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
}

.about-sidebar-card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--color-text);
  margin-bottom: 1rem;
}

.about-sidebar-card p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--color-text-muted);
}

.about-docs-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.about-docs-list li {
  padding: 0.5rem 0;
}

.about-docs-list a {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 0.3s;
}

.about-docs-list a:hover {
  color: var(--color-accent-deep);
}

.about-reports-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.about-report-year {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  text-decoration: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  transition: color 0.3s, border-color 0.3s;
  cursor: pointer;
}

.about-report-year:hover {
  color: var(--color-accent-deep);
  border-color: var(--color-accent-deep);
}

/* ============================================
   ABOUT GALLERY
   ============================================ */
.about-gallery-section {
  padding-top: 0;
}

.about-gallery {
  columns: 3;
  column-gap: 1rem;
}

.about-gallery-item {
  display: block;
  position: relative;
  break-inside: avoid;
  margin: 0 0 1rem;
  overflow: hidden;
  border-radius: var(--radius-sm);
}

.about-gallery-item a {
  display: block;
}

.about-gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s var(--ease-out), filter 0.5s;
  filter: saturate(0.9);
}

.about-gallery-item:hover img {
  transform: scale(1.03);
  filter: saturate(1);
}

/* Credits overlay — shown when caption is set in Media Library */
.gallery-credits {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.4rem 0.65rem 0.45rem;
  background: linear-gradient(to top, rgba(26, 20, 16, 0.65) 0%, transparent 100%);
  color: rgba(246, 241, 235, 0.88);
  font-size: 0.68rem;
  font-style: normal;
  font-family: var(--font-body);
  letter-spacing: 0.04em;
  line-height: 1.3;
  pointer-events: none;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

@media (max-width: 768px) {
  .about-gallery { columns: 2; }
}

@media (max-width: 480px) {
  .about-gallery { columns: 1; }
}

/* Hide photos beyond initial count until "Load more" is clicked */
.about-gallery-item[data-gallery-hidden] {
  display: none;
}

/* Load more button */
.gallery-load-more-wrap {
  text-align: center;
  margin-top: 2.5rem;
  padding-bottom: 0.5rem;
}

.gallery-load-more-btn {
  background: var(--color-brand-green);
  color: var(--color-bg-dark);
  border-color: var(--color-brand-green);
}

.gallery-load-more-btn:hover {
  background: #a0d69c;
  color: var(--color-bg-dark);
  border-color: #a0d69c;
}

/* ============================================
   PAGINATION
   ============================================ */
div.pagination {
  margin-top: 3.5rem;
  padding-top: 2rem;
}


nav.navigation.pagination {
  border-top: none;
}

.pagination .nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.4rem;
  height: 2.4rem;
  padding: 0 0.5rem;
  font-size: 0.85rem;
  font-family: var(--font-body);
  color: var(--color-text);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all 0.2s;
}

.pagination .page-numbers:hover {
  border-color: var(--color-brand-green);
  background: var(--color-brand-green);
  color: var(--color-bg-dark);
}

.pagination .page-numbers.current {
  background: var(--color-brand-green);
  color: var(--color-bg-dark);
  border-color: var(--color-brand-green);
}

.pagination .page-numbers.dots {
  border: none;
  cursor: default;
}

.pagination .page-numbers.dots:hover {
  background: transparent;
  color: var(--color-text);
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  max-width: var(--container-max-width);
  margin: 0 auto;
}

.contact-name {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.contact-role {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 2.5rem;
}

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

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--color-text-muted);
}

.contact-item svg {
  flex-shrink: 0;
  color: var(--color-accent-deep);
}

.contact-item a {
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 0.3s;
}

.contact-item a:hover {
  color: var(--color-accent-deep);
}

/* keep footer contact-item icons/links light-green on dark bg */
.footer-contact-col .contact-item svg,
.footer-contact-col .contact-item a:hover {
  color: var(--color-brand-green);
}

.contact-org-card {
  padding: 2.5rem;
  background: var(--color-bg);
  border-radius: var(--radius-sm);
}

.contact-org-card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--color-text);
  margin-bottom: 1rem;
}

.contact-org-name {
  font-size: 1rem;
  font-weight: 400;
  color: var(--color-text);
  margin-bottom: 1.5rem;
}

/* ============================================
   CONTACT FORM
   ============================================ */
.contact-form-wrapper {
  background: var(--color-bg);
  border-radius: var(--radius-sm);
  padding: 2.5rem;
}

.contact-form-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--color-text);
  margin-bottom: 2rem;
}

.contact-alert {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 400;
  margin-bottom: 1.5rem;
}

.contact-alert-success {
  background: rgba(186, 227, 183, 0.15);
  color: #2D5A3F;
  border: 1px solid rgba(186, 227, 183, 0.4);
}

.contact-alert-error {
  background: rgba(220, 53, 69, 0.08);
  color: #9B2C2C;
  border: 1px solid rgba(220, 53, 69, 0.2);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--color-text);
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  transition: border-color 0.3s, box-shadow 0.3s;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--color-brand-green);
  box-shadow: 0 0 0 3px rgba(186, 227, 183, 0.2);
}

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

.contact-submit {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  width: 100%;
  justify-content: center;
}

/* ============================================
   CONTACT FORM 7 STYLING
   ============================================ */

/* Remove default CF7 paragraph spacing */
.wpcf7 .cf7-field,
.wpcf7 .cf7-submit-wrap {
  margin: 0 0 1.25rem;
  padding: 0;
}
.wpcf7 .cf7-submit-wrap {
  margin-top: 0.5rem;
  margin-bottom: 0;
}

/* Input and textarea — same as .form-group input/textarea */
.wpcf7 .wpcf7-form-control:not([type="submit"]) {
  display: block;
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--color-text);
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  transition: border-color 0.3s, box-shadow 0.3s;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.wpcf7 .wpcf7-form-control:not([type="submit"]):focus {
  border-color: var(--color-brand-green);
  box-shadow: 0 0 0 3px rgba(186, 227, 183, 0.2);
}

.wpcf7 .wpcf7-textarea {
  resize: vertical;
  min-height: 130px;
}

/* Submit button */
.wpcf7 .wpcf7-submit {
  display: block;
  width: 100%;
  padding: 0.9rem 2rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background: var(--color-accent-deep, #2D5A3F);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.wpcf7 .wpcf7-submit:hover {
  background: var(--color-brand-green, #4A9B5E);
  transform: translateY(-1px);
}
.wpcf7 .wpcf7-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Validation error tip */
.wpcf7 .wpcf7-not-valid-tip {
  font-size: 0.8rem;
  color: #9B2C2C;
  margin-top: 0.3rem;
  display: block;
}
.wpcf7 .wpcf7-form-control.wpcf7-not-valid {
  border-color: rgba(220, 53, 69, 0.5);
}

/* Response output (success / error bar) */
.wpcf7 .wpcf7-response-output {
  margin: 1.25rem 0 0;
  padding: 0.9rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 400;
  border: none;
}
.wpcf7 .wpcf7-mail-sent-ok {
  background: rgba(186, 227, 183, 0.15);
  color: #2D5A3F;
  border: 1px solid rgba(186, 227, 183, 0.4) !important;
}
.wpcf7 .wpcf7-mail-sent-ng,
.wpcf7 .wpcf7-validation-errors,
.wpcf7 .wpcf7-spam-blocked {
  background: rgba(220, 53, 69, 0.08);
  color: #9B2C2C;
  border: 1px solid rgba(220, 53, 69, 0.2) !important;
}

/* Spinner */
.wpcf7 .wpcf7-spinner {
  display: none !important;
}

/* ============================================
   SINGLE POST HERO BANNER
   ============================================ */
.post-hero-banner {
  background: var(--color-bg);
  color: var(--color-text);
  padding: calc(var(--header-height, 92px) + 2.5rem) 0 2rem;
}

.post-hero-banner-inner {
  max-width: 100%;
}

.post-hero-eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: var(--font-weight-medium);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent-deep);
  margin-bottom: 1rem;
}

.post-hero-banner .entry-title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: var(--font-weight-normal);
  line-height: 1.3;
  color: var(--color-bg-dark);
  margin-bottom: 1.25rem;
}

.post-hero-subtitle {
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.6;
  color: rgba(26, 20, 16, 0.6);
  margin-bottom: 1rem;
}

.post-hero-banner .entry-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: rgba(26, 20, 16, 0.5);
}

.entry-meta span,
.entry-meta time {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.entry-meta svg,
.entry-meta i {
  width: 14px;
  height: 14px;
  opacity: 0.6;
}

/* Featured image below banner */
.post-featured-section {
  padding: 2rem 0 1.5rem;
}

.entry-featured-image {
  max-width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.entry-featured-image .featured-image {
  width: 100%;
  height: auto;
  display: block;
}

/* Project prev/next navigation */
.project-nav-section {
  padding: 2rem 0;
}


.project-nav {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 2rem;
}

.project-nav-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem 1.5rem;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--color-text);
  transition: border-color 0.2s, box-shadow 0.2s;
  max-width: 48%;
}

.project-nav-item:hover {
  border-color: var(--color-brand-green);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.project-nav-next {
  margin-left: auto;
  text-align: right;
}

.project-nav-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
}

.project-nav-next .project-nav-label {
  justify-content: flex-end;
}

.project-nav-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
}

@media (max-width: 600px) {
  .project-nav { flex-direction: column; }
  .project-nav-item { max-width: 100%; }
  .project-nav-next { text-align: center; }
  .project-nav-next .project-nav-label { justify-content: flex-start; }
}

/* Single project: image left, text right */
.project-body-layout {
  display: flex;
  flex-direction: row;
  gap: 3rem;
  align-items: flex-start;
  margin-bottom: 3rem;
}

.project-logo-col {
  flex-shrink: 0;
  width: 280px;
}

.project-logo-box {
  background: #fff;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.06);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-logo-box img {
  max-width: 100%;
  max-height: 260px;
  width: auto;
  height: auto;
  display: block;
}

.project-text-col {
  flex: 1;
  min-width: 0;
}

@media (max-width: 768px) {
  .project-body-layout {
    flex-direction: column;
  }
  .project-logo-col {
    width: 100%;
    max-width: 260px;
  }
}

/* Project meta blocks (gallery, partners, links) */
.project-meta-block {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--color-border, rgba(0,0,0,0.08));
}

.project-meta-heading {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--color-accent-deep);
  margin-bottom: 1.25rem;
  font-weight: var(--font-weight-normal);
}

.project-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
}

.project-gallery-item {
  display: block;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.project-gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s var(--ease-out);
}

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

.project-partners-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.project-partner-tag {
  background: var(--color-bg);
  border: 1px solid var(--color-border, rgba(0,0,0,0.1));
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}

.project-links-row {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--color-border, rgba(0,0,0,0.08));
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Post content area */
.post-content {
  padding: 3rem 0 2rem;
}

.post-content .container {
  max-width: var(--container-max-width);
}

/* Share buttons */
.entry-share {
  max-width: 100%;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
}


.entry-share h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--color-text);
}

.share-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.share-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: var(--font-weight-medium);
  color: var(--color-text);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  transition: all 0.3s;
  text-decoration: none;
}

.share-button:hover {
  background: var(--color-text);
  color: var(--color-bg);
  border-color: var(--color-text);
}

.share-button svg,
.share-button i {
  width: 16px;
  height: 16px;
}

/* Related posts */
/* Post Navigation */
.post-navigation-section {
  padding: 2rem 0;
  background: var(--color-bg);
}


.post-nav-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.post-nav-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--color-border, rgba(0,0,0,0.1));
  border-radius: var(--radius-sm);
  transition: border-color 0.2s, background 0.2s;
  color: var(--color-text);
}

.post-nav-item svg {
  flex-shrink: 0;
  color: var(--color-accent-deep);
}

.post-nav-item:hover {
  border-color: var(--color-brand-green);
  background: rgba(0,0,0,0.02);
}

.post-nav-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.post-nav-text-right {
  text-align: right;
  margin-left: auto;
}

.post-nav-next {
  justify-content: flex-end;
}

.post-nav-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent-deep);
}

.post-nav-title {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 600px) {
  .post-nav-inner {
    grid-template-columns: 1fr;
  }
  .post-nav-empty {
    display: none;
  }
}

.related-posts-section {
  padding: 3rem 0 4rem;
  background: var(--color-bg);
}

.related-posts-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--color-text);
  margin-bottom: 1.5rem;
}

/* CTA Banner */
.cta-banner {
  padding: 3rem 0;
}

.cta-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  background: var(--color-bg-dark);
  padding: 2.5rem 3rem;
  border-radius: var(--radius-md);
}

.cta-banner-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: var(--font-weight-normal);
  color: var(--color-text-light);
  margin-bottom: 0.35rem;
}

.cta-banner-desc {
  font-size: 0.9rem;
  color: rgba(246, 241, 235, 0.6);
  margin-bottom: 0;
}

.btn-dark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-bg-dark);
  color: var(--color-text-light);
  padding: 0.85rem 2rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: var(--font-weight-medium);
  letter-spacing: 0.05em;
  white-space: nowrap;
  transition: all 0.3s;
  text-decoration: none;
}

.btn-dark:hover {
  background: var(--color-text);
  color: var(--color-bg);
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .cta-banner-inner {
    flex-direction: column;
    text-align: center;
    padding: 2rem 1.5rem;
  }
}

/* ============================================
   ENTRY CONTENT (page.php, single posts)
   ============================================ */
.page-content .entry-content,
.post-content .entry-content {
  max-width: 100%;
}

/* Aligned images (float layout) */
.entry-content figure.alignright,
.entry-content .alignright {
  float: right !important;
  max-width: 260px !important;
  margin: 0.25rem 0 1.5rem 2rem !important;
  clear: right;
}
.entry-content figure.alignleft,
.entry-content .alignleft {
  float: left !important;
  max-width: 260px !important;
  margin: 0.25rem 2rem 1.5rem 0 !important;
  clear: left;
}
.entry-content figure.alignright img,
.entry-content figure.alignleft img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}
.entry-content .clearfix { clear: both; }

/* Override Gutenberg block max-width constraints */
.entry-content > *,
.entry-content .wp-block,
.entry-content.is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)),
.entry-content .is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.entry-content h2 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--color-text);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.entry-content h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--color-text);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.entry-content p {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.9;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

.entry-content a {
  color: var(--color-accent-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.3s;
}

.entry-content a:hover {
  color: var(--color-text);
}

.entry-content ul,
.entry-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.entry-content li {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

.entry-content blockquote {
  border-left: 3px solid var(--color-brand-green);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background: var(--color-bg);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.entry-content blockquote p {
  font-size: 1.05rem;
  font-style: italic;
  color: var(--color-text);
}

.entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  margin: 1.5rem 0;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (min-width: 1025px) {
  .main-navigation { display: block; }
  .mobile-menu-toggle { display: none; }
}

@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .hero-section { padding: 3rem 2rem; }
  .mission-grid { grid-template-columns: 1fr; gap: 3rem; }
  .mission-image-wrapper { max-width: 500px; }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .post-type-archive-project .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: 1fr; }
  .podcast-grid { grid-template-columns: 1fr; gap: 3rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-form-row { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .site-header { padding: 1.25rem 1.5rem; }
  .hero-section { padding: 3rem 1.5rem; }
  .hero-scroll-indicator { display: none; }
  .projects-grid { grid-template-columns: 1fr; }

  .projects-header,
  .news-header { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
  .back-to-top { bottom: 1rem; right: 1rem; width: 44px; height: 44px; }
}

/* ============================================
   HOMEPAGE — projects-first layout (compact intro + projects + news)
   ============================================ */

/* Compact intro block — same text as old hero, but no bg image */
/* padding-top accounts for the 92px fixed header + breathing room */
.home-masthead {
  background: var(--color-bg);
  padding-block: clamp(3rem, 5vw, 5rem);
  margin-top: 92px;
}

.home-masthead-desc {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  line-height: 1.5;
  color: var(--color-text, #1A1410);
  font-weight: 400;
  text-align: center;
  max-width: 100%;
  border: none;
  padding-left: 0;
  margin-bottom: 0.5rem;
}
.home-masthead-sub {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  margin-top: 0;
}

/* ─── HOMEPAGE CLEAN CARD GRID (matches uralic-full-site 2 design) ─── */
.hp-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  background: transparent;
  border: none;
}

.hp-proj-card {
  background: #fff;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--color-text);
  border: 1px solid var(--color-border, #DDD5C8);
  border-radius: var(--radius-sm, 8px);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}
.hp-proj-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.hp-proj-card-img {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--color-border, #DDD5C8);
}
.hp-proj-card-img img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.4s ease;
}
.hp-proj-card:hover .hp-proj-card-img img {
  transform: scale(1.04);
}

.hp-proj-card-body {
  padding: 1.5rem 1.5rem 0.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.hp-proj-card-date {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted, #8C7B6E);
}
.hp-proj-card-body h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-text);
}
.hp-proj-card-body p {
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--color-text-secondary, #4A3F35);
  font-weight: 300;
  flex: 1;
}

.hp-proj-card-foot {
  padding: 0.75rem 1.5rem;
}
.hp-card-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text);
  padding: 0.45rem 1rem;
  border: 1px solid var(--color-brand-green);
  border-radius: var(--radius-full, 999px);
  transition: gap 0.2s, background 0.2s, color 0.2s;
}
.hp-proj-card:hover .hp-card-arrow {
  gap: 0.75rem;
  background: var(--color-brand-green, #BAE3B7);
  color: var(--color-bg-dark, #1A1410);
  border-color: var(--color-brand-green, #BAE3B7);
}

@media (max-width: 1024px) {
  .hp-cards-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .hp-cards-grid { grid-template-columns: 1fr; }
}

/* Projects + News sections */
.home-projects-section,
.home-news-section {
  padding-top: 4rem;
  padding-bottom: 4rem;
}


/* Full-height image card: image fills entire card, text overlaid at bottom */




/* Slightly taller on large screens for visual impact */
@media (min-width: 1200px) {
  }

@media (max-width: 768px) {
  .home-intro-section {
    padding-top: calc(72px + 2rem);
    padding-bottom: 2rem;
  }
  .home-projects-section {
    padding-top: 2.5rem;
  }
  }

/* ============================================
   HOME STATS STRIP — dark band between intro & projects
   ============================================ */
.home-stats-strip {
  background: var(--color-bg-dark);
  padding: 3.5rem 0;
}

.stats-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.stat-item {
  text-align: center;
  flex: 1;
}

.stat-number-wrap {
  display: flex;
  align-items: baseline;
  justify-content: center;
  line-height: 1;
  margin-bottom: 0.6rem;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  font-weight: 700;
  color: var(--color-brand-green);
  line-height: 1;
}

.stat-suffix {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--color-brand-green);
  line-height: 1;
  margin-left: 0.05em;
}

.stat-label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(246, 241, 235, 0.50);
}

.stat-divider {
  width: 1px;
  height: 3.5rem;
  background: rgba(246, 241, 235, 0.12);
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .stats-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem 1rem;
  }
  .stat-divider { display: none; }
}

/* ============================================
   RECAPTCHA — hide floating badge
   (legal notice added inline in footer form)
   ============================================ */
.grecaptcha-badge {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* reCAPTCHA inline note in footer */
.footer-recaptcha-note {
  margin-top: 0.75rem;
  font-size: 0.68rem;
  color: rgba(246, 241, 235, 0.3);
  line-height: 1.5;
}

.footer-recaptcha-note a {
  color: rgba(246, 241, 235, 0.4);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--transition-fast);
}

.footer-recaptcha-note a:hover {
  color: var(--color-brand-green);
}

/* ============================================
   SHARE BUTTONS — extra breathing room
   ============================================ */
.entry-share {
  margin-top: 3rem;
  padding-top: 2rem;
}

.share-buttons {
  gap: 0.85rem;
  margin-top: 0.5rem;
}

/* ============================================
   NEW TWO-COLUMN POST LAYOUT (single.php, single-project.php)
   ============================================ */

/* Breadcrumb */
.post-breadcrumb {
  margin-top: 92px;
  padding: 1.25rem 0;
  background: var(--color-bg);
}
.post-breadcrumb-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
}
.post-breadcrumb a {
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.post-breadcrumb a:hover { color: var(--color-accent-deep); }
.post-breadcrumb-sep { font-size: 10px; opacity: 0.4; }
.post-breadcrumb-current { color: var(--color-text-secondary); }

/* Two-column grid */
.post-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 4rem;
  padding: 4rem 0;
  align-items: start;
}

/* Meta row */
.post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1.25rem;
}
.post-date {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.post-read-time {
  font-size: 12px;
  color: var(--color-text-muted);
}
.post-read-time::before {
  content: '·';
  margin-right: 8px;
  opacity: 0.4;
}

/* Article title */
.post-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  line-height: 1.1;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 1.5rem;
}

/* Lead paragraph */
.post-lead {
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--color-text-secondary);
  font-weight: 300;
  border-left: 3px solid var(--color-brand-green);
  padding-left: 1.5rem;
  margin-bottom: 2.5rem;
}

/* Featured image figure */
.post-figure {
  margin-bottom: 2.5rem;
}
.post-figure img {
  width: 100%;
  aspect-ratio: 16 / 8;
  object-fit: cover;
  display: block;
  border-radius: 2px;
  margin: 0;
  height: auto;
}

/* Share row */
.post-share {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 2rem 0;
  margin-top: 2.5rem;
}
.post-share-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--color-text-secondary);
  text-decoration: none;
  padding: 6px 14px;
  border: 1px solid var(--color-border);
  border-radius: 3px;
  background: var(--color-bg);
  transition: all 0.2s;
}
.share-btn:hover {
  border-color: var(--color-text-secondary);
  color: var(--color-text);
  background: var(--color-surface2, #F0EAE1);
}

/* Prev / Next grid nav */
.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--color-border, rgba(0,0,0,0.08));
  border: 1px solid var(--color-border, rgba(0,0,0,0.08));
  margin-top: 2.5rem;
}
.post-nav .post-nav-item {
  background: var(--color-bg);
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  transition: background 0.2s;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}
.post-nav .post-nav-item:hover {
  background: var(--color-surface2, #F0EAE1);
  border-color: transparent !important;
  box-shadow: none !important;
}
.post-nav-dir {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.post-nav-item--prev .post-nav-dir::before { content: '← '; }
.post-nav-item--next { text-align: right; align-items: flex-end; }
.post-nav-item--next .post-nav-dir::after { content: ' →'; }
.post-nav-item--empty { cursor: default; }
.post-nav-item--empty:hover { background: var(--color-bg) !important; }
.post-nav .post-nav-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-text);
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}

/* Sidebar */
.post-sidebar {
  position: sticky;
  top: calc(92px + 3rem);
  align-self: start;
}
.sidebar-block {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.sidebar-block:last-child { margin-bottom: 0; }
.sidebar-title {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 1.25rem;
  padding-bottom: 12px;
}

.related-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding-block: 14px;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s;
}
.related-item:first-of-type { padding-top: 0; }
.related-item:last-of-type { border-bottom: none; padding-bottom: 0; }
.related-item:hover { opacity: 0.7; }
.related-thumb {
  width: 72px;
  min-width: 72px;
  height: 48px;
  overflow: hidden;
  border-radius: 2px;
  background: var(--color-border, #DDD5C8);
  flex-shrink: 0;
}
.related-thumb img {
  width: 72px !important;
  height: 48px !important;
  object-fit: cover;
  display: block;
}
.related-date {
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  display: block;
  margin-bottom: 4px;
}
.related-title {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--color-text);
}

/* CTA sidebar block */
.sidebar-cta {
  background: var(--color-bg-dark) !important;
  border-color: var(--color-bg-dark) !important;
}
.sidebar-cta .sidebar-title {
  color: rgba(246, 241, 235, 0.4);
  border-color: rgba(255,255,255,0.08);
}
.sidebar-cta p {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(246, 241, 235, 0.6);
  font-weight: 300;
  margin-bottom: 1.5rem;
}
.btn-cta {
  display: block;
  width: 100%;
  text-align: center;
  padding: 11px;
  background: var(--color-brand-green);
  color: var(--color-bg-dark);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 3px;
  transition: filter 0.2s;
}
.btn-cta:hover { filter: brightness(0.92); }

/* Project details definition list */
.project-info-dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem 1rem;
  font-size: 0.85rem;
}
.project-info-dl dt {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  padding-top: 2px;
}
.project-info-dl dd {
  color: var(--color-text);
  font-weight: 400;
}

/* Responsive */
@media (max-width: 1024px) {
  .post-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 3rem 0;
  }
  .post-sidebar {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
  .sidebar-block { margin-bottom: 0; }
}
@media (max-width: 640px) {
  .post-sidebar { grid-template-columns: 1fr; }
  .post-nav { grid-template-columns: 1fr; }
  .post-layout { padding: 2rem 0; }
}

/* ============================================
   ABOUT-PAGE PHOTO SLIDER  (2-up horizontal)
   ============================================ */
.about-slider {
  width: 100%;
}

/* Stage clips the scrolling track */
.about-slider-stage {
  overflow: hidden;
}

/* Track slides horizontally */
.about-slider-track {
  display: flex;
  gap: 0;
  transition: transform 0.45s ease;
  will-change: transform;
}

/* Each slide: 1 visible at a time in sidebar (100% of stage width) */
.about-slider-slide {
  flex: 0 0 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.about-slider-slide a {
  display: block;
  width: 100%;
  height: 100%;
  cursor: zoom-in;
}
.about-slider-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.about-slider-slide a:hover img { transform: scale(1.04); }

/* Bottom bar: credits left, nav right */
.about-slider-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 2px 0;
  min-height: 36px;
}
.about-slider-credits {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  flex: 1;
  padding-right: 1rem;
}

/* Nav: arrows + counter grouped together */
.about-slider-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.about-slider-counter {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  white-space: nowrap;
  min-width: 3rem;
  text-align: center;
}

/* Arrows — below the images, light theme */
.about-slider-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--color-border, #DDD5C8);
  background: transparent;
  color: var(--color-text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.about-slider-btn:hover:not(:disabled) {
  background: var(--color-surface2, #F0EAE1);
  border-color: var(--color-text-muted);
}
.about-slider-btn:disabled {
  opacity: 0.3;
  cursor: default;
}

@media (max-width: 900px) {
  .about-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .about-gallery-col {
    position: static;
  }
  .about-slider-slide { aspect-ratio: 4 / 3; }
}

/* ============================================
   ABOUT-PAGE GALLERY LIGHTBOX
   ============================================ */
.gallery-lb-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(20, 18, 15, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.28s ease;
}
.gallery-lb-overlay[hidden] { display: none; }
.gallery-lb-overlay.is-open  { opacity: 1; }

/* Main content box */
.gallery-lb-content {
  position: relative;
  max-width: min(90vw, 1100px);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Image wrapper */
.gallery-lb-img-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: calc(90vh - 56px);   /* leave room for footer */
  overflow: hidden;
}
.gallery-lb-img-wrap img {
  max-width: 100%;
  max-height: calc(90vh - 56px);
  width: auto;
  height: auto;
  display: block;
  border-radius: 3px;
  object-fit: contain;
}

/* Credits bar */
.gallery-lb-footer {
  width: 100%;
  padding: 10px 14px 4px;
  text-align: center;
}
.gallery-lb-footer[hidden] { display: none; }
.gallery-lb-credits {
  display: block;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.03em;
}

/* Close button */
.gallery-lb-close {
  position: fixed;
  top: 20px;
  right: 24px;
  z-index: 10001;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.08);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.gallery-lb-close:hover {
  background: rgba(255,255,255,0.18);
  transform: scale(1.1);
}

/* Prev / Next arrows */
.gallery-lb-prev,
.gallery-lb-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10001;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.08);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.gallery-lb-prev { left: 20px; }
.gallery-lb-next { right: 20px; }
.gallery-lb-prev:hover,
.gallery-lb-next:hover {
  background: rgba(255,255,255,0.18);
}
.gallery-lb-prev:hover { transform: translateY(-50%) translateX(-2px); }
.gallery-lb-next:hover { transform: translateY(-50%) translateX( 2px); }

/* Cursor on gallery thumbnails */
.gallery-lb-trigger { cursor: zoom-in; }

@media (max-width: 640px) {
  .gallery-lb-prev { left: 8px; }
  .gallery-lb-next { right: 8px; }
  .gallery-lb-close { top: 12px; right: 12px; }
}


/* ═══════════════════════════════════════════════════════════
   BLACKLIST CARDS
   ═══════════════════════════════════════════════════════════ */

.blacklist-section {
  margin-top: var(--header-height, 92px);
  padding: 60px 24px;
  max-width: 100%;
}

.blacklist-header {
  max-width: 1240px;
  margin: 0 auto 48px;
  text-align: center;
}

.blacklist-header__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #b8332f;
  margin-bottom: 16px;
}

.blacklist-header__label::before,
.blacklist-header__label::after {
  content: '';
  width: 24px;
  height: 1px;
  background: #b8332f;
  opacity: 0.4;
}

.blacklist-header h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 14px;
}

.blacklist-header p {
  color: #7d776d;
  font-size: 0.95rem;
  line-height: 1.65;
  max-width: 640px;
  margin: 0 auto;
  font-weight: 300;
}

.blacklist-header p a {
  color: #b8332f;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Grid */
.blacklist-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1240px;
  margin: 0 auto;
}

/* Card */
.bl-card {
  background: #ffffff;
  border: 1px solid #d6d0c6;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.bl-card:hover {
  border-color: #BAE3B7;
  box-shadow: 0 8px 32px rgba(186, 227, 183, 0.25);
}

.bl-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: #BAE3B7;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.bl-card:hover::before { opacity: 1; }

/* Photo */
.bl-card__photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  background: #f0ece5;
}

.bl-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(40%);
  transition: filter 0.3s ease;
}

.bl-card:hover .bl-card__photo img { filter: grayscale(0%); }

.bl-card__photo--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f0ece5 0%, #e8e3da 100%);
}

.bl-card__photo--empty svg { width: 40px; height: 40px; opacity: 0.25; }

/* Content */
.bl-card__content {
  flex: 1;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.bl-card__name {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 2px;
}

.bl-card__name-cyrillic {
  font-size: 0.78rem;
  color: #7d776d;
  font-weight: 300;
  font-style: italic;
  margin-bottom: 14px;
}

/* Meta rows */
.bl-card__meta {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 16px;
}

.bl-card__meta-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.8rem;
  line-height: 1.45;
}

.bl-card__meta-row svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  margin-top: 2px;
  color: #7d776d;
}

.bl-card__meta-value {
  color: #4a453d;
  font-weight: 500;
}

/* Source links */
.bl-card__sources {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-top: auto;
}

.bl-card__link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.76rem;
  font-weight: 500;
  color: #1a1714;
  text-decoration: none;
  transition: color 0.2s ease;
}

.bl-card__link:hover { color: #4a453d; }

.bl-card__link svg {
  width: 12px;
  height: 12px;
  transition: transform 0.2s ease;
}

.bl-card__link:hover svg { transform: translate(2px, -2px); }

/* Empty state */
.blacklist-empty {
  text-align: center;
  color: #7d776d;
  padding: 60px 24px;
}

/* Responsive */
@media (max-width: 900px) {
  .blacklist-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .blacklist-grid { grid-template-columns: 1fr; }
  .bl-card__content { padding: 16px; }
}







/* Masthead highlight */
.masthead-highlight {
  background: none;
  color: #581A1B;
  font-style: italic;
  font-weight: 400;
  font-size: inherit;
  padding: 0;

}

/* ============================================
   INNER PAGE SPACING FIXES
   ============================================ */
.about-section {
  padding-top: 2rem !important;
  padding-bottom: 3rem !important;
}

.page-hero,
.archive-hero {
  padding-top: calc(var(--header-height, 92px) + 2.5rem) !important;
  padding-bottom: 2rem !important;
}

.post-hero-banner {
  padding: calc(var(--header-height, 92px) + 2.5rem) 0 2rem !important;
}

.entry-content {
  padding-top: 1.5rem;
}

/* ============================================
   GLOBAL SPACING — FIXES ALL INNER PAGES
   ============================================ */

/* Section base padding */
section.section {
  padding-top: 2.5rem;
  padding-bottom: 3rem;
}

/* Post/project single layout top spacing */
.post-layout {
  padding-top: 2rem !important;
  padding-bottom: 3rem !important;
}

/* Breadcrumb top spacing */
.post-breadcrumb {
  margin-top: var(--header-height, 92px) !important;
}

.about-section--top {
  margin-top: calc(var(--header-height, 92px) + 1.5rem);
  padding-top: 0 !important;
}

/* About layout - text and image aligned at top */
.about-layout {
  align-items: start !important;
}
.about-text-col,
.about-gallery-col {
  padding-top: 0 !important;
  margin-top: 0 !important;
}
/* Remove about-section--top leftover */
.about-section--top {
  margin-top: 0 !important;
}

/* Mobile nav fixes */
.mobile-navigation.active {
  display: flex !important;
  max-height: 100vh !important;
  overflow-y: auto !important;
}
.mobile-nav-menu,
.mobile-nav-menu li,
.mobile-nav-menu a {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  color: #F6F1EB !important;
}

/* ============================================
   CARD FOOTER & READ MORE BUTTON
   ============================================ */
.card-foot {
  padding: 0.75rem 1.25rem;
  margin-top: auto;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent-deep, #3D8B5E);
  text-decoration: none;
  transition: gap 0.2s, color 0.2s;
}

.card-link svg {
  transition: transform 0.2s;
}

.card-link:hover {
  color: var(--color-accent-deep, #3D8B5E);
  gap: 0.65rem;
}

.card-link:hover svg {
  transform: translateX(2px);
}

.card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--color-border, #DDD5C8);
  border-radius: var(--radius-sm, 8px);
  overflow: hidden;
  text-decoration: none;
  color: var(--color-text);
  transition: box-shadow 0.2s, transform 0.2s;
}

.card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.card-content {
  padding: 1.25rem 1.25rem 0.5rem;
  flex: 1;
}

.card-image-wrapper {
  display: block;
  overflow: hidden;
  aspect-ratio: 16/10;
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

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

.card-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.card-title a {
  color: var(--color-text);
  text-decoration: none;
}

.card-title a:hover {
  color: var(--color-accent-deep);
}

.card-description {
  font-size: 0.85rem;
  line-height: 1.65;
  color: var(--color-text-secondary, #4A3F35);
  font-weight: 300;
}

.card-meta {
  margin-bottom: 0.5rem;
}

.card-date {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}


/* Hide EST language switcher */
.lang-switcher {
  display: none !important;
}

/* Mobile menu: force light text on dark overlay (Customizer sets .site-header a dark) */
.mobile-navigation .mobile-nav-menu a {
  color: var(--color-text-light, #F6F1EB) !important;
  font-size: 2rem;
}
.mobile-navigation .mobile-nav-menu a:hover {
  color: var(--color-brand-green, #BAE3B7) !important;
}
.mobile-navigation .mobile-nav-close {
  color: var(--color-text-light, #F6F1EB) !important;
}
