/* Page: blog */
/* ------------------------------------------- */

@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;
}

/* HERO */

.blog-btn-back {
  background: url(../img/page-blog-single-back.png) no-repeat center center;
  width: 48px;
  height: 48px;
  background-size: contain;
  display: block;
  position: absolute;
  top: 0;
  left: -150px;
}

.page-title {
  background: linear-gradient(180deg, #FFF 69.86%, #E6E8F0 114.26%);
  position: relative;
  overflow: hidden;
}

body.page-template-page-blog .page-title {
  padding: 11rem 0 9rem;
}

body.category .page-title {
  padding: 10rem 0 3rem;
}

.page-title h1,
.page-title-single h1 {
  text-shadow: none;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  letter-spacing: -0.08em;
  color: #000000;
  text-transform: none;
}

.page-title-blog h1 {
  font-size: 64px;
  line-height: 78px;
  text-align: center;
  margin: 0 auto 36px;
}

.page-title-single .page-title__container {
  align-items: flex-start;
  max-width: 910px;
  margin: 9rem auto 2rem;
  position: relative;
}

.page-title-single h1 {
  font-size: 34px;
  line-height: 42px;
  margin-bottom: 8px;
}

.page-title h2,
.page-title h3 {
  font-family: 'Inter';
  font-size: 24px;
  line-height: 36px;
  color: #697089;
  text-transform: none;
  letter-spacing: normal;
  text-align: center;
  max-width: 900px;
  margin-bottom: 35px;
}

.page-title h2 {
  font-weight: 700;
  margin-bottom: 45px;
}

.page-title h3 {
  font-weight: 500;
  margin-bottom: 20px;
}

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

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

.page-title-single .curved-bottom {
  bottom: -16rem;
}

.page-title a.button-hero-blog,
.post-grid.banner a {
  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;
  color: white;
  font-family: 'Inter';
  font-weight: 700;
  border: none;
  text-decoration: none;
  margin: 0 auto;
  transition: all 0.2s ease-in-out;
  padding: 17px 2px 6px;
  text-align: center;
}

.page-title a.button-hero-blog {
  width: 145px;
  height: 65px;
  font-size: 20px;
}

.page-title a.button-hero-blog:hover,
.post-grid.banner a:hover {
  filter: brightness(1.3);
  transition: all 0.2s ease-in-out;
}

.page-title-thumbnail {
  width: 100%;
  max-width: 910px;
  min-height: 378px;
  height: 100%;
}

.page-title-thumbnail figure {
  position: relative;
  z-index: 2;
  margin-bottom: 0;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  border-radius: 15px;
}

.page-title-thumbnail figure:before {
  content: '';
  display: block;
  padding-top: 64.38356%;
}

.page-title-single h3 {
  font-family: 'Montserrat';
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
  line-height: 20px;
  letter-spacing: 0.84px;
  text-transform: uppercase;
  margin-bottom: 36px;
}

.page-title-single h3 a {
  color: #697089;
}

/* END HERO */

/* SECTION */

.blog-nav {
  margin-bottom: 48px;
  display: flex;
  justify-content: space-between;
}

.select-categories,
.search-container .search-field {
  font-family: 'Inter';
  font-size: 20px;
  font-weight: 700;
  line-height: 28px;
  color: #989EB3;
}

.select-categories {
  position: relative;
  width: 100%;
  padding: 10px;
  z-index: 99;
  border-radius: 10px;
  border: 2px solid #989EB3;
  max-width: 365px;
  background: url(../img/page-blog-select-categories-arrow.png) no-repeat 97% center;
}

.selected-option {
  cursor: pointer;
}

.select-categories .options {
  display: none;
  position: absolute;
  width: 100%;
  list-style: none;
  padding: 0;
  margin: 0;
  top: 100%;
  z-index: 1;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0px 16px 64px 0px rgba(12, 14, 25, 0.12), 0px 0px 12px 0px rgba(12, 14, 25, 0.08);
  padding: 15px;
  margin-top: 10px;
  margin-left: -10px;
  height: 300px;
  overflow: auto;
}

.select-categories .options.active {
  display: block;
}

 .select-categories .options li a{
  cursor: pointer;
  transition: color 0.3s ease;
  color: #303651;
  font-family: 'Inter';
  font-size: 16px;
  font-weight: 500;
  line-height: 20px;
  padding: 10px;
  display: block;
}

.options li a:hover,
.select-categories .options li.active {
  color: #f70;
  text-decoration: none;
}

.search-container {
  border-bottom: 2px solid #989EB3;
  overflow: hidden;
}

.search-form {
  display: flex;
  align-items: center;
  width: 100%;
  width: 175px;
  transition: width 0.3s ease;
}

.search-form.active {
  width: 365px;
}

.search-field {
  min-width: 100px;
  padding: 10px;
  font-size: 16px;
  border: none;
  outline: none;
  transition: all 0.3s ease;
}

.search-field:focus {
  box-shadow: none;
  border-color: none;
}

.search-button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0 10px;
}

