/* ==================================================
   NEUROONKO — MATERIAŁY INFORMACYJNE
================================================== */


/* ==================================================
   PAGE
================================================== */

.materials-page {

  position: relative;
  isolation: isolate;
  width: 100%;
  overflow: clip;
  background-color: var(--Primary-colors-Grey-200);

}


/* ==================================================
   INTRO
================================================== */

.materials-intro {

  position: relative;

  margin-top: -96px;

  padding-top: 96px;

}


.materials-intro__layout {

  padding-block: 144px 168px;

}


.materials-intro__content {

  grid-column: 4 / 10;

  display: flex;

  flex-direction: column;

  align-items: center;

  min-width: 0;

  text-align: center;

}


/* ==================================================
   MATERIAŁY ANIMATED BACKGROUND
================================================== */

.materials-page__background {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: visible;
  pointer-events: none;
}

.materials-page__blob {
  position: absolute;
  width: 640px;
  height: 640px;
  filter: blur(53.099998474121094px);
  opacity: 0.8;
  transform: translate3d(0, 0, 0);
  will-change: transform, border-radius;
}

.materials-page__blob--one {
  top: -320px;
  left: 25%;
  background: rgba(37, 191, 160, 0.15);
  animation: materials-page-blob-one 8s ease-in-out infinite alternate;
}

.materials-page__blob--two {
  display: none;
  left: calc(50% - 100px + 269px);
  bottom: -20%;
  width: 829px;
  height: 555px;
  background: rgba(113, 89, 237, 0.15);
  animation: materials-page-blob-two 8s ease-in-out infinite alternate;
  animation-delay: -3s;
}


/* ==================================================
   BLOB ANIMATIONS
================================================== */

@keyframes materials-page-blob-one {
  0% {
    transform:
      translate3d(12%, -12%, 0)
      scale(1);
    border-radius:
      44% 56% 63% 37%
      /
      46% 36% 64% 54%;
  }

  50% {
    transform:
      translate3d(-5%, 5%, 0)
      scale(1.25);
    border-radius:
      62% 38% 42% 58%
      /
      38% 61% 39% 62%;
  }

  100% {
    transform:
      translate3d(-8%, 8%, 0)
      scale(0.95);
    border-radius:
      36% 64% 55% 45%
      /
      58% 42% 58% 42%;
  }
}

@keyframes materials-page-blob-two {
  0% {
    transform:
      translate3d(5%, 10%, 0)
      scale(1.1);
    border-radius:
      61% 39% 52% 48%
      /
      42% 58% 42% 58%;
  }

  50% {
    transform:
      translate3d(-5%, -2%, 0)
      scale(0.9);
    border-radius:
      38% 62% 36% 64%
      /
      62% 38% 62% 38%;
  }

  100% {
    transform:
      translate3d(2%, -12%, 0)
      scale(1.1);
    border-radius:
      54% 46% 65% 35%
      /
      35% 55% 45% 65%;
  }
}


/* ==================================================
   EYEBROW
================================================== */

.materials-intro__eyebrow {

  margin: 0;

  color: var(--Primary-colors-Blue-500);

}


/* ==================================================
   TITLE
================================================== */

.materials-intro__title {

  display: flex;

  flex-direction: column;

  align-items: center;

  margin: 8px 0 0;

  color: var(--Primary-colors-Dark-Blue-700);

}


.materials-intro__title-main,
.materials-intro__title-accent {

  display: block;

}


/* ==================================================
   CARDS
================================================== */

.materials-list {

  position: relative;

}


.materials-list__grid {

  align-items: start;

}


.materials-list__cards {

  grid-column: 3 / 11;

  display: flex;

  flex-direction: column;

  gap: 20px;

  width: 100%;

}


/* ==================================================
   PAGINATION
================================================== */

.materials-list__pagination {

  display: flex;

  justify-content: center;

  width: 100%;

  margin-top: 96px;

  margin-bottom: 0px;

}


/* ==================================================
   TABLET
================================================== */

@media (max-width: 1024px) {


  .materials-page {
    overflow: clip;
  }


  .materials-intro {

    margin-top: -82px;

    padding-top: 82px;

  }


  .materials-intro__layout {

    padding-block: 48px 120px;

  }


  .materials-intro__content {

    grid-column: 1 / -1;
    max-width: none;
    text-align: center;

  }


  .materials-list__cards {

    grid-column: 1 / -1;

  }


  .materials-list__pagination {

    margin-top: 64px;

  }


    /* ==================================================
     Q&A BLOBS
  ================================================== */

  .materials-page__blob {
    width: 220px;
    height: 220px;
  }

  .materials-page__blob--one {
    top: 1%;
    left: 50%;
    animation-name: materials-page-blob-one-tablet;
  }


  /* ==================================================
     Q&A BLOBS — TABLET ANIMATION
  ================================================== */

  @keyframes materials-page-blob-one-tablet {
    0% {
      transform:
        translate3d(-50%, -12%, 0)
        scale(1);
    }

    50% {
      transform:
        translate3d(-50%, 5%, 0)
        scale(1.25);
    }

    100% {
      transform:
        translate3d(-50%, 8%, 0)
        scale(0.95);
    }
  }
}


/* ==================================================
   REDUCED MOTION
================================================== */

@media (prefers-reduced-motion: reduce) {

  .materials-page__blob {
    animation: none;
  }
}