* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", sans-serif;
}

body {
  background: hsl(0, 0%, 93%);
  color: #333;
  line-height: 1.6;
}

header.hero {
  height: 100vh;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.overlay {
  color: white;
  padding: 2rem;
  text-align: center;
  animation: fadeIn 2s ease-in-out;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

section {
  padding: 4rem 2rem;
  max-width: 1000px;
  margin: auto;
}

h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  text-align: center;
  color: #68d388;
}

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

.grid img {
  width: 100%;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.grid img:hover {
  transform: scale(1.05);
}
#attractions {
  padding: 40px 20px;
  background: #f0fdf4;
  text-align: center;
}

#attractions h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #2e7d32;
}

.cards {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 20px;
  scroll-snap-type: x mandatory;
}

.cards::-webkit-scrollbar {
  display: none;
}
.cards {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.card {
  flex: 0 0 auto;
  width: 280px;
  height: 360px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 15px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card img {
  width: 100%;
  height: 80%;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 10px;
}

.card button {
  background-color: #2e7d32;
  color: white;
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.card button:hover {
  background-color: #1b5e20;
}

.extra-content {
  margin-top: 10px;
}

.extra-content img {
    width: 100%;
  height: 40%;
  border-radius: 6px;
}


form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

form input,
form textarea {
  padding: 1rem;
  border-radius: 5px;
  border: 1px solid #ccc;
  width: 100%;
}

form button {
  background: #68d388;
  color: white;
  padding: 0.75rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease;
}

form button:hover {
  background: #004d40;
}
footer {
  background: linear-gradient(
    270deg,
    rgba(44, 89, 44, 1),
    rgba(59, 209, 91, 0.98),
    rgba(60, 117, 65, 1)
  );
  background-size: 600% 600%;
  animation: gradientShift 15s ease infinite;
  color: white;
  padding: 2rem 1rem;
  font-size: 1rem;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.footer-container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-section {
  flex: 1;
  min-width: 250px;
}

.footer-section h2,
.footer-section h3 {
  margin-bottom: 1rem;
}

.footer-section p {
  margin: 0.5rem 0;
  line-height: 1.6;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section ul li {
  margin: 0.5rem 0;
}

.footer-section a {
  color: #ffeb3b;
  text-decoration: none;
  transition: color 0.3s ease, transform 0.3s ease;
}

.footer-section a:hover {
  color: #cddc39;
  transform: scale(1.05);
}

.social-icons {
  margin-top: 1rem;
}

.social-icons a {
  display: inline-block;
  margin-right: 0.5rem;
  font-size: 1.4rem;
  transition: transform 0.3s ease;
}

.social-icons a:hover {
  transform: scale(1.3) rotate(10deg);
}

/* Created by text styling */
.created-by {
  margin-top: 1rem;
  font-size: 0.9rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
  }
  .social-icons a {
    margin: 0 0.5rem;
  }
}

/* Navbar (same as before for PC) */
.navbar {
  background: linear-gradient(
    90deg,
    rgba(44, 89, 44, 1) 0%,
    rgba(59, 209, 91, 0.98) 50%,
    rgba(60, 117, 65, 1) 100%
  );
  padding: 0.3rem 1.5rem;
  color: white;
  position: sticky;
  top: 0;
  z-index: 999;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: auto;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
}

/* 🔥 Hamburger (hidden in desktop) */
.hamburgers {
  display: none;
  justify-content: center;
  align-items: center;
}

.hamburger {
  cursor: pointer;
  position: relative;
}

.hamburger input {
  position: absolute;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
  opacity: 0;
  z-index: 2;
}

.bar {
  display: block;
  width: 30px;
  height: 3px;
  margin: 6px auto;
  border-radius: 40px;
  transition: all 0.3s cubic-bezier(0.37, -1.11, 0.79, 2.02);
  background-color: white;
}

.hamburger input:checked ~ .bar:nth-child(2) {
  transform: translateY(9.5px) rotate(45deg);
}

.hamburger input:checked ~ .bar:nth-child(3) {
  opacity: 0;
}

.hamburger input:checked ~ .bar:nth-child(4) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Links */
.nav-links {
  list-style: none;
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  align-items: center;
  transition: all 0.4s ease;
}

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

.nav-links li a:hover {
  color: #1f1f1f;
}

/* 🔹 Mobile */
@media (max-width: 768px) {
  .hamburgers {
    display: flex;
  }

  .nav-links {
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 50%;
    transform: translateX(-50%) scaleY(0);
    background: #f1ffee;
    width: 90%;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s ease;
    transform-origin: top center;
    z-index: 999;
  }

  .nav-links.show {
    transform: translateX(-50%) scaleY(1);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links li {
    margin: 10px 0;
  }

  .nav-links li a {
    color: #379e1e;
    font-size: 1.1rem;
  }
}
.slideshow-container {
      max-width: 1000px;
      margin: 40px auto;
      border-radius: 12px;
      overflow: hidden;
      box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    }

    .mySlides {
      display: none;
    }

    .mySlides img {
      width: 100%;
      border-radius: 12px;
    }

    .fade {
      animation: fade 1s ease-in-out;
    }

    @keyframes fade {
      from {opacity: 0.3;}
      to {opacity: 1;}
    }

.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  padding: 2rem 1rem;
}

.card {
  background: white;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  overflow: hidden;
  max-width: 280px;
  text-align: center;
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
}

.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.card p {
  padding: 1rem;
  font-size: 1rem;
}

.more-text {
  display: none; /* hidden by default */
  margin-top: 10px;
  color: #333;
  line-height: 1.6;
}


.card.expanded .more-text {
  display: block;
}

.read-more {
  margin-top: 10px;
  background-color: #1976d2;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.read-more:hover {
  background-color: #145ea8;
}





/* about */

  


    .submit-event-section {
  background: linear-gradient(to right, #f4f4f4, #fff);
  padding: 50px 20px;
  text-align: center;
  border-top: 4px solid #28a745;
}
.submit-content h2 {
  font-size: 2rem;
  margin-bottom: 10px;
  color: #333;
}
.submit-content p {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 20px;
}

/* Read More Box */


/* Form */
.event-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 400px;
  margin: 0 auto 20px;
}
.event-form input, .event-form textarea {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 10px;
  font-size: 1rem;
}
.event-form button.submit-btn {
  background-color: #28a745;
  color: #fff;
  border: none;
  padding: 12px;
  font-size: 1rem;
  border-radius: 30px;
  cursor: pointer;
  transition: 0.3s;
}
.event-form button:hover {
  background-color: hwb(133 13% 47%);
}



.event-form {
  max-width: 500px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
  background: #f8f8f8;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.event-form input,
.event-form textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 10px;
  font-size: 16px;
}

.submit-btn {
  padding: 12px;
  font-size: 18px;
  background: #1c8133;
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.3s ease;
}

.submit-btn:hover {
  background: #218838;
}

.success-message {
  display: none;
  color: green;
  margin-top: 10px;
  font-weight: bold;
  animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
  from {opacity: 0;}
  to {opacity: 1;}
}


    body {
      font-family: 'Montserrat', sans-serif;
      margin: 0;
      padding: 0;
      background: #f5f5f5;
      color: #333;
    }
    header {
      position: sticky;
      top: 0;
      background: #fff;
      z-index: 1000;
      padding: 1rem 2rem;
      display: flex;
      justify-content: space-between;
      align-items: center;
      box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }
header h1 {
  margin: 0;
  font-size: 1.5rem;
  color: #ffffff;
  animation: pulseGlow 3s ease-in-out infinite;
}
.wave-text span {
  display: inline-block;
  animation: wave 1.5s infinite;
  animation-delay: calc(0.1s * var(--i));
}

@keyframes wave {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}


/* --- Premium Event Intro Section --- */
.event-intro-premium {
    max-width: 1100px;
    margin: 80px auto;
    padding: 60px 30px;
    background: #ffffff;
    border-radius: 40px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.02);
    position: relative;
    overflow: hidden;
}

.intro-badge {
    display: inline-block;
    padding: 8px 18px;
    background: rgba(76, 175, 80, 0.1);
    color: #2e7d32;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 25px;
}

.premium-h1 {
    font-size: 3rem;
    color: #1b5e20;
    margin-bottom: 25px;
    font-weight: 900;
    letter-spacing: -1px;
}

.intro-main-text p {
    font-size: 1.2rem;
    color: #444;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto 40px;
}

/* Expandable Content Styling */
.intro-expandable-content {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.8s cubic-bezier(0.19, 1, 0.22, 1);
    text-align: left;
}

.intro-expandable-content.show {
    max-height: 2000px; /* Large enough for content */
    opacity: 1;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid #eee;
}

.expand-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.expand-card {
    background: #f9fdfa;
    padding: 40px 30px;
    border-radius: 30px;
    transition: all 0.3s ease;
    border: 1px solid rgba(76, 175, 80, 0.05);
}

.expand-card:hover {
    background: #ffffff;
    box-shadow: 0 15px 40px rgba(0,0,0,0.06);
    transform: translateY(-5px);
}

.expand-card i {
    font-size: 2.5rem;
    color: #4caf50;
    margin-bottom: 20px;
}

.expand-card h3 {
    color: #1b5e20;
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.expand-card p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

.detailed-paragraphs {
    max-width: 850px;
    margin: 0 auto;
}

.detailed-paragraphs h2 {
    color: #1b5e20;
    font-size: 2rem;
    margin-bottom: 20px;
    text-align: left;
}

.detailed-paragraphs p {
    color: #444;
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

/* Modern Read More Button */
.intro-btn-wrapper {
    margin-top: 40px;
}

.modern-read-more-btn {
    background: linear-gradient(135deg, #2e7d32 0%, #4caf50 100%);
    color: #ffffff;
    border: none;
    padding: 16px 36px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 30px rgba(46, 125, 50, 0.2);
    transition: all 0.3s ease;
}

.modern-read-more-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(46, 125, 50, 0.3);
}

.modern-read-more-btn i {
    transition: transform 0.4s ease;
}

.modern-read-more-btn.active i {
    transform: rotate(180deg);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .event-intro-premium {
        margin: 40px 15px;
        padding: 40px 20px;
        border-radius: 30px;
    }

    .premium-h1 {
        font-size: 2.2rem;
    }

    .intro-main-text p {
        font-size: 1.05rem;
    }

    .expand-card {
        padding: 30px 20px;
    }
}
 .upcoming-section {
  text-align: center;
  padding: 40px 20px;
}

.event-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 30px;
}

.events-section {
  padding: 60px 20px;
  background: #fff;
  text-align: center;
}

.events-title {
  font-size: 2rem;
  margin-bottom: 40px;
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1100px;
  margin: auto;
}

/* EVENT CARD IMPROVEMENTS */
.event-item {
    position: relative;
    background: #ffffff;
    border-radius: 24px;
    padding: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.03);
    text-align: left;
}

.event-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(46, 125, 50, 0.12);
}

.event-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 18px;
    margin-bottom: 20px;
    transition: transform 0.6s ease;
}

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

/* Professional Hover Overlay */
.event-item-overlay {
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    height: 200px;
    background: rgba(0, 77, 64, 0.15);
    backdrop-filter: blur(4px);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 2;
}

.event-item:hover .event-item-overlay {
    opacity: 1;
}

.view-details-tag {
    background: rgba(255, 255, 255, 0.95);
    color: #2e7d32;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.event-item:hover .view-details-tag {
    transform: translateY(0);
}

.event-item h3 {
    font-size: 1.3rem;
    color: #1b5e20;
    margin-bottom: 8px;
    padding: 0 10px;
    font-weight: 700;
}

.event-item p {
    font-size: 0.9rem;
    color: #666;
    padding: 0 10px 10px;
    margin-bottom: 15px;
}

/* Properly hide the data meant for the modal */
.event-expand {
    display: none !important;
}

/* Professional Read More Link */
.event-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: 10px;
    color: #2e7d32;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.event-item:hover .event-read-more {
    color: #1b5e20;
    gap: 12px;
}


