/* =========================
   MENÚ MÓVIL - TEXTO BLANCO
   ========================= */

.sb-slidebar {
  background: #2c3e50 !important;
}

.sb-slidebar a,
.sb-slidebar .navigation a,
.sb-slidebar ul li a {
  color: #ffffff !important;
}

.sb-slidebar a:hover,
.sb-slidebar .navigation a:hover {
  color: #dc143c !important;
}

/* Icono hamburguesa visible */
.sb-toggle-left {
  color: #000 !important;
}


/* =========================
   LOGO ANTS EN HEADER CON IMAGEN
   ========================= */

#logo h3 a {
  background-image: url('https://ants.inf.um.es/user/pages/01.ants-home/IconoBackHome.png') !important;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center left;
  text-indent: -9999px;
  display: block;
  width: 120px;
  height: 50px;
  font-size: 0 !important;
}

/* =========================
   MENÚ - ELIMINAR LÍNEAS COMPLETAMENTE
   ========================= */

@import url('https://fonts.googleapis.com/css2?family=Niramit:wght@700&display=swap');

/* ELIMINAR TODO: líneas, bordes, pseudoelementos */
#navbar .navigation li a,
#navbar .navigation li a::before,
#navbar .navigation li a::after,
#navbar .navigation li.active a,
#navbar .navigation li.active a::before,
#navbar .navigation li.active a::after,
#navbar .navigation li a:hover,
#navbar .navigation li a:hover::before,
#navbar .navigation li a:hover::after,
.navigation li a,
.navigation li a::before,
.navigation li a::after {
  border: 0 !important;
  border-top: 0 !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
  text-decoration: none !important;
  background: none !important;
}

#navbar .navigation li a,
.navigation li a,
#navbar ul.navigation > li > a {
  font-family: 'Space Grotesk', sans-serif !important;
  color: #000 !important;
  transition: transform 0.15s ease, font-weight 0.15s ease !important;
  display: inline-block !important;
  font-weight: 400 !important;
}

/* Página activa solo en negrita */
#navbar .navigation li.active a {
  font-weight: 700 !important;
  color: #000 !important;
}

/* Hover: crecer + negrita */
#navbar .navigation li a:hover {
  font-weight: 700 !important;
  transform: scale(1.05) !important;
}

/* =========================
   FOOTER - NEGRO CON LOGOS A IZQUIERDA Y DERECHA
   ========================= */
#footer {
  background-color: #000 !important;
  padding: 3rem 2rem !important;
  min-height: 150px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#footer .totop,
#footer p {
  display: none !important;
}

/* Logo ANTS a la izquierda */
#footer::before {
  content: "";
  display: block;
  width: 200px;
  height: 60px;
  background-image: url('https://ants.inf.um.es/user/pages/01.ants-home/ants_footer.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center left;
  pointer-events: none;
}

/* Logo UMU a la derecha */
#footer::after {
  content: "";
  display: block;
  width: 300px;
  height: 120px;
  background-image: url('https://ants.inf.um.es/user/pages/01.ants-home/Inform%c2%a0tica-RGB-Convivencia_A-BLTR.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center right;
  pointer-events: none;
}

/* =========================
   FONDO DE PÁGINA - BLANCO ROTO
   ========================= */

html,
body,
#sb-site,
section#body {
  background-color: #f5f7f7 !important;
}

body *:not(img):not(svg):not(path):not(circle):not(line):not(rect):not(.osiris-pub-module):not(.osiris-pub-card):not(.objective-header):not(.btn):not(.carousel-slide):not(.service-card):not(.project-card):not(.osiris-card):not(.osiris-news-card):not(.carousel-arrow):not(.topbar):not(.topbar-inner):not(.main-footer):not(.main-footer-inner):not(.page-hero-bleed):not(.page-hero-bleed--gaialab):not(.gaia-mod):not(.gaia-mod-inner) {
  background-color: transparent !important;
}

/* =========================
   TIPOGRAFÍA: Space Grotesk para títulos
   ========================= */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: 'Space Grotesk', sans-serif !important;
}

/* =========================
   TIPOGRAFÍA GLOBAL: IBM PLEX SANS
   ========================= */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@300;400;500;600;700&display=swap');

