/* ======================================================
   INNANEURO
   ====================================================== */


/* ======================================================
   BASE
   ====================================================== */

.innaneuro-page {
  color: #151515;
  background: #ffffff;
  font-family: "Open Sans", Arial, sans-serif;
  overflow: hidden;
}

.innaneuro-page *,
.innaneuro-page *::before,
.innaneuro-page *::after {
  box-sizing: border-box;
}

.innaneuro-page img {
  display: block;
  max-width: 100%;
}


/* ======================================================
   SHARED CONTENT ALIGNMENT
   ====================================================== */

/*
 * The hero intentionally uses its own narrower width.
 *
 * Everything below the hero uses this common content grid:
 * 92% width, maximum 1200px, centered.
 */

.innaneuro-project-row,
.innaneuro-team,
.innaneuro-collaborators__inner,
.innaneuro-news {
  width: 92%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}


/* ======================================================
   HERO
   ====================================================== */

.innaneuro-hero {
  width: 100%;
  margin: 0;
  padding: 32px 0 55px;
  background: #050505;
  color: #ffffff;
}


/* Hero content */

.innaneuro-hero__content {
  width: 92%;
  max-width: 770px;
  margin: 0 auto;
  font-family: "Open Sans", Arial, sans-serif;
}


/* Hero image */

.innaneuro-hero__image-link {
  display: block;
  float: left;
  width: 200px;
  margin: 0 1rem .5rem 0;
  text-decoration: none;
}

.innaneuro-hero__image {
  display: block;
  width: 200px;
  height: auto;
  max-width: none;
  margin: 0;
}


/* Hero text */

.innaneuro-hero__text {
  font-family: "Open Sans", Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.38;
  color: #ffffff;
  text-align: justify;
}


/* Hero paragraphs */

.innaneuro-hero__text p {
  margin: 0 0 8px;
}

.innaneuro-hero__text p:first-child {
  margin-top: 0;
}

.innaneuro-hero__text p:last-child {
  margin-bottom: 0;
}


/* Strong project name */

.innaneuro-hero__text strong {
  font-weight: 700;
}


/* Clear the hero float */

.innaneuro-hero__content::after {
  content: "";
  display: table;
  clear: both;
}


/* ======================================================
   TEAM + LA CAIXA ROW
   ====================================================== */

.innaneuro-project-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}


/* ======================================================
   TEAM — LEFT
   ====================================================== */

.innaneuro-project-row .innaneuro-team {
  flex: 1;
  width: auto;
  margin: 0;
  padding: 8px 0;
}


/* Team heading */

.innaneuro-project-row .innaneuro-section-heading {
  margin: 0;
  padding: 0;
}


/* Team title */

.innaneuro-project-row .innaneuro-section-heading h2 {
  position: relative;
  z-index: 0;
  isolation: isolate;

  margin: 0;
  padding: 0;

  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  line-height: 1.2;
  font-weight: 700;
}


/* PI */

.innaneuro-project-row .innaneuro-section-heading p {
  position: relative;
  z-index: 2;

  margin: 8px 0 0;
  padding: 0;

  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.1rem;
  line-height: 1.2;
  font-weight: bold;
}

/* ======================================================
   BLUE BLOB BEHIND "T"
   ====================================================== */

.innaneuro-project-row .blob-target {
  position: relative;
  display: inline-block;
}


/* Blue blob */

.innaneuro-project-row .blob-target::before {
  content: "";
  position: absolute;
  z-index: -1;

  width: 120px;
  height: 120px;

  top: 50%;
  left: 50%;

  transform: translate(-50%, -50%);

  background: #5f8dd3;

  border-radius:
    55% 45% 60% 40% /
    50% 60% 40% 50%;

  opacity: 0.25;

  pointer-events: none;
}

/* ======================================================
   LA CAIXA — RIGHT
   ====================================================== */

.innaneuro-project-row .innaneuro-funder {
  flex: 0 0 400px;
  width: 400px;
  margin: 0;
  padding: 8px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}


/* Funder logo wrapper */

.innaneuro-project-row .innaneuro-funder__logo {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
}


/* La Caixa logo */

