/* mediCuba Switzerland - Premium Design System & Components */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  --primary-hsl: 354, 70%, 45%;
  --primary: hsl(var(--primary-hsl));
  --primary-hover: hsl(354, 70%, 38%);
  --primary-light: hsl(354, 70%, 95%);
  --accent-hsl: 173, 75%, 28%;
  --accent: hsl(var(--accent-hsl));
  --accent-hover: hsl(173, 75%, 22%);
  --accent-light: hsl(173, 75%, 94%);
  --bg-sand: hsl(38, 20%, 97%);
  --bg-card: #ffffff;
  --text-dark: hsl(210, 29%, 16%);
  --text-muted: hsl(210, 10%, 45%);
  --border-light: hsl(210, 14%, 90%);
  --white: #ffffff;
  
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.08);
  
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --transition-smooth: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
  --max-width: 1200px;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-sand);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: var(--transition-smooth);
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.25;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px auto;
}

.section-header h2 {
  font-size: 2.25rem;
  margin-bottom: 16px;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--primary);
  border-radius: var(--radius-full);
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* Page Animations */
.view-section {
  display: none;
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.view-section.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* Button Component */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition-smooth);
  gap: 8px;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(211, 47, 47, 0.25);
  color: var(--white);
}

.btn-accent {
  background-color: var(--accent);
  color: var(--white);
}

.btn-accent:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(13, 148, 136, 0.25);
  color: var(--white);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--accent);
  color: var(--accent);
}

.btn-outline:hover {
  background-color: var(--accent);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-white {
  background-color: var(--white);
  color: var(--text-dark);
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Header & Sticky Navbar */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition-smooth);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 85px;
  flex-wrap: nowrap;
}

.logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  height: 100%;
}

.logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
  display: block;
  transition: var(--transition-smooth);
}

.logo-img:hover {
  transform: scale(1.02);
}

.logo-img-footer {
  height: 45px;
  width: auto;
  object-fit: contain;
  display: block;
  filter: brightness(0) invert(1);
  opacity: 0.95;
  margin-bottom: 20px;
  transition: var(--transition-smooth);
}

.logo-img-footer:hover {
  opacity: 1;
}

.partner-logo-footer {
  height: 68px; /* larger height for stacked layout */
  width: auto;
  object-fit: contain;
  display: block;
  filter: brightness(0) invert(1); /* Invert to pure white for dark background readability; remove this line if you upload a pre-colored logo */
  opacity: 0.85;
  transition: var(--transition-smooth);
}

.partner-logo-footer.zewo-logo {
  height: 60px; /* Zewo logo is more square/circular, keeping it slightly shorter visually balances it */
}

.partner-logo-footer:hover {
  opacity: 1;
}

.footer-partner-logos {
  display: flex;
  flex-direction: column; /* stacked under each other */
  align-items: flex-start; /* align left */
  gap: 20px;
  margin-top: 25px;
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 4px;
}

.nav-link {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-dark);
  padding: 6px 12px;
  border-radius: var(--radius-full);
}

.nav-link:hover, .nav-link.active {
  color: var(--accent);
  background-color: var(--accent-light);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.lang-switch {
  display: flex;
  gap: 2px;
  background-color: rgba(0, 0, 0, 0.05);
  padding: 3px;
  border-radius: var(--radius-full);
}

.lang-btn {
  background: none;
  border: none;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  color: var(--text-muted);
}

.lang-btn.active {
  background-color: var(--white);
  color: var(--text-dark);
  box-shadow: var(--shadow-sm);
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

/* Premium Hover Navigation Dropdowns */
.nav-menu li {
  position: relative;
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(0);
  background-color: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 8px 0;
  min-width: 210px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-menu li:hover .nav-dropdown {
  opacity: 1;
  pointer-events: auto;
}

.dropdown-item {
  display: block;
  padding: 8px 20px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-dark) !important;
  text-align: left;
  transition: var(--transition-smooth);
  background: none !important;
  border-radius: 0 !important;
}

.dropdown-item:hover {
  background-color: var(--accent-light) !important;
  color: var(--accent) !important;
}

/* Sub-items (nested menu entries) */
.dropdown-sub-item {
  padding-left: 32px !important;
  font-size: 0.78rem;
  color: var(--text-muted) !important;
  font-weight: 500;
  border-left: 2px solid transparent;
}
.dropdown-sub-item::before {
  content: '↳ ';
  margin-right: 4px;
  color: var(--accent);
}
.dropdown-sub-item:hover {
  border-left-color: var(--accent);
}

/* Home Hero Slider */
.hero-slider {
  position: relative;
  height: 560px;
  overflow: hidden;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.slider-container {
  height: 100%;
  position: relative;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  z-index: 1;
  transition: opacity 0.8s ease-in-out;
}

.slide.active {
  opacity: 1;
  z-index: 2;
}

.slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.55) contrast(1.05);
}

.slide-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 80px 24px;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 60%, rgba(0,0,0,0) 100%);
  color: var(--white);
  z-index: 3;
}

