/* ==========================================================================
   GREEN HORIZON — Official Erasmus+ KA210-YOU Project Stylesheet
   Booklet-Inspired Light Theme (CC BY-SA 4.0)
   Project Number: 2024-3-DE04-KA210-YOU-000293009
   Co-funded by the European Union
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600;700&family=Open+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  /* Official Palette from Booklet */
  --primary: #1B5E20;         /* Primary dark green (headings, primary buttons) */
  --primary-hover: #144618;
  --leaf-green: #43A047;      /* Leaf green accents */
  --leaf-green-light: #E8F5E9;
  --leaf-green-border: #C8E6C9;

  --sky-blue: #1E88E5;        /* Chapter III / drones */
  --sky-blue-light: #E3F2FD;
  --sky-blue-border: #BBDEFB;

  --purple: #6A1B9A;          /* Chapter II / photography */
  --purple-light: #F3E5F5;
  --purple-border: #E1BEE7;

  --warm-orange: #F57C00;     /* Highlights */
  --warm-orange-light: #FFF3E0;
  --warm-orange-border: #FFE0B2;

  /* Theme Backgrounds */
  --bg-body: #FFFFFF;
  --bg-warm: #FAFAF5;
  --bg-card: #FFFFFF;
  --bg-soft: #F3F4F1;
  --bg-muted: #EBF0EC;

  /* Text & Neutrals (High Contrast WCAG AAA) */
  --text-main: #1F2937;       /* Body text, high legibility */
  --text-muted: #4B5563;      /* Secondary descriptions */
  --text-light: #6B7280;      /* Captions and metadata */
  --border-color: #E5E7EB;
  --border-card: #E8EDE8;

  /* Typography */
  --font-heading: 'Fredoka', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Sizing & Spacing */
  --container-max: 1220px;
  --container-pad: 1.5rem;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-card: 16px;
  --radius-full: 9999px;

  /* Shadows (soft, clean, friendly) */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 10px 25px rgba(27, 94, 32, 0.12);
  --shadow-modal: 0 20px 40px rgba(0, 0, 0, 0.2);

  /* Transitions */
  --transition-fast: 0.18s ease-in-out;
  --transition-normal: 0.28s ease-in-out;
}

/* ==========================================================================
   CSS Reset & Base Rules
   ========================================================================== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 18px;
  scroll-behavior: smooth;
  scroll-padding-top: 140px;
  background-color: var(--bg-body);
  color-scheme: light;
}

body {
  font-family: var(--font-body);
  font-size: 1rem; /* 18px */
  line-height: 1.6;
  color: var(--text-main);
  background-color: var(--bg-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Landscape Art Backdrop for Content Sections (~20% soft opacity) */
.booklet-bg-pattern {
  position: relative;
}

.booklet-bg-pattern::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('../images/green-horizon-booklet-art.jpg');
  background-size: cover;
  background-position: center top;
  opacity: 0.15;
  pointer-events: none;
  z-index: 0;
}

.booklet-bg-pattern > * {
  position: relative;
  z-index: 1;
}

/* Accessible Skip Link */
.skip-link {
  position: absolute;
  top: -120px;
  left: 1.5rem;
  background: var(--primary);
  color: #FFFFFF;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-heading);
  font-weight: 600;
  border-radius: var(--radius-sm);
  z-index: 999999;
  text-decoration: none;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 1rem;
  outline: 3px solid var(--warm-orange);
}

:focus-visible {
  outline: 3px solid var(--leaf-green);
  outline-offset: 3px;
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--primary);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.1rem, 4.2vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.8rem); }
h4 { font-size: 1.2rem; }

p {
  margin-bottom: 1.25rem;
  color: var(--text-main);
  line-height: 1.65;
}

a {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  transition: color var(--transition-fast), text-decoration-color var(--transition-fast);
}

a:hover {
  color: var(--leaf-green);
}

img, svg, video {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   Layout Containers
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

.section {
  padding: 4.5rem 0;
  position: relative;
}

.section-warm {
  background-color: var(--bg-warm);
}

.section-hero {
  padding: 3rem 0 4rem 0;
  background-color: var(--bg-warm);
  position: relative;
  overflow: hidden;
}

.section-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 3rem auto;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
  background: var(--leaf-green-light);
  border: 1px solid var(--leaf-green-border);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}

.section-title {
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   Header: Official Booklet Logo Row & Navigation
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  background: #FFFFFF;
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
}

/* Top Institutional Logo Row (like booklet cover & page 2) */
.header-institutional-bar {
  background: #FFFFFF;
  border-bottom: 1px solid #F0F2F0;
  padding: 0.5rem 0;
}

.institutional-logos-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.eu-co-funded-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
}

