/* Page: Resources */
/* ------------------------------------------- */

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

@font-face {
  font-family: 'groboldregular';
  src: url('../fonts/grobold-webfont.woff2') format('woff2'),
    url('../fonts/grobold-webfont.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

.bg-resources {
  background: linear-gradient(180deg, #FFF 1.46%, #FFF 54.12%, #E6E8F0 100%);
  position: relative;
}

/* HERO */

.page-title {
  padding: 11rem 0 2rem;
  background: linear-gradient(180deg, #FFFFFF 0%, #E6E8F0 100%);
  position: relative;
}

.page-title.page-title--dblue {
  background: none;
}

.page-title h1 {
  text-shadow: none;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 64px;
  line-height: 78px;
  text-align: center;
  letter-spacing: -0.08em;
  color: #000000;
  margin: 0 auto 36px;
  text-transform: none;
}

.page-title h2 {
  font-family: 'Inter';
  font-size: 24px;
  line-height: 36px;
  color: #697089;
  text-transform: none;
  letter-spacing: normal;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 6.5rem;
  font-weight: 700;
}

.curved-bottom,
.curved-top {
  position: absolute;
  margin: 0 auto;
  left: 0;
  right: 0;
  width: 100%;
}

.page-title .curved-bottom {
  bottom: -22rem;
}

.bg-resources-logos .curved-top {
  top: -23rem;
  z-index: 0;
}

/* END HERO */

/* SECTION */

.container-resources {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 70px;
  width: 100%;
  max-width: 1140px;
  margin: auto;
  position: relative;
}

.container-resources-bottom {
  padding: 6rem 0 15rem;
}

.container-resources-title {
  color: #989EB3;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 24px;
  font-style: normal;
  font-weight: 700;
  line-height: 36px;
  /* 150% */
  margin-bottom: 25px;
}

.resource-post {
  padding: 48px 0;
  margin-bottom: 24px;
}

.resource-post:not(:nth-last-child(-n+4)) {
  border-bottom: 1px solid #989EB3;
}

.resource-post-avatar {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  position: relative;
  display: inline-block;
  margin-right: -9px;
  overflow: hidden;
}

.resource-post-avatar-teacher{
  border: 3px solid #2abdb9;
}
.resource-post-avatar-teacher-image{
  height: auto;
  position: absolute;
  margin: 0 auto;
  left: 50%;
  right: 0;
  width: 130px;
  transform: translateY(-50%) translateX(-50%);
  top: 50%;
}

.resource-post h2,
.content-resources-posts .modal h2 {
  color: #0C0E19;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 36px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  letter-spacing: -2.88px;
}

.resource-post h2 {
  margin: 36px 0;
}

.resource-post p {
  color: #0C0E19;
  font-family: 'Inter';
  font-size: 24px;
  font-style: normal;
  font-weight: 500;
  line-height: 36px;
  margin-bottom: 36px;
}

.resource-post-btn-read-more {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 64px;
  padding: 6px 24px;
  border-radius: 10px;
  text-align: center;
  font-family: 'Inter';
  font-size: 20px;
  font-weight: 700;
  line-height: 28px;
  /* 140% */
  background: linear-gradient(141.82deg, #FF0000 -52.55%, #FF7700 70.34%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  border: 4px solid rgba(255, 0, 0, 0.2);
  transition: all 0.2s ease-in-out;
  width: 100%;
  cursor: pointer;

}

.resource-post-btn-read-more:hover,
.resource-post-btn-read-more:focus {
  text-decoration: none;
  border: 4px solid #FF7700;
  transition: all 0.2s ease-in-out;
  outline: none;
}

.bg-resources-logos {
  width: 100%;
  min-height: 445px;
  background: linear-gradient(180deg, #BE88EB 0%, rgba(118, 113, 206, 0) 52.07%), url(../img/new/bg-why-choose-us.png), linear-gradient(180deg, #BE88EB 0%, #7671CE 100%);
  background-size: cover;
  position: relative;
  padding-top: 165px;
  padding-bottom: 0;
  text-align: center;
  overflow: hidden;
}

.bg-resources-logos .curved-bottom {
  bottom: -20rem;
  z-index: 3;
}

.container-page-resources-logos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 8px;
  max-width: 1142px;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: auto;
  background: linear-gradient(180deg, #f9f7f7 1.46%, #f9f9f9 54.12%, #E6E8F0 100%);
  border-radius: 10px;
  position: relative;
  z-index: 4;
}

.container-page-resources-logos>div {
  background: #fff;
  padding: 36px;
  border-radius: 10px;
  width: 100%;
  min-height: 245px;
}

.container-page-resources-logos img {
  max-height: 54px;
}

.container-page-resources-logos p {
  color: #697089;
  font-family: 'Inter';
  font-size: 18px;
  font-weight: 500;
  line-height: 28px;
  margin: 16px 0;
}

.container-page-resources-logos a {
  width: 200px;
  height: 48px;
  background: linear-gradient(141.82deg, #FF0000 -52.55%, #FF7700 70.34%);
  box-shadow: 0px 2px 0px rgba(12, 14, 25, 0.16);
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-family: 'Inter';
  font-weight: 700;
  font-size: 16px;
  line-height: 20px;
  text-decoration: none;
  transition: all 0.2s ease-in-out;
  margin: auto;
}

.container-page-resources-logos a:hover {
  filter: brightness(1.3);
  color: #fff;
  text-decoration: none;
}

/* MODAL  */

.content-resources-posts .modal .modal-content {
  border-radius: 30px;
  box-shadow: 0px 16px 64px 0px rgba(12, 14, 25, 0.12), 0px 0px 12px 0px rgba(12, 14, 25, 0.08);
  padding: 64px;
}

.content-resources-posts .modal .modal-content .close {
  position: absolute;
  right: 20px;
  top: 20px;
}

.content-resources-posts .modal .modal-content .close img {
  max-width: 16px;
}

.content-resources-posts .modal .modal-header {
  border-bottom: none;
  margin-bottom: 36px;
}

.content-resources-posts .modal .modal-body {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 60px;
  width: 100%;
  row-gap: 36px;
}

.content-resources-posts .modal .modal-body .modal-column-content-teacher-info img{
  overflow: hidden;
  border-radius: 50%;
}
.resource-post-avatar-teacher-modal-image{
  width: 240px;
  height: 240px;
  position: relative;
  overflow: hidden;
  border-radius: 55%;
}
.content-resources-posts .modal .modal-body .resource-post-avatar-teacher-modal-image img {
  height: auto;
  position: absolute;
  margin: 0 auto;
  left: 50%;
  right: 0;
  width: 324px;
  transform: translateY(-50%) translateX(-50%);
  top: 50%;
}

.content-resources-posts .modal .modal-body h5 {
  background: var(--background-green-500, linear-gradient(180deg, #10C0A1 0%, #2CB8D7 100%));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-align: center;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: normal;
  letter-spacing: -0.96px;
  margin-top: 16px;
}

.content-resources-posts .modal .modal-body h6 {
  color: #697089;
  text-align: center;
  font-family: 'Inter';
  font-size: 18px;
  font-weight: 500;
  line-height: normal;
}

.content-resources-posts .modal .modal-body .modal-column-content-teacher p {
  color: #0C0E19;
  font-family: 'Inter';
  font-size: 18px;
  font-weight: 500;
  line-height: 28px;
}

/* / MODAL  */

/* SECTION testimonial  */
.content-sidebar-testimonial .testimonial {
  padding: 36px 40px;
  border-radius: 10px;
  border: 1px solid #E6E8F0;
  background: #F4F6F9;
  margin-bottom: 16px;
}

.testimonial p {
  color: #0C0E19;
  font-family: 'Inter' !important;
  font-size: 18px;
  line-height: 28px;
  font-weight: 500;
}

.testimonial-author {
  border-top: 1px solid #E6E8F0;
  text-align: right;
  margin-top: 18px;
  padding-top: 16px;
}

.testimonial-author h5,
.testimonial-author h6 {
  font-family: 'Inter';
  font-size: 18px;
  line-height: normal;
}

.testimonial-author h5 {
  font-weight: 700;
  background-image: linear-gradient(to bottom, #D879ED, #FE6133);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.testimonial-author h6 {
  color: #000;
  font-weight: 500;
  opacity: 0.7;
}

/* END SECTION testimonial  */

/* Pagination */

.pagination {
  width: 100%;
  display: flex;
  justify-content: center;
  column-gap: 8px;
  margin-top: 64px;
}

.pagination .page-numbers {
  width: 42px;
  height: 39px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 10px;
  border: 4px solid transparent;
  text-decoration: none;
  color: #303651;
  font-family: 'Inter';
  font-size: 16px;
  font-weight: 500;
  line-height: 20px;
  transition: all 0.2s ease-in-out;
}

.pagination .page-numbers.current {
  border: 4px solid rgba(255, 107, 1, 0.314);
  background: linear-gradient(142deg, #F00 0%, #F70 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.pagination .page-numbers:not(.current):not(.dots):hover {
  background-color: #efefef;
  transition: all 0.2s ease-in-out;
}

.pagination .prev,
.pagination .next {
  display: flex;
  justify-content: center;
  align-items: center;
  border: none;
}

.pagination .prev {
  background: #dfdfdf;
}

.pagination .next {
  background: linear-gradient(142deg, #F00 0%, #F70 100%);
  box-shadow: 0px 2px 0px 0px rgba(12, 14, 25, 0.16);
  color: #fff;
}

.pagination .prev .prev-icon,
.pagination .next .next-icon {
  width: 12px;
  height: 12px;
}

.pagination .prev .prev-icon {
  background: url('../img/pagination-prev.svg') center center no-repeat;
}

.pagination .next .next-icon {
  background: url('../img/pagination-next.svg') center center no-repeat;
}


/* / pagination */


.prefooter-avatar {
  width: 225px;
  position: absolute;
  right: 50px;
  background: url(/wp-content/themes/legends-of-learning/assets/img/page-resources-avatar.png) no-repeat;
  height: 250px;
  background-size: cover;
  z-index: 10;
  bottom: -50px;
}

.footer-v2-curved-bottom {
  bottom: 0;
  transform: translateY(309px) translateX(-50%);
}
.footer-v2-curved {
  position: absolute;
  margin: 0 auto;
  left: 50%;
  right: 0;
  min-width: 1920px;
  width: 100%;
}

@media (min-width: 1140px) {
  .content-resources-posts .modal .modal-dialog {
    max-width: 1145px;
    width: 100%;
  }
}

@media (min-width: 991px) and (max-width: 1140px) {
  .content-resources-posts .modal .modal-content {
      padding: 33px;
  }
  .content-resources-posts .modal-dialog {
      max-width: 900px;
  }

}
@media (min-width: 768px) and (max-width: 990px) {
	.page-title {
		padding: 0;
	}
	.page-title h2 {
		margin: 0 auto 3.5rem;
	}
}

@media (max-width: 990px) {
    .footer-v2-curved-bottom {
      bottom: 0;
      min-width: 100%;
      transform: translateY(202px) translateX(-50%);
      z-index: 1;
  }

  .header {
    height: auto !important;
    border-bottom: none;
  }

  .page-title__container {
    min-height: 90px;
  }

  .page-title {
    margin-top: 80px !important;
    padding: 0;
    min-height: 245px;
    overflow: hidden;
  }

  .page-title h1 {
    font-size: 24px;
    letter-spacing: -0.96px;
    margin: 0 auto 10px;
    line-height: 30px;
  }
  .page-title h2{
    font-size: 16px;
    line-height: 24px;
  }

  .page-title h2 {
    margin-bottom: 45px;
  }
  .page-title .curved-bottom {
    bottom: -17rem;
  }

  .testimonial p {
    font-size: 18px;
    line-height: 28px;
  }

  .container-resources-title,
  .prefooter-avatar {
    display: none;
  }

  .container-resources {
    display: flex;
    gap: 0px;
    flex-wrap: wrap;
  }

  .content-resources-posts {
    order: 2;
    margin: 16px;
  }

  .resource-post {
    border: 1px solid #C7CBD8;
    padding: 36px 16px;
    border-radius: 10px;
    background: #FFF;
    margin-bottom: 16px;
  }

  .resource-post-content-avatar {
    text-align: center;
  }
  .resource-post-avatar {
    margin-right: -16px;
  }

  .resource-post-avatar img {
    border-radius: 55%;
    width: 100px;
  }

  .resource-post h2, .content-resources-posts .modal h2 {
    font-size: 18px;
    line-height: 28px;
    margin: 16px 0;
    letter-spacing: -0.5px;
  }
  .content-resources-posts .modal h2 {
    margin: 0;
  }

  .resource-post p,
  .resource-post-btn-read-more, .content-resources-posts .modal .modal-body .modal-column-content-teacher p{
    font-size: 16px;
    line-height: 24px;
  }

  .resource-post-btn-read-more{
    height: 48px;
  }
  .bg-resources-logos {
    padding-top: 60px;
    min-height: 350px;
  }

  .bg-resources-logos .curved-top {
    top: -20rem;
  }
  .bg-resources-logos .curved-bottom {
      bottom: -17rem;
      z-index: 3;
  }

  .container-page-resources-logos {
    grid-template-columns: 1fr;
    border-radius: 40px;
    margin: 16px;
  }

  .container-page-resources-logos>div:first-child {
    border-radius: 40px 40px 10px 10px;
  }
  .container-page-resources-logos>div:last-child{
    border-radius: 10px 10px 40px 40px;
  }

  .container-resources-bottom {
    padding: 2rem 0 3rem;
    z-index: 8;
  }

  .content-sidebar-testimonial .testimonial {
    margin: 16px;
    padding: 16px;
  }

  .testimonial-author h5 {
    font-size: 16px;
    line-height: 20px;
  }

  .testimonial-author h6 {
    font-size: 14px;
    line-height: 20px;
  }

  .content-resources-posts .modal .modal-content {
      border-radius: 20px;
      padding: 16px;
  }
  .content-resources-posts .modal .modal-body {
      grid-template-columns: 1fr;
      gap: 16px;
  }
  .content-resources-posts .modal .modal-header {
    margin-bottom: 10px;
  }
  .resource-post-avatar-teacher-modal-image {
      width: 150px;
      height: 150px;
      margin: auto;
  }
  .content-resources-posts .modal .modal-body img{
    width: 150px;
  }
  .modal-column-content-teacher-info{text-align: center;}
  
  .pagination {
    column-gap: 3px;
    margin-bottom: 100px;
  }

  .pagination .page-numbers {
    height: 34px;
  }

  .pagination .page-numbers.dots {
    width: 15px;
  }

  .pagination .page-numbers.current,  .pagination a.page-numbers:hover{
    border: 3px solid rgba(255, 107, 1, 0.314);
  }
}/* / max-width 767 */