.slide-content-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 80px;
}

.slide h1 {
  font-size: 3rem;
  color: var(--white);
  margin-bottom: 24px;
  max-width: 800px;
  animation: slideUp 0.6s ease forwards;
}

.slide .btn {
  animation: slideUp 0.8s ease forwards;
}

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

.slider-arrows {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 10;
  pointer-events: none;
}

.slider-arrow {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-full);
  background-color: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
  pointer-events: auto;
}

.slider-arrow:hover {
  background-color: var(--primary);
  border-color: var(--primary);
  transform: scale(1.05);
}

.slider-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: var(--radius-full);
  background-color: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.slider-dot.active {
  background-color: var(--primary);
  width: 30px;
}

/* Cards & Containers */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
}

.card {
  background-color: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(13, 148, 136, 0.2);
}

.card-img-wrapper {
  position: relative;
  padding-top: 56.25%; /* 16:9 ratio */
  overflow: hidden;
}

.card-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.card:hover .card-img {
  transform: scale(1.05);
}

.card-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background-color: var(--accent);
  color: var(--white);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.card-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  /* Truncation over 2 lines */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 3.2em;
}

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-top: 1px solid var(--border-light);
  background-color: rgba(0, 0, 0, 0.01);
}

/* Testimonial Block */
.testimonial-block {
  /* Lighter, neutral background (was a green gradient) to fit the current design. */
  background: linear-gradient(135deg, var(--bg-sand) 0%, hsl(210, 16%, 95%) 100%);
  color: var(--text-dark);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 60px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.testimonial-block::before {
  content: '“';
  position: absolute;
  top: -20px;
  left: 40px;
  font-size: 15rem;
  color: var(--accent-light);
  font-family: serif;
  line-height: 1;
}

.testimonial-carousel {
  position: relative;
  z-index: 2;
}

.testimonial-slide {
  display: none;
  animation: fadeIn 0.5s ease;
}

.testimonial-slide.active {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.testimonial-avatar {
  width: 90px;
  height: 90px;
  border-radius: var(--radius-full);
  border: 4px solid var(--border-light);
  object-fit: cover;
  margin-bottom: 24px;
}

.testimonial-text {
  font-size: 1.4rem;
  font-style: italic;
  font-weight: 300;
  max-width: 850px;
  margin-bottom: 24px;
  line-height: 1.7;
}

.testimonial-author {
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--accent);
}

.testimonial-position {
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.slide-subtitle {
  font-size: 1.15rem;
  font-weight: 300;
  margin: 12px 0 20px;
  max-width: 640px;
}

/* What We Do Grid & Modernized Cards */
.wwd-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

/* Card Pillar Themes */
.pillar-tech {
  --pillar-color: var(--accent);
  --pillar-bg: var(--accent-light);
  --pillar-glow: rgba(13, 148, 136, 0.12);
  --pillar-border: rgba(13, 148, 136, 0.3);
}

.pillar-pharma {
  --pillar-color: hsl(150, 60%, 35%);
  --pillar-bg: hsl(150, 60%, 95%);
  --pillar-glow: rgba(16, 185, 129, 0.12);
  --pillar-border: rgba(16, 185, 129, 0.3);
}

.pillar-maternal {
  --pillar-color: var(--primary);
  --pillar-bg: var(--primary-light);
  --pillar-glow: rgba(220, 38, 38, 0.12);
  --pillar-border: rgba(220, 38, 38, 0.3);
}

.wwd-card {
  position: relative;
  text-align: center;
  background-color: var(--white);
  padding: 45px 35px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  overflow: hidden;
}

.wwd-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--pillar-color);
  opacity: 0;
  transition: var(--transition-smooth);
}

