.latest__posts {
  padding: 40px 0 60px 0;
  h3 {
    font-family: "Roboto";
    font-size: 28px;
    font-weight: 500;
    line-height: normal;
    letter-spacing: 0.29px;
    color: #111111;
    margin: 0 0 20px 0;
  }
  .latest__post-grid {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    justify-content: space-between;
    .latest__post-grid-item {
      &:first-child {
        flex-basis: calc(100% - 350px);
      }
      &:last-child {
        flex-basis: 262px;
      }
      .latest__posts-post {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        width: 100%;
        padding: 20px 0;
        border-bottom: 1px solid #eee;
        &:first-child {
          padding: 0 0 20px 0;
        }
        &:last-child {
          position: relative;
          display: block;
          border-bottom: none;
          float: right;
        }
        .grid__item {
          &:first-child {
            flex-basis: 360px;
          }
          &:last-child {
            flex-basis: calc(100% - 390px);
          }
          img {
            width: 100%;
            height: auto;
          }
          h4 {
            font-family: "Roboto";
            font-size: 18px;
            font-weight: bold;
            line-height: normal;
            letter-spacing: 0.19px;
            color: #111111;
            margin: 0 0 7px 0;
            &:hover,
            &.hovered {
              color: #666;
            }
          }
          .feature__post-date {
            color: #666666;
            font-family: "Roboto Slab";
            font-size: 14px;
            font-weight: normal;
            line-height: normal;
            letter-spacing: 0.15px;
            margin-bottom: 20px;
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
            align-items: center;
            .feature__divider {
              height: 15px;
              border-right: 1px solid #a1a1a1;
              margin: 0px 2px;
            }
            a {
              font-family: "Roboto";
              color: #444444;
              background-color: #ebefef;
              border: solid 1px #ebefef;
              padding: 0px 12px;
              border-radius: 500px;
              &:hover {
                text-decoration: underline;
              }
            }
          }
          p {
            font-family: "Roboto";
            font-size: 16px;
            font-weight: normal;
            line-height: normal;
            color: #111111;
            margin-bottom: 20px;
          }
          .featured__post-author {
            font-family: "Roboto";
            font-size: 14px;
            font-weight: 500;
            line-height: normal;
            letter-spacing: 0.15px;
            color: #111111;
            a {
              color: #006482;
              text-decoration: underline;
              &:hover {
                text-decoration-thickness: 2px;
              }
            }
          }
        }
      }
    }
  }
  #paginationContainer {
    section {
      text-align: center;
      .pagination {
        float: right;
        .page-numbers {
          padding: 7px 11px 6px 10px;
          font-family: "Roboto";
          font-size: 18px;
          font-weight: 500;
          line-height: normal;
          color: #a1a1a1;
        }
        .current {
          background-color: #ff6200;
          color: #fff;
          border-radius: 2px;
        }
        .arrow-right {
          display: inline-block;
          transform: rotate(180deg);
          img {
            height: 18px;
            width: auto;
          }
        }
        .arrow-left {
          display: inline-block;
          img {
            height: 18px;
            width: auto;
          }
        }
      }
    }
  }
}

@media screen and (min-width: 1200px) {
  .latest__posts {
    .container {
      padding: 0;
    }
  }
}

@media screen and (min-width: 991px) and (max-width: 1200px) {
  .latest__posts {
    .container {
      width: 100%;
      padding: 0 15px;
    }
  }
}

@media screen and (min-width: 768px) and (max-width: 991px) {
  .latest__posts {
    .container {
      width: 100%;
      padding: 0 15px;
    }
    .latest__post-grid {
      .latest__post-grid-item {
        &:first-child {
          flex-basis: 100%;
        }
        &:last-child {
          flex-basis: 100%;
        }
        .latest__posts-post {
          &:last-child {
            text-align: center;
            float: unset !important;
          }
        }
      }
    }
    #paginationContainer {
      section {
        .pagination {
          float: unset !important;
        }
      }
    }
  }
}

@media screen and (max-width: 768px) {
  .latest__posts {
    .container {
      width: 100%;
      padding: 0 15px;
    }
    .latest__post-grid {
      .latest__post-grid-item {
        &:first-child {
          flex-basis: 100%;
        }
        &:last-child {
          flex-basis: 100%;
        }
        .latest__posts-post {
          &:first-child {
            padding: 0 0 20px 0;
          }
          &:last-child {
            text-align: center;
            float: unset !important;
          }
          .grid__item {
            &:first-child {
              flex-basis: 100%;
            }
            &:last-child {
              flex-basis: 100%;
            }
            h4 {
              font-size: 16px;
              margin: 10px 0 7px 0;
            }
            .feature__post-date {
              font-family: "Roboto";
              font-size: 14px;
              font-weight: 500;
              line-height: normal;
              color: #a1a1a1;
              margin-bottom: 18px;
              a {
                color: #a1a1a1;
                &:hover {
                  text-decoration: underline;
                }
              }
            }
            p {
              font-size: 14px;
            }
            .featured__post-author {
              font-size: 12px;
            }
          }
        }
      }
    }
    #paginationContainer {
      section {
        .pagination {
          float: unset !important;
        }
      }
    }
  }
}
