@import url("global.css");
@import url("mobileNav.css");
@import url("header.css");
@import url("cta.css");
@import url("footer.css");

.section-1 {
  max-width: 120rem;
  margin: auto;
  padding: 4rem 2.5rem;
  line-height: 1.5;
}

.section--title {
  font-size: 2.3rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.2rem;
  line-height: 1.2;
  color: var(--dark-purple);
}

.featured--post {
  margin-top: 4.5rem;
}

.post--img {
  border: 0.1rem solid var(--light-gray);
  border-radius: 0.5rem;
  height: 23rem;
}

.post--url {
  text-decoration: none;
}

.post--url:hover {
  text-decoration: underline;
}

.post--title {
  margin-bottom: 0.2rem;
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--dark-green);
}

.post--author {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 500;
}

.post--date {
  font-size: 1.2rem;
  color: var(--below-normal-gray);
  font-weight: 600;
}

.post--text {
  font-size: 1.4rem;
}

/* ALL-POSTS AND PAGINATION STYLING */
.all-post-pages {
  display: flex;
  overflow: hidden;
}

.posts--page {
  min-width: 100%;
  transition: all 0.3s;
}

.posts--pagination {
  width: 100%;
  margin-top: 5rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.posts--pagination button {
  border: none;
  padding: 1.2rem 1rem;
  cursor: pointer;

  font-size: 1.4rem;
  font-weight: 500;
  color: #fff;
}

.btn--prev,
.btn--next {
  width: fit-content;
  background-color: var(--dark-purple);
}

.btn--prev {
  border-radius: 0.8rem 0 0 0.8rem;
}

.btn--next {
  border-radius: 0 0.8rem 0.8rem 0;
}

.page--numbers button {
  max-width: 4rem;
  background-color: #fff;
  border: 0.1rem solid var(--dark-purple);

  color: var(--dark-gray);
}

@media screen and (min-width: 640px) {
  .section-1 {
    margin-bottom: 5rem;
  }

  .featured--post {
    display: grid;
    grid-template-columns: 1fr 2fr;
    align-items: center;
    gap: 2rem;
  }

  .page--numbers {
    display: flex;
  }

  .posts--pagination button {
    padding: 1.5rem 2rem;

    display: flex;
    justify-content: center;
    align-items: center;
  }

  .page--numbers button {
    min-width: 2rem;
  }
}

@media screen and (min-width: 1280px) {
  .featured--post {
    margin-top: 5.5rem;
    gap: 7rem;
  }

  .post--img {
    height: 30rem;
  }

  .posts--pagination {
    margin-top: 7rem;
  }
}