/* Responsive Grid Fix */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 40px auto;
}

/* Tablet view adjustments */
@media (max-width: 992px) {
    .events-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }
}

/* Full Mobile Responsiveness */
@media (max-width: 600px) {
    .events-grid {
        grid-template-columns: 1fr;
        padding: 0 10px;
    }

    .event-item {
        border-radius: 20px;
        padding: 12px;
    }

    .event-item img, 
    .event-item-overlay {
        height: 180px;
    }

    .event-item h3 {
        font-size: 1.1rem;
    }

    /* Keep overlay tag slightly visible on mobile for tap intent */
    .event-item-overlay {
        opacity: 0.2; 
    }
    
    .view-details-tag {
        font-size: 0.75rem;
        padding: 8px 16px;
        transform: translateY(0);
    }
}

/* HIDDEN EVENTS */
.hidden-event {
  display: none;
}

/* BUTTON */
.all-events-btn {
  margin-top: 40px;
  padding: 12px 32px;
  border-radius: 30px;
  background: #000;
  color: #fff;
  border: none;
  cursor: pointer;
}

/* MOBILE */
@media (max-width: 768px) {
  .events-grid {
    grid-template-columns: 1fr;
  }
}

/* Remove number input arrows (spinner) */
.no-spinner::-webkit-outer-spin-button,
.no-spinner::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.no-spinner {
  -moz-appearance: textfield; /* Firefox */
}


    /* red more */

    .readmore-box {
  text-align: center;
  margin-top: 20px;
}

