.carousel-container {
    max-width: 1328px;
    overflow: hidden;
    margin: 0 auto;
    padding: 0;
  }
.carousel-track {
        height: 18rem;
    }
.carousel-slide {
        width: 320px;
    }
    .carousel-slide img {
        object-fit: cover !important;
        height: 100% !important;
        width: 100% !important;
    }

/* Mobile */
@media (max-width: 640px) {
    .carousel-container {
      scroll-snap-type: x mandatory;
      -webkit-overflow-scrolling: touch;
    }
  
    .carousel-track {
      width: max-content;
      flex-wrap: nowrap;
      scroll-snap-type: x mandatory;
    }
  
    .carousel-slide {
      scroll-snap-align: start;
      flex: 0 0 100vw;
      height: auto;
    }
  
    .carousel-slide img {
      height: auto;
      max-height: 80vh;
    }
  }

  
#mobile-menu-button {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  min-height: 44px;
  min-width: 44px;
  outline: none;
  border: none;
  box-shadow: none;
  background: transparent;
}

#mobile-menu-button:focus {
  outline: none;
  box-shadow: none;
}

#mobile-menu-button:hover {
  background-color: transparent;
}

#mobile-menu-button span {
  transition: transform 0.3s ease;
}

#mobile-menu {
  display: none;
  background-color: #EDE9DE;
  border-radius: 0;
  margin-top: 1rem;
  padding: 0.5rem;
  box-shadow: none;
  border: none;
  outline: none;
  transition: opacity 0.2s ease-in-out;
  opacity: 0;
}

#mobile-menu:not(.hidden) {
  display: block;
  opacity: 1;
}

/* Mobile menu links */
#mobile-menu a {
  display: block;
  opacity: 1;
  background-color: transparent;
  margin-bottom: 0.5rem;
  border: none;
  outline: none;
  text-decoration: none;
  padding: 0.5rem 1rem;
  transition: transform 0.2s ease-in-out;
}

#mobile-menu a:hover {
  transform: translateX(5px);
}

#mobile-menu a:last-child {
  margin-bottom: 0;
}

/* Mobile menu donate button specific styles */
#mobile-menu a[href="donate.php"] {
  background-color: #fef3c7;  /* amber-200 */
  color: #6b7280;  /* gray-500 */
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

#mobile-menu a[href="donate.php"]:hover {
  background-color: #f59e0b;  /* amber-500 */
  color: white;
}

/* Base transitions for all interactive elements */
button, a {
    transition: all 0.3s ease-in-out;
}

/* Enhanced carousel styles */
.carousel-slide {
    transition: transform 0.3s ease-in-out;
    cursor: pointer;
}

.carousel-slide:hover {
    transform: scale(1.02);
}

.carousel-slide img {
    transition: filter 0.3s ease;
}

.carousel-slide:hover img {
    filter: brightness(1.1);
}

/* Navigation enhancements */
#mobile-menu-button {
    transition: all 0.3s ease;
}

#mobile-menu-button:hover {
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 8px;
}

/* Text link hover effects */
a {
    position: relative;
    text-decoration: none;
}

/* Modified to be more specific about underline effects */
a:not(.no-underline):not(.logo):not(.banner-link):after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: currentColor;
    transition: width 0.3s ease;
}

a:not(.no-underline):not(.logo):not(.banner-link):hover:after {
    width: 100%;
}

/* Banner specific styles */
.banner-link {
    text-decoration: none !important;
}