.wwd-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px var(--pillar-glow), var(--shadow-md);
  border-color: var(--pillar-border);
}

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

.wwd-icon {
  width: 76px;
  height: 76px;
  background-color: var(--pillar-bg);
  color: var(--pillar-color);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  margin: 0 auto 28px auto;
  transition: var(--transition-smooth);
}

.wwd-card:hover .wwd-icon {
  transform: scale(1.1) rotate(3deg);
}

.wwd-icon svg {
  width: 38px;
  height: 38px;
  stroke-width: 1.75;
}

.wwd-card h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 14px;
  transition: var(--transition-smooth);
}

.wwd-card:hover h3 {
  color: var(--pillar-color);
}

.wwd-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Donation Strip */
.donate-cta-strip {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  box-shadow: var(--shadow-md);
}

.donate-cta-content h2 {
  color: var(--white);
  font-size: 2rem;
  margin-bottom: 10px;
}

.donate-cta-content p {
  font-size: 1.1rem;
  color: var(--primary-light);
}

/* Newsletter Subscription */
.newsletter-section {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  padding: 50px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.newsletter-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.newsletter-info h2 {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.newsletter-info p {
  color: var(--text-muted);
}

.newsletter-form {
  display: flex;
  gap: 12px;
}

.form-input {
  flex-grow: 1;
  padding: 14px 20px;
  border-radius: var(--radius-full);
  border: 2px solid var(--border-light);
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.form-input:focus {
  outline: none;
  border-color: var(--accent);
}

/* Interactive Cuba Map Component */
.map-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  background-color: var(--white);
  padding: 40px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.map-svg-container {
  position: relative;
  background-color: #f0f7f7;
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.cuba-map-svg {
  width: 100%;
  height: auto;
  max-height: 400px;
}

.province-path {
  fill: #e0e9e9;
  stroke: #ffffff;
  stroke-width: 1.5;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.province-path:hover, .province-path.active {
  fill: var(--accent-light);
  stroke: var(--accent);
  stroke-width: 2;
}

.map-pin {
  fill: var(--primary);
  stroke: #ffffff;
  stroke-width: 1.5;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.map-pin:hover {
  transform: scale(1.3);
  fill: var(--accent);
}

.map-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  border-left: 1px solid var(--border-light);
  padding-left: 40px;
}

.province-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 350px;
  overflow-y: auto;
  padding-right: 10px;
}

.province-item {
  display: flex;
  justify-content: space-between;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-smooth);
  font-weight: 500;
}

.province-item:hover, .province-item.active {
  background-color: var(--accent-light);
  color: var(--accent);
}

.province-count {
  background-color: var(--accent);
  color: var(--white);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
}

.map-tooltip {
  position: absolute;
  background-color: rgba(44, 62, 80, 0.95);
  color: var(--white);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 50;
  box-shadow: var(--shadow-md);
}

/* Category Tab Menus & Subnavigation */
.sub-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
}

.sub-tab-btn {
  background-color: var(--white);
  border: 1px solid var(--border-light);
  padding: 10px 24px;
  border-radius: var(--radius-full);
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.sub-tab-btn.active {
  background-color: var(--accent);
  color: var(--white);
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.2);
}

/* Category Banner */
.category-banner {
  background: linear-gradient(to right, rgba(13,148,136,0.9), rgba(13,148,136,0.6)), url('../assets/banner_cuba_health_1.jpg');
  background-size: cover;
  background-position: center;
  height: 250px;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 40px;
  color: var(--white);
  box-shadow: var(--shadow-sm);
  margin-bottom: 40px;
}

.category-banner h1 {
  font-size: 2.5rem;
  color: var(--white);
}

.breadcrumbs {
  display: flex;
  gap: 8px;
  font-size: 0.9rem;
  opacity: 0.9;
  margin-bottom: 12px;
}

.breadcrumbs a {
  color: var(--white);
  text-decoration: underline;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 50px;
}

.page-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
  background-color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  transition: var(--transition-smooth);
}

.page-btn:hover, .page-btn.active {
  background-color: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

/* Project Details Page Specific Styles */
.proj-detail-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
}

.proj-detail-body {
  background-color: var(--white);
  padding: 40px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.proj-lead-text {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 30px;
  line-height: 1.6;
}

.proj-regular-text {
  font-size: 1.05rem;
  color: var(--text-dark);
  margin-bottom: 30px;
}

/* Style-1 Highlighting block with image and text */
.highlight-block-style1 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  background-color: var(--primary-light);
  border-left: 5px solid var(--primary);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 40px;
  align-items: center;
}

.highlight-style1-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 250px;
}