.innaneuro-project-row .innaneuro-funder__logo img {
  display: block;
  width: 400px;
  max-width: 100%;
  height: auto;
  max-height: none;
  margin: 0;
}


/* ======================================================
   SECTION DIVIDER
   ====================================================== */

/*
 * Top divider:
 * slightly tighter to the Team + funding row.
 */

.innaneuro-page .section-divider {
  width: 92%;
  max-width: 1200px;
  margin: 0.2rem auto 1.5rem;
}

.innaneuro-page .section-divider svg {
  display: block;
  width: 100%;
  height: 80px;
}

.innaneuro-page .section-divider path {
  stroke: #a9c5cf;
}


/*
 * Divider between Martina and Gaia:
 * 100% of the Team content width.
 *
 * The Team itself is already 92% / max 1200px,
 * so this now matches the divider above Martina
 * exactly.
 */

.innaneuro-team .section-divider {
  width: 100%;
  max-width: none;
}


/* ======================================================
   TEAM
   ====================================================== */

.innaneuro-team {
  margin-top: 0;
  margin-bottom: 34px;
}


/* Student list */

.innaneuro-students {
  width: 100%;
}


/* ======================================================
   TEAM PROFILE
   ====================================================== */

.innaneuro-profile {
  display: table;
  width: 100%;
}

.innaneuro-profile__identity,
.innaneuro-profile__bio {
  display: table-cell;
  vertical-align: top;
}


/* Identity */

.innaneuro-profile__identity {
  width: 190px;
  padding-right: 30px;
  text-align: center;
  font-family: Georgia, "Times New Roman", serif;
}


/* Profile image */

.innaneuro-profile__identity img {
  width: 125px;
  height: 144px;
  margin: 0 auto 12px;
  object-fit: contain;
}


/* Name */

.innaneuro-profile__identity h3 {
  margin: 0;
  padding: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  line-height: 1.2;
  font-weight: 700;
}


/* Role */

.innaneuro-profile__identity p {
  margin: 2px 0 0;
  padding: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
}


/* Biography */

.innaneuro-profile__bio p {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.1rem;
  line-height: 1.58;
  text-align: justify;
}


/* ======================================================
   COLLABORATORS
   ====================================================== */

.innaneuro-collaborators {
  position: relative;

  width: 100%;
  margin: 0;
  padding: 48px 0 55px;

  overflow: hidden;

  background-color: #050505;

  /* RIGHT-SIDE COLLABORATOR IMAGE */
  background-image: url("https://gailvwresearch.com/wp-content/uploads/2026/09/innaneuro_pic_2-scaled.png");
  background-repeat: no-repeat;
  background-position: right center;
  background-size: auto 100%;

  color: #ffffff;
}


/* ======================================================
   DARK GRADIENT OVER IMAGE
   ====================================================== */

.innaneuro-collaborators::before {
  content: "";

  position: absolute;
  inset: 0;

  background: linear-gradient(
    to right,
    rgba(5, 5, 5, 1) 0%,
    rgba(5, 5, 5, 0.98) 32%,
    rgba(5, 5, 5, 0.82) 52%,
    rgba(5, 5, 5, 0.35) 72%,
    rgba(5, 5, 5, 0.05) 100%
  );

  pointer-events: none;
}


/* ======================================================
   COLLABORATOR INNER CONTENT
   ====================================================== */

.innaneuro-collaborators__inner {
  position: relative;
  z-index: 1;

  /*
   * Uses the same width and left edge as
   * Team, student profiles, and News.
   */
  padding: 0;

  color: #ffffff;
}


/* Heading */

.innaneuro-collaborators__heading {
  position: relative;
  z-index: 1;

  margin: 0 0 28px;
  padding: 0;

  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  line-height: 1.2;

  font-weight: 700;

  color: #ffffff;
}


/* Heading text */

.innaneuro-collaborators__heading-text {
  position: relative;
  display: inline-block;
  z-index: 1;
  line-height: 1.2;
}


/* ======================================================
   COLLABORATORS BLOB
   ====================================================== */

.innaneuro-collaborators__blob-target {
  position: relative;
  display: inline-block;
  color: #ffffff;
}

