html, body {
  background-color: #ffffff;
  scroll-behavior: smooth;
    margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

header {
  background-color: #1B8755;
  position: fixed;
  height: 70px;
  top: 0;
  z-index: 1000;
}

nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 15px 40px;
  color: white;
}

.nav-links {
  margin-top:10px;
  list-style: none;
  display: flex;
  gap: 20px;
}

.nav-links a {
  text-decoration: none;
  color: #fff;
  font-weight: bold;
}

.nav-links a:hover {
  color: #FF822E;
}




.char-no {
  color: white;
}
.hero {
  min-height: 100vh;
  background:  linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.7)),
  url('../../assets/images/hero-new.jpg') center/contain no-repeat;
  display: flex;
  flex-direction: column;
  background-attachment: fixed;
  justify-content: center;
  align-items: center;
  color: #fff;
  text-align: center;
  padding: 0 20px;
  margin-top: 50px;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 30px;
  text-transform: uppercase;
}
.hero h2 {
  font-size: 2rem;
  margin: 10px;
  font-weight: bolder;
}

.emerald {
  color: #1B8755; /* Emerald Green */
}

.white {
  color: #ffffff; /* White */
}

.orange {
  color: #FF822E; /* Irish Orange */
}

.hero p {
  font-size: 1.2rem;
}

button {
  padding: 10px 20px;
  color: white;
  background-color: #FF822E;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  font-weight: bolder;
  margin-top: 5px;
   box-shadow: 0 0 2px #D96B1F;
}

button:hover {
  background-color: #f18b47;
   box-shadow: 0 0 2px #FAFAFA;
}
.button-box {
  display:inline-block;
}
.hero .button-box button {
  padding: 10px 20px;
  color: white;
  background-color: #FF822E;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  font-weight: bolder;
  margin: 5px;
   box-shadow: 0 0 2px #D96B1F;
}

.hero .button-box button:hover {
  background-color: #f18b47;
}

.animals {
  height: 100vh;
  padding: 50px 20px;
  text-align: center;
  background-color: white;
}

.animals h2, .rehomed h2 {
  font-size: 2.5rem;
}


.car-container {
  height: 400px;

}
.animal-card-square {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    aspect-ratio: 1 / 1;       /* Keep square shape */
    padding: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    border-radius: 8px;
    background-color: #fff;
}

.card-title {
    margin-bottom: 5px;
    text-align: center;
    font-size: 1rem;
}

.card-img-container {
  height: 70%;  
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.card-img-container img {
    max-height: 100%;          /* Fill container height */
    max-width: 100%;
    object-fit: contain;       /* Keep proportions */
}
.animal-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(255, 255, 255, 0.5); 
}


.animal-card h3 {
  margin: 10px 0 5px 0;
  font-size: 1.2rem;
}

.animal-card p {
  font-size: 0.95rem;
  color: #555;
}


.card {
  border: none !important;
}
.carousel-inner {
  padding-bottom: 3rem; 
}

#animalIndicators {
  position: relative;
  bottom: auto; 
  margin-top: 2rem; 
}

.carousel-control-next {
  top: 25% !important;
  box-shadow: none !important;
}
.carousel-control-next:hover {
  background-color: transparent !important;
}

.carousel-control-prev {
  top: 25% !important;
  box-shadow: none !important;
}
.carousel-control-prev:hover {
  background-color: transparent !important;
}

.filter-buttons {
  display: flex;     
  flex-direction: row; 
  gap: 10px;           
  justify-content: center; 
  margin: 20px 0;   
     
}

.filter-buttons button,
.adopt-btn, .rehomed-btn {
    padding: 10px 20px;
  color: white;
  background-color: #FF822E;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  font-weight: bolder;
  margin: 5px;
   box-shadow: 0 0 2px #D96B1F;
}


.filter-buttons button:hover, .adopt-btn:hover, .rehomed-btn:hover{
     background-color: #eda372;
}

.left {
  left: 10px;
}

.right {
  right: 10px;
}

#animalIndicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 4px;
    background-color: gray;
    border: none;
}

#animalIndicators button.active {
    background-color: green;
}


.dog-play {
    background-image: url("../../assets/images/micah-giszack-wx2wNE-yjjg-unsplash.jpg");
    height: 500px;
    width: 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    z-index: 2;
}


.mosaic-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* force 4 columns */
  gap: 12px;
}