.highlight-style1-content {
  padding: 30px;
}

.highlight-style1-content p {
  font-size: 1.15rem;
  font-style: italic;
  font-weight: 600;
  color: var(--primary-hover);
  line-height: 1.6;
}

/* Core Data Banner with Dynamic Heights */
.metrics-banner {
  background: linear-gradient(to right, rgba(0,0,0,0.85), rgba(44, 62, 80, 0.7)), url('../assets/proj_oncology_main.jpg');
  background-size: cover;
  background-position: center;
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
  margin-bottom: 40px;
}

.metrics-banner h3 {
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: 24px;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.metric-item {
  border-bottom: 1px solid rgba(255,255,255,0.15);
  padding-bottom: 12px;
}

.metric-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--primary-light);
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.metric-value {
  font-size: 1.05rem;
  font-weight: 600;
}

/* Project Gallery Slider */
.project-gallery-slider {
  position: relative;
  height: 400px;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 40px;
  box-shadow: var(--shadow-sm);
}

.gallery-container {
  height: 100%;
  position: relative;
}

.gallery-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
  cursor: zoom-in;
}

.gallery-slide.active {
  opacity: 1;
}

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

.gallery-arrows {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  pointer-events: none;
  z-index: 5;
}

.gallery-arrow {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background-color: rgba(0, 0, 0, 0.4);
  color: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  transition: var(--transition-smooth);
}

.gallery-arrow:hover {
  background-color: var(--accent);
}

/* Fullscreen Lightbox Modal */
.lightbox-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.95);
  z-index: 200;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox-modal.active {
  display: flex;
  opacity: 1;
}

.lightbox-img {
  max-width: 90%;
  max-height: 85%;
  object-fit: contain;
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-sm);
  animation: scaleIn 0.3s ease;
}

@keyframes scaleIn {
  from { transform: scale(0.9); }
  to { transform: scale(1); }
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 30px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2.5rem;
  cursor: pointer;
}

/* Multi-Step Donation Wizard */
.donation-wizard {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  padding: 40px;
}

.wizard-steps {
  display: flex;
  justify-content: space-between;
  margin-bottom: 40px;
  position: relative;
}

.wizard-steps::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 10%;
  right: 10%;
  height: 3px;
  background-color: var(--border-light);
  z-index: 1;
}

.wizard-step {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.step-indicator {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background-color: var(--white);
  border: 2px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  transition: var(--transition-smooth);
  color: var(--text-muted);
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
}

.wizard-step.active .step-indicator {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 10px rgba(13, 148, 136, 0.2);
}

.wizard-step.completed .step-indicator {
  background-color: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}

.wizard-step.active {
  color: var(--text-dark);
}

.wizard-step.completed {
  color: var(--accent);
}

.wizard-panel {
  display: none;
  animation: fadeIn 0.4s ease;
}

.wizard-panel.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Step 1 Options */
.donation-option-group {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 30px;
}

.option-card {
  border: 2px solid var(--border-light);
  padding: 16px;
  border-radius: var(--radius-md);
  text-align: center;
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition-smooth);
}

.option-card:hover {
  border-color: var(--accent);
  background-color: var(--accent-light);
}

.option-card.active {
  border-color: var(--accent);
  background-color: var(--accent-light);
  color: var(--accent);
}