.search-button img {
  max-width: 16px;
}

.highlight {
  padding: 1px 3px;
  background: #f0ecec;
  color: #fe9800;
  font-style: italic;
}

.container-blog {
  max-width: 1376px;
  margin: auto;
}

.search-results .container-blog {
  margin-bottom: 100px;
}

.container-post-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
}

.post-grid {
  margin-bottom: 12px;
  border-radius: 10px;
  background: #FFF;
  box-shadow: 0px 16px 64px 0px rgba(12, 14, 25, 0.12), 0px 0px 12px 0px rgba(12, 14, 25, 0.08);
}

.post-grid-image {
  width: 100%;
  height: 195px;
  border-radius: 10px 10px 0 0;
}

.post-grid-content {
  padding: 16px;
  position: relative;
  min-height: 175px;
}

.post-grid-content h3 {
  color: #303651;
  font-family: 'Montserrat';
  margin-bottom: 50px;
  font-size: 24px;
  font-weight: 700;
  line-height: 25px;
  letter-spacing: -0.96px;

}

.post-grid-content h3 a {
  color: #303651;
}
.post-grid-content-categories{
  position: absolute;
  bottom: 16px;
  left: 16px;
}

.post-grid-content-categories a {
  border-radius: 5px;
  border: 1px solid #C7CBD8;
  background: #FFF;
  display: inline-block;
  height: 36px;
  padding: 8px 16px;
  color: #303651;
  text-align: center;
  font-family: 'Inter';
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
  line-height: 20px;
  margin-right: 8px;
}
.post-grid-content-categories a:hover{
  text-decoration: none;
  color: #303651;
  border: 1px solid #979baa;
}
.post-grid.banner {
  background: url(../img/page-blog-bg-banner.jpg) no-repeat center center;
  padding: 15px 20px 10px;
  position: relative;
  text-align: center;
  color: #fff;
  background-size: 100%;
}

.post-grid.banner h2 {
  text-align: center;
  font-family: 'Montserrat';
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  letter-spacing: 0.84px;
  text-transform: uppercase;
  margin: 16px auto;
}

.post-grid.banner h3 {
  font-family: 'Montserrat';
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.96px;
}

.post-grid.banner a {
  width: 145px;
  height: 48px;
  font-size: 16px;
  padding: 6px 16px;
  display: block;
  line-height: 35px;
  margin-top: 5rem;
}

/* / SECTION */

/* SECTION single */

.single-post-content {
  max-width: 910px;
  margin: auto;
  color: #303651;
  font-family: 'Inter';
}

.single-post .single-post-content h2 {
  font-size: 30px;
  line-height: 38px;
  margin-bottom: 22px;
  font-weight: 700;
}

.single-post .single-post-content h3 {
  font-size: 27px;
  line-height: 35px;
  margin-bottom: 22px;
  font-weight: 700;
}

.single-post .single-post-content h4 {
  font-size: 24px;
  line-height: 32px;
  margin-bottom: 22px;
  text-transform: inherit;
  letter-spacing: 0;
  font-weight: 700;
}

.single-post .single-post-content h5 {
  font-size: 21px;
  line-height: 29px;
  margin-bottom: 22px;
  font-weight: 700;
}

.single-post .single-post-content h6 {
  font-size: 20px;
  line-height: 27px;
  margin-bottom: 22px;
  font-weight: 700;
}