.eu-emblem-img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.partner-logo-strip {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.partner-logo-item {
  height: 38px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.partner-logo-item:hover {
  transform: translateY(-2px);
}

/* Main Navigation Bar */
.header-nav-bar {
  padding: 0.6rem 0;
  background: #FFFFFF;
}

.header-nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-brand-pill {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.site-brand-pill img {
  height: 42px;
  width: 42px;
  border-radius: 50%;
  border: 2px solid var(--leaf-green);
  background: #FFFFFF;
}

.site-brand-name {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.1;
  display: block;
}

.site-brand-tagline {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  display: block;
}

.nav-desktop {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 0.5rem;
}

.nav-link {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.nav-link:hover {
  background-color: var(--leaf-green-light);
  color: var(--primary);
}

.nav-link.active {
  background-color: var(--primary);
  color: #FFFFFF;
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.5rem;
  color: var(--primary);
  cursor: pointer;
}

.mobile-nav-toggle svg {
  width: 26px;
  height: 26px;
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  max-width: 340px;
  height: 100vh;
  background: #FFFFFF;
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: right var(--transition-normal);
  z-index: 1050;
  overflow-y: auto;
}

.mobile-drawer.open {
  right: 0;
}

.mobile-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal);
  z-index: 1040;
}

.mobile-drawer-overlay.open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.mobile-nav-link {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-main);
  padding: 0.6rem 0.8rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  display: block;
}

.mobile-nav-link:hover, .mobile-nav-link.active {
  background: var(--leaf-green-light);
  color: var(--primary);
}

/* ==========================================================================
   Buttons (Friendly Rounded Booklet Style)
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  border: 2px solid transparent;
  line-height: 1.2;
}

.btn-primary {
  background-color: var(--primary);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(27, 94, 32, 0.25);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(27, 94, 32, 0.35);
}

.btn-secondary {
  background-color: #FFFFFF;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-secondary:hover {
  background-color: var(--leaf-green-light);
  color: var(--primary);
  transform: translateY(-2px);
}

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

.btn-outline:hover {
  border-color: var(--primary);
  background-color: var(--bg-warm);
}

.btn-sm {
  font-size: 0.85rem;
  padding: 0.45rem 1.1rem;
}

.btn-lg {
  font-size: 1.15rem;
  padding: 0.95rem 2.2rem;
}

/* ==========================================================================
   Cards (Rounded 16px, Soft Shadow, Sticker Vibe)
   ========================================================================== */

.card {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-card);
  padding: 2rem;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
  position: relative;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--leaf-green);
}

/* Color Accent Border Tops for Sticker Feel */
.card-accent-green { border-top: 5px solid var(--primary); }
.card-accent-leaf { border-top: 5px solid var(--leaf-green); }
.card-accent-blue { border-top: 5px solid var(--sky-blue); }
.card-accent-purple { border-top: 5px solid var(--purple); }
.card-accent-orange { border-top: 5px solid var(--warm-orange); }

/* Country Flags Header Badge */
.hero-flags-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.25rem;
}

.flag-icon {
  font-size: 1.2rem;
  line-height: 1;
}

/* Status Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  line-height: 1.3;
}

.badge-completed {
  background: var(--leaf-green-light);
  color: var(--primary);
  border: 1px solid var(--leaf-green-border);
}

.badge-blue {
  background: var(--sky-blue-light);
  color: var(--sky-blue);
  border: 1px solid var(--sky-blue-border);
}

.badge-purple {
  background: var(--purple-light);
  color: var(--purple);
  border: 1px solid var(--purple-border);
}

.badge-orange {
  background: var(--warm-orange-light);
  color: var(--warm-orange);
  border: 1px solid var(--warm-orange-border);
}

/* ==========================================================================
   Homepage: Drone Video Section ("Our project from above")
   ========================================================================== */

.drone-video-section {
  padding: 4.5rem 0;
  background-color: #FFFFFF;
}

.drone-video-wrapper {
  max-width: 960px;
  margin: 0 auto;
}

.drone-video-player-box {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-hover);
  background: #111827;
  border: 1px solid var(--border-color);
}

.drone-video-player-box video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.drone-video-player-box iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Placeholder for Video */
.drone-video-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1B5E20 0%, #2E7D32 100%);
  color: #FFFFFF;
  text-align: center;
  padding: 2rem;
}

.drone-video-placeholder-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.drone-video-placeholder-icon svg {
  width: 32px;
  height: 32px;
  fill: #FFFFFF;
}

.drone-video-caption-bar {
  margin-top: 1.5rem;
  text-align: center;
}

.drone-video-title {
  font-size: 1.4rem;
  margin-bottom: 0.4rem;
}

.drone-video-description {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 720px;
  margin: 0 auto;
}

/* ==========================================================================
   Activity Photo Spaces & Lightbox
   ========================================================================== */

.activity-gallery-section {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.activity-gallery-title {
  font-size: 1.15rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
}

.photo-slots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
}

