/* DOG GALLERY */
.dog-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr); /* 5 columns */
  gap: 20px;
}

/* ========== RESPONSIVE BREAKPOINTS ========== */

/* Large tablets / small desktops */
@media (max-width: 1200px) {
  .dog-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .dog-card img {
    height: 240px;
  }
}

/* Tablets */
@media (max-width: 768px) {
  .dog-grid,
  #dog-gallery {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 15px;
  }

  .dog-card {
    max-width: 100%;
    text-align: center;
  }

  .dog-card img {
    width: 100%;
    height: 240px !important; /* smaller image on tablets */
    object-fit: cover;
    border-radius: 10px;
  }

  /* Filters - stacked vertically */
  #filters .filters-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }

  #filters label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
  }

  #filters select {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 16px;
  }

  /* Hero text smaller */
  .hero-content h1 {
    font-size: 28px;
  }

  .hero-content p {
    font-size: 16px;
  }

  /* Remove section lines */
  section::before {
    content: none !important;
  }

  /* Pagination stacked */
  #pagination {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 10px;
    text-align: center;
  }

  #pagination span {
    margin: 10px 0;
  }

  #pagination .btn {
    width: 100%;
    max-width: 250px;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .dog-grid {
    grid-template-columns: 1fr;
  }

  .dog-card img {
    height: 240px !important; /* even smaller on phones */
  }
}


/* ========== DOG CARD BASE STYLES ========== */

.dog-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  padding: 15px;
  transition: transform var(--trans), box-shadow var(--trans);
  text-align: left;
}

.dog-card img {
  width: 100%;
  border-radius: var(--radius-md);
  height: 300px;
  object-fit: cover;
  margin-bottom: 12px;
}

.dog-card h3 {
  color: var(--clr-blue);
  margin-bottom: 8px;
}

.dog-info {
  list-style: none;
  margin-bottom: 12px;
  color: var(--txt-secondary);
}

.dog-info li {
  font-size: 14px;
  margin-bottom: 4px;
}

.dog-card p {
  margin-bottom: 12px;
  font-size: 15px;
}

.dog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* FILTERS */
.filters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 15px;
  justify-items: center;
  margin-bottom: 40px;
}

.filters-grid select {
  padding: 6px 10px;
  border-radius: var(--radius-md);
  border: 1px solid #ccc;
  font-size: 14px;
}

/* PAGINATION (Desktop) */
#pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin: 50px 0;
}

#pagination span {
  font-weight: 600;
  font-size: 16px;
}

.adopted-label {
  display: inline-block;
  background: var(--clr-purple-light);
  color: #fff;
  padding: 6px 12px;
  border-radius: 12px;
  font-weight: 600;
  margin-top: 10px;
}
