#library-filter-container {
  font-family: "Poppins", sans-serif !important;
  color: black;
  display: flex;
  gap: 100px;
  justify-content: center;
}

#library-items {
  font-family: "Poppins", sans-serif !important;
  display: grid;
  grid-template-columns: repeat(3, 310px);
  row-gap: 30px;
  column-gap: 30px;
}

/* Force card image to fixed size */
.library-item .wp-post-image {
  height: 240px !important;
  width: 310px !important;
}

.genre-title {
  font-family: "Poppins", sans-serif !important;
  font-size: 12px;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.4);
  text-transform: uppercase;
  letter-spacing: 1px;

  cursor: pointer;
}

.filter-label-text {
  font-family: "Poppins", sans-serif !important;
  font-size: 14px;
  font-weight: 400;
  margin-bottom: 15px;

  cursor: pointer;
}

.genre-checkbox {
  cursor: pointer;
}

.filter-after,
.all-resources {
  font-family: "Poppins", sans-serif !important;
  font-weight: 600;
}

.filter-after {
  margin-bottom: 60px;

  cursor: pointer;
}

.accordion-title {
  font-family: "Poppins", sans-serif !important;
  margin-bottom: 20px;
}

.accordion-content hr {
  height: 1px;
  color: rgba(0, 0, 0, 0.2);
  margin-top: 15px !important;
  margin-bottom: 30px !important;
}

.library-filter-checkbox {
  margin-right: 10px;
}

.author-article-text {
  font-family: "Poppins", sans-serif !important;
  font-weight: 600;
  font-size: 14px;
  color: #785d75;
}

.text-break {
  color: rgba(0, 0, 0, 0.2);
}

.library-item-title {
  font-family: "Poppins", sans-serif !important;
  font-weight: 600;
  font-size: 20px;
  color: #000;
  margin-bottom: 40px;
}

.library-read-more {
  font-family: "Poppins", sans-serif !important;
  font-weight: 500;
  font-size: 14px;
  color: #ea7f49;
  border-bottom: 1px solid #ea7f49;
  padding-bottom: 5px;

  transition: all 0.3s;
}

.library-read-more:hover {
  color: #785d75;
  border-bottom: 1px solid #785d75;
}

#load-more {
  font-family: "Poppins", sans-serif !important;
  color: white;
  background-color: #ea7f49;
  padding: 10px 14px;
  border: none;
  border-radius: 0px;

  transition: all 0.3s;
}

#load-more:hover {
  background-color: #785d75;
}

/* Modal */
#login-modal {
  font-family: "Poppins", sans-serif;
  color: #101828;
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  padding: 40px 80px 70px;
  z-index: 1001;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);

  max-width: 610px;
}

.modal-header {
  font-family: "Poppins", sans-serif;
  font-size: 36px;
  font-weight: 600;
}

.modal-paragraph {
  font-family: "Poppins", sans-serif;
  color: #475467;
  font-size: 18px;
  margin-bottom: 50px;
}

.register-modal-link {
  font-family: "Poppins", sans-serif;
  color: #fff;
  background-color: #ea7f49;
  font-size: 14px;
  font-weight: 500;
  padding: 20px 26px;
  margin-right: 10px;
  text-decoration: none;

  transition: all 0.3s;
}

.register-modal-link:hover {
  color: #fff;
  filter: brightness(0.8);
}

.login-modal-link {
  font-family: "Poppins", sans-serif;
  color: #ea7f49;
  background-color: #fff;
  font-size: 14px;
  font-weight: 500;
  padding: 19px 25px;
  border: 1px solid #ea7f49;
  text-decoration: none;

  transition: all 0.3s;
}

.login-modal-link:hover {
  color: #ea7f49;
  filter: brightness(0.9);
}

/* DROPDOWN */
.filter-after {
  display: flex;
  align-items: center;
}

.arrow {
  display: inline-block;
  margin-left: 8px; /* Spacing between text and arrow */
  font-size: 0.9em; /* Slightly smaller size for a thinner appearance */
  transition: transform 0.3s ease; /* Smooth rotation */
}

/* Rotate arrow upwards when .expanded class is added */
.filter-after.expanded .arrow {
  transform: rotate(-180deg); /* Rotates "▾" to point upwards */
}

/* PAGINATION */
.pagination {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}
.pagination a {
  margin: 0 5px;
  padding: 8px 12px;
  border: 1px solid #ccc;
  text-decoration: none;
  color: #333;
}
.pagination a.active {
  background-color: #333;
  color: #fff;
}

@media screen and (max-width: 1440px) {
  #library-filter-container {
    gap: 100px;
  }
}

/* @media screen and (max-width: 1286px) {
  #library-filter-container {
    gap: 75px;
  }

  #library-items {
    grid-template-columns: repeat(3, 310px);
  }
} */

@media screen and (max-width: 1286px) {
  #library-filter-container {
    flex-direction: column;
    gap: 0px;
  }

  #library-items {
    grid-template-columns: repeat(3, 310px);
    justify-content: center;
  }

  .filter-after {
    margin-bottom: 30px;
  }

  #login-modal {
    padding: 40px;
  }

  .register-login-modal {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .register-modal-link {
    margin: 0;
  }
}

@media screen and (max-width: 1000px) {
  #library-items {
    grid-template-columns: repeat(2, 400px);
  }

  .library-item .wp-post-image {
    width: 400px !important;
  }
}

@media screen and (max-width: 850px) {
  #library-items {
    grid-template-columns: repeat(2, 320px);
  }

  .library-item .wp-post-image {
    width: 320px !important;
  }
}

@media screen and (max-width: 700px) {
  #library-items {
    grid-template-columns: repeat(1, 400px);
  }

  .filter-after {
    margin-bottom: 20px;
  }

  .library-item .wp-post-image {
    width: 400px !important;
  }
}

@media screen and (max-width: 400px) {
  #library-items {
    grid-template-columns: repeat(1, 350px);
  }

  .library-item .wp-post-image {
    width: 350px !important;
  }
}

@media screen and (max-width: 370px) {
  #library-items {
    grid-template-columns: repeat(1, 330px);
  }

  .library-item .wp-post-image {
    width: 330px !important;
  }
}

@media screen and (max-width: 350px) {
  #library-items {
    grid-template-columns: repeat(1, 310px);
  }

  .library-item .wp-post-image {
    width: 310px !important;
  }
}