#moreText {
  display: none;
  margin-top: 15px;
  transition: all 0.3s ease;
}

#moreText.show {
  display: block;
}

.more-images {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.more-images img {
  width: 300px;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}


/* Simple Events Header */
.events-hero {
  min-height: 70vh;
  width: 100%;
  display: flex;
  align-items: center;
  padding: 0 8%;
  background: linear-gradient(
    120deg,
    #c9f3d1 0%,
    #eafff2 50%,
    #fff1e6 100%
  );
}

.events-hero-content {
  max-width: 700px;
}

.events-title {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 800;
  color: #111;
  margin-bottom: 1rem;
}

.events-description {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: #333;
  line-height: 1.6;
}

/* event  */


.event-more-content.hidden {
  display: none;
}
.event-more-content {
  margin-top: 10px;
  transition: all 0.3s ease;
}

.event-images {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.event-images img {
  width: 200px;
  height: 130px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.read-more-btn {
  margin-top: 10px;
  padding: 6px 15px;
  background-color: #219e21;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

/* 
event card stle */



.video-card {
  margin-top: 15px;
  background: #f9f9f9;
  border-radius: 12px;
  padding: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.video-card video {
  width: 100%;
  border-radius: 12px;
  cursor: pointer;
}

.video-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.video-controls button,
.video-controls a {
  background: #227029;
  color: #fff;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
}

.video-controls button:hover,
.video-controls a:hover {
  background: #16c024;
}

.progress-bar {
  flex-grow: 1;
  height: 5px;
  background: #ddd;
  border-radius: 5px;
  overflow: hidden;
}

.progress {
  width: 0;
  height: 100%;
  background: #2b8a33;
}

  
/* contect */

    
    .hero-contact {
  text-align: center;
  color: white;
  padding: 40px 20px;
  background: #f7f7f7;
  position: relative;
}

.hero-circle-img {
  position: relative;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  overflow: hidden;
  border: 5px solid white;
  animation: rippleWave 2.5s ease-in-out infinite;
}

@keyframes rippleWave {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05) rotate(1deg);
  }
}



.contact-section-container {
  max-width: 1200px;
  margin: auto;
  padding: 20px;
}

.contact-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.contact-card {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: row;
  max-width: 450px;
  width: 100%;
  align-items: center;
  padding: 15px;
  transition: 0.3s ease;
}

.contact-img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 15px;
}

.card-details {
  flex: 1;
}

.card-details h3 {
  margin: 0 0 5px;
}

.card-details a {
  text-decoration: none;
  color: #25d366;
  font-weight: bold;
}

@media screen and (max-width: 768px) {
  .contact-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .contact-img {
    margin-right: 0;
    margin-bottom: 10px;
  }
}

.card-details a {
  text-decoration: none;
  color: #25d366; /* WhatsApp green */
  font-weight: bold;
}

.card-details p a {
  color: #000000; /* Phone link blue */
  font-weight: normal;
}

.card-details p a:hover {
  text-decoration: none;
  color: #34b83f;
}


    /* Hero Section Styling */
    .hero-contact {
      position: relative;
      height: 90vh;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-direction: column;
      color: white;
      text-align: center;
      background: url('contact-bg.jpg') no-repeat center center/cover;
      overflow: hidden;
    }

    .hero-contact::before {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      width: 200%;
      height: 100%;
      background: linear-gradient(to right, rgba(0,0,0,0.5), rgba(0,0,0,0.2));
      animation: backgroundMove 15s linear infinite alternate;
      z-index: 0;
    }

    @keyframes backgroundMove {
      0% { transform: translateX(0); } 
      100% { transform: translateX(-20%); }
    }

    .hero-circle-img {
      position: relative;
      width: 180px;
      height: 180px;
      border-radius: 50%;
      overflow: hidden;
      margin-bottom: 20px;
      z-index: 1;
      border: 5px solid white;
    }

    .hero-circle-img img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .hero-contact h1 {
      
      font-size: 3rem;
      z-index: 1;
    }

    /* Animated Contact Cards */
    .contact-card {
      animation: floatCard 3s ease-in-out infinite;
    }

    @keyframes floatCard {
      0%, 100% {
        transform: translateY(0px);
      }
      50% {
        transform: translateY(-8px);
      }
    }

    @media (max-width: 768px) {
      .hero-contact {
        padding: 20px;
        height: auto;
      }
      .hero-contact h1 {
        font-size: 2.2rem;
      }
      .hero-circle-img {
        width: 140px;
        height: 140px;
      }
    }



.hero-contact {
  background: url('g5.jpeg') no-repeat center center/cover;
  height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero-contact::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3); /* semi-dark overlay */
  z-index: 0;
}

.hero-contact h1,
.hero-circle-img {
  z-index: 1;
}


  .extra-images {
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
  }

  .extra-images img {
    width: 200px;
    height: 130px;
    object-fit: cover;
    border-radius: 8px;
  }

  #read-more-btn {
    margin-top: 10px;
    padding: 8px 16px;
    background-color: #3a9b3f;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
  }

  #read-more-btn:hover {
    background-color: #32b143;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.7);
  transition: background-color 0.3s ease, box-shadow 0.2s ease;
  }

  
  /* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@1,500&family=Poppins:wght@400;600;700&display=swap');

/* Hero Base */
.saas-hero {
  text-align: center;
  padding: 60px 20px;
  max-width: 1400px;
  margin: auto;
  overflow: hidden;
}