body {
  margin: 0;
  padding: 0;
  font-family: 'IBM Plex Sans', system-ui, -apple-system, BlinkMacSystemFont,
               'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* =========================
   TEXTO NEGRO
   ========================= */

body,
p,
h1, h2, h3, h4, h5, h6 {
  color: #000 !important;
}

/* =========================
   IMÁGENES CON LINK - CRECER EN HOVER (EXCEPTO CARDS)
   ========================= */

a:not(.project-link) img {
  transition: transform 0.15s ease;
}

a:not(.project-link):hover img {
  transform: scale(1.05);
}

/* Las imágenes dentro de project-link NO crecen */
a.project-link img {
  transition: none;
}

a.project-link:hover img {
  transform: none;
}
    
/* =========================
   LINKS GLOBALES — AZUL CLÁSICO (solo dentro del contenido, NO en navegación)
   ========================= */

.content a:not(.btn),
article a:not(.btn),
p a:not(.btn),
li a:not(.btn) {
  color: #0066cc;
  text-decoration: underline;
  font-weight: 400;
  display: inline-block;
  transition: color 0.15s ease;
}

.content a:not(.btn):hover,
article a:not(.btn):hover,
p a:not(.btn):hover,
li a:not(.btn):hover {
  color: #0052a3;
  text-decoration: underline;
}

/* Los botones no heredan esto */
a.btn {
  transform: none !important;
  font-weight: inherit !important;
}

/* =========================
   BOTONES (BASE + VARIANTES) — BLINDADO
   ========================= */

/* BASE */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: 999px;
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  font-weight: 500;
  font-size: 15px;
  text-decoration: none !important;

  color: #000;
  background: transparent;
  border: 1.5px solid currentColor;
  box-shadow: none;

  transform: none;
  transform-origin: center;
  will-change: transform;

  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

/* HOVER BASE (para botones sin clase específica - HOME) - EXCLUYENDO btn-news */
body:not(.osiris-theme) .btn:not(.btn-gaialab):not(.btn-research-projects):not(.btn-research-lines):not(.btn-osiris):not(.btn-reminder):not(.btn-perseo):not(.btn-6g-soc):not(.btn-news):hover {
  background: #000 !important;
  color: #fff !important;
  transform: translateY(-1px) scale(1.05) !important;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15) !important;
}

/* BOTÓN BACK TO NEWS - NEGRO A ROJO */
.btn.btn-news {
  background: #000 !important;
  color: #f5f7f7 !important;
  border: none !important;
  transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.15s ease !important;
}

.btn.btn-news:hover {
  background: #dc143c !important;
  color: #f5f7f7 !important;
  transform: translateY(-1px) scale(1.05) !important;
  box-shadow: 0 6px 16px rgba(220, 20, 60, 0.3) !important;
}

/* =========================
   VARIANTES (COLOR + HOVER + CRECER)
   ========================= */

/* GAIALAB */
.btn.btn-gaialab { color: #19d88e !important; }
.btn.btn-gaialab:hover {
  background: #19d88e !important;
  color: #000 !important;
  transform: translateY(-1px) scale(1.05) !important;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15) !important;
}

/* RESEARCH PROJECTS */
.btn.btn-research-projects { color: #0a3d62 !important; }
.btn.btn-research-projects:hover {
  background: #0a3d62 !important;
  color: #fff !important;
  transform: translateY(-1px) scale(1.05) !important;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15) !important;
}

/* RESEARCH LINES */
.btn.btn-research-lines { color: #6d28d9 !important; }
.btn.btn-research-lines:hover {
  background: #6d28d9 !important;
  color: #fff !important;
  transform: translateY(-1px) scale(1.05) !important;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15) !important;
}

/* OSIRIS */
.btn.btn-osiris { color: #273912 !important; }
.btn.btn-osiris:hover {
  background: #273912 !important;
  color: #fff !important;
  transform: translateY(-1px) scale(1.05) !important;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15) !important;
}

/* REMINDER */
.btn.btn-reminder { color: #394b9a !important; }
.btn.btn-reminder:hover {
  background: #394b9a !important;
  color: #fff !important;
  transform: translateY(-1px) scale(1.05) !important;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15) !important;
}

/* PERSEO */
.btn.btn-perseo { color: #377a5b !important; }
.btn.btn-perseo:hover {
  background: #377a5b !important;
  color: #fff !important;
  transform: translateY(-1px) scale(1.05) !important;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15) !important;
}

/* 6G-SOC */
.btn.btn-6g-soc { color: #1f6b85 !important; }
.btn.btn-6g-soc:hover {
  background: #1f6b85 !important;
  color: #fff !important;
  transform: translateY(-1px) scale(1.05) !important;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15) !important;
}

/* =========================
   ICONO CLICABLE (PNG/SVG) — CRECER EN HOVER
   ========================= */

.icon-hover {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform-origin: center;
  will-change: transform;
  transition: transform 0.15s ease, opacity 0.2s ease;
}