/* Section transitions */
section {
    transition: background-color 0.3s ease;
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Animal picture animations and hover effects */
.relative.mb-6 {
    position: relative;
    transition: transform 0.3s ease;
    cursor: pointer;
}

/* Animal 1 - Horse (Pastel Purple) */
.animal-1 img {
    border: 4px solid #B5A1FF;
    animation: borderPulse1 2s ease-in-out infinite;
}

/* Animal 2 - Cat (Pastel Green) */
.animal-2 img {
    border: 4px solid #98FFBA;
    animation: borderPulse2 2s ease-in-out infinite;
}

/* Animal 3 - Grey Cat (Pastel Coral) */
.animal-3 img {
    border: 4px solid #FFB5A1;
    animation: borderPulse3 2s ease-in-out infinite;
}

/* Animal 4 - Dog (Pastel Sky Blue) */
.animal-4 img {
    border: 4px solid #A1E8FF;
    animation: borderPulse4 2s ease-in-out infinite;
}

/* Animal 5 - Dog (Pastel Pink) */
.animal-5 img {
    border: 4px solid #FFB5E6;
    animation: borderPulse5 2s ease-in-out infinite;
}

/* Animal 6 - Dog (Pastel Gold) */
.animal-6 img {
    border: 4px solid #FFE5A1;
    animation: borderPulse6 2s ease-in-out infinite;
}

/* Animal 7 - Chicken (Pastel Red) */
.animal-7 img {
    border: 4px solid #FFB5B5;
    animation: borderPulse7 2s ease-in-out infinite;
}

/* Animal 8 - Chicken (Pastel Royal Blue) */
.animal-8 img {
    border: 4px solid #B5C7FF;
    animation: borderPulse8 2s ease-in-out infinite;
}

/* Animal 9 - Chicken (Pastel Emerald) */
.animal-9 img {
    border: 4px solid #A1FFD4;
    animation: borderPulse9 2s ease-in-out infinite;
}

.relative.mb-6 img {
    transition: all 0.3s ease;
    border-radius: 50%;
}

.relative.mb-6:hover {
    transform: scale(1.15);
}

/* Enhanced glow animations for each color */
@keyframes borderPulse1 {
    0% { box-shadow: 0 0 0 0 rgba(181, 161, 255, 0.7); }
    50% { box-shadow: 0 0 15px 5px rgba(181, 161, 255, 0.9); }
    100% { box-shadow: 0 0 0 0 rgba(181, 161, 255, 0.7); }
}

@keyframes borderPulse2 {
    0% { box-shadow: 0 0 0 0 rgba(152, 255, 186, 0.7); }
    50% { box-shadow: 0 0 15px 5px rgba(152, 255, 186, 0.9); }
    100% { box-shadow: 0 0 0 0 rgba(152, 255, 186, 0.7); }
}

@keyframes borderPulse3 {
    0% { box-shadow: 0 0 0 0 rgba(255, 181, 161, 0.7); }
    50% { box-shadow: 0 0 15px 5px rgba(255, 181, 161, 0.9); }
    100% { box-shadow: 0 0 0 0 rgba(255, 181, 161, 0.7); }
}

@keyframes borderPulse4 {
    0% { box-shadow: 0 0 0 0 rgba(161, 232, 255, 0.7); }
    50% { box-shadow: 0 0 15px 5px rgba(161, 232, 255, 0.9); }
    100% { box-shadow: 0 0 0 0 rgba(161, 232, 255, 0.7); }
}

@keyframes borderPulse5 {
    0% { box-shadow: 0 0 0 0 rgba(255, 181, 230, 0.7); }
    50% { box-shadow: 0 0 15px 5px rgba(255, 181, 230, 0.9); }
    100% { box-shadow: 0 0 0 0 rgba(255, 181, 230, 0.7); }
}

@keyframes borderPulse6 {
    0% { box-shadow: 0 0 0 0 rgba(255, 229, 161, 0.7); }
    50% { box-shadow: 0 0 15px 5px rgba(255, 229, 161, 0.9); }
    100% { box-shadow: 0 0 0 0 rgba(255, 229, 161, 0.7); }
}

@keyframes borderPulse7 {
    0% { box-shadow: 0 0 0 0 rgba(255, 181, 181, 0.7); }
    50% { box-shadow: 0 0 15px 5px rgba(255, 181, 181, 0.9); }
    100% { box-shadow: 0 0 0 0 rgba(255, 181, 181, 0.7); }
}

@keyframes borderPulse8 {
    0% { box-shadow: 0 0 0 0 rgba(181, 199, 255, 0.7); }
    50% { box-shadow: 0 0 15px 5px rgba(181, 199, 255, 0.9); }
    100% { box-shadow: 0 0 0 0 rgba(181, 199, 255, 0.7); }
}

@keyframes borderPulse9 {
    0% { box-shadow: 0 0 0 0 rgba(161, 255, 212, 0.7); }
    50% { box-shadow: 0 0 15px 5px rgba(161, 255, 212, 0.9); }
    100% { box-shadow: 0 0 0 0 rgba(161, 255, 212, 0.7); }
}

/* Ensure mobile layout stays intact */
@media (max-width: 640px) {
    .relative.mb-6:hover {
        transform: scale(1.08);
    }
}

/* Animal card text styling */
.animals-grid .text-center h3 {
    color: #4B5563;
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.animals-grid .text-center:hover h3 {
    color: #9E9274;
}

.animals-grid .text-center p.text-gray-600 {
    color: #6B7280;
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.3rem;
    letter-spacing: 0.02em;
}

.animals-grid .text-center p.text-gray-500 {
    background: linear-gradient(120deg, #f3e8ff 0%, #fae8ff 100%);
    display: inline-block;
    padding: 0.3rem 1rem;
    border-radius: 12px;
    font-size: 0.95rem;
    color: #6B7280;
    margin-top: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.animals-grid .text-center:hover p.text-gray-500 {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Add a subtle line between name and details */
.animals-grid .text-center h3::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #9E9274 0%, transparent 100%);
    margin: 0.5rem auto;
    border-radius: 2px;
}

/* Donate section - no movement */
.donate-section {
    transform: none !important;
    transition: none !important;
}

.donate-section:hover {
    transform: none !important;
    box-shadow: none !important;
}

.donate-section * {
    transform: none !important;
    transition: none !important;
}

.donate-section *:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* Notice Bar Animation */
@keyframes gentleGradient {
    0% { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
}

.moving-gradient {
    background: linear-gradient(90deg, 
        #fce7f3 0%,
        #fbcfe8 25%,
        #fce7f3 50%,
        #fbcfe8 75%,
        #fce7f3 100%
    );
    background-size: 300% 100%;
    animation: gentleGradient 30s ease infinite;
}

/* Sticky Header Styles */
.sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    width: 100%;
    background-color: #EDE9DE;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Ensure content doesn't jump when header becomes fixed */
body {
    padding-top: 130px; /* Increased to match larger header height */
}

/* Prevent horizontal scrolling */
html, body {
    overflow-x: hidden;
    width: 100%;
}

/* Column h3 hover effect - only for Learn and Donate sections */
.bg-gray-100 h3 {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.bg-gray-100 h3 span {
    position: relative;
}

.bg-gray-100 h3 span::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: currentColor;
    transition: width 0.3s ease;
}

.bg-gray-100 h3:hover span::after {
    width: 100%;
}