/* header title */
.teaching-module-header-container {
  background-color: #00196e;

  &::before {
    pointer-events: none;
    content: "";
    width: 100%;
    height: 100%;
    position: absolute;
    pointer-events: none;
    opacity: 1;
    top: 0;
    right: 0;
    background-image: url(../../../../../pt_custom/images/decoration/pattern-transparent.png);
    background-size: 200px;
    background-repeat: repeat;
    background-position: center right;
  }

  h6 {
    color: #5d91e5;
  }

  > div:first-child {
    &:before {
      background-color: #1f66da;
    }
  }

  /* card metadata */
  .container-card-teaching-module-metadata {
    .card-description {
      h3 {
        color: #345dc7;
      }
    }
  }
}


@media (min-width: 992px) {
  .teaching-module-header-container:after {
    content: "";
    width: 26%;
    height: 100%;
    position: absolute;
    pointer-events: none;
    top: 0;
    right: 0;
    background-image: url(../../images/decoration/decoration-logo-mcs-bg-page-title.svg);
    background-size: 100%;
    background-repeat: no-repeat;
    background-position: top right;
    aspect-ratio: 0.9;
  }
}



/* border management */

/* person card */
.page-node-type--teaching-module {
  .pt-teaching-module-lecturer-heading {
    article.card:last-child:first-child {
      border-bottom: 1px solid #c5c7c9;
    }
    article.card {
      border-bottom: 0px solid #c5c7c9;
    }
    article.card:last-child {
      border-bottom: 1px solid #c5c7c9;
    }
  }
}
@media (min-width: 1400px) {
  .page-node-type--teaching-module {
    .pt-teaching-module-lecturer-heading {
      article.card {
        border: 1px solid #c5c7c9;
      }

      /* right-column cards (positions 3,5,7… because title is child 1) */
      article.card:nth-child(2n + 1) {
        border-left: 0;
      }

      /* cards from row 2 onward (positions 4,5,6… because title is child 1) */
      article.card:nth-child(n + 4) {
        border-top: 0;
      }
    }
  }
}
