/*blogs section*/
#blogs {
  background-color: #ED832F;
  padding: 60px 20px;
}

#blog-body{
  min-height: 150px;
}

/*blogs search bar*/
#search-form {
  display: flex;
  justify-content: center;
  margin-bottom: 4rem;
}

#search-form input {
  width: 300px;
  padding: 10px;
  margin-right: 10px;
}

#search-form button {
  padding: 10px 16px;
  background-color: white;
  color: black;
  border: none;
  cursor: pointer;
}

/* #search-form button:hover {
  background-color: #94480e;
} */
/*resources section*/
#posts {
  max-width: 1200px;
  margin: 0 auto;
}

.article {
  text-align: center;
}

#posts-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 30px;
  justify-items: center;  
}

.admin-resource-card,  .resource-card{
  width: 285px;
}

.resource-card {
  position: relative;
  height: 300px;
  background-size: cover;
  background-position: center;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  transition: transform 0.3s ease;
  background-color: white;
}

.resource-card:hover {
  transform: scale(1.03);
}

.blog-content {
  background: rgba(0, 0, 0, 0.5);
  color: white;
  padding: 20px;
  width: 100%;
  text-align: left;
}

.blog-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background-color: white；
}

.blog-content p,
.blog-content h3 {
  margin: 0;
}

.blog-content h3 a {
  color: #fff;
  text-decoration: none;
}

/*hide blog text*/
.resource-content {
  display: none;
}

/*view more resources button*/
.view-more-btn {
  padding: 12px 24px;
  background-color: #007bff;
  color: #fff;
  font-size: 1rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-top: 40px;
  text-align: center;
}

.view-more-btn:hover {
  background-color: #0056b3;
}

/*admin functions - CRUD*/
#create-btn {
  background-color: white;
  /*color: #ED832F;*/
  color: black;
}

#create-form {
  background-color: white;
  padding: 20px;
  margin: 20px 0;
  display: none;

  .field,
  input {
    margin: 10px 0;
    padding: 5px;
  }
}

#blog-title {
  width: 400px;
}

.resource-btns {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}



.resource-btns i {
  font-size: 1.5rem;
  /* try 2rem for larger */
}

.resource-btns .top-row,
.resource-btns .bottom-row {
  display: flex;
  justify-content: space-between;
  width: 100%;
  flex-wrap: wrap;
}

.resource-btns button,
.resource-btns a button{
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  transition: background 0.2s ease;
}

.move-up, .move-down, .drag-handle {
  font-size: 1.2rem;
  color: black;
  padding: 0.3rem 0.6rem;
  background-color: whitesmoke;
  border-radius: 4px;
  width: auto;
  min-width: 35px;
}

.btn-delete {
  color: rgb(245, 6, 6);
}

.btn-edit {
  color: rgb(0, 38, 255);
}

.db-copy-button {
  background: #23a802;
  color: #fff;
}

.db-send-button {
  background: #e7395c;
  color: #fff;
}