/*
Theme Name: RUBBIO
Theme URI: https://rubbio-project.eu/
Author: Aitiip Centro Tecnológico
Author URI: https://www.aitiip.com/
Description: Tema oficial del proyecto europeo RUBBIO (Biosynthesis of RUBber from BIObased sources). Conversión fiel del diseño estático original, sin alterar el aspecto visual.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rubbio
*/

/* ===================================================================
   RUBBIO PROJECT — Design System & Styles
   Biosynthesis of RUBber from BIObased sources
   https://rubbio-project.eu
   =================================================================== */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600;700&family=Outfit:wght@300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600&display=swap');

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Brand palette — extracted from the logo gradient */
  --clr-yellow:    #F5B731;
  --clr-orange:    #EE7D31;
  --clr-coral:     #E85D4A;
  --clr-magenta:   #D6246E;
  --clr-pink:      #E8A0BF;
  --clr-pink-light:#F5D5E0;

  /* Neutrals */
  --clr-white:     #FFFFFF;
  --clr-off-white: #FFF9F5;
  --clr-gray-100:  #F7F3F0;
  --clr-gray-200:  #E8E2DD;
  --clr-gray-400:  #A8A09A;
  --clr-gray-600:  #6B6460;
  --clr-gray-800:  #3A3330;
  --clr-dark:      #1A1412;

  /* Gradients */
  --grad-brand: linear-gradient(135deg, var(--clr-yellow) 0%, var(--clr-orange) 40%, var(--clr-magenta) 100%);
  --grad-hero:  linear-gradient(160deg, rgba(245,183,49,.15) 0%, rgba(232,93,74,.08) 40%, rgba(214,36,110,.12) 100%);
  --grad-blob-1: radial-gradient(circle at 30% 50%, var(--clr-yellow), var(--clr-orange), var(--clr-magenta));
  --grad-blob-2: radial-gradient(circle at 70% 30%, var(--clr-pink-light), var(--clr-pink), var(--clr-orange));

  /* Typography */
  --ff-heading: 'Outfit', sans-serif;
  --ff-body:    'Inter', sans-serif;

  /* Sizes */
  --fs-hero:  clamp(2.8rem, 6vw, 5rem);
  --fs-h1:    clamp(2rem, 4vw, 3.2rem);
  --fs-h2:    clamp(1.6rem, 3vw, 2.4rem);
  --fs-h3:    clamp(1.2rem, 2vw, 1.6rem);
  --fs-body:  clamp(0.95rem, 1.2vw, 1.1rem);
  --fs-small: 0.85rem;

  /* Spacing */
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  2rem;
  --space-lg:  4rem;
  --space-xl:  6rem;
  --space-2xl: 8rem;

  /* Layout */
  --max-width: 1200px;
  --nav-height: 80px;

  /* Effects */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 8px rgba(26,20,18,.06);
  --shadow-md: 0 4px 24px rgba(26,20,18,.08);
  --shadow-lg: 0 12px 48px rgba(26,20,18,.12);
  --shadow-glow: 0 0 60px rgba(238,125,49,.15);

  --transition: 0.3s cubic-bezier(.4,0,.2,1);
  --transition-slow: 0.6s cubic-bezier(.4,0,.2,1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--ff-body);
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--clr-gray-800);
  background-color: var(--clr-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

ul, ol { list-style: none; }

/* ---------- Utility ---------- */
.container {
  width: min(var(--max-width), 90%);
  margin-inline: auto;
}

.section-padding {
  padding-block: var(--space-xl);
}

.text-gradient {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Nombre del proyecto (letras de color del título) con tipografía redondeada. */
.hero__title .text-gradient {
  font-family: 'Fredoka', var(--ff-heading);
  font-weight: 600;
}

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

/* ---------- Decorative Blobs ---------- */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}

.blob--1 {
  width: 500px; height: 500px;
  background: var(--grad-blob-1);
  top: -120px; left: -180px;
  animation: blobFloat 18s ease-in-out infinite alternate;
}

.blob--2 {
  width: 400px; height: 400px;
  background: var(--grad-blob-2);
  top: 60%; right: -120px;
  animation: blobFloat 22s ease-in-out infinite alternate-reverse;
}

.blob--3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, var(--clr-pink-light), var(--clr-yellow));
  bottom: -80px; left: 30%;
  animation: blobFloat 15s ease-in-out infinite alternate;
}

