/* Center the page content */
.details-container {
  width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Carousel container styling */
.carousel-container {
  position: relative;
}
.carousel {
  position: relative;
  height: 400px; /* Fixed height for desktop */
  margin-bottom: 20px;
  overflow: hidden;
}

/* Common styles for carousel images */
.carousel-img {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 8px;
  object-fit: cover;
  transition: all 0.3s ease;
}

/* Center image: active image, taking up ~2/3 of container width */
.carousel-img.center {
  width: 66%;
  height: 100%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  opacity: 1;
}

/* Left image: smaller, faded, and recessed */
.carousel-img.left {
  width: 30%;
  height: 80%;
  left: 5%;
  transform: translateY(-50%);
  z-index: 1;
  opacity: 0.6;
  filter: brightness(80%);
}

/* Right image: smaller, faded, and recessed */
.carousel-img.right {
  width: 30%;
  height: 80%;
  right: 5%;
  transform: translateY(-50%);
  z-index: 1;
  opacity: 0.6;
  filter: brightness(80%);
}

/* Arrow overlays */
.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
  padding: 10px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 3;
}
.left-arrow {
  left: 10px;
}
.right-arrow {
  right: 10px;
}

/* Carousel dots styling */
.carousel-dots {
  text-align: center;
  margin-top: 10px;
}
.carousel-dots .dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  background: #ccc;
  border-radius: 50%;
  margin: 0 5px;
  cursor: pointer;
}
.carousel-dots .dot.active {
  background: #333;
}

/* Details information styling */
.details-info {
  text-align: center;
}
.details-info h2 {
  font-size: 34px;
  font-weight: bold;
  margin-bottom: 10px;
}

.details-info h3 {
  font-size: 22px;
  margin-bottom: 10px;
}

.details-info h4 {
  font-size: 18px;
  margin-top: 3rem;
  margin-bottom: 2.5rem;
}

.details-info p {
  font-size: 18px;
  line-height: 1.5;
  margin-bottom: 10px;
}

/* Flex container for Species and Age */
.info-row {
  display: flex;
  justify-content: left;
  gap: 20px;
  margin-bottom: 10px;
}
.info-row .info-item {
  font-size: 22px;
}

/* New container dividing the content into two columns */
.info-main-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin: 20px 0;
  flex-wrap: wrap;
}

/* Left column: Bio and Adoption Information */
.bio-adoption-container {
  flex: 2;
  text-align: left;
}

/* Right column: contains application and contact panels stacked vertically */
.side-panel-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Application Panel */
.application-container {
  background: #f1f1f1;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
}
.application-container .application-tagline {
  font-size: 18px;
  margin-bottom: 10px;
  color: #000;
}
.application-container .application-button {
  padding: 10px 20px;
  font-size: 16px;
  background: #007BFF;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

/* Contact Panel */
.contact-container {
  background: #e9e9e9;
  padding: 20px;
  border-radius: 8px;
  text-align: left;
}
.contact-container h3 {
  margin-bottom: 15px;
  color: #000;
}
.contact-info {
  display: flex;
  align-items: center;
  gap: 20px;
}
.contact-info .logo img {
  width: 80px;
  height: auto;
}
.contact-info .contact-details p {
  margin: 5px 0;
  font-size: 16px;
  color: #000;
}

/* Mobile Responsive Styles */
@media (max-width: 600px) {
  /* Make the main container full width */
  .details-container {
    max-width: 100%;
    padding: 0;
    margin: 0;
  }
  
  /* Force the carousel to stretch edge-to-edge */
  .carousel-container {
    width: 100vw;
    margin-left: calc(-((100vw - 100%)/2));
  }
  
  /* Adjust carousel height for mobile */
  .carousel {
    height: 250px;
  }
  
  /* Resize carousel images for mobile */
  .carousel-img.center {
    width: 80%;
    height: 90%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
  .carousel-img.left,
  .carousel-img.right {
    width: 25%;
    height: 75%;
    top: 50%;
    transform: translateY(-50%);
  }
  
  /* Optionally, adjust arrow size */
  .arrow {
    padding: 8px;
  }
  
  /* Stack the info columns vertically */
  .info-main-container {
    flex-direction: column;
  }
  
  /* Center the header-information container on mobile */
  .header-information-container {
    text-align: center;
  }

  .details-info {
    padding: 20px;
  }
  
  /* Ensure the side panels appear below the bio/adoption container */
  .side-panel-container {
    margin-top: 20px;
  }
  
  /* Adjust font sizes for better mobile readability */
  .details-info h2 {
    font-size: 24px;
  }
  .details-info h3 {
    font-size: 18px;
  }
  .info-row {
    display: flex;
    justify-content: center;
  }
  .details-info p,
  .info-row .info-item {
    font-size: 16px;
  }
  .application-container .application-tagline {
    font-size: 16px;
  }
  .application-container .application-button {
    font-size: 14px;
    padding: 8px 16px;
  }
  .contact-info .contact-details p {
    font-size: 14px;
  }
}