.single-post .single-post-content p,
.single-post .single-post-content p span {
  font-size: 18px;
  line-height: 28px;
  font-weight: 500;
  margin-bottom: 25px;
}

.single-post .single-post-content p strong {
  font-weight: 700;
}

.single-post .single-post-content p img {
  margin-bottom: 25px;
}

.single-post .single-post-content ul,
.single-post .single-post-content ol {
  margin-bottom: 22px;
  padding-left: 30px;
}

.single-post .single-post-content ul li {
  list-style: initial;
}

.single-post .single-post-content ol li {
  list-style: auto;
}

.single-post-content a,
.single-post-content a:hover{
  color: #1a74e3;
}

.post-content__footer {
  margin: 24px 0;
  padding: 16px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.15);
  border-bottom: none;
}

.related-posts__headline {
  color: #0C0E19;
  font-family: 'Montserrat';
  font-size: 36px;
  font-weight: 700;
  line-height: normal;
  letter-spacing: -2.88px;
  margin-bottom: 64px;
}

.related-posts {
  position: relative;
  overflow: hidden;
  padding: 12rem 0 16rem;
  margin-top: 20px;
}

.related-posts:after {
  display: none;
}

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

.curved-top {
  top: -28rem;
}

.curved-bottom {
  bottom: -24rem;
}

/* / SECTION single */

/* 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 */


@media (max-width: 1260px) {
  .blog-btn-back {
    width: 36px;
    height: 36px;
    position: relative;
    margin: 16px 0;
    left: 0;
  }
}

@media (min-width: 768px) and (max-width: 990px) {}

@media (max-width: 990px) {
  .container-blog {
    margin: auto 16px;
  }

  .container-post-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
}

@media (max-width: 768px) {
  .page-title a.button-hero-blog {
      font-size: 16px;
      width: 110px;
      height: 45px;
      line-height: 17px;
      padding: 14px;
  }
  .container-post-grid {
    grid-template-columns: 1fr;
  }

  .page-title {
    margin-top: 50px !important;
    padding: 0;
    min-height: 200px;
  }
  body.page-template-page-blog .page-title {
      padding: 6rem 0 9rem;
  }

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

  .page-title h1,
  .page-title-single h1 {
    font-size: 24px;
    line-height: 32px;
    margin-bottom: 16px;
  }

  .page-title h2{
    font-size: 18px;
    line-height: 28px;
    margin-bottom: 24px;
  }
  .page-title h3 {
    font-size: 16px;
    line-height: 24px;
    margin-bottom: 10px;
  }

  .page-title h2 span {
    color: #303651;
    font-family: 'Montserrat';
    font-size: 18px;
    font-weight: 700;
    line-height: 28px;
    display: block;
  }

  .blog-nav {
    display: block;
  }

  .select-categories {
    margin-bottom: 24px;
    max-width: 100%;
  }

  .post-grid-content h3,
  .select-categories,
  .search-container .search-field {
    font-size: 18px;
    line-height: 28px;
  }

  .single-post-content p {
    font-size: 16px;
    line-height: 24px;
  }
  .page-title-single .page-title__container {
    align-items: flex-start;
    max-width: 910px;
    margin: 2rem auto 2rem;
    min-height: 320px;
  }

  .page-title-thumbnail {
    min-height: 170px;
  }

  .page-title__container,
  .single-post-content {
    padding: 0 16px;
  }

  .post-content__footer {
    margin: 24px 0 0;
    padding: 16px 0 0;
  }

  .related-posts {
    padding-top: 6rem;
  }

  .related-posts__headline {
    font-size: 24px;
    margin-bottom: 24px;
    letter-spacing: -0.96px;
  }

  .curved-top {
    top: -21rem;
  }

  .curved-bottom {
    bottom: -13rem;
  }

  .post-content__date {
    display: block;
    margin-bottom: 16px;
  }

  .post-content__date:after {
    display: none;
  }

  body.category .page-title {
    padding: 5rem 0 5rem;
  }

  .search-form,.search-form.active{
    width: 100%;
    background: white;
  }
}

/* / max-width 767 */