@keyframes blobFloat {
  0%   { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(30px, -20px) scale(1.05); }
  66%  { transform: translate(-20px, 15px) scale(0.95); }
  100% { transform: translate(10px, -10px) scale(1.02); }
}

/* ---------- Grid Pattern Overlay ---------- */
.grid-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(214,36,110,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(214,36,110,.06) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 1;
  mask-image: radial-gradient(ellipse at 30% 70%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 30% 70%, black 20%, transparent 70%);
}

/* =================================================================
   NAVIGATION
   ================================================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition);
}

.nav.scrolled {
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-sm);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav__logo img {
  height: 42px;
  width: auto;
  transition: transform var(--transition);
}

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

.nav__links {
  display: flex;
  gap: var(--space-md);
  align-items: center;
}

.nav__link {
  font-family: var(--ff-heading);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: var(--clr-gray-800);
  position: relative;
  padding-bottom: 4px;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--grad-brand);
  border-radius: 2px;
  transition: width var(--transition);
}

.nav__link:hover::after,
.nav__link.active::after {
  width: 100%;
}

.nav__link:hover {
  color: var(--clr-magenta);
}

/* Mobile hamburger */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.nav__toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--clr-gray-800);
  border-radius: 2px;
  transition: var(--transition);
}

.nav__toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav__toggle.open span:nth-child(2) {
  opacity: 0;
}
.nav__toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* =================================================================
   HERO SECTION
   ================================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--clr-off-white);
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  margin-inline: auto;
  padding-top: var(--nav-height);
}

.hero__logo {
  width: min(400px, 70vw);
  margin-inline: auto;
  margin-bottom: var(--space-md);
  animation: fadeInUp 1s ease-out;
}

.hero__title {
  font-family: var(--ff-heading);
  font-size: var(--fs-h2);
  font-weight: 600;
  color: var(--clr-gray-800);
  margin-bottom: var(--space-sm);
  animation: fadeInUp 1s ease-out 0.2s both;
}

.hero__slogan {
  font-family: var(--ff-heading);
  font-size: var(--fs-h3);
  font-weight: 700;
  margin-bottom: var(--space-lg);
  animation: fadeInUp 1s ease-out 0.4s both;
}

.hero__cta-group {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease-out 0.6s both;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--ff-heading);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn--primary {
  background: var(--grad-brand);
  color: var(--clr-white);
  box-shadow: 0 4px 20px rgba(238,125,49,.3);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(238,125,49,.4);
}

.btn--secondary {
  background: transparent;
  color: var(--clr-gray-800);
  border: 2px solid var(--clr-gray-200);
}

.btn--secondary:hover {
  border-color: var(--clr-magenta);
  color: var(--clr-magenta);
  transform: translateY(-2px);
}

/* Scroll-down indicator */
.hero__scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: bounce 2s ease-in-out infinite;
}

.hero__scroll svg {
  width: 32px;
  height: 32px;
  color: var(--clr-gray-400);
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(10px); }
}

/* =================================================================
   SECTION HEADERS
   ================================================================= */
.section-header {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.section-header__label {
  display: inline-block;
  font-family: var(--ff-heading);
  font-weight: 700;
  font-size: var(--fs-small);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--clr-orange);
  margin-bottom: var(--space-xs);
}

.section-header__title {
  font-family: var(--ff-heading);
  font-size: var(--fs-h1);
  font-weight: 800;
  color: var(--clr-magenta);
  line-height: 1.15;
  margin-bottom: var(--space-sm);
}

.section-header__subtitle {
  max-width: 640px;
  margin-inline: auto;
  color: var(--clr-gray-600);
  font-size: var(--fs-body);
}