.amount-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.amount-chip {
  background-color: var(--bg-sand);
  border: 2px solid transparent;
  padding: 14px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.amount-chip:hover {
  background-color: var(--primary-light);
  color: var(--primary);
}

.amount-chip.active {
  background-color: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(211, 47, 47, 0.2);
}

.custom-amount-wrapper {
  position: relative;
  margin-bottom: 40px;
}

.custom-amount-input {
  width: 100%;
  padding: 16px 20px 16px 70px;
  font-size: 1.25rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  border: 2px solid var(--border-light);
  font-family: 'Outfit', sans-serif;
  transition: var(--transition-smooth);
}

.custom-amount-input:focus {
  border-color: var(--primary);
  outline: none;
}

.currency-symbol {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
}

/* Step 2 Form Grid */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group-full {
  grid-column: span 2;
}

.form-group label {
  font-weight: 600;
  font-size: 0.9rem;
}

.form-select {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 2px solid var(--border-light);
  font-family: inherit;
  font-size: 0.95rem;
  background-color: var(--white);
}

.form-select:focus {
  outline: none;
  border-color: var(--accent);
}

/* Step 3 Payment Grid */
.payment-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.payment-card {
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  gap: 16px;
}

.payment-card:hover {
  border-color: var(--accent);
  background-color: var(--accent-light);
}

.payment-card.active {
  border-color: var(--accent);
  background-color: var(--accent-light);
}

.payment-icon {
  width: 50px;
  height: 50px;
  background-color: var(--white);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.payment-icon svg {
  width: 32px;
  height: 32px;
}

.payment-details h4 {
  font-size: 1.05rem;
  margin-bottom: 2px;
}

.payment-details p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.wizard-actions {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--border-light);
  padding-top: 30px;
}

.confirmation-card {
  text-align: center;
  padding: 40px 20px;
}

.success-icon {
  width: 80px;
  height: 80px;
  background-color: var(--accent-light);
  color: var(--accent);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 30px auto;
  font-size: 2.5rem;
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.15);
}

.confirmation-card h3 {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.confirmation-card p {
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto 30px auto;
}

/* Informieren / Publications & News Tabs */
.bulletin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}

