/* Ocultar todos los elementos del timeline FZ2 con color #25774a en móvil */
@media (max-width: 767px) {
  .fz2-timeline-line,
  .fz2-timeline-dot,
  .fz2-step h3 {
    display: none !important;
  }
}
/* FZ2 Methodology Timeline Styles */
.fz2-methodology {
  margin: 4rem 0 2rem 0;
  background: linear-gradient(180deg, var(--secondary-bg) 0%, #e6f4e6 50%, var(--secondary-bg) 100%);
}
.fz2-timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 0 2rem 0;
}
.fz2-timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, #25774a 0%, #83b79a 100%);
  transform: translateX(-50%);
  z-index: 0;
  border-radius: 2px;
}
.fz2-step {
  display: flex;
  align-items: center;
  margin-bottom: 3rem;
  position: relative;
  z-index: 1;
}
.fz2-row {
  flex-direction: row;
}
.fz2-row-reverse {
  flex-direction: row-reverse;
}
.fz2-col {
  flex: 1 1 0;
  min-width: 0;
}
.fz2-col-img {
  display: flex;
  justify-content: center;
  align-items: center;
}
.fz2-col-img img {
  width: 100%;
  max-width: 180px;
  border-radius: 1.2rem;
  box-shadow: 0 2px 12px #0002;
}
.fz2-col-desc {
  padding: 1.5rem 2rem;
  text-align: left;
}
.fz2-step h3 {
  margin-top: 0;
  color: #25774a;
  font-size: 1.3rem;
  font-weight: 700;
  padding: 0 2rem;
}
.fz2-step p {
  margin-bottom: 0;
  color: #222;
  font-size: 1.05rem;
  padding: 0 2rem;
}
.fz2-timeline-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 22px;
  height: 22px;
  background: #fff;
  border: 4px solid #25774a;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  box-shadow: 0 2px 8px #0001;
}
@media (max-width: 900px) {
  .fz2-timeline {
    padding: 0 1rem;
  }
  .fz2-col-desc {
    padding: 1rem 1rem;
  }
}
@media (max-width: 700px) {
  .fz2-step, .fz2-row, .fz2-row-reverse {
    flex-direction: column !important;
    align-items: stretch;
  }
  .fz2-col-img {
    margin-bottom: 1rem;
  }
  .fz2-timeline-dot {
    left: 20px;
    top: unset;
    transform: translateY(-50%);
  }
  .fz2-timeline-line {
    left: 20px;
    width: 4px;
    transform: none;
  }
}
/* Grid especial para dos publicaciones */
.publications-grid--two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