/* =================================================================
   ABOUT SECTION
   ================================================================= */
.about {
  position: relative;
  overflow: hidden;
  background: var(--clr-white);
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
}

.about__image-wrapper {
  position: relative;
}

.about__image {
  border-radius: var(--radius-xl);
  object-fit: cover; /* foto (no infografía): rellena el marco 16/9 recortando arriba/abajo */
  width: 100%;
  aspect-ratio: 16/9;
  box-shadow: var(--shadow-lg);
}

.about__image-wrapper::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: calc(var(--radius-xl) + 8px);
  background: var(--grad-brand);
  opacity: 0.15;
  z-index: -1;
}

.about__text {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.about__text h2 {
  font-family: var(--ff-heading);
  font-size: var(--fs-h1);
  font-weight: 800;
  color: var(--clr-magenta);
  line-height: 1.15;
}

.about__text p {
  color: var(--clr-gray-600);
  line-height: 1.8;
}

.about__quote {
  font-family: var(--ff-heading);
  font-weight: 600;
  font-size: var(--fs-h3);
  font-style: italic;
  color: var(--clr-orange);
  border-left: 4px solid var(--clr-orange);
  padding-left: var(--space-sm);
  margin-block: var(--space-sm);
}

/* =================================================================
   HIGHLIGHTS / KEY FEATURES
   ================================================================= */
.highlights {
  background: var(--clr-off-white);
  position: relative;
  overflow: hidden;
}

.highlights__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
}

.highlight-card {
  background: var(--clr-white);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--clr-gray-200);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.highlight-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--grad-brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

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

.highlight-card:hover::before {
  transform: scaleX(1);
}

.highlight-card__icon {
  width: 56px; height: 56px;
  border-radius: var(--radius-md);
  background: var(--grad-hero);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-sm);
  font-size: 1.6rem;
}

.highlight-card__title {
  font-family: var(--ff-heading);
  font-weight: 700;
  font-size: var(--fs-h3);
  color: var(--clr-gray-800);
  margin-bottom: var(--space-xs);
}

.highlight-card__text {
  color: var(--clr-gray-600);
  font-size: var(--fs-small);
  line-height: 1.7;
}

/* =================================================================
   CONSORTIUM SECTION
   ================================================================= */
.consortium {
  position: relative;
  overflow: hidden;
  background: var(--clr-white);
}

.consortium__intro {
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
  color: var(--clr-gray-600);
  margin-bottom: var(--space-lg);
  line-height: 1.8;
}

.consortium__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-md);
}

.partner-card {
  background: var(--clr-white);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  border: 1px solid var(--clr-gray-200);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  position: relative;
  cursor: pointer;
  text-decoration: none;
}

.partner-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--clr-orange);
}

.partner-card__header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.partner-card__logo {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  object-fit: contain;
  background: transparent;
  padding: 8px;
  flex-shrink: 0;
}

.partner-card__name {
  font-family: var(--ff-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--clr-gray-800);
  line-height: 1.3;
}

.partner-card__location {
  font-size: var(--fs-small);
  color: var(--clr-orange);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
}

.partner-card__desc {
  color: var(--clr-gray-600);
  font-size: var(--fs-small);
  line-height: 1.7;
  flex-grow: 1;
}

.partner-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--ff-heading);
  font-weight: 600;
  font-size: var(--fs-small);
  color: var(--clr-magenta);
  transition: gap var(--transition);
}

.partner-card:hover .partner-card__link {
  gap: 10px;
}

/* =================================================================
   NEWS SECTION
   ================================================================= */
.news {
  background: var(--clr-off-white);
  position: relative;
  overflow: hidden;
}

.news__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: var(--space-md);
}