.hero-topline {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.hero-headline {
  font-family: 'Poppins', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0 0 15px;
}

.hero-subtext {
  font-family: 'Poppins', sans-serif;
  color: #666;
  font-size: 1rem;
  max-width: 500px;
  margin: 0 auto 25px;
}

.cta-btn {
  background: #111;
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 14px 28px;
  font-size: 1rem;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  box-shadow: inset 0 2px 4px rgba(255,255,255,0.2);
  transition: 0.3s;
}
.cta-btn:hover {
  transform: scale(1.05);
}

/* Portrait Arc Row */
.portrait-arc {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 15px;
  margin-top: 50px;
  padding-bottom: 50px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}

.portrait-card {
  flex: 0 0 auto;
  width: 120px;
  height: 180px;
  border-radius: 24px;
  background: linear-gradient(135deg, #ffe9ec, #eaf7ff);
  box-shadow: 0 12px 25px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(-6deg) scale(0.9);
  transition: transform 0.3s, filter 0.3s;
  scroll-snap-align: center;
}

.portrait-card.center {
  transform: rotate(0deg) scale(1.1);
  z-index: 2;
}

.portrait-card img {
  width: 80%;
  height: 80%;
  object-fit: cover;
  border-radius: 16px;
}

.portrait-card:hover {
  transform: rotate(0deg) scale(1.05);
  filter: saturate(1.2);
  z-index: 3;
}

.portrait-card:hover ~ .portrait-card {
  filter: saturate(0.5);
}

/* Features Section */
.features {
  background: #fff;
  padding: 80px 20px;
  text-align: center;
}

.features-title {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  margin-bottom: 40px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: auto;
}

.feature i {
  font-size: 2rem;
  margin-bottom: 15px;
  color: #111;
}
.feature h3 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  margin-bottom: 10px;
}
.feature p {
  color: #555;
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-headline {
    font-size: 1.8rem;
  }
  .portrait-card {
    width: 100px;
    height: 150px;
  }
}

  /* Mobile Fix for Portrait Arc */
@media (max-width: 768px) {
  .portrait-arc {
    padding-left: 20px;   /* add breathing room so 1st card is fully visible */
    padding-right: 20px;
    justify-content: flex-start; /* no forced centering */
  }

  .portrait-card {
    scroll-snap-align: start;  /* snap from left, not center */
  }
}

  /* home */




/* /////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////////////// */


 #panchayat ul, #services {
      background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(240, 255, 240, 0.95) 100%);
      padding: 2rem;
      border-radius: 15px;
      box-shadow: 0 15px 40px rgba(76, 175, 80, 0.2);
      border: 2px solid rgba(76, 175, 80, 0.1);
      animation: sectionPulse 10s ease-in-out infinite;
    }

    @keyframes sectionPulse {
      0%, 100% { transform: scale(1); }
      50% { transform: scale(1.01); }
    }

    #panchayat ul {
      list-style: none;
    }

    #panchayat li {
      padding: 1rem;
      border-bottom: 2px solid rgba(76, 175, 80, 0.1);
      color: #2e7d32;
      transition: all 0.3s ease;
      border-radius: 8px;
      margin-bottom: 0.5rem;
    }

    #panchayat li:hover {
      background: rgba(76, 175, 80, 0.1);
      transform: translateX(10px);
      border-left: 4px solid #4caf50;
    }

    /* //////////////////// contect page ////////////////////// */
 #contact-directory h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #2c3e50;
  }

  .directory-search {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border: 2px solid #4CAF50;
    border-radius: 8px;
    margin-bottom: 20px;
  }

  .directory-list {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .directory-item {
    background: #fff;
    margin: 10px 0;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
  }

  .directory-item span {
    font-size: 16px;
    font-weight: 500;
    color: #333;
  }

  .directory-item a {
    margin-top: 8px;
    background: #4CAF50;
    color: #fff;
    padding: 8px 14px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    transition: 0.3s;
  }

  .directory-item a:hover {
    background: #45a049;
  }

  .directory-error {
    text-align: center;
    color: red;
    font-size: 16px;
    margin-top: 20px;
    display: none;
  }

  /* Responsive */
  @media (max-width: 600px) {
    .directory-item {
      flex-direction: column;
      align-items: flex-start;
    }

    .directory-item a {
      width: 100%;
      text-align: center;
    }
  }

/* --- Modern Event Modal Overlay --- */
.event-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Darker overlay for better focus */
    backdrop-filter: blur(15px); /* Stronger blur for "WOW" effect */
    display: none; 
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.4s ease;
    padding: 15px; /* Better mobile comfort */
}