.icon-hover:hover {
  transform: translateY(-1px) scale(1.08);
  opacity: 0.9;
}

.news-out-link {
  display: inline-block;
  transition: transform 0.15s ease;
  transform-origin: center;
}

.news-out-link:hover {
  transform: scale(1.06);
}

/* =========================
   NEWS CTA — HOVER SUTIL
   ========================= */

.news-cta-inline > div {
  transition: none;
}

.news-cta-inline:hover > div {
  cursor: pointer;
}

.news-cta-inline h1 {
  transition: transform 0.15s ease;
  transform-origin: center;
}

.news-cta-inline:hover h1 {
  transform: scale(1.05);
}

/* =========================
   TÍTULOS GAIALAB CON ICONOS
   ========================= */

h3.gaialab-principal {
  display: flex;
  align-items: center;
  gap: 0.5em;
  justify-content: center;
}

h3.gaialab-principal::before {
  content: "";
  display: block;
  width: 1.5em;
  height: 1.5em;
  flex-shrink: 0;
  background-image: url('https://ants.inf.um.es/user/pages/02.gaialab/gaia%20lab_iconotitulo-38.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* =========================
   TÍTULOS SECUNDARIOS GAIALAB - VERDE CON DOS ICONOS JUNTOS
   ========================= */

h4.gaialab-secundario {
  display: flex;
  align-items: center;
  gap: 0;
  color: #19d88e !important;
  justify-content: center;
}

h4.gaialab-secundario::before {
  content: "";
  display: block;
  width: 1.2em;
  height: 1.2em;
  flex-shrink: 0;
  background-image: url('https://ants.inf.um.es/user/pages/02.gaialab/gaia%20lab_iconotitulo-39.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  margin-right: 0;
}

h4.gaialab-secundario span::before {
  content: "";
  display: inline-block;
  width: 1.2em;
  height: 1.2em;
  margin-right: 0.6em;
  margin-left: 0;
  flex-shrink: 0;
  background-image: url('https://ants.inf.um.es/user/pages/02.gaialab/gaia%20lab_iconotitulo-39.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  vertical-align: middle;
}

/* =========================
   LÍNEA DIVISORIA GAIALAB - ANCHO COMPLETO
   ========================= */

hr.divider-gaialab-full,
.divider-gaialab-full {
  border: none !important;
  height: 1px !important;
  background-color: #0e1e1a !important;
  margin: 3rem 0 !important;
  width: 100% !important;
}

section#body {
  text-align: center;
}

section#body img {
  margin-left: auto;
  margin-right: auto;
  display: block;
}

section#body p {
  text-align: center;
}

.project-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  padding: 1.2rem;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #0a3d62;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  width: fit-content;
}

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

.project-card img {
  width: 240px;
  height: 240px;
  object-fit: cover;
  border-radius: 8px;
}

.project-card a.project-link {
  display: block;
  cursor: pointer;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding: 1rem 0;
  justify-items: center;
}

@media (max-width: 1024px) {
  .projects-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
}

section#body {
  max-width: 1250px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding: 2rem 0;
  justify-items: center;
}

.service-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  padding: 1.5rem;
  background: #ffd700 !important;
  background-color: #ffd700 !important;
  border-radius: 12px;
  border: 1px solid #000;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  width: 100%;
  max-width: 350px;
}

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

.service-card img {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

.service-card a.service-link { display: block; }

.service-card p {
  color: #000 !important;
  font-size: 0.9rem !important;
  text-align: center !important;
  margin: 0 !important;
}

.service-card .btn { margin-top: auto; }

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

.btn.btn-internal-services {
  background: #EED6C4 !important;
  color: #000 !important;
  border: 1.5px solid #000 !important;
}

.btn.btn-internal-services:hover {
  background: #000 !important;
  color: #EED6C4 !important;
  border-color: #000 !important;
  transform: translateY(-1px) scale(1.05) !important;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15) !important;
}

.btn.btn-gaialab-cta {
  background: #19d88e !important;
  color: #000 !important;
  border: 1.5px solid #19d88e !important;
}

.btn.btn-gaialab-cta:hover {
  background: #000 !important;
  color: #19d88e !important;
  border-color: #000 !important;
  transform: translateY(-1px) scale(1.05) !important;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15) !important;
}