.news-card {
  background: var(--clr-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  border: 1px solid var(--clr-gray-200);
}

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

.news-card__image {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.news-card__body {
  padding: var(--space-md);
}

.news-card__date {
  font-size: var(--fs-small);
  color: var(--clr-orange);
  font-weight: 600;
  font-family: var(--ff-heading);
  margin-bottom: var(--space-xs);
}

.news-card__title {
  font-family: var(--ff-heading);
  font-weight: 700;
  font-size: var(--fs-h3);
  color: var(--clr-gray-800);
  margin-bottom: var(--space-xs);
  line-height: 1.35;
}

.news-card__excerpt {
  color: var(--clr-gray-600);
  font-size: var(--fs-small);
  line-height: 1.7;
  margin-bottom: var(--space-sm);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card__readmore {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-heading);
  font-weight: 600;
  font-size: var(--fs-small);
  color: var(--clr-magenta);
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  border: 2px solid var(--clr-pink-light);
  transition: all var(--transition);
  text-decoration: none;
}

.news-card__readmore:hover {
  background: var(--grad-brand);
  color: var(--clr-white);
  border-color: transparent;
  gap: 12px;
  transform: translateX(4px);
}

/* =================================================================
   NEWSLETTERS SECTION
   ================================================================= */
.newsletters {
  background: var(--clr-white);
  position: relative;
}

.newsletter-subscribe {
  max-width: 600px;
  margin-inline: auto;
  text-align: center;
}

.newsletter-subscribe__cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  margin-top: var(--space-md);
}



/* =================================================================
   CONTACT SECTION
   ================================================================= */
.contact {
  position: relative;
  overflow: hidden;
  background: var(--clr-off-white);
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: start;
}

.contact__info {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.contact__info h3 {
  font-family: var(--ff-heading);
  font-size: var(--fs-h2);
  font-weight: 800;
  color: var(--clr-magenta);
}

.contact__info p {
  color: var(--clr-gray-600);
  line-height: 1.8;
}

.contact__socials {
  display: flex;
  gap: var(--space-sm);
}

.contact__social-link {
  width: 48px; height: 48px;
  border-radius: var(--radius-full);
  background: var(--clr-white);
  border: 1px solid var(--clr-gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  color: var(--clr-gray-600);
}

.contact__social-link:hover {
  background: var(--grad-brand);
  color: var(--clr-white);
  border-color: transparent;
  transform: translateY(-2px);
}

.contact__cards {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.contact-card {
  background: var(--clr-white);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--clr-gray-200);
  display: flex;
  gap: var(--space-md);
  align-items: center;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.contact-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 4px;
  background: var(--grad-brand);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform var(--transition);
}

.contact-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--clr-orange);
}

.contact-card:hover::before {
  transform: scaleY(1);
}

.contact-card__icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-md);
  background: var(--grad-hero);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.contact-card__content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contact-card__content h4 {
  font-family: var(--ff-heading);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--clr-gray-800);
  margin: 0;
}

.contact-card__content p {
  color: var(--clr-gray-600);
  font-size: var(--fs-small);
  line-height: 1.5;
  margin: 0;
}

.contact-card__link {
  display: inline-flex;
  align-items: center;
  font-family: var(--ff-heading);
  font-weight: 600;
  font-size: var(--fs-small);
  color: var(--clr-magenta);
  text-decoration: none;
  margin-top: 4px;
  transition: color var(--transition);
}

.contact-card__link:hover {
  color: var(--clr-orange);
}

.contact-card__link.link--disabled {
  color: var(--clr-gray-400);
  cursor: not-allowed;
}

/* =================================================================
   FOOTER
   ================================================================= */
.footer {
  background: var(--clr-dark);
  color: var(--clr-gray-400);
  padding-block: var(--space-lg) var(--space-md);
}

.footer__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-lg);
  flex-wrap: wrap;
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.footer__brand {
  max-width: 300px;
}

.footer__brand img {
  height: 40px;
  width: auto;
  margin-bottom: var(--space-sm);
}

.footer__brand .footer__logo-img {
  filter: drop-shadow(0 0 1px rgba(255,255,255,.3));
}

.footer__brand p {
  font-size: var(--fs-small);
  line-height: 1.7;
}

