/* =====================
   Global Styles
===================== */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #800000; /* Dark Maroon Full Page */
  color: white;
  font-size: 14px; /* Slightly smaller font */
  padding-top: 130px;
  max-width: 100%;
}

/* =====================
   Header
===================== */
header {
  background: #660000;
  color: white;
  padding: 10px 0px;
  text-align: center;
  position: fixed; /* <-- Make header fixed */
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5); /* subtle shadow */
}

.heading-container {
  text-align: center;
  margin-bottom: 10px;
}

.heading-main {
  position: relative;
  display: inline-block;
  font-size: 60px; /* Big for Jagdhamb */
  font-weight: bold;
  color: gold;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
  line-height: 1.2;
}

.heading-sub {
  position: absolute;
  bottom: -18px;
  right: 0;
  font-size: 16px; /* Smaller tagline */
  text-align: right;
  color: white;
}

.motto-line {
  display: block;
  font-size: 14px;
  font-style: italic;
  color: white;
  margin-top: 2px;
}

nav {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

nav a {
  color: white;
  margin: 0 12px;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
}

nav a:hover {
  color: gold;
}

/* Language Toggle Button */
#lang-toggle {
  position: absolute;
  top: 12px;
  right: 10px;
  padding: 6px 14px;
  background: gold;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  font-weight: bold;
  color: black;
  font-size: 12px;
  transition: 0.3s;
}

@media (max-width: 768px) {
  #lang-toggle {
    font-size: 9px;
    padding: 3px 8px;
    position: absolute;
    top: 12px;
    right: 10px;
  }
}


#lang-toggle:hover {
  background: #ffd700cc;
}

/* =====================
   Hero Section
===================== */
.hero {
  text-align: center;
  padding: 60px 20px;
  background: #800000;
}

@media (max-width: 768px) {
  .hero {
    padding: 2px 20px 60px 20px;
  }
}

.hero h2 {
  font-size: 32px;
  margin-bottom: 10px;
  color: gold;
  margin-top: 99px;
  text-shadow: 2px 2px 10px rgba(0,0,0,0.6);
}

.hero p {
  font-size: 16px;
  margin-bottom: 20px;
}

.hero a {
  background: gold;
  color: black;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 25px;
  font-weight: bold;
  font-size: 14px;
  transition: 0.3s;
}

.hero a:hover {
  background: #ffd700cc;
}

/* =====================
   Sections
===================== */
section {
  padding: 50px 20px;
  max-width: 1000px;
  margin: auto;
  text-align: center;
}

section h3 {
  color: gold;
  margin-bottom: 18px;
  font-size: 24px;
  text-shadow: 1px 1px 6px rgba(0,0,0,0.6);
}

/* =====================
   Stats Section
===================== */
.stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  background: rgba(255,255,255,0.1);
  padding: 40px 20px;
  border-radius: 15px;
  margin: 40px auto;
  max-width: 800px;
  text-align: center;
}

.stat-card h3 {
  font-size: 40px;
  color: gold;
  margin: 0;
  text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

.stat-card p {
  margin: 8px 0 0;
  font-size: 18px;
  color: white;
}

/* =====================
   Events Section
===================== */
.events {
  background: rgba(255,255,255,0.1);
  border-radius: 15px;
  padding: 30px 20px;
}

.event-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.event-card {
  background: white;
  color: #333;
  padding: 15px;
  border-radius: 10px;
  width: 220px;
  font-size: 14px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
  transition: 0.3s;
}

.event-card:hover {
  transform: scale(1.05);
}

/* =====================
   Gallery Auto Sliding
===================== */
.carousel {
  overflow: hidden;
  width: 100%;
  max-width: 1000px;
  margin: auto;
  border-radius: 15px;
  margin-top: 25px;
  position: relative;
}

.carousel-track {
  display: flex;
  animation: slide 30s linear infinite;
  width: max-content;
}

.carousel-track img {
  width: 200px;
  height: 160px;
  object-fit: cover;
  margin: 0 4px;
  border-radius: 10px;
  transition: transform 0.3s;
}

.carousel-track img:hover {
  transform: scale(1.05);
}

@keyframes slide {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* =====================
   Contact Section
===================== */
.contact {
  background: #660000;
  color: white;
  border-radius: 15px;
  padding: 40px 20px;
}

.contact a {
  display: inline-block;
  margin-top: 18px;
  background: gold;
  color: black;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 25px;
  font-weight: bold;
  font-size: 14px;
  transition: 0.3s;
}

.contact a:hover {
  background: #ffd700cc;
}

/* =====================
   Footer
===================== */
footer {
  background: #330000;
  color: #aaa;
  text-align: center;
  padding: 15px;
  font-size: 12px;
  margin-top: 30px;
  word-wrap: break-word;
}

footer span {
  color: gold;
  font-weight: bold;
}

/* =====================
   Fade-In Scroll Effect
===================== */
/* .fade-in-section {
  opacity: 0;
  transform: translateY(20px) scale(0.9);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-section.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
} */

/* =====================
   Responsive Design
===================== */
@media (max-width: 768px) {
  body {
    font-size: 13px;
  }

  /* Heading */
  .heading-main {
    font-size: 50px; /* Keep Jagdhamb big on mobile */
    line-height: 1.2;
  }

  .heading-sub {
    font-size: 14px;
    bottom: -16px;
    right: 0;
  }

  .motto-line {
    font-size: 12px;
  }

  /* Hero Section */
  .hero h2 {
    font-size: 24px;
  }

  /* Stats stack vertically */
  .stats {
    flex-direction: column;
    gap: 20px;
    padding: 30px 10px;
  }

  .stat-card h3 {
    font-size: 32px;
  }

  .stat-card p {
    font-size: 16px;
  }

  /* Gallery smaller and stacked */
  .carousel-track img {
    width: 140px;
    height: 110px;
  }

  /* Event cards full width */
  .event-list {
    flex-direction: column;
    align-items: center;
  }

  .event-card {
    width: 90%;
  }
}
/* Header Logo Styling */
.heading-logo {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

/* Responsive Sizing */
@media (min-width: 768px) {
  .heading-logo {
    max-width: 400px;
  }
}

@media (max-width: 767px) {
  .heading-logo {
    max-width: 250px;
  }


  nav a {
    font-size: 14px;
  }
}