.innaneuro-collaborators__blob-target::before {
  content: "";

  position: absolute;

  top: 50%;
  left: 50%;

  width: 78px;
  height: 78px;

  margin: -39px 0 0 -39px;

  border: 2px solid #ffffff;

  border-radius:
    55% 45% 60% 40% /
    50% 60% 40% 50%;

  background: transparent;

  z-index: -1;

  pointer-events: none;

  transform: rotate(-5deg);
}


/* ======================================================
   COLLABORATOR TEXT
   ====================================================== */

.innaneuro-collaborators__text {
  position: relative;
  z-index: 1;

  max-width: 1050px;

  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.1rem;
  line-height: 1.58;

  color: #ffffff;
}


/* List */

.innaneuro-collaborators__text ul {
  margin: 15px 0 22px;
  padding-left: 1.3rem;
}


/* List items */

.innaneuro-collaborators__text li {
  margin-bottom: 10px;
  color: #ffffff;
}


/* Links */

.innaneuro-collaborators__text a {
  color: #ffffff;

  text-decoration: underline;
  text-decoration-color: #ffffff;
  text-underline-offset: 4px;
}


/* Link hover */

.innaneuro-collaborators__text a:hover {
  color: #7fc7e0;
  text-decoration-color: #7fc7e0;
}


/* ======================================================
   NEWS
   ====================================================== */

.innaneuro-news {
  padding: 34px 0 72px;
}


/* News heading */

.innaneuro-news__title {
  margin: 0;
  padding-bottom: 16px;
  text-align: center;
  text-transform: uppercase;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  font-weight: normal;
}


/* News grid */

.innaneuro-news__grid {
  padding-top: 20px;
}


/* ======================================================
   NEWS ITEM
   ====================================================== */

.innaneuro-news__item {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 112px;
  margin: 0 0 20px;
  padding: 12px 20px;
  background: #ffffff;
  border: 3px solid #e20913;
  border-radius: 8px;
  box-shadow: 0 3px 7px #bbbbbb;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.innaneuro-news__item:last-child {
  margin-bottom: 0;
}


/* Border colors */

.innaneuro-news__item--green {
  border-color: #aee7cf;
}

.innaneuro-news__item--blue {
  border-color: #6ed7f5;
}

.innaneuro-news__item--red {
  border-color: #ef8b83;
}


/* Hover */

.innaneuro-news__item:hover {
  transform: translateY(-4px);
  box-shadow: 0 7px 14px #b5b5b5;
}


/* ======================================================
   NEWS TEXT
   ====================================================== */

.innaneuro-news__text {
  flex: 1;
  min-width: 0;
}

.innaneuro-news__text h3 {
  margin: 0;
  padding: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.22rem;
  font-weight: normal;
  line-height: 1.24;
  color: #151515;
}


/* ======================================================
   NEWS IMAGE
   ====================================================== */

.innaneuro-news__image {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 180px;
  min-width: 180px;
  height: 84px;
  margin-left: 25px;
}


/* Image link */

.innaneuro-news__image a {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}


/* Image */

.innaneuro-news__image img {
  display: block;
  width: auto;
  height: auto;
  max-width: 150px;
  max-height: 76px;
  margin: 0;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}


/* Image hover */

.innaneuro-news__image a:hover img {
  transform: scale(1.06);
  opacity: 0.85;
}


/* Focus */

.innaneuro-news__image a:focus-visible {
  outline: 3px solid #538ca0;
  outline-offset: 3px;
}


/* ======================================================
   MOBILE
   ====================================================== */