#eventDetailModal.active {
    display: flex;
    opacity: 1;
}

.event-modal-container {
    background: #ffffff;
    max-width: 1000px; /* Slightly wider */
    width: 100%;
    max-height: 85vh;
    border-radius: 40px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 40px 120px rgba(0, 0, 0, 0.5);
    transform: translateY(60px) scale(0.9); /* More dramatic entry */
    transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

#eventDetailModal.active .event-modal-container {
    transform: translateY(0) scale(1);
}

/* Close button - more visible on mobile */
.event-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #ffffff;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100; /* Ensure it's always on top */
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    color: #1b5e20;
}

.event-modal-close:hover {
    background: #1b5e20;
    color: #ffffff;
    transform: rotate(90deg) scale(1.1);
}

.event-modal-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    height: 100%;
}

.event-modal-image {
    height: 100%;
    background: #f8f8f8;
}

.event-modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s ease;
}

#eventDetailModal.active .event-modal-image img {
    transform: scale(1.08); 
}

.event-modal-text {
    padding: 60px 40px;
    overflow-y: auto;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    text-align: left;
    scrollbar-width: thin;
    scrollbar-color: #4caf50 #f1f1f1;
}

.event-modal-text::-webkit-scrollbar {
    width: 6px;
}
.event-modal-text::-webkit-scrollbar-thumb {
    background: #4caf50;
    border-radius: 10px;
}