.bulletin-card {
  background-color: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.bulletin-cover {
  width: 100%;
  height: 320px;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.bulletin-card:hover .bulletin-cover {
  transform: translateY(-5px);
}

.bulletin-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.bulletin-meta {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.bulletin-card h3 {
  font-size: 1.15rem;
  margin-bottom: 16px;
  flex-grow: 1;
}

/* Team Grid (Vorstand) */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.team-card {
  background-color: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: var(--transition-smooth);
  padding: 30px 20px;
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(13, 148, 136, 0.15);
}

.team-avatar {
  width: 130px;
  height: 130px;
  border-radius: var(--radius-full);
  object-fit: cover;
  margin: 0 auto 20px auto;
  border: 4px solid var(--bg-sand);
  box-shadow: var(--shadow-sm);
}

.team-card h3 {
  font-size: 1.25rem;
  margin-bottom: 4px;
}

.team-role {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.team-bio {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Partners Section */
.partners-block {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  padding: 60px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.partners-logo-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 60px;
  margin-top: 40px;
}

.partner-logo-wrapper {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.75;
  transition: var(--transition-smooth);
}

.partner-logo-wrapper:hover {
  opacity: 1;
  transform: scale(1.05);
}

.partner-logo-img {
  max-height: 100%;
  max-width: 180px;
  object-fit: contain;
}

/* simulated PDF Viewer */
.pdf-viewer-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.85);
  z-index: 300;
  align-items: center;
  justify-content: center;
}

.pdf-viewer-modal.active {
  display: flex;
}

.pdf-window {
  background-color: #2c3e50;
  width: 90%;
  max-width: 900px;
  height: 85vh;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
}

.pdf-toolbar {
  height: 50px;
  background-color: #1a252f;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}

.pdf-body {
  flex-grow: 1;
  background-color: #7f8c8d;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  padding: 40px;
}

.pdf-page-sim {
  background-color: var(--white);
  width: 100%;
  max-width: 600px;
  min-height: 800px;
  box-shadow: var(--shadow-lg);
  padding: 60px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.pdf-header-sim {
  border-bottom: 2px solid var(--accent);
  padding-bottom: 20px;
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Contact Page form styles */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-info-panel {
  background-color: var(--accent);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 45px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.contact-info-panel h2 {
  color: var(--white);
  font-size: 2rem;
  margin-bottom: 16px;
}

.contact-details-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 40px;
  flex-grow: 1;
}

.contact-item-icon {
  width: 44px;
  height: 44px;
  background-color: rgba(255,255,255,0.15);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-item-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.contact-list-text h4 {
  color: var(--white);
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.contact-list-text p {
  color: var(--accent-light);
  font-size: 0.95rem;
}

/* Simulated WordPress Customizer Slide-Out Panel */
.wp-admin-panel {
  position: fixed;
  top: 0;
  right: -520px;
  width: 500px;
  height: 100%;
  background-color: #23282d;
  color: #f1f1f1;
  box-shadow: -10px 0 30px rgba(0,0,0,0.3);
  z-index: 150;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.wp-admin-panel.active {
  right: 0;
}

.wp-admin-header {
  background-color: #1d2125;
  padding: 20px;
  border-bottom: 1px solid #32373c;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wp-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.15rem;
}

.wp-logo svg {
  width: 24px;
  height: 24px;
  fill: #72aee6;
}

.wp-close {
  background: none;
  border: none;
  color: #b5b5b5;
  font-size: 1.5rem;
  cursor: pointer;
}

.wp-close:hover {
  color: #fff;
}

.wp-admin-body {
  flex-grow: 1;
  overflow-y: auto;
  padding: 20px;
}

.wp-section-card {
  background-color: #1d2125;
  border: 1px solid #32373c;
  border-radius: 4px;
  margin-bottom: 20px;
  overflow: hidden;
}

.wp-section-toggle {
  width: 100%;
  padding: 14px 20px;
  background: none;
  border: none;
  color: #f1f1f1;
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wp-section-content {
  display: none;
  padding: 20px;
  border-top: 1px solid #32373c;
  background-color: #23282d;
}

.wp-section-card.active .wp-section-content {
  display: block;
}

.wp-form-group {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wp-form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #b5b5b5;
}

.wp-input, .wp-textarea, .wp-select {
  background-color: #32373c;
  border: 1px solid #7e8993;
  color: #fff;
  padding: 8px 12px;
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.9rem;
}

.wp-input:focus, .wp-textarea:focus, .wp-select:focus {
  outline: none;
  border-color: #72aee6;
}

.wp-btn {
  background-color: #72aee6;
  border: none;
  color: #1d2125;
  padding: 8px 16px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.wp-btn:hover {
  background-color: #9ec5e6;
}

.wp-btn-delete {
  background-color: #d63638;
  color: #fff;
}

.wp-btn-delete:hover {
  background-color: #ec5a5c;
}

.wp-list-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  font-size: 0.85rem;
}

.wp-list-table th, .wp-list-table td {
  border: 1px solid #32373c;
  padding: 8px;
  text-align: left;
}

.wp-list-table th {
  background-color: #1d2125;
  color: #b5b5b5;
}

.wp-admin-toggle-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  border-radius: var(--radius-full);
  background-color: #23282d;
  color: #72aee6;
  border: 2px solid #72aee6;
  box-shadow: var(--shadow-lg);
  display: none !important; /* temporarily hidden */
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 140;
  transition: var(--transition-smooth);
}

.wp-admin-toggle-btn:hover {
  background-color: #72aee6;
  color: #23282d;
  transform: scale(1.08);
}

.wp-admin-toggle-btn svg {
  width: 28px;
  height: 28px;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 30px;
  left: 30px;
  z-index: 250;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background-color: rgba(44, 62, 80, 0.95);
  color: var(--white);
  padding: 14px 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: slideRight 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

@keyframes slideRight {
  from { transform: translateX(-100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Footers */
footer {
  background-color: hsl(210, 29%, 12%); /* Premium dark slate neutral, derived from the core text-dark color for absolute visual harmony */
  color: #e2e8f0; /* brighter slate color for better readability on deep dark bg */
  padding: 80px 0 30px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 50px;
}

.footer-brand h3 {
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer-links-col h4 {
  color: var(--white);
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: #9ca3af;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--primary-light);
}

.footer-links li.sub-item {
  padding-left: 12px;
  margin-top: -4px; /* bring sub-items slightly closer vertically */
  margin-bottom: -4px;
}

.footer-links li.sub-item a {
  font-size: 0.82rem;
}

.footer-links li.sub-item a::before {
  content: "• ";
  color: var(--accent);
  margin-right: 5px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a {
  color: #9ca3af;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .wwd-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .map-layout {
    grid-template-columns: 1fr;
  }
  
  .map-sidebar {
    border-left: none;
    padding-left: 0;
    margin-top: 30px;
  }
  
  .proj-detail-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none; /* In app.js we will handle mobile slide-over or simple accordion */
  }
  
  /* Compact, space-saving nested accordion styling for mobile menus */
  .nav-dropdown {
    position: static !important;
    display: flex !important;
    flex-direction: column !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: none !important;
    box-shadow: none !important;
    border: none !important;
    background: transparent !important;
    padding: 4px 0 4px 15px !important;
    min-width: 100% !important;
  }

  .dropdown-item {
    padding: 6px 12px !important;
    font-size: 0.8rem !important;
    font-weight: 500 !important;
    border-left: 2px solid var(--border-light) !important;
  }

  .dropdown-item:hover {
    background: transparent !important;
    border-left-color: var(--accent) !important;
    color: var(--accent) !important;
  }

  .dropdown-sub-item {
    padding-left: 24px !important;
  }
  
  .hamburger {
    display: block;
    color: var(--text-dark);
  }
  
  .hero-slider {
    height: 480px;
  }
  
  .slide-content-inner {
    padding: 0 20px !important;
  }
  
  .slider-arrows {
    display: none !important;
  }
  
  .slide h1 {
    font-size: 2rem;
  }
  
  .donate-cta-strip {
    flex-direction: column;
    text-align: center;
    padding: 30px;
  }
  
  .newsletter-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .newsletter-form {
    flex-direction: column;
  }
  
  .amount-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .form-grid, .payment-grid, .contact-layout {
    grid-template-columns: 1fr;
  }
  
  .form-group-full {
    grid-column: span 1;
  }
  
  .highlight-block-style1 {
    grid-template-columns: 1fr;
  }
  
  .team-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
  
  .wp-admin-panel {
    width: 100%;
    right: -100%;
  }
}

/* Leaflet Custom Map & Cluster overrides (1:1 styling alignment) */
.marker-cluster {
  background-color: rgba(13, 148, 136, 0.15) !important;
  border: 1px solid rgba(13, 148, 136, 0.3);
  border-radius: 50%;
}

.marker-cluster div {
  background-color: var(--accent) !important;
  color: white !important;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(13, 148, 136, 0.3);
}

.custom-leaflet-marker:hover .map-marker-dot {
  transform: scale(1.2);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4) !important;
}

.leaflet-popup-content-wrapper {
  border-radius: var(--radius-md) !important;
  box-shadow: var(--shadow-lg) !important;
  border: 1px solid var(--border-light) !important;
}

/* Create a transparent zone below the popup to bridge the hover gap to the marker */
.leaflet-popup-content-wrapper::after {
  content: "";
  position: absolute;
  bottom: -30px;
  left: 0;
  right: 0;
  height: 30px;
  background: transparent;
  z-index: -1;
}

/* Side-positioned popup styling (prevents map shifting/bouncing and resolves cutting off) */
.leaflet-popup.popup-side-positioned {
  bottom: auto !important;
}

.leaflet-popup.popup-side-positioned .leaflet-popup-tip-container {
  display: none !important;
}

/* Remove default vertical bridge */
.leaflet-popup.popup-side-positioned .leaflet-popup-content-wrapper::after {
  bottom: auto !important;
  height: auto !important;
}

/* Horizontal hover bridge styling */
.leaflet-popup.popup-side-positioned .leaflet-popup-content-wrapper::after {
  content: "" !important;
  position: absolute !important;
  top: -20px !important;
  bottom: -20px !important;
  width: 40px !important;
  background: transparent !important;
  z-index: -1 !important;
}

/* Bridge on the left of the popup box (for popups appearing on the right of the marker) */
.leaflet-popup.popup-side-right .leaflet-popup-content-wrapper::after {
  left: -40px !important;
  right: auto !important;
}

/* Bridge on the right of the popup box (for popups appearing on the left of the marker) */
.leaflet-popup.popup-side-left .leaflet-popup-content-wrapper::after {
  right: -40px !important;
  left: auto !important;
}

.leaflet-popup-tip {
  box-shadow: var(--shadow-md) !important;
}

/* Universal tab system styling */
.tab-group-container {
  margin-bottom: 40px;
}

.tab-nav {
  display: flex;
  justify-content: center;
  gap: 16px;
  border-bottom: 2px solid var(--border-light);
  padding-bottom: 2px;
  margin-bottom: 30px;
  list-style: none;
  flex-wrap: wrap;
}

.tab-trigger {
  background: none;
  border: none;
  padding: 12px 20px;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-muted);
  cursor: pointer;
  position: relative;
  transition: var(--transition-smooth);
}

.tab-trigger::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: transparent;
  transition: var(--transition-smooth);
}

.tab-trigger:hover {
  color: var(--accent);
}

.tab-trigger.active {
  color: var(--accent);
}

.tab-trigger.active::after {
  background-color: var(--accent);
}

/* Sub-tabs layout (Nested) */
.sub-tab-nav {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 30px;
  list-style: none;
  flex-wrap: wrap;
}

.sub-tab-trigger {
  background-color: var(--bg-sand);
  border: 1px solid var(--border-light);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-dark);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.sub-tab-trigger:hover, .sub-tab-trigger.active {
  background-color: var(--accent);
  color: var(--white);
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.15);
}

/* Tab contents styling with transition anims */
.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: tabFadeIn 0.4s ease forwards;
}

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

/* Slim Glassmorphic Cookie Consent Banner (Swiss DSG) */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(26, 36, 47, 0.95); /* Matched with the premium dark slate neutral of the footer */
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  z-index: 10000;
  padding: 10px 0;
  font-size: 0.8rem;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  display: none; /* Controlled by js */
  animation: slideUpCookie 0.4s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes slideUpCookie {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.cookie-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.cookie-container p {
  margin: 0;
  line-height: 1.4;
  flex-grow: 1;
}

.cookie-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.cookie-actions a {
  color: #9ca3af;
  text-decoration: underline;
  font-size: 0.78rem;
  transition: var(--transition-smooth);
}

.cookie-actions a:hover {
  color: var(--white);
}

@media (max-width: 640px) {
  .cookie-container {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    text-align: center;
  }
  .cookie-actions {
    justify-content: space-between;
  }
}

/* Floating Donate FAB */
.floating-donate-fab {
  position: fixed;
  bottom: 80px; /* Elevated to sit perfectly above the cookie consent banner */
  right: 24px;
  display: flex;
  align-items: center;
  gap: 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  color: var(--white) !important;
  text-decoration: none !important;
  padding: 12px 22px;
  border-radius: var(--radius-full);
  box-shadow: 0 10px 25px rgba(220, 38, 38, 0.35);
  z-index: 999;
  opacity: 0;
  transform: translateY(20px) scale(0.9);
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
  overflow: hidden;
  white-space: nowrap;
}

/* Show when scrolled */
.floating-donate-fab.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.fab-icon-wrap {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.floating-donate-fab .heart-icon {
  width: 20px;
  height: 20px;
  animation: heartPulse 1.8s infinite;
}

.fab-text {
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  opacity: 1;
  margin-left: 8px;
}

/* Hover Expanding Effect */
.floating-donate-fab:hover {
  box-shadow: 0 12px 30px rgba(220, 38, 38, 0.5);
  transform: translateY(-2px) scale(1.04);
}

@keyframes heartPulse {
  0% { transform: scale(1); }
  14% { transform: scale(1.18); }
  28% { transform: scale(1); }
  42% { transform: scale(1.18); }
  70% { transform: scale(1); }
}