.footer__links-group {
  display: flex;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.footer__col h4 {
  font-family: var(--ff-heading);
  font-weight: 700;
  color: var(--clr-white);
  font-size: 0.95rem;
  margin-bottom: var(--space-sm);
}

.footer__col a {
  display: block;
  font-size: var(--fs-small);
  margin-bottom: 8px;
  transition: color var(--transition);
}

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

.footer__eu {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
  background: rgba(255, 255, 255, .04);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  margin-bottom: var(--space-md);
  justify-content: center;
}

.footer__eu-logos {
  display: flex;
  gap: var(--space-sm);
  align-items: center;
  flex-shrink: 0;
}

.footer__eu-logos img {
  height: 100%;
}

.footer__eu-img {
  height: 52px;
  background-color: var(--clr-white);
  padding: 6px 16px;
  border-radius: var(--radius-md);
  object-fit: contain;
  filter: none !important;
  opacity: 1 !important;
}

.footer__eu-text {
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--clr-gray-400);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
  font-size: var(--fs-small);
}

.footer__bottom a:hover {
  color: var(--clr-orange);
}

/* =================================================================
   ANIMATIONS — Scroll Reveal
   ================================================================= */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

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

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

/* =================================================================
   ARTICLE PAGE (news-*.html)
   ================================================================= */
.article-hero {
  position: relative;
  overflow: hidden;
  background: var(--clr-off-white);
  padding-top: calc(var(--nav-height) + var(--space-lg));
  padding-bottom: var(--space-lg);
}

.article-hero__inner {
  position: relative;
  z-index: 2;
}

.article-hero__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-heading);
  font-weight: 500;
  font-size: var(--fs-small);
  color: var(--clr-gray-600);
  margin-bottom: var(--space-md);
  transition: color var(--transition), gap var(--transition);
}

.article-hero__back:hover {
  color: var(--clr-magenta);
  gap: 12px;
}

.article-hero__date {
  display: inline-block;
  font-family: var(--ff-heading);
  font-weight: 600;
  font-size: var(--fs-small);
  color: var(--clr-orange);
  margin-bottom: var(--space-sm);
}

.article-hero__title {
  font-family: var(--ff-heading);
  font-size: clamp(1.6rem, 3.4vw, 2.6rem);
  font-weight: 800;
  color: var(--clr-magenta);
  line-height: 1.15;
}

.article__date {
  display: inline-block;
  font-family: var(--ff-heading);
  font-weight: 600;
  font-size: var(--fs-small);
  color: var(--clr-orange);
  margin-bottom: var(--space-sm);
}

.article__inner {
  max-width: 780px;
  margin-inline: auto;
}

.article__featured-image {
  margin-bottom: var(--space-lg);
}

.article__featured-image img {
  width: 100%;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.article__featured-image figcaption {
  text-align: center;
  font-size: var(--fs-small);
  color: var(--clr-gray-400);
  margin-top: var(--space-sm);
  font-style: italic;
}

.article__body {
  margin-bottom: var(--space-xl);
}

.article__lead {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--clr-gray-800);
  line-height: 1.9;
  margin-bottom: var(--space-md);
}

.article__body p {
  color: var(--clr-gray-600);
  line-height: 1.9;
  margin-bottom: var(--space-sm);
}

.article__body h2 {
  font-family: var(--ff-heading);
  font-weight: 700;
  font-size: var(--fs-h2);
  color: var(--clr-gray-800);
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
}

.article__quote {
  background: var(--clr-off-white);
  border-left: 4px solid var(--clr-orange);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: var(--space-md);
  margin-block: var(--space-md);
}

.article__quote p {
  font-family: var(--ff-heading);
  font-weight: 600;
  font-size: var(--fs-h3);
  font-style: italic;
  color: var(--clr-orange);
  line-height: 1.6;
  margin-bottom: var(--space-xs) !important;
}

.article__quote cite {
  font-style: normal;
  font-size: var(--fs-small);
  color: var(--clr-gray-400);
}

.article__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
  padding-top: var(--space-lg);
  border-top: 1px solid var(--clr-gray-200);
}

/* =================================================================
   RESPONSIVE
   ================================================================= */
