.cat-card,
.cat-photo,
.cat-card a,
.cat-photo img {
  margin: 0;
  padding: 0;
  float: none;
  display: block;
  box-sizing: border-box;
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  padding: 1.5rem;
  margin: 0 auto;
  max-width: 1200px;
  box-sizing: border-box;
  background: #fff5f9; /* light visible color */
}

.cat-card {
  margin: 0 auto;
  max-width: 400px;
  width: 100%;
  box-sizing: border-box;
  background: white;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  border-radius: 10px;
}

.cat-card a {
  display: block;
  width: 100%;
}

.cat-photo {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  object-fit: cover;
}

.cat-info {
  padding: 0.8rem 1rem 0.75rem;
  text-align: center;
  line-height: 1.3;    
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
}

.cat-bio {
  font-size: 0.9rem;
  color: #555;
  margin-top: 0.5rem;
  line-height: 1.4;
}

.cat-name {
    
    font-size: 1.2rem;
  font-weight: bold;
  margin: 0;
}

.cat-quick-facts {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.4;
  margin-bottom: 0.5rem;
}
.cat-link a {
  display: inline-block;
  margin-top: 0.75rem;
  color: #c6538c;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.cat-link a:hover {
  color: #a93b70;
  text-decoration: underline;
}

.cat-facts-content h1 {
  font-size: 2rem;
  color: #c6538c;
  margin-bottom: 1rem;
}

.rescue-mission {
  font-size: 0.95rem;
  color: #555;
  margin-top: 0.5rem;
  line-height: 1.5;
  white-space: normal;
}

.cat-info p {
  margin: 0;
  padding: 0;
}

.cat-detail {
  font-size: 0.95rem;
  color: #666;
  margin: 0 0 0.3rem;
  line-height: 1.3;
}

.cat-location {
  font-size: 0.9rem;
  color: #888;
  margin: 0 0 0.5rem;
}

.cat-bio {
  font-size: 0.9rem;
  color: #555;
  margin: 0.25rem 0 0.5rem;
  line-height: 1.4;
}

.centered-box {
  max-width: 800px;
  margin: 2rem auto;
  background: #fff8fc;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  text-align: center;
}

.centered-box h4 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #c6538c;
}

.rescue-spotlight img {
  margin: 1rem 0;
  border-radius: 8px;
}

.adopt-search-form {
  text-align: center;
  margin: 2rem auto;
}