.gallery-item {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 8px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


.cat-dog {
    background-image: url("../../assets/images/krista-mangulsone-9gz3wfHr65U-unsplash.jpg");
    height: 500px;
    width: 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    z-index: 2;
}


.animals-grid {
  padding: 100px 20px;
  text-align: center;
  background-color: #fff;
  gap: 20px;
}
.custom-col {
  flex: 1 1 calc(20% - 1rem); /* 20% width for 5 columns minus gap */
  margin: 0.5rem; /* spacing between items */
}

#dogGrid, #catGrid, #rehomedGrid {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.dog-grid, .cat-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 40px;
}

.view-btn {
  margin-bottom: 20px;
}
.animal-desc {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  padding: 0 10px;
  text-align: left;
  background-color: #f9f9f9;
  font-size: 0.9rem;
  color: #333;
  border-top: 1px solid #ddd;
}


.animal-desc.active {
  max-height: 500px; 
  padding: 10px;
}


/* Ensure the rehomed grid is a flex container with gaps */
#rehomedGrid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;   /* center the cards */
  gap: 20px;                 /* space between cards */
  margin-top: 20px;
}

/* Each card in the rehomed grid */
#rehomedGrid .animal-card {
    flex: 0 0 calc((100% - 80px) / 5);
  max-width: calc((100% - 80px) / 5);/* 5 cards per row minus gap */
  max-width: 250px;            /* optional: caps card width */
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: transform 0.3s, box-shadow 0.3s;
}

/* Hover effect */
#rehomedGrid .animal-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.25);
}

/* Image container inside each card */
#rehomedGrid .card-img-container {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;        /* make image square */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Make image fill the container while keeping proportions */
#rehomedGrid .card-img-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.modal {
  display: none; 
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.6); 
}

/* Modal content box */
.modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 20px;
  border-radius: 15px;
  width: 90%;
  max-width: 500px;
  text-align: center;
  position: relative;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.modal-content img {
  width: 100%;
  max-height: 250px;
  object-fit: contain;
  margin-bottom: 15px;
  border-radius: 10px;
}

.modal-content h2 {
  color: #1B8755;
  margin-bottom: 10px;
}

.modal-content p {
  margin-bottom: 10px;
  color: #333;
}

/* Close button */
.close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 28px;
  font-weight: bold;
  color: #FF822E;
  cursor: pointer;
}

.close:hover {
  color: #e67300;
}




.contact {
  padding: 20px;
  background-color: #f4f4f4;
  text-align: center;
  height: auto;       /* let it grow naturally with content */
  min-height: 100vh;  /* optional, still fills viewport if short content */
  box-sizing: border-box;
  padding-bottom: 100px;
}

#point {
  scroll-margin-top: 90px; /* adjust to the height of any fixed header */
}
.contact h2 {
  font-size: 2.5rem;
  margin-bottom: 30px;
  color: #000;
}

.social-media ul {
  display: flex;
  gap: 20px;           /* space between icons */
  list-style: none;    /* remove bullets */
  padding: 0;
  margin: 0;
  align-items: center;
  justify-content: space-evenly;
}

.social-media li {
  display: inline-block;
}

.social-media a {
  font-size: 24px;     /* adjust icon size */
  text-decoration: none;
}

.social-media i {
  font-size: 3rem;
  color: #D96B1F;
}

.social-media i:hover, .social-names i:hover {
  color: #f99955;
}


.contact-item strong {
  display: block;
  font-size: 1rem;
}

.numbers {
  margin-top: 5px;
  line-height: 1.6;
}

.donate-info h5, .contact-item h5 {
 color: #FF822E; 
}

.home-donate .row {
  justify-content: center; /* centers columns on smaller screens */
}

.home-bank-details, .home-bank-details-two, .donation-contacts {
  padding: 15px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  height: 100%;
}

.home-donate h3 {
  color: #1B8755;
}


footer {
  background-color: #1B8755;
  color: #fff;
  text-align: center;
padding: 15px;
position: relative;
}




@media (max-width: 768px) {

  .hero h1 {
    font-size: 2rem;
  }

  .hero h2 {
    font-size:  1.2rem;
  }

.hero p {
  font-size: 0.9rem;
}

.hero .button-box button {
  padding: 5px 10px;
  color: white;
  background-color: #FF822E;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  font-weight: bolder;
  margin-top: 5px;
   box-shadow: 0 0 2px #D96B1F;
   margin-top: 30px;
}

.animals h2, .rehomed h2, .contact h2 {
  font-size: 1.5rem;
}

.animals p, .animals p {
  font-size: 0.8rem;
}


.adopt-btn {
  padding: 5px 10px;
  margin: 10px;
}
  header {
    padding: 8px 10px;
  }

  nav {
    padding: 10px;
  }

  .nav-links {
    gap: 15px;
  list-style: none;
  margin: 0;
  padding: 0;
  }


  .nav-links li a {
    font-size: 0.85rem;
  }
}