@media screen and (max-width: 800px) {


  /* ----------------------------------------------------
     Hero
     ---------------------------------------------------- */

  .innaneuro-hero {
    padding: 28px 0 40px;
  }

  .innaneuro-hero__content {
    width: calc(100% - 32px);
    max-width: none;
  }

  .innaneuro-hero__image-link {
    float: left;
    width: 115px;
    margin: 0 16px 6px 0;
  }

  .innaneuro-hero__image {
    width: 115px;
    max-width: none;
    height: auto;
  }

  .innaneuro-hero__text {
    width: 100%;
    font-size: 0.95rem;
    line-height: 1.5;
  }


  /* ----------------------------------------------------
     Team + Funding
     ---------------------------------------------------- */

  .innaneuro-project-row {
    width: calc(100% - 28px);
    flex-direction: column;
    align-items: center;
    gap: 0;
  }


  /* Team */

  .innaneuro-project-row .innaneuro-team {
    width: 100%;
    flex: none;
    padding: 10px 0 4px;
    text-align: center;
  }

  .innaneuro-project-row .innaneuro-section-heading {
    margin: 0;
    padding: 0;
  }

  .innaneuro-project-row .innaneuro-section-heading h2 {
    margin: 0;
    padding: 0;
    font-size: 1.55rem;
  }

  .innaneuro-project-row .innaneuro-section-heading p {
    margin: 2px 0 0;
    padding: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 0.95rem;
    line-height: 1.2;
    font-weight: bold;
  }


  /* Funder */

  .innaneuro-project-row .innaneuro-funder {
    width: 100%;
    flex: none;
    padding: 4px 0 12px;
  }

  .innaneuro-project-row .innaneuro-funder__logo {
    width: 100%;
  }

  .innaneuro-project-row .innaneuro-funder__logo img {
    width: 280px;
    max-width: 100%;
    height: auto;
    max-height: none;
  }


  /* ----------------------------------------------------
     Divider
     ---------------------------------------------------- */

  .innaneuro-page .section-divider {
    width: calc(100% - 28px);
    max-width: none;
    margin: 0.2rem auto 1.5rem;
  }

  .innaneuro-page .section-divider svg {
    width: 100%;
    height: 80px;
  }


  /*
   * Keep the divider between Martina and Gaia exactly
   * the same width as the Team content itself.
   */

  .innaneuro-team .section-divider {
    width: 100%;
    max-width: none;
  }


  /* ----------------------------------------------------
     Team
     ---------------------------------------------------- */

  .innaneuro-team {
    width: calc(100% - 28px);
    margin-bottom: 34px;
  }

  .innaneuro-profile {
    display: block;
    width: 100%;
    padding: 25px 0;
  }

  .innaneuro-profile__identity,
  .innaneuro-profile__bio {
    display: block;
    width: 100%;
  }

  .innaneuro-profile__identity {
    padding: 0 0 20px;
    text-align: center;
  }

  .innaneuro-profile__identity img {
    width: 125px;
    height: 144px;
    object-fit: contain;
    margin: 0 auto 12px;
  }

  .innaneuro-profile__bio p {
    font-size: 0.95rem;
    line-height: 1.58;
    text-align: left;
  }


  /* ----------------------------------------------------
     Collaborators
     ---------------------------------------------------- */

  .innaneuro-collaborators {
    padding: 40px 0 45px;

    /*
     * Keep the image on the right on mobile,
     * but make it smaller so the text remains readable.
     */
    background-size: auto 100%;
    background-position: right center;
  }

  .innaneuro-collaborators::before {
    background: linear-gradient(
      to right,
      rgba(5, 5, 5, 1) 0%,
      rgba(5, 5, 5, 0.98) 45%,
      rgba(5, 5, 5, 0.75) 70%,
      rgba(5, 5, 5, 0.25) 100%
    );
  }

  .innaneuro-collaborators__inner {
    width: calc(100% - 28px);
    padding: 0;
  }

  .innaneuro-collaborators__heading {
    font-size: 1.55rem;
  }

  .innaneuro-collaborators__text {
    font-size: 0.95rem;
  }


  /* ----------------------------------------------------
     News
     ---------------------------------------------------- */

  .innaneuro-news {
    width: calc(100% - 28px);
    padding-bottom: 48px;
  }

  .innaneuro-news__title {
    font-size: 1.1rem;
  }

  .innaneuro-news__item {
    min-height: 90px;
    padding: 10px;
  }

  .innaneuro-news__text h3 {
    font-size: 1rem;
  }

  .innaneuro-news__image {
    width: 95px;
    min-width: 95px;
    height: 65px;
    margin-left: 12px;
  }

  .innaneuro-news__image img {
    max-width: 82px;
    max-height: 58px;
  }

  .innaneuro-news__item:hover {
    transform: translateY(-2px);
  }

}