body.osiris-theme { background: #f5f1e6 !important; }
body.osiris-theme #sb-site,
body.osiris-theme section#body { background: #f5f1e6 !important; }

body.osiris-theme > .page-wrap {
  max-width: none;
  margin: 0;
  padding: 0;
}

body.osiris-theme .content {
  margin-top: 0;
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

body.osiris-theme .osiris-project-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background: #273912;
}

body.osiris-theme .osiris-project-topbar-inner {
  max-width: 1000px;
  min-height: 76px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

body.osiris-theme .osiris-project-logo img {
  display: block;
  height: 21px;
  width: auto;
}

body.osiris-theme .osiris-project-nav {
  margin-left: auto;
  margin-right: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

body.osiris-theme .osiris-project-nav a {
  text-decoration: none;
  color: #f5f1e6 !important;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: opacity 0.15s ease;
}

body.osiris-theme .osiris-project-nav a:hover {
  opacity: 0.86;
}

body.osiris-theme .osiris-ants-logo img {
  display: block;
  height: 40px;
  width: auto;
  transition: transform 0.15s ease;
  transform-origin: center;
}

body.osiris-theme .osiris-ants-logo:hover img {
  transform: scale(1.05);
}

body.osiris-theme .osiris-hero {
  width: 100vw;
  margin: 0 calc(50% - 50vw);
  background: #f5f1e6;
  height: 525px;
  overflow: hidden;
}

body.osiris-theme .osiris-hero-inner {
  max-width: 1000px;
  height: 100%;
  margin: 0 auto;
  padding: 0 1.5rem;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 160px;
}

body.osiris-theme .osiris-hero-logo img {
  height: 230px;
  width: auto;
  display: block;
}

body.osiris-theme .osiris-hero-copy {
  max-width: 390px;
}

body.osiris-theme .osiris-hero-copy p {
  margin: 0;
  color: #273912 !important;
  font-size: 1.24rem;
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 700;
  line-height: 1.42;
  text-align: left;
}

body.osiris-theme .osiris-hero-more {
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: #273912 !important;
  text-decoration: none !important;
  border-radius: 999px;
  padding: 0.62rem 1.1rem;
  border: 1.5px solid #273912;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

body.osiris-theme .btn,
body.osiris-theme a[class*="btn-"] {
  border-color: #273912 !important;
  color: #273912 !important;
  background: transparent !important;
  text-decoration: none !important;
}

body.osiris-theme .btn:hover,
body.osiris-theme a[class*="btn-"]:hover {
  background: #273912 !important;
  color: #f5f1e6 !important;
  border-color: #273912 !important;
}

.osiris-cards-grid { max-width: 1100px; margin: 3rem auto; padding: 0 2rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.osiris-card { background: #f5f1e6; border: 2px solid #273912; border-radius: 16px; padding: 2rem; text-align: center; transition: transform 0.15s ease, box-shadow 0.15s ease; display: flex; flex-direction: column; }
.osiris-card:hover { transform: translateY(-4px); box-shadow: 0 6px 20px rgba(0,0,0,0.12); }
.osiris-card img { width: 100%; max-width: 220px; height: auto; margin: 0 auto 1.5rem auto; display: block; }
.osiris-card h3 { font-family: 'Space Grotesk', sans-serif; font-size: 1.2rem; font-weight: 700; color: #273912; margin: 0 0 1rem 0; text-transform: uppercase; letter-spacing: 0.05em; }
.osiris-card p { color: #273912; font-size: 0.95rem; line-height: 1.6; margin: 0 0 1.5rem 0; flex-grow: 1; }
.osiris-card .btn { background: transparent !important; color: #273912 !important; border: 2px solid #273912 !important; margin-top: auto; }
.osiris-card .btn:hover { background: #273912 !important; color: #f5f1e6 !important; }

@media (max-width: 1024px) { .osiris-cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) { .osiris-cards-grid { grid-template-columns: 1fr; padding: 0 1rem; } }

.osiris-slider-wrapper { max-width: 770px; margin: 4rem auto; padding: 0 2rem; position: relative; overflow: hidden; }
.osiris-slider { display: flex; transition: transform 0.5s ease; }
.osiris-slider img { width: 100%; flex-shrink: 0; height: auto; display: block; border-radius: 16px; border: 2px solid #273912; }
.osiris-slider-controls { display: flex !important; justify-content: center !important; gap: 1rem !important; margin-top: 1.5rem !important; }
.osiris-slider-arrow { background: transparent !important; color: #273912 !important; border: none !important; border-radius: 0 !important; width: auto !important; height: auto !important; font-size: 2.5rem !important; cursor: pointer !important; transition: color 0.2s ease, transform 0.15s ease !important; display: flex !important; align-items: center !important; justify-content: center !important; padding: 0 !important; }
.osiris-slider-arrow:hover { color: #3d5219 !important; transform: scale(1.2) !important; background: transparent !important; }
@media (max-width: 768px) { .osiris-slider-wrapper { padding: 0 1rem; max-width: 100%; } }

.osiris-news-slider-wrapper {
  max-width: 1200px;
  margin: 3rem auto;
  padding: 0 5rem;
  position: relative;
  overflow: hidden;
}
.osiris-news-slider {
  display: flex;
  gap: 2rem;
  transition: transform 0.5s ease;
}

.osiris-news-card {
  min-width: calc((100% - 4rem) / 3);
  background: #f5f1e6;
  border: 2px solid #273912;
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.osiris-news-card a img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 1rem;
  display: block;
}

.osiris-news-card h3 {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: #273912;
  margin: 0 0 1.5rem 0;
  line-height: 1.4;
  flex-grow: 1;
  min-height: 80px;
}

.btn-osiris-news {
  background: transparent !important;
  color: #273912 !important;
  border: 2px solid #273912 !important;
  margin-top: auto;
}
.btn-osiris-news:hover { background: #273912 !important; color: #f5f1e6 !important; }
.osiris-news-arrow {
position: absolute;
top: 50%;
transform: translateY(-50%);
background: transparent !important;
color: #273912 !important;
border: none !important;
font-size: 2.5rem !important;
cursor: pointer !important;
z-index: 10;
transition: color 0.2s ease, transform 0.15s ease !important;
}
.osiris-news-prev { left: 0; }
.osiris-news-next { right: 0; }
.osiris-news-arrow:hover { color: #3d5219 !important; transform: translateY(-50%) scale(1.2) !important; }
@media (max-width: 768px) { .osiris-news-slider-wrapper { padding: 0 3rem; } .osiris-news-card { min-width: 100%; } }

.osiris-objectives {
  max-width: 1100px;
  margin: 3rem auto;
  padding: 0 2rem;
}
.objective-item {
  margin-bottom: 1rem;
  border: 2px solid #273912;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
}
.objective-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: #273912 !important;
  color: #f5f1e6 !important;
  padding: 1.5rem 2rem;
  transition: all 0.3s ease;
}
.objective-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  min-width: 60px;
  color: #f5f1e6 !important;
}
.objective-title {
  flex: 1;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: #f5f1e6 !important;
}
.objective-arrow {
  font-size: 1.8rem;
  transition: transform 0.3s ease;
  color: #f5f1e6 !important;
}
.objective-content {
  max-height: 0;
  overflow: hidden;
  background: #fff;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 2rem;
}
.objective-content ul { list-style: none; padding: 0; margin: 0; }
.objective-content li { padding: 0.8rem 0; color: #273912; font-family: 'IBM Plex Sans', sans-serif; font-size: 0.95rem; line-height: 1.5; }
.objective-item.active .objective-header { background: rgba(39, 57, 18, 0.1) !important; color: #273912 !important; }
.objective-item.active .objective-number,
.objective-item.active .objective-title,
.objective-item.active .objective-arrow { color: #273912 !important; }
.objective-item.active .objective-arrow { transform: rotate(90deg); }
.objective-item.active .objective-content { max-height: 500px; padding: 2rem; }

@media (max-width: 768px) {
  .osiris-objectives { padding: 0 1rem; }
  .objective-header { padding: 1rem 1.5rem; gap: 1rem; }
  .objective-number { font-size: 1.5rem; min-width: 50px; }
  .objective-title { font-size: 1rem; }
}

/* Research projects: force 3 columns on desktop */
body.menu-main.projects-page .projects-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

@media (max-width: 980px) {
  body.menu-main.projects-page .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 680px) {
  body.menu-main.projects-page .projects-grid {
    grid-template-columns: 1fr !important;
  }
}

body.menu-main.projects-page .projects-grid {
  gap: 1.25rem !important;
  align-items: start !important;
}

body.menu-main.projects-page .projects-grid .project-card {
  width: 100% !important;
  max-width: 300px !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

body.menu-main.projects-page .projects-grid .project-card img {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 1 / 1;
  object-fit: cover !important;
}

body.menu-main.projects-page .projects-grid .project-card:hover {
  transform: translateY(-4px) !important;
}

.btn-osiris-pub {
  background: transparent !important;
  color: #273912 !important;
  border: 2px solid #273912 !important;
  padding: 0.7rem 1.5rem;
  border-radius: 999px;
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s ease;
}
.btn-osiris-pub:hover {
  background: #273912 !important;
  color: #f5f1e6 !important;
  transform: translateY(-2px);
}

.osiris-pub-module {
  background: rgba(39, 57, 18, 0.12) !important;
}

.osiris-pub-card {
  background: #f5f1e6 !important;
  background-color: #f5f1e6 !important;
  padding: 1.2rem !important;
  border: 2px solid #273912 !important;
  border-radius: 16px !important;
}

.osiris-logos-section {
  max-width: 900px !important;
  margin: 4rem auto !important;
  padding: 0 2rem !important;
}

.osiris-logos-line {
  height: 2px !important;
  background: #273912 !important;
  background-color: #273912 !important;
  margin-bottom: 2rem !important;
  border: none !important;
}

.osiris-logos-section img {
  max-width: 100% !important;
  width: 100% !important;
  height: auto !important;
  display: block !important;
  margin: 0 auto !important;
}

body > .page-wrap {
  max-width: 1300px;
  margin: 0 auto;
  padding: 1.5rem;
}

/* =========================
   TOPBAR MENU PAGES (about/gaialab/projects/lines/news)
   ========================= */

body.menu-main > .page-wrap {
  max-width: none;
  margin: 0;
  padding: 0;
  overflow-x: clip;
}

body.menu-main .topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  width: 100%;
  background: #1f1414;
  box-shadow: inset 0 8px 16px rgba(255, 255, 255, 0.08);
}

body.menu-main .topbar-inner {
  max-width: 1100px;
  min-height: 68px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

body.menu-main .topbar-logo img {
  display: block;
  height: 44px;
  width: auto;
  transition: transform 0.15s ease;
}

body.menu-main .topbar-logo:hover img {
  transform: scale(1.05);
}

body.menu-main .topbar nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.9rem;
  flex-wrap: wrap;
}

body.menu-main .topbar nav a {
  margin: 0;
  text-decoration: none;
  color: #fff;
  text-transform: lowercase;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1;
  transition: opacity 0.15s ease;
}

body.menu-main .topbar nav a:hover {
  opacity: 0.82;
}

body.menu-main .content {
  margin-top: 1rem;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

body.menu-main.has-bleed-hero .content {
  margin-top: 0;
}

body.menu-main .page-hero-bleed {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

body.menu-main {
  --menu-hero-height: 8.7cm;
}

body.menu-main .page-hero-bleed--gaialab {
  background: #19d88e;
  height: 404px !important;
  min-height: 404px !important;
  max-height: 404px !important;
  box-sizing: border-box;
  padding: 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
}

body.menu-main .page-hero-bleed--menu {
  height: 404px;
  min-height: 404px;
  max-height: 404px;
  box-sizing: border-box;
  padding: 1.4rem 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

body.menu-main .page-hero-bleed--projects {
  background: #0a3d62;
}

body.menu-main .page-hero-bleed--lines {
  background: #C2410C;
}

body.menu-main .page-hero-bleed--news {
  background: #dc143c;
}

body.menu-main .page-hero-title {
  margin: 0;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(3.5rem, 10vw, 7rem);
  font-weight: 700;
  color: #f5f7f7 !important;
  line-height: 1;
  text-transform: lowercase;
}

body.menu-main .page-hero-bleed--gaialab img {
  width: min(506px, 84vw);
  height: auto;
  display: block;
}

body.menu-main .gaialab-hero-tagline {
  margin: 0.85rem 0 0;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.04rem;
  font-weight: 500;
  color: #132a25 !important;
  letter-spacing: 0.01em;
}

body.menu-main .gaia-mod {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

body.menu-main .gaia-mod-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2.6rem 1.5rem;
}

body.menu-main .gaia-mod--intro .gaia-mod-inner {
  padding-top: 1.4rem;
  padding-bottom: 1.4rem;
}

body.menu-main .gaia-mod h3 {
  margin: 0 0 1rem 0;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  text-transform: lowercase;
}

body.menu-main .gaia-mod h4 {
  margin: 1.6rem 0 0.75rem 0;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
}

body.menu-main .gaia-mod p {
  margin: 0 0 1rem 0;
  max-width: 1000px;
  line-height: 1.7;
}

body.menu-main .gaia-mod .projects-grid {
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

body.menu-main.projects-page .projects-tools {
  max-width: 1000px;
  margin: 0 auto 1.25rem;
  display: flex;
  justify-content: center;
}

body.menu-main.projects-page .projects-search {
  width: min(560px, 100%);
}

body.menu-main.projects-page .projects-search label {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.92rem;
  margin-bottom: 0.35rem;
}

body.menu-main.projects-page .projects-search input {
  width: 100%;
  height: 44px;
  border: 2px solid #0a3d62;
  border-radius: 999px;
  padding: 0 1rem;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 0.96rem;
  background: #fff;
  color: #111;
  outline: none;
}

body.menu-main.projects-page .projects-search input:focus {
  border-color: #0a3d62;
  box-shadow: 0 0 0 2px rgba(10, 61, 98, 0.14);
}

body.menu-main.projects-page .projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  max-width: 1000px;
  margin: 0 auto;
  width: 100%;
}

body.menu-main.projects-page .projects-grid .project-card {
  min-width: 0;
  max-width: none;
  width: 100%;
}

body.menu-main.projects-page .projects-pagination {
  max-width: 1000px;
  margin: 1.35rem auto 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.85rem;
  font-family: 'Space Grotesk', sans-serif;
}

body.menu-main.projects-page .projects-pagination button {
  height: 34px;
  min-width: 34px;
  border-radius: 999px;
  border: 1px solid #0a3d62;
  background: transparent;
  color: #0a3d62;
  cursor: pointer;
  font-size: 0.95rem;
}

body.menu-main.projects-page .projects-pagination button:disabled {
  opacity: 0.4;
  cursor: default;
}

body.menu-main.projects-page .projects-empty {
  max-width: 1000px;
  margin: 1rem auto 0;
  text-align: center;
  font-family: 'IBM Plex Sans', sans-serif;
  display: none;
}

@media (max-width: 980px) {
  body.menu-main.projects-page .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  body.menu-main.projects-page .projects-grid {
    grid-template-columns: 1fr;
  }
}

body.menu-main .gaia-mod--dark {
  background: #132A25;
}

body.menu-main .gaia-mod--dark,
body.menu-main .gaia-mod--dark p,
body.menu-main .gaia-mod--dark h3,
body.menu-main .gaia-mod--dark h4,
body.menu-main .gaia-mod--dark a,
body.menu-main .gaia-mod--dark strong {
  color: #e9efed !important;
}

body.menu-main .gaia-mod--gray {
  background: #E6ECEA;
}

body.menu-main .gaia-mod--fluor {
  background: #19d88e;
}

body.menu-main .gaia-mod--transparent {
  background: transparent;
}

body.menu-main .gaia-media-center {
  text-align: center;
  margin-top: 1.2rem;
}

body.menu-main .gaia-media-center img {
  max-width: 100%;
  height: auto;
  display: inline-block;
}

body.menu-main .gaia-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 440px);
  gap: 2rem;
  align-items: center;
}

body.menu-main .gaia-split--img-left {
  grid-template-columns: minmax(300px, 440px) minmax(0, 1fr);
}

body.menu-main .gaia-split .gaia-media-center {
  margin-top: 0;
}

body.menu-main .gaia-split p:last-child {
  margin-bottom: 0;
}

body.menu-main .gaia-followup {
  margin-top: 4.2rem !important;
  display: block;
}

@media (max-width: 900px) {
  body.menu-main .gaia-split,
  body.menu-main .gaia-split--img-left {
    grid-template-columns: 1fr;
  }
}

body.menu-main .main-footer {
  margin-top: 3rem;
  background: #1f1414;
  width: 100%;
}

body.menu-main .main-footer-inner {
  max-width: 1100px;
  min-height: 322px;
  margin: 0 auto;
  padding: 3.2rem 1.5rem 2.6rem;
  display: grid;
  grid-template-columns: 1.25fr 1fr auto;
  gap: 2rem;
  align-items: start;
}

body.menu-main .main-footer,
body.menu-main .main-footer p,
body.menu-main .main-footer h2,
body.menu-main .main-footer a,
body.menu-main .main-footer li {
  color: #f2f5f7 !important;
}

body.menu-main .footer-title {
  margin: 0 0 1.4rem 0;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.7rem, 2.8vw, 2.35rem);
  line-height: 1.12;
  letter-spacing: 0.01em;
  text-transform: lowercase;
}

body.menu-main .footer-items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, max-content));
  gap: 0.75rem 2.2rem;
}

body.menu-main .footer-items a {
  text-decoration: none;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  opacity: 0.95;
  display: inline-block;
  transform-origin: left center;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

body.menu-main .footer-items a:hover {
  opacity: 1;
  transform: scale(1.05);
}

body.menu-main .footer-brand {
  justify-self: end;
  text-align: right;
}

body.menu-main .footer-umu-link {
  display: inline-block;
}

body.menu-main .footer-umu-logo {
  width: min(420px, 100%);
  height: auto;
  transition: transform 0.15s ease;
}

body.menu-main .footer-umu-link:hover .footer-umu-logo {
  transform: scale(1.05);
}

body.menu-main .footer-social {
  margin-top: 3.4rem;
  display: grid;
  gap: 0.5rem;
  justify-items: end;
}

body.menu-main .footer-social a {
  text-decoration: none;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
}

body.menu-main .footer-social-strong {
  display: inline-block;
  transition: transform 0.15s ease;
}

body.menu-main .footer-social a:hover .footer-social-strong {
  transform: scale(1.06);
}

body.menu-main .footer-top {
  align-self: end;
  justify-self: end;
}

body.menu-main .footer-top-link {
  width: 72px;
  height: 72px;
  border: 2px solid rgba(255, 255, 255, 0.88);
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 2rem;
  line-height: 1;
  text-decoration: none;
}

body.menu-main .footer-top-link:hover {
  transform: translateY(-2px);
}

@media (max-width: 980px) {
  body.menu-main .main-footer-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    min-height: 0;
  }
  body.menu-main .footer-brand,
  body.menu-main .footer-social {
    justify-self: start;
    text-align: left;
    justify-items: start;
  }
  body.menu-main .footer-top {
    justify-self: start;
  }
}

body.osiris-theme .main-footer {
  margin-top: 3rem;
  background: #273912;
  width: 100%;
}

body.osiris-theme .main-footer-inner {
  max-width: 1100px;
  min-height: 322px;
  margin: 0 auto;
  padding: 3.2rem 1.5rem 2.6rem;
  display: grid;
  grid-template-columns: 1.25fr 1fr auto;
  gap: 2rem;
  align-items: start;
}

body.osiris-theme .main-footer,
body.osiris-theme .main-footer p,
body.osiris-theme .main-footer h2,
body.osiris-theme .main-footer a,
body.osiris-theme .main-footer li {
  color: #f2f5f7 !important;
}

body.osiris-theme .footer-title {
  margin: 0 0 1.4rem 0;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.7rem, 2.8vw, 2.35rem);
  line-height: 1.12;
  letter-spacing: 0.01em;
  text-transform: none;
}

body.osiris-theme .footer-items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, max-content));
  gap: 0.75rem 2.2rem;
}

body.osiris-theme .footer-items a {
  text-decoration: none;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  opacity: 0.95;
  display: inline-block;
  transform-origin: left center;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

body.osiris-theme .footer-items a:hover {
  opacity: 1;
  transform: scale(1.05);
}

body.osiris-theme .footer-brand {
  justify-self: end;
  text-align: right;
}

body.osiris-theme .footer-umu-link {
  display: inline-block;
}

body.osiris-theme .footer-umu-logo {
  width: min(420px, 100%);
  height: auto;
  transition: transform 0.15s ease;
}

body.osiris-theme .footer-umu-link:hover .footer-umu-logo {
  transform: scale(1.05);
}

body.osiris-theme .footer-social {
  display: grid;
  gap: 0.5rem;
  justify-items: end;
}

body.osiris-theme .footer-brand-lower {
  margin-top: 3.4rem;
  width: min(420px, 100%);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

body.osiris-theme .footer-ants-link {
  display: inline-block;
  margin-left: 12px;
}

body.osiris-theme .footer-ants-logo {
  width: 96px;
  height: auto;
  display: block;
  transition: transform 0.15s ease;
}

body.osiris-theme .footer-ants-link:hover .footer-ants-logo {
  transform: scale(1.05);
}

body.osiris-theme .footer-social a {
  text-decoration: none;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
}

body.osiris-theme .footer-social-strong {
  display: inline-block;
  transition: transform 0.15s ease;
}

body.osiris-theme .footer-social a:hover .footer-social-strong {
  transform: scale(1.06);
}

body.osiris-theme .footer-top {
  align-self: end;
  justify-self: end;
}

body.osiris-theme .footer-top-link {
  width: 72px;
  height: 72px;
  border: 2px solid rgba(255, 255, 255, 0.88);
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 2rem;
  line-height: 1;
  text-decoration: none;
}

body.osiris-theme .footer-top-link:hover {
  transform: translateY(-2px);
}

@media (max-width: 980px) {
  body.osiris-theme .main-footer-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    min-height: 0;
  }
  body.osiris-theme .footer-brand,
  body.osiris-theme .footer-social {
    justify-self: start;
    text-align: left;
    justify-items: start;
  }
  body.osiris-theme .footer-top {
    justify-self: start;
  }
}