.modal-badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(76, 175, 80, 0.12);
    color: #2e7d32;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 25px;
}

.event-modal-text h2 {
    font-size: 2.8rem;
    color: #1b5e20;
    margin-bottom: 20px;
    font-weight: 900;
    line-height: 1.1;
}

.modal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    margin-bottom: 30px;
    color: #555;
    font-size: 1rem;
}

.modal-meta span {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f9f9f9;
    padding: 8px 16px;
    border-radius: 12px;
}

.modal-meta i {
    color: #4caf50;
    font-size: 1.1rem;
}

.modal-divider {
    width: 60px;
    height: 5px;
    background: linear-gradient(to right, #4caf50, #81c784);
    margin-bottom: 35px;
    border-radius: 10px;
}

.event-modal-text p {
    color: #333;
    line-height: 1.9;
    font-size: 1.15rem;
    margin-bottom: 40px;
}

/* --- Improved Mobile Styles --- */
@media (max-width: 900px) {
    .event-modal-content {
        grid-template-columns: 1fr;
        overflow-y: auto;
    }
    
    .event-modal-image {
        height: 300px;
        min-height: 300px;
    }

    .event-modal-text {
        padding: 40px 25px;
        overflow-y: visible; /* Scroll the whole content on small screens */
    }

    .event-modal-container {
        max-height: 90vh;
        border-radius: 30px;
        width: 100%;
        margin: 10px;
        overflow-y: auto; /* Enable scroll for very small phones */
    }

    .event-modal-text h2 {
        font-size: 2rem;
    }

    .modal-meta {
        gap: 10px;
    }

    .modal-meta span {
        width: 100%;
        padding: 12px;
    }

    .event-modal-close {
        top: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    }
}