@media (max-width: 900px) {
  .publications-grid--two {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.publication-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s;
}
.publication-card:hover {
  box-shadow: 0 4px 24px rgba(0,0,0,0.13);
}
.publication-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}
.publication-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.publication-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0.5rem 0 0.5rem 0;
}
.publication-category {
  font-size: 0.95rem;
  color: #25774a;
  font-weight: 600;
  margin-bottom: 0.3rem;
}
.publication-excerpt {
  font-size: 1rem;
  margin-bottom: 1rem;
}
.pub-subtitle {
  font-weight: 600;
  color: #333;
}
.pub-desc, .pub-desc-en {
  display: block;
  font-size: 0.98rem;
  color: #444;
  margin-bottom: 0.2rem;
}
.publication-meta {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.publication-source {
  font-size: 0.95rem;
  color: #888;
}
.publication-link {
  color: #25774a;
  font-weight: 600;
  text-decoration: underline;
  font-size: 1rem;
  transition: color 0.2s;
}
.publication-link:hover {
  color: #003366;
}
/* Sombreado para todos los textos del header */
header, header * {
  text-shadow: 1px 1px 2px rgba(0,0,0,1);
}
header.scrolled, header.scrolled * {
  text-shadow: none !important;
}
/* Justificar texto en toda la web */
body, p, li, .about-text, .publications-excerpt, .contact-details, .footer, .main-content, .subtitle, .access-description, .feature span, .footer-tagline {
  text-align: justify;
  text-justify: inter-word;
}
/*
 * Prieto Bellver website styling
 *
 * The design follows a minimalist and modern aesthetic inspired by the
 * provided brand guidelines. Color palettes, typography and layout are
 * chosen to complement the supplied logo and imagery. The site is fully
 * responsive, with careful attention paid to readability and usability on
 * both mobile and desktop devices.
 */

:root {
  /* Gris medio para textos principales y elementos destacados */
  --primary-black: #8f8f8f;
  /* Gris muy oscuro para fondos primarios */
  --primary-bg: #1a1a1a;
  /* Gris claro para fondos secundarios */
  --secondary-bg: #f8f8f8;
  /* Negro para textos en fondos claros */
  --secondary-text: #000000;
  /* Blanco para textos en fondos oscuros */
  --primary-text: #ffffff;
  /* Gris medio para textos secundarios */
  --tertiary-text: #666666;
  /* Gris claro para bordes y elementos sutiles */
  --border-color: #e0e0e0;
  /* Gris medio para estados hover */
  --hover-bg: #f0f0f0;
  /* Header height used for layout offsets */
  --header-height: 80px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Titillium Web', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--secondary-text);
  background: var(--secondary-bg);
}

/* Utility container to centre content and control width */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Header styling */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  display: flex;
  align-items: center;
  z-index: 999;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

header:not(.scrolled) {
  background: transparent;
}

header.scrolled {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

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

header .logo img {
  height: 40px;
  width: auto;
  transition: filter 0.3s ease;
}

/* Navigation styles */
header nav ul {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 30px;
}

header nav ul li a {
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
  letter-spacing: 0.5px;
  position: relative;
}

/* Default link colour depends on scroll state */
header:not(.scrolled) nav ul li a {
  color: var(--primary-text);
}
header.scrolled nav ul li a {
  color: var(--secondary-text);
}

header nav ul li a:hover {
  color: #000000;
}

/* Language toggle styles */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.lang-toggle button {
  border: none;
  background: none;
  cursor: pointer;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

/* Hide mobile language toggle in desktop */
.mobile-lang-item {
  display: none;
}

/* Colour adapt based on header state */
header:not(.scrolled) .desktop-lang button {
  color: var(--primary-text);
}
header.scrolled .desktop-lang button {
  color: var(--secondary-text);
}

.lang-toggle button.active {
  color: var(--primary-black);
}

/* Always display active language button in accent colour */
header .lang-toggle button.active {
  color: var(--primary-black) !important;
}

.lang-toggle span {
  opacity: 0.6;
}

/* Hamburger menu for mobile */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  cursor: pointer;
}

.hamburger span {
  display: block;
  height: 3px;
  background: currentColor;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Rotate bars when menu open */
.hamburger.open span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* Hero section */
.hero {
  height: 100vh;
  position: relative;
  background: linear-gradient(rgba(26, 26, 26, 0.85), rgba(26, 26, 26, 0.85)), url('../images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--primary-text);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: var(--header-height);
}

.hero .hero-logo {
    width: 250px;
    margin-bottom: 25px;
    margin-top: 150px;
}

.hero h1 {
  font-family: 'Archivo Narrow', sans-serif;
  font-size: 3rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 20px;
  text-shadow: 1px 1px 2px rgba(0,0,0,1);
}

.hero p {
  max-width: 700px;
  text-shadow: 1px 1px 2px rgba(0,0,0,1);
  margin: 0 auto 35px;
  font-size: 1.125rem;
  line-height: 1.6;
}

.btn {
  display: inline-block;
  background: var(--primary-black);
  color: #fff;
  padding: 14px 32px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease;
}

.btn:hover {
  background: #0b0b0b;
}

/* Services section */
.services {
  padding: 100px 0;
  background: linear-gradient(rgba(248, 248, 248, 0.95), rgba(248, 248, 248, 0.95)), url('../images/services-bg.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--secondary-text);
}

.services h2 {
  text-align: center;
  font-size: 2.25rem;
  margin-bottom: 30px;
  font-family: 'Archivo Narrow', sans-serif;
  letter-spacing: 2px;
}

.services p {
    margin-bottom: 60px;
}

.services .cards {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
}

.services .card {
  flex: 1 1 calc(33.333% - 80px);
  max-width: calc(33.333% - 80px);
  background: #ffffff;
  border-radius: 12px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.services .card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.services .card i {
  color: var(--primary-black);
  margin-bottom: 24px;
}

.services .card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  font-family: 'Archivo Narrow', sans-serif;
  letter-spacing: 1px;
}

.services .card p {
  font-size: 1rem;
  color: #555;
  line-height: 1.5;
}

/* About section */
.about {
  padding: 100px 0;
  background: linear-gradient(rgba(26, 26, 26, 0.8), rgba(26, 26, 26, 0.8)), url('../images/about-bg.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--primary-text);
}

.about-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
}

.about-img {
  flex: 1 1 40%;
  text-align: center;
}

.about-img img {
  width: 100%;
  max-width: 400px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.about-text {
  flex: 1 1 60%;
}

.about-text h2 {
  font-size: 2.25rem;
  margin-bottom: 20px;
  font-family: 'Archivo Narrow', sans-serif;
  letter-spacing: 2px;
  text-shadow: 1px 1px 2px rgba(0,0,0,1);
}

.about-text p {
  margin-bottom: 18px;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--primary-text);
  opacity: 0.9;
  text-shadow: 1px 1px 2px rgba(0,0,0,1);
}

/* Research section */
.research {
  padding: 100px 0;
  background: linear-gradient(rgba(248, 248, 248, 0.9), rgba(248, 248, 248, 0.9)), url('../images/research-bg.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--secondary-text);
  text-align: center;
}

.research h2 {
  font-size: 2.25rem;
  margin-bottom: 25px;
  font-family: 'Archivo Narrow', sans-serif;
  letter-spacing: 2px;
}

.research p {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.7;
  color: #333;
}

/* Contact section */
.contact {
  padding: 100px 0;
  background: linear-gradient(rgba(26, 26, 26, 0.8), rgba(26, 26, 26, 0.8)), url('../images/contact-bg.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--primary-text);
  text-align: center;
}


.contact h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--primary-white);
  font-family: 'Archivo Narrow', sans-serif;
  letter-spacing: 2px;
  text-shadow: 1px 1px 2px rgba(0,0,0,1);
}

.contact p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: var(--primary-white);
  line-height: 1.8;
  opacity: 0.9;
  text-shadow: 1px 1px 2px rgba(0,0,0,1);
}

.contact h3 {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 1);
}
/* Contact details list */
.contact-details {
  margin: 0 auto 35px;
  text-align: center;
}
.contact-details p {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 1rem;
}
.contact-details i {
  color: var(--primary-black);
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px;
  border-radius: 6px;
  border: none;
  font-family: 'Titillium Web', sans-serif;
  font-size: 1rem;
  background: #f5f5f5;
  color: #333;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #777;
}

.contact-form textarea {
  resize: vertical;
  min-height: 150px;
}

.contact-form button.btn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 30px;
  background: var(--primary-black);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

.contact-form button.btn:hover {
  background: #0b0b0b;
}

/* Footer */
.footer {
  background: var(--primary-bg);
  color: var(--primary-text);
  padding: 60px 0 25px;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h3,
.footer-section h4 {
  margin-bottom: 20px;
  color: #fafafa;
  font-family: 'Archivo Narrow', sans-serif;
  font-weight: 600;
}

.footer-section h3 {
  font-size: 1.5rem;
}

.footer-section h4 {
  font-size: 1.2rem;
}

.footer-tagline {
  font-size: 0.9rem;
  opacity: 0.8;
  line-height: 1.6;
}

/* Legal Section */
.legal ul {
  list-style: none;
}

.legal ul li {
  margin-bottom: 12px;
}

.legal ul li a {
  color: var(--primary-text);
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.3s ease, color 0.3s ease;
}

.legal ul li a:hover {
  opacity: 1;
  color: #595959;
}

.footer-logo {
  margin: 25px 0 20px 0;
  text-align: center;
}

.footer-logo-img {
  height: auto;
  width: 250px;
  opacity: 0.9;
}

/* Contact Section */
.footer-section.contact {
  background: linear-gradient(rgba(26, 26, 26, 0.85), rgba(26, 26, 26, 0.85)), url('../images/footer-contact-bg.jpg');
  background-size: cover;
  background-position: center;
  border-radius: 15px;
  padding: 30px 25px;
  position: relative;
}

.contact-info p {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 0.9rem;
}

.contact-info i {
  color: var(--primary-black);
  width: 16px;
}

.contact-info a {
  color: var(--primary-text);
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.3s ease, color 0.3s ease;
}

.contact-info a:hover {
  opacity: 1;
  color: #595959;
}

/* Footer Bottom */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom .social {
  display: flex;
  gap: 15px;
}

.footer-bottom .social-link {
  color: var(--primary-text);
  font-size: 1.2rem;
  opacity: 0.8;
  transition: opacity 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.footer-bottom .social-link:hover {
  opacity: 1;
  color: #595959;
  transform: translateY(-2px);
}

.copyright {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Responsive Footer */
@media (max-width: 768px) {
  .footer {
    padding: 40px 0 20px;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
}

/* Ensure anchored sections are not hidden behind the fixed header when navigated to */
section {
  scroll-margin-top: var(--header-height);
}

/* Responsive styles */
@media (max-width: 992px) {
  .services .card {
    flex: 1 1 calc(50% - 60px);
    max-width: calc(50% - 60px);
  }
  .about-grid {
    flex-direction: column;
    text-align: center;
  }
  .about-img,
  .about-text {
    flex: 1 1 100%;
  }
  .about-img img {
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  /* Stack service cards on small screens */
  .services .card {
    flex: 1 1 100%;
    max-width: 100%;
  }
  /* Show hamburger and hide standard nav */
  .hamburger {
    display: flex;
    /* Color adapt based on header state */
    color: var(--primary-text);
  }
  
  header.scrolled .hamburger {
    color: var(--secondary-text);
  }
  
  header nav ul {
    position: fixed;
    top: var(--header-height);
    right: -100%;
    flex-direction: column;
    background: #ffffff;
    width: 80%;
    height: calc(100vh - var(--header-height));
    padding: 40px 20px;
    gap: 25px;
    transition: right 0.3s ease;
    z-index: 998;
    box-shadow: -4px 0 6px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
  }
  /* When nav has the open class show the menu */
  nav.open ul {
    right: 0;
  }
  /* Force nav link colours for mobile menu */
  header nav ul li a {
    color: var(--secondary-text) !important;
    font-size: 1.1rem;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    display: block;
    width: 100%;
  }
  
  /* Hide desktop language toggle in mobile */
  .desktop-lang {
    display: none;
  }
  
  /* Show mobile language toggle */
  .mobile-lang-item {
    display: block !important;
    border-top: 2px solid var(--border-color);
    margin-top: 20px;
    padding-top: 20px;
  }
  
  /* Mobile language toggle styles */
  .mobile-lang-item .lang-toggle {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
  }
  
  .mobile-lang-item .lang-toggle button {
    color: var(--secondary-text) !important;
    font-size: 1rem;
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 20px;
    background: #f5f5f5;
  }
  
  .mobile-lang-item .lang-toggle button.active {
    background: var(--primary-black);
    color: white !important;
    border-color: var(--primary-black);
  }
  
  /* Disable parallax on mobile for better performance */
  .hero,
  .services,
  .about,
  .research,
  .contact {
    background-attachment: scroll !important;
  }
  
  /* Adjust hero text size for mobile */
  .hero h1 {
    font-size: 2.2rem;
    letter-spacing: 2px;
  }
  
  .hero p {
    font-size: 1rem;
    padding: 0 20px;
  }
}

/* Additional visual enhancements */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('../images/overlay-pattern.png');
  opacity: 0.05;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

/* Subtle animation for cards */
@keyframes cardFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-5px); }
}

.services .card {
  animation: cardFloat 6s ease-in-out infinite;
  animation-delay: calc(var(--card-index, 0) * 0.5s);
}

/* Add smooth transitions for better UX */
* {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Improved button hover effects */
.btn {
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.btn:hover::before {
  left: 100%;
}

/* Section animation styles */
section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

section.animated {
  opacity: 1;
  transform: translateY(0);
}

/* Override for hero section - always visible */
.hero {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Card stagger animation */
.services .card:nth-child(1) { animation-delay: 0.2s; }
.services .card:nth-child(2) { animation-delay: 0.4s; }
.services .card:nth-child(3) { animation-delay: 0.6s; }

/* Loading states for background images */
.hero,
.services,
.about,
.research,
.contact {
  transition: opacity 0.5s ease;
}

/* Logout button styles */
.logout-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--tertiary-text), var(--primary-black));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  z-index: 1000;
  font-size: 1.2rem;
  text-decoration: none;
  cursor: pointer;
}

.logout-button:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  color: white;
  text-decoration: none;
}

.logout-button a {
  color: inherit;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

@media (max-width: 768px) {
  .logout-button {
    width: 45px;
    height: 45px;
    bottom: 15px;
    right: 15px;
    font-size: 1rem;
  }
}

/* Cookie Banner Styles */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(26, 26, 26, 0.96);
  color: var(--primary-text);
  padding: 20px 0;
  z-index: 10000;
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(254, 254, 254, 0.1);
  transform: translateY(100%);
  opacity: 0;
  transition: all 0.4s ease;
}

.cookie-banner.show {
  transform: translateY(0);
  opacity: 1;
}

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

.cookie-content {
  flex: 1;
}

.cookie-content p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}

.cookie-content a {
  color: var(--primary-black);
  text-decoration: none;
  transition: color 0.2s ease;
}

.cookie-content a:hover {
  color: #000000;
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.cookie-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-block;
}

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

.cookie-btn.accept:hover {
  background: #000000;
  transform: translateY(-1px);
}

.cookie-btn.decline {
  background: transparent;
  color: var(--primary-text);
  border: 1px solid rgba(254, 254, 254, 0.3);
}

.cookie-btn.decline:hover {
  background: rgba(254, 254, 254, 0.1);
  border-color: rgba(254, 254, 254, 0.5);
}

.cookie-btn.settings {
  background: transparent;
  color: var(--primary-black);
  border: 1px solid var(--primary-black);
}

.cookie-btn.settings:hover {
  background: var(--primary-black);
  color: white;
}

@media (max-width: 768px) {
  .cookie-banner .container {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
  }
  
  .cookie-content {
    text-align: center;
  }
  
  .cookie-actions {
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .cookie-btn {
    flex: 1;
    min-width: 120px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .cookie-banner {
    padding: 15px 0;
  }
  
  .cookie-actions {
    flex-direction: column;
  }
  
  .cookie-btn {
    width: 100%;
  }
}

/* Publications Section Styles */
.publications {
  background: var(--secondary-bg);
  padding: 80px 0;
  position: relative;
}

.publications h2 {
  text-align: center;
  font-family: 'Archivo Narrow', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--secondary-text);
  margin-bottom: 1rem;
}

.publications-subtitle {
  text-align: center;
  color: var(--tertiary-text);
  font-size: 1.1rem;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.publications-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.publication-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
}

.publication-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.publication-image {
  position: relative;
  overflow: hidden;
  height: 200px;
}

.publication-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.publication-content {
  padding: 1.5rem;
}

.publication-category {
  display: inline-block;
  background: var(--primary-black);
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
}

.publication-title {
  margin: 0 0 1rem 0;
  font-size: 1.2rem;
  line-height: 1.4;
}

.publication-title a {
  color: var(--secondary-text);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.publication-title a:hover {
  color: #000000;
}

.publication-excerpt {
  color: var(--tertiary-text);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.publication-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-color);
  padding-top: 1rem;
}

.publication-source {
  color: var(--tertiary-text);
  font-size: 0.85rem;
  font-style: italic;
}

.publication-link {
  color: var(--primary-black);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.publication-link:hover {
  color: #000000;
  text-decoration: underline;
}

@media (max-width: 768px) {
  .publications {
    padding: 60px 0;
  }
  
  .publications h2 {
    font-size: 2rem;
  }
  
  .publications-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .publication-card {
    margin: 0 1rem;
  }
  
  .publication-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

@media (max-width: 480px) {
  .publications {
    padding: 40px 0;
  }
  
  .publications h2 {
    font-size: 1.8rem;
  }
  
  .publications-subtitle {
    font-size: 1rem;
    margin-bottom: 2rem;
  }
  
  .publication-content {
    padding: 1rem;
  }
  
  .publication-card {
    margin: 0 0.5rem;
  }
}