/* ======================================================
   NanoMatMod
====================================================== */


/* ======================================================
   Base
====================================================== */

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

.nanomatmod-page * {
  box-sizing: border-box;
}

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


/* ======================================================
   Hero
====================================================== */

.nanomatmod-hero {
  position: relative;
  min-height: 290px;
  padding: 42px 24px;

  background: #050505;
  text-align: center;
}


/* KEEP ORIGINAL LEFT HERO BACKGROUND IMAGE */

.nanomatmod-hero::before {
  content: "";
  position: absolute;
  inset: 0;

  background: url("https://gailvwresearch.com/wp-content/uploads/2026/09/cell_red_hero_left.png")
    left center
    no-repeat;

  background-size: auto 100%;
  opacity: 0.72;
}

.nanomatmod-hero__content {
  position: relative;

  width: 100%;
  max-width: 960px;

  margin: 0 auto;

  color: #ffffff;
}

.nanomatmod-hero__image-link {
  display: block;

  width: 74%;
  max-width: 360px;

  margin: 0 auto;
}

.nanomatmod-hero__image {
  width: 100%;
  max-height: 125px;

  margin: 0 auto 20px;
}

.nanomatmod-hero p {
  max-width: 900px;

  margin: 0 auto;

  font-size: 1.05rem;
  line-height: 1.7;
  font-weight: 700;

  text-align: justify;
}


/* ======================================================
   Ikerbasque Funder
====================================================== */

.nanomatmod-funder {
  padding: 28px 24px 18px;

  text-align: center;
}

.nanomatmod-funder__logo {
  display: inline-block;
}

.nanomatmod-funder img {
  width: 65%;
  max-width: 285px;
  max-height: 100px;

  margin: 0 auto;
}


/* Remove divider directly under Ikerbasque */

.nanomatmod-funder + .section-divider {
  display: none;
}


/* ======================================================
   General Page Width
====================================================== */

.nanomatmod-team,
.nanomatmod-news {
  width: 92%;
  max-width: 1200px;

  margin: 0 auto;
}


/* ======================================================
   Sine-Wave Divider
====================================================== */

.section-divider {
  display: block;

  width: 92%;
  max-width: 1200px;

  margin: 1rem auto 3rem;

  padding: 0;
  line-height: 0;
  border: none;
}

.section-divider svg {
  display: block;

  width: 100%;
  height: auto;
}

.section-divider path {
  stroke: #d9bca9;
}


/* ======================================================
   Section Headings
====================================================== */

.nanomatmod-section-heading {
  padding: 28px 14px 22px;
}

.nanomatmod-section-heading h2,
.nanomatmod_collaborators h2,
.nanomatmod-news h2 {
  margin: 0;

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

  font-weight: 700;
}

.nanomatmod-section-heading h2 {
  position: relative;

  display: inline-block;

  z-index: 0;
}

.nanomatmod-section-heading p {
  margin: 18px 0 0 14px;

  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;

  font-weight: bold;
}


/* ======================================================
   Blob Behind "The"
====================================================== */

.nanomatmod-section-heading .blob-target {
  position: relative;

  display: inline-block;

  pointer-events: none;
}

.nanomatmod-section-heading .blob-target::before {
  content: "";

  position: absolute;

  top: 50%;
  left: 50%;

  width: 75px;
  height: 75px;

  margin: -37px 0 0 -37px;

  background: #f0e5de;

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

  opacity: 0.85;

  z-index: -1;
}


/* ======================================================
   Student Profiles
====================================================== */

.nanomatmod-students {
  padding: 18px 0;
}

.nanomatmod-profile {
  display: table;

  width: 100%;

  padding: 30px 14px;
}

.nanomatmod-profile__identity,
.nanomatmod-profile__bio {
  display: table-cell;

  vertical-align: top;
}

.nanomatmod-profile__identity {
  width: 170px;

  padding-right: 42px;

  text-align: center;

  font-family: Georgia, "Times New Roman", serif;
}

.nanomatmod-profile__identity img {
  width: 145px;
  height: 167px;

  margin: 0 auto 12px;

  object-fit: cover;
}

.nanomatmod-profile__identity h3 {
  margin: 0;

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

  font-weight: 700;
}

.nanomatmod-profile__identity p {
  margin: 2px 0 0;

  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
}

