/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #fafafa;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: auto;
}

/* Navbar */
.navbar {
  background: #fff;
  border-bottom: 2px solid #eee;
  padding: 0.8rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  width: 60px;
  height: auto;
}

.brand-text h1 {
  font-size: 1.4rem;
  color: darkorange;
}

.tagline {
  font-size: 0.85rem;
  color: #666;
}

/* Navigation Menu */
.nav-secondary {
  background: #ff9933;
  padding: 0.6rem 0;
  margin-bottom: 1rem;
  border-radius: 6px;
}

.nav-secondary .menu {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.nav-secondary a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s;
}

.nav-secondary a:hover,
.nav-secondary a.active {
  text-decoration: underline;
}

/* Hero Section */
.hero {
  background: url("images/lord-hanuman-1.png") center/cover no-repeat;
  padding: 2.5rem;
  border-radius: 10px;
  color: white;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.hero h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.hero p {
  margin-bottom: 1rem;
  font-size: 1rem;
}

.cta {
  margin-top: 1.2rem;
}

.btn {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  margin: 0.3rem;
  background: darkorange;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  transition: 0.3s;
}

.btn:hover {
  background: #cc6600;
}

.btn.secondary {
  background: white;
  color: darkorange;
  border: 2px solid darkorange;
}

.btn.secondary:hover {
  background: #ffe6cc;
}

/* Info Grid */
.info-grid {
  margin: 2rem 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.card {
  background: white;
  padding: 1rem;
  border-radius: 10px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
  text-align: center;
}

.card h3 {
  color: darkorange;
  margin-bottom: 0.6rem;
}

.donation img {
  margin: 0.6rem auto;
  display: block;
}

/* Footer */
footer {
  background: #333;
  color: #fff;
  padding: 1rem 0;
  text-align: center;
  margin-top: 2rem;
  border-top: 4px solid darkorange;
}

* {box-sizing: border-box;}

.mySlides {display: none;}
img {vertical-align: middle;}

/* Slideshow container */
.slideshow-container {
  max-width: 1000px;
  position: relative;
  margin: auto;
}

/* Caption text */
.text {
  color: #f2f2f2;
  font-size: 15px;
  padding: 8px 12px;
  position: absolute;
  bottom: 8px;
  width: 100%;
  text-align: center;
}

/* Number text (1/3 etc) */
.numbertext {
  color: #f2f2f2;
  font-size: 12px;
  padding: 8px 12px;
  position: absolute;
  top: 0;
}

/* The dots/bullets/indicators */
.dot {
  height: 15px;
  width: 15px;
  margin: 0 2px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

/* Fading animation */
.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}

@keyframes fade {
  from {opacity: .4} 
  to {opacity: 1}
}

/* On smaller screens, decrease text size */
@media only screen and (max-width: 300px) {
  .text {font-size: 11px}
}

.gallery-container {
    width: 100%;
    overflow: hidden; /* Hide the parts of the images outside the container */
    mask-image: linear-gradient(
        to right,
        hsl(0 0% 0% / 0),
        hsl(0 0% 0% / 1) 10%,
        hsl(0 0% 0% / 1) 90%,
        hsl(0 0% 0% / 0)
    );
}

.image-track {
    display: flex;
    white-space: nowrap;
    will-change: transform;
    animation: scroll 30s linear infinite; /* Adjust duration to change speed */
}

.image-track:hover {
    animation-play-state: paused; /* Pause on hover */
}

.image-item {
    padding: 0 10px; /* Space between images */
    flex-shrink: 0;
}

.image-item img {
    height: 250px; /* Set a consistent height for all images */
    border-radius: 8px;
    object-fit: cover;
}

/* Define the auto-scrolling animation */
@keyframes scroll {
  from {
    transform: translateX(0); /* Start at the original position */
  }
  to {
    transform: translateX(-100%); /* Move images completely out of view to the left */
  }
}

  /* Form container */
  #contactForm {
    max-width: 320px; /* reduced from 420px */
    margin: 5px auto; /* center with smaller top/bottom spacing */
    display: flex;
    flex-direction: column;
    font-family: Arial, sans-serif;
    font-size: 10px; /* slightly smaller text */
  }

  /* Labels */
  #contactForm label {
    font-weight: 600;
    margin-bottom: 4px;
    text-align: left;
    display: block;
  }

  /* Inputs and textarea */
  #contactForm input,
  #contactForm textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 15px;
    box-sizing: border-box;
  }

  /* Textarea height */
  #contactForm textarea {
    min-height: 100px;
    resize: vertical;
  }

  /* Button */
  .form-actions {
    text-align: center;
  }

  .form-actions .btn {
    padding: 10px 20px;
    background: #2b6cb0;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.2s ease;
  }

  .form-actions .btn:hover {
    background: #1e4d8c;
  }

  /* Response message */
  #formResponse {
    margin-top: 10px;
    font-size: 14px;
    text-align: center;
  }
  
  #language-buttons {
    position: fixed;
    top: 10px;
    right: 210px;
    z-index: 9999;
  }

  #language-buttons button {
    margin: 3px;
    padding: 6px 12px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    background: #f4f4f4;
    box-shadow: 0px 2px 5px rgba(0,0,0,0.2);
  }

  #language-buttons button:hover {
    background: #ddd;
  }