.adopt-search-form form {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

/* === Rescue Spotlight Layout === */

.rescue-spotlight-container {
  padding: 2rem 1rem;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.rescue-spotlight-container h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: #c6538c;
}

.rescue-spotlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.rescue-card {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  padding: 1.5rem;
  text-align: left;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.rescue-card h3 {
  font-size: 1.3rem;
  margin: 0;
  color: #333;
}

.rescue-card .verified {
  color: green;
  font-size: 1.1rem;
  margin-left: 0.5rem;
}

.rescue-card .location {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 0.75rem;
}

.mission-full {
  font-size: 0.95rem;
  color: #444;
  margin: 0.75rem 0;
  line-height: 1.5;
  max-height: 7.2em; /* ~5 lines */
  position: relative;
}

.adoption-policy {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #555;
}

.adoption-policy summary {
  cursor: pointer;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.rescue-links {
  margin-top: 1rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}

.rescue-links a,
.rescue-links span {
  font-size: 1rem;
  color: #c6538c;
  text-decoration: none;
  transition: color 0.2s ease;
}

.rescue-links a:hover {
  color: #a7426d;
}

@media (max-width: 600px) {
  .rescue-card {
    padding: 1rem;
  }
}

.adopt-search-form input,
.adopt-search-form select,
.adopt-search-form button {
  padding: 0.6rem 1rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 1rem;
}

.adopt-search-form button {
  background-color: #c6538c;
  color: white;
  border: none;
  cursor: pointer;
}

.adopt-search-form button:hover {
  background-color: #a7426d;
}

.pagination {
  text-align: center;
  margin: 2rem 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  align-items: center;
}

.pagination a {
  text-decoration: none;
  font-weight: bold;
  color: #c6538c;
}

.page-selector select {
  padding: 0.5rem;
  font-size: 1rem;
  border-radius: 6px;
  border: 1px solid #ccc;
}




.section-heading {
  text-align: center;
  font-size: 2rem;
  margin-top: 3rem;
  color: #c6538c;
}

/* === Spotlight Slider === */
.spotlight-section {
  max-width: 1000px;
  margin: 3rem auto;
  padding: 0 1rem;
  position: relative;
}

.rescue-slider-wrapper {
  position: relative;
  overflow: hidden;
}

.rescue-slider {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 1rem 0;
  scroll-snap-type: x mandatory;
}

.rescue-card {
  flex: 0 0 300px;
  scroll-snap-align: start;
  background: #fff8fc;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  text-align: center;
  position: relative;
}

.rescue-card img.rescue-img {
  display: block;
  width: 100%;
  max-width: 160px;
  max-height: 140px;
  height: auto;
  margin: 1rem auto;
  object-fit: contain;
}

.mission-full {
  font-size: 0.95rem;
  color: #444;
  margin: 0.75rem 0;
  line-height: 1.5;
}

.rescue-icons, .social-icons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.rescue-scroll {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  background: #ffe6f0;
  color: #c6538c;
  border: none;
  border-radius: 999px;
  width: 2.5rem;
  height: 2.5rem;
  font-size: 1.4rem;
  cursor: pointer;
  z-index: 10;
}

.rescue-scroll.left {
  left: -1rem;
}

.rescue-scroll.right {
  right: -1rem;
}


/* Responsive tweak for mobile */
@media (max-width: 600px) {
  .rescue-card {
    flex: 0 0 80%;
  }
}


@media (max-width: 600px) {
  .rescue-img {
    max-width: 120px;
  }
}



@media (max-width: 600px) {
  .adopt-search-form form {
    flex-direction: column;
    align-items: stretch;
  }

  .cat-grid {
    grid-template-columns: 1fr;
  }

  .pagination {
    flex-direction: column;
  }
}

.pagination span {
  font-weight: bold;
  margin-left: 0.5rem;
}

.results-count {
  text-align: center;
  font-size: 1.25rem;
  margin-top: 1.5rem;
  color: #444;
}

.pagination a:hover {
  color: #a7426d;
}

.cat-link a {
  margin-top: 0.4rem;
}
.page-title {
  text-align: center;
  font-size: 2.5rem;
  color: #c6538c;
  margin-top: 2rem;
  margin-bottom: 1.5rem;
  font-family: 'Fredoka', sans-serif;
}

.adopt-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.adopt-search-box,
.adopt-results-box,
.adopt-search-again {
  background: #fff8fc;
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* Optional: more subtle for bottom box */
.adopt-search-again {
  background: #fdf2f7;
  text-align: center;
}

.adopt-search-again h4 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: #c6538c;
}

.search-again-link {
  background-color: #c6538c;
  color: white;
  text-decoration: none;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  font-weight: bold;
  display: inline-block;
  transition: background-color 0.2s ease;
}

.search-again-link:hover {
  background-color: #a7426d;
}

/* Responsive fix */
@media (max-width: 600px) {
  .cat-grid {
    grid-template-columns: 1fr; /* Force single column */
    padding: 1rem;
    gap: 1rem;
  }
  
  .cat-detail,
.cat-location,
.cat-bio,
.cat-link {
  margin: 0.2rem 0;
  font-size: 0.92rem;
}

.cat-bio {
  color: #555;
  line-height: 1.4;
}

.cat-location {
  color: #888;
}

.cat-link a {
  color: #c6538c;
  font-weight: bold;
  text-decoration: none;
  font-size: 0.92rem;
}

.cat-link a:hover {
  color: #a93b70;
  text-decoration: underline;
}

.cat-card {
  margin: 0 auto;
  width: 100%;
  max-width: 400px;
  box-sizing: border-box;
}

  .cat-photo {
    height: auto;       /* Adjusts nicely to image */
    max-width: 100%;
  }

  .cat-card a {
    display: block;
    width: 100%;
  }
}


.adopt-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.adopt-search-box,
.adopt-results-box,
.adopt-search-again {
  background: #fff8fc;
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* Optional: more subtle for bottom box */
.adopt-search-again {
  background: #fdf2f7;
  text-align: center;
}

.adopt-search-again h4 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: #c6538c;
}

.search-again-link {
  background-color: #c6538c;
  color: white;
  text-decoration: none;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  font-weight: bold;
  display: inline-block;
  transition: background-color 0.2s ease;
}

.search-again-link:hover {
  background-color: #a7426d;
}

.page-title {
  text-align: center;
  font-size: 2.5rem;
  color: #c6538c;
  margin-top: 2rem;
  margin-bottom: 1.5rem;
  font-family: 'Fredoka', sans-serif;
}