.nanomatmod-profile__bio p {
  margin: 0;

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


/* ======================================================
   Collaborators
====================================================== */

/*
 * IMPORTANT:
 * The existing right-side background image and gradient
 * are preserved exactly.
 */

.nanomatmod_collaborators {
  position: relative;

  width: 100vw;
  min-height: 260px;

  margin-left: calc(50% - 50vw);

  overflow: hidden;

  color: #ffffff;
  background-color: #050505;

  /* ORIGINAL RIGHT-SIDE BACKGROUND IMAGE — UNCHANGED */
  background-image: url("https://gailvwresearch.com/wp-content/uploads/2026/09/pic2.png");
  background-repeat: no-repeat;
  background-position: right center;
  background-size: auto 100%;
}


/* ======================================================
   ORIGINAL DARK GRADIENT — UNCHANGED
====================================================== */

.nanomatmod_collaborators::before {
  content: "";

  position: absolute;
  inset: 0;

  background: linear-gradient(
    to right,
    rgba(5, 5, 5, 1) 0%,
    rgba(5, 5, 5, 0.98) 35%,
    rgba(5, 5, 5, 0.75) 58%,
    rgba(5, 5, 5, 0.15) 100%
  );
}


/* ======================================================
   Collaborator Content
====================================================== */

.nanomatmod_collaborators__content {
  position: relative;

  z-index: 1;

  width: 92%;
  max-width: 1200px;
  min-height: 260px;

  margin: 0 auto;

  padding: 48px 14px;
}


/* ======================================================
   Collaborator Heading
====================================================== */

.nanomatmod_collaborators__heading {
  margin: 0 0 40px;
}

.nanomatmod_collaborators h2 {
  position: relative;

  display: inline-block;

  margin: 0;

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

  font-weight: 700;

  color: #ffffff;
}


/* ======================================================
   Collaborator Blob
====================================================== */

.nanomatmod_collaborators .blob-target {
  position: relative;

  display: inline-block;

  z-index: 1;
}

.nanomatmod_collaborators .blob-target::before {
  content: "";

  position: absolute;

  top: 50%;
  left: 50%;

  width: 75px;
  height: 75px;

  margin: -37px 0 0 -37px;

  background: transparent;

  border: 2px solid #ffffff;

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

  z-index: -1;
}


/* ======================================================
   Collaborator List
====================================================== */

.nanomatmod_collaborators ul {
  list-style: none;
  margin: 1.5rem;
  padding-left: 0;

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

  color: #ffffff;
}

.nanomatmod_collaborators li + li {
  margin-top: 10px;
}


/* ======================================================
   Collaborator Links
====================================================== */

.nanomatmod_collaborators a {
  color: #7fc7e0;

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

.nanomatmod_collaborators a:hover {
  color: #ffffff;
}

.nanomatmod_collaborators span {
  color: #ffffff;
}


/* ======================================================
   News
====================================================== */

.nanomatmod-news {
  width: 92%;
  max-width: 1200px;

  margin: 0 auto;

  padding: 34px 0 72px;
}


/* ======================================================
   News Heading
====================================================== */

.nanomatmod-news > h2 {
  margin: 0;

  padding-bottom: 16px;

  text-align: center;
  text-transform: uppercase;

  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;

  font-weight: 700;

  border-bottom: none;
}


/* ======================================================
   News List
====================================================== */

.nanomatmod-news__list {
  padding-top: 20px;
}


/* ======================================================
   Clickable Wrapper
====================================================== */

.nanomatmod-news__link {
  display: block;

  width: 100%;

  margin-bottom: 20px;

  color: inherit;
  text-decoration: none;
}


/* ======================================================
   News Card
====================================================== */

.nanomatmod-news__item {
  display: flex;
  align-items: center;

  width: 100%;
  min-height: 112px;

  margin: 0;

  padding: 12px 20px;

  border: 3px solid #d9bca9;
  border-radius: 8px;

  box-shadow: 0 3px 7px #bbbbbb;

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


/* ======================================================
   News Border Colors
====================================================== */

/*
 * The PHP does not assign separate color classes to the
 * News articles, so the colors are assigned by order.
 */

/* News 1 */
.nanomatmod-news__link:nth-child(1) .nanomatmod-news__item {
  border-color: #7fa38f;
}

/* News 2 */
.nanomatmod-news__link:nth-child(2) .nanomatmod-news__item {
  border-color: #6f9eac;
}

/* News 3 */
.nanomatmod-news__link:nth-child(3) .nanomatmod-news__item {
  border-color: #b77d72;
}

/* News 4 */
.nanomatmod-news__link:nth-child(4) .nanomatmod-news__item {
  border-color: #7fa38f;
}

/* News 5 */
.nanomatmod-news__link:nth-child(5) .nanomatmod-news__item {
  border-color: #b77d72;
}


/* ======================================================
   News Hover
====================================================== */

.nanomatmod-news__link:hover .nanomatmod-news__item {
  transform: translateY(-4px);

  box-shadow:
    0 7px 14px #b5b5b5;
}


/* ======================================================
   Keyboard Focus
====================================================== */

.nanomatmod-news__link:focus-visible {
  outline: 3px solid #538ca0;
  outline-offset: 4px;

  border-radius: 10px;
}

.nanomatmod-news__link:focus-visible .nanomatmod-news__item {
  transform: translateY(-4px);

  box-shadow:
    0 7px 14px #b5b5b5;
}


/* ======================================================
   News Logo
====================================================== */

.nanomatmod-news__logo {
  display: flex;

  align-items: center;
  justify-content: center;

  width: 180px;
  min-width: 180px;
  height: 84px;

  margin-right: 25px;
}

.nanomatmod-news__logo img {
  display: block;

  width: auto;
  height: auto;

  max-width: 150px;
  max-height: 76px;

  margin: 0;
}


/* ======================================================
   News Headline
====================================================== */

.nanomatmod-news__item h3 {
  margin: 0;

  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.22rem;
  font-weight: normal;
  line-height: 1.24;

  color: #151515;
}


/* ======================================================
   Mobile
====================================================== */

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


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

  .nanomatmod-hero {
    min-height: 250px;
    padding: 34px 16px;
  }

  .nanomatmod-hero p {
    font-size: 0.95rem;
  }


  /* ------------------------------------------------------
     Section Headings
  ------------------------------------------------------ */

  .nanomatmod-section-heading h2,
  .nanomatmod_collaborators h2 {
    font-size: 1.55rem;
    font-weight: 700;
  }


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

  .nanomatmod-profile,
  .nanomatmod-profile__identity,
  .nanomatmod-profile__bio {
    display: block;

    width: 100%;
  }

  .nanomatmod-profile__identity {
    padding: 0 0 20px;

    text-align: center;
  }

  .nanomatmod-profile__identity img {
    width: 105px;
    height: 121px;
  }

  .nanomatmod-profile__bio p {
    font-size: 0.95rem;
  }


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

  .nanomatmod_collaborators {
    min-height: 220px;

    padding: 0 18px 3rem;

    /*
     * Original collaborator background image remains
     * unchanged; only the content layout changes.
     */
    background-size: auto 100%;
  }

  .nanomatmod_collaborators__content {
    display: block;

    width: calc(100% - 28px);
    min-height: 220px;

    margin: 0 auto;

    padding: 36px 0;
  }

  .nanomatmod_collaborators__heading {
    margin: 0 0 40px;
  }

  .nanomatmod_collaborators h2 {
    margin: 0;

    font-size: 1.55rem;
    font-weight: 700;
  }

  .nanomatmod_collaborators ul {
    margin: 0;

    padding-left: 0;

    font-size: 0.95rem;
  }


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

  .nanomatmod-news {
    width: calc(100% - 28px);

    padding-bottom: 48px;
  }

  .nanomatmod-news > h2 {
    font-size: 1.1rem;
    font-weight: 700;

    border-bottom: none;
  }

  .nanomatmod-news__item {
    min-height: 90px;

    padding: 10px;
  }

  .nanomatmod-news__logo {
    width: 95px;
    min-width: 95px;
    height: 65px;

    margin-right: 12px;
  }

  .nanomatmod-news__item h3 {
    font-size: 1rem;
  }


  /* ------------------------------------------------------
     Smaller hover movement on mobile
  ------------------------------------------------------ */

  .nanomatmod-news__link:hover .nanomatmod-news__item,
  .nanomatmod-news__link:focus-visible .nanomatmod-news__item {
    transform: translateY(-2px);
  }

}