@media (max-width: 968px) {
  .about__grid,
  .contact__grid {
    grid-template-columns: 1fr;
  }

  .about__image-wrapper {
    order: -1;
  }

  .consortium__grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  }
}

@media (max-width: 768px) {
  .nav__links {
    position: fixed;
    top: 0; right: 0;
    width: min(320px, 85vw);
    height: 100vh;
    background: rgba(255,255,255,.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    gap: var(--space-md);
    transform: translateX(100%);
    transition: transform var(--transition);
    box-shadow: var(--shadow-lg);
  }

  .nav__links.open {
    transform: translateX(0);
  }

  .nav__toggle {
    display: flex;
  }

  .hero__logo {
    width: min(300px, 60vw);
  }

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

  .footer__top {
    flex-direction: column;
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero__cta-group {
    flex-direction: column;
    align-items: center;
  }

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

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

/* ---------- Cookie / Form Success Toast ---------- */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--clr-dark);
  color: var(--clr-white);
  padding: 16px 24px;
  border-radius: var(--radius-md);
  font-size: var(--fs-small);
  z-index: 3000;
  transform: translateY(calc(100% + 40px));
  transition: transform var(--transition);
  box-shadow: var(--shadow-lg);
}

.toast.visible {
  transform: translateY(0);
}

/* =================================================================
   COOKIE CONSENT BANNER
   ================================================================= */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: 24px;
  max-width: 600px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  border-radius: var(--radius-lg);
  padding: 24px;
  z-index: 9999;
  transform: translateY(150%);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-banner.visible {
  transform: translateY(0);
}

.cookie-banner__container {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.cookie-banner__content h3 {
  font-family: var(--ff-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--clr-gray-800);
  margin: 0 0 var(--space-xs) 0;
}

.cookie-banner__content p {
  font-size: var(--fs-small);
  color: var(--clr-gray-600);
  line-height: 1.6;
  margin: 0;
}

.cookie-banner__content p a {
  color: var(--clr-magenta);
  text-decoration: underline;
  font-weight: 500;
}

.cookie-banner__content p a:hover {
  color: var(--clr-orange);
}

.cookie-banner__actions {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-xs);
}

.cookie-banner__actions .btn {
  padding: 10px 20px;
  font-size: var(--fs-small);
}

.cookie-settings-btn {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: var(--clr-white);
  border: 1px solid var(--clr-gray-200);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 9998;
  font-size: 1.3rem;
  transition: all var(--transition);
}

.cookie-settings-btn:hover {
  transform: scale(1.1) rotate(15deg);
  box-shadow: var(--shadow-lg);
  border-color: var(--clr-orange);
}

/* Responsive banner */
@media (max-width: 640px) {
  .cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 16px;
  }
  
  .cookie-banner__actions {
    flex-direction: column-reverse;
  }
  
  .cookie-banner__actions .btn {
    width: 100%;
    text-align: center;
  }
}

.cookie-options-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
  margin-bottom: 8px;
}

.cookie-option-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 0, 0, 0.03);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 0, 0, 0.05);
  gap: var(--space-sm);
}

.cookie-option-info {
  flex: 1;
  text-align: left;
}

.cookie-option-info strong {
  font-family: var(--ff-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--clr-gray-800);
  display: block;
}

.cookie-option-info p {
  font-size: 0.75rem !important;
  color: var(--clr-gray-500) !important;
  line-height: 1.4 !important;
  margin-top: 3px !important;
}

/* Switch styling */
.switch-label {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.switch-label input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: var(--clr-gray-300);
  transition: .3s;
  border-radius: 24px;
}

.switch-slider::before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: var(--clr-white);
  transition: .3s;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.switch-label input:checked + .switch-slider {
  background-color: var(--clr-orange);
}

.switch-label input:checked + .switch-slider::before {
  transform: translateX(20px);
}

.switch-slider.disabled {
  background-color: var(--clr-gray-200);
  cursor: not-allowed;
}

.switch-slider.disabled::before {
  background-color: var(--clr-gray-400);
}
