* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
  min-height: 100vh;
}

/* ================= HEADER ================= */

header {
  background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  max-width: 1200px;
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: auto;
  flex-wrap: wrap;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo {
  width: 85px;
  height: 85px;
  object-fit: contain;
  padding: 5px;
  border-radius: 10%;
}

/* ================= NAV ================= */

nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.nav-btn {
  background: transparent;
  border: 2px solid white;
  color: white;
  padding: 0.7rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 25px;
  transition: all 0.3s ease;
}

.nav-btn:hover,
.nav-btn.active {
  background: white;
  color: #ff6b35;
}

/* ================= CONTAINER ================= */

.container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1.5rem;
}

.content-section {
  display: none;
  animation: fadeIn 0.5s ease-in;
}

.content-section.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ================= HOME ================= */

.home-section h1 {
  color: #ff6b35;
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
}

.story {
  margin-bottom: 2rem;
  line-height: 1.8;
  color: #333;
  font-size: 1.1rem;
}

.story h2 {
  color: #f7931e;
  margin-bottom: 1rem;
}

.story p {
  text-align: justify;
}
/* Overlay container */
.info-overlay {
  position: absolute;
  bottom: 23px;
  left: 10px;
  display: flex;
  align-items: center;
  gap: 8px;

  background: rgba(0, 0, 0, 0.55);
  color: white;

  padding: 6px 14px;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 600;

  cursor: pointer;
  backdrop-filter: blur(4px);
}

/* Circular i icon */
.info-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid white;

  display: flex;
  align-items: left;
  /* align-items: center; */
  justify-content: center;

  font-size: 14px;
  font-weight: bold;
}

/* Hover effect */
.gallery-item:hover .info-overlay {
  background: rgba(0, 0, 0, 0.7);
}

@media (max-width: 768px) {
  .info-overlay {
    bottom: 12px;
    left: 12px;
    padding: 8px 16px;
    font-size: 0.85rem;
  }
}

/* ================= GALLERY ================= */

.image-gallery h2 {
  color: #8c391b;
  text-align: center;
  margin-bottom: 1.5rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  position: relative;
  border-radius: 15px;
  height: 380px;  
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: transform 0.3s ease;
  overflow: hidden;
}

.gallery-item:hover {
  transform: scale(1.05);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  /* height: auto; */
   /* aspect-ratio: 4 / 3;    */
      /* controls visible shape */
  object-fit: cover;  
  /* object-fit: contain; */
  /* background: transparent; */
  /* background: #f5f5f5; */
    max-height: 380px;
  border-radius: 15px;

}
.image-gallery {
  max-width: 600px;     /* controls gallery size */
  margin: 0 auto;       /* centers the gallery */
}

/* ================= EVENT / BROCHURE ================= */

.event-section {
  /* background: white; */
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.lang-toggle {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.lang-toggle button {
  padding: 0.6rem 1.4rem;
  border: 1px solid #ff6b35;
  background: transparent;
  color: #ff6b35;
  border-radius: 25px;
  cursor: pointer;
}

.lang-toggle button.active,
.lang-toggle button:hover {
  background: #ff6b35;
  color: white;
}

.lang-content {
  display: none;
}

.lang-content.active {
  display: block;
}

.brochure-image {
  width: 100%;
  max-width: 800px;
  margin: 0 auto 2rem;
  display: block;
  border-radius: 15px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  object-fit: contain;
}

/* ================= PRESS RELEASE ================= */

.press-release {
  max-width: 900px;
  margin: auto;
  padding: 2.5rem;
  background: #fffaf5;
  border-left: 6px solid #ff6b35;
  border-radius: 12px;
}

.press-release h2 {
  color: #ff6b35;
  margin-bottom: 1rem;
}

.press-release p {
  line-height: 1.8;
  font-size: 1.05rem;
}

#malayalam .press-release {
  font-family: "Noto Serif Malayalam", "Meera", sans-serif;
  font-size: 1.1rem;
}

/* ================= CONTACT ================= */

.contact-info {
  background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
  color: white;
  padding: 1.5rem;
  border-radius: 15px;
  margin-top: 2rem;
  text-align: center;
}

.contact-info .phone {
  font-size: 1.3rem;
  font-weight: bold;
}

/* ================= MODAL ================= */

.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 2000;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: white;
  max-width: 600px;
  width: 90%;
  padding: 2rem;
  border-radius: 15px;
  position: relative; 


}

  #modalContent {
  max-height: 60vh;
  overflow-y: auto;
  line-height: 1.8;
}
.close-btn {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 1.8rem;
  font-weight: bold;
  cursor: pointer;
  color: #333;
  line-height: 1;
  padding: 4px 8px;
}

.close-btn:hover {
  transform: scale(1.1);
}

@media (max-width: 576px) {
  .modal-content {
    padding: 1.5rem;
  }

  #modalContent {
    font-size: 0.95rem;
  }
}

/* ================= RESPONSIVE ================= */

@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    gap: 1rem;
  }

  nav {
    justify-content: center;
  }

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

  .press-release {
    padding: 1.5rem;
  }
}

/* ================= CAROUSEL ================= */

.carousel-container {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
  overflow: hidden;
}

.carousel-track {
  display: flex;
    gap: 0;
  /* gap: 1.5rem; */
  transition: transform 0.4s ease-in-out;
}

.carousel-track .gallery-item {
  min-width: 100%;
}

/* Carousel Buttons */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.55);
  color: white;
  border: none;
  padding: 10px 14px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  transition: background 0.3s ease;
}

.carousel-btn:hover {
  background: rgba(0, 0, 0, 0.75);
}

.carousel-btn.left {
  left: 10px;
}

.carousel-btn.right {
  right: 10px;
}
@media (max-width: 576px) {
  .carousel-btn {
    padding: 6px 10px;
    font-size: 0.9rem;
  }

  .gallery-item {
    height: 260px;
  }
}