.photo-slot-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

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

.photo-slot-card.has-photo {
  cursor: pointer;
}

.photo-slot-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.photo-slot-caption {
  padding: 0.75rem 0.9rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
  flex: 1;
}

.photo-slot-meta {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: 0.3rem;
  font-weight: 600;
}

/* Soft Placeholder Box "Photo coming soon" */
.photo-slot-empty {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--bg-soft);
  border: 2px dashed #D1D5DB;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  text-align: center;
  padding: 1rem;
}

.photo-slot-empty-icon {
  width: 36px;
  height: 36px;
  margin-bottom: 0.5rem;
  color: #9CA3AF;
}

.photo-slot-empty-text {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(17, 24, 39, 0.92);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 2rem;
}

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

.lightbox-content-box {
  position: relative;
  max-width: 900px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-image {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-modal);
}

.lightbox-caption-box {
  margin-top: 1rem;
  color: #FFFFFF;
  text-align: center;
  font-size: 1rem;
  max-width: 720px;
}

.lightbox-close-btn {
  position: absolute;
  top: -45px;
  right: 0;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #FFFFFF;
  font-size: 1.8rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #FFFFFF;
  font-size: 2rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast);
}

.lightbox-nav-btn:hover, .lightbox-close-btn:hover {
  background: rgba(255, 255, 255, 0.4);
}

.lightbox-prev-btn { left: -70px; }
.lightbox-next-btn { right: -70px; }

@media (max-width: 768px) {
  .lightbox-prev-btn { left: 10px; }
  .lightbox-next-btn { right: 10px; }
  .lightbox-close-btn { top: 10px; right: 10px; }
}

/* ==========================================================================
   Gallery Page & Homepage Gallery Strip
   ========================================================================== */

.gallery-filter-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
}

.gallery-filter-btn {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  background: #FFFFFF;
  color: var(--text-main);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.gallery-filter-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--leaf-green-light);
}

.gallery-filter-btn.active {
  background: var(--primary);
  color: #FFFFFF;
  border-color: var(--primary);
}

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

.gallery-item-card {
  background: #FFFFFF;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

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

.gallery-item-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.gallery-item-card:hover .gallery-item-thumb {
  transform: scale(1.03);
}

.gallery-item-thumb-wrapper {
  overflow: hidden;
  position: relative;
}

.gallery-item-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(4px);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.gallery-item-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.gallery-item-title {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.gallery-item-caption {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 0.75rem;
  flex: 1;
}

.gallery-item-meta {
  font-size: 0.78rem;
  color: var(--text-light);
  font-weight: 600;
  display: flex;
  justify-content: space-between;
}

.gallery-consent-notice {
  text-align: center;
  margin-top: 3rem;
  font-size: 0.9rem;
  color: var(--text-light);
  font-style: italic;
}

/* ==========================================================================
   News & Updates Cards
   ========================================================================== */

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

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

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

.news-card-thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.news-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.8rem;
  font-size: 0.85rem;
  color: var(--text-light);
  font-weight: 600;
}

.news-card-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  line-height: 1.35;
}

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

.news-card-title a:hover {
  color: var(--leaf-green);
}

.news-card-summary {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 1.2rem;
  flex: 1;
}

.news-card-action {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.news-card-action:hover {
  color: var(--leaf-green);
  text-decoration: underline;
}

/* ==========================================================================
   Footer & Strict EU Visibility Rules
   ========================================================================== */

.site-footer {
  background: #FFFFFF;
  border-top: 1px solid var(--border-color);
  padding: 4.5rem 0 2rem 0;
  color: var(--text-muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-col h4 {
  font-size: 1.15rem;
  margin-bottom: 1.2rem;
  color: var(--primary);
  position: relative;
  padding-bottom: 0.4rem;
}

.footer-col h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 36px;
  height: 3px;
  background: var(--leaf-green);
  border-radius: var(--radius-full);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.65rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color var(--transition-fast), padding-left var(--transition-fast);
}

.footer-links a:hover {
  color: var(--primary);
  padding-left: 0.25rem;
}

/* Mandatory EU Disclaimer Box */
.footer-eu-disclaimer-box {
  background: var(--bg-warm);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.footer-eu-emblem {
  height: 52px;
  width: auto;
  flex-shrink: 0;
}

.footer-disclaimer-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.2rem;
  font-size: 0.9rem;
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-bottom-links a {
  color: var(--text-muted);
}

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

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 1024px) {
  .nav-desktop {
    display: none;
  }
  .mobile-nav-toggle {
    display: block;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
  .partner-logo-strip {
    gap: 0.8rem;
  }
  .partner-logo-item {
    height: 30px;
  }
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-eu-disclaimer-box {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .institutional-logos-wrapper {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .partner-logo-strip {
    justify-content: center;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
