:root {
  --maroon: #2b0909;
  --deep-brown: #1c0707;
  --gold: #d4af37;
  --saffron: #e67e22;
  --cream: #fdf8ee;
  --text-dark: #2c1e16;
}

/* Enable Smooth Page Scrolling */
html {
  scroll-behavior: smooth;
}


/* Global */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: var(--cream);
  color: var(--text-dark);
  line-height: 1.6;
}


/* =========================
   HEADER & NAVIGATION
========================= */

header {
  background: var(--maroon);
  color: #fff;

  padding: 0.7rem 5%;

  position: sticky;
  top: 0;

  z-index: 1000;

  border-bottom: 2px solid var(--gold);

  display: flex;
  justify-content: space-between;
  align-items: center;
}


/* Logo */

.logo {
  display: flex;
  align-items: center;

  text-decoration: none;

  flex-shrink: 0;
}

.logo img {
  width: 70px;
  height: 70px;

  display: block;

  object-fit: contain;
  border-radius: 6px;
}


/* Navigation */

nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

nav a {
  color: #fff;

  text-decoration: none;

  font-size: 0.95rem;

  transition: color 0.3s;
}

nav a:hover,
nav a.active {
  color: var(--gold);
}


/* Gold Buttons */

.btn-gold {
  background: var(--gold);

  color: var(--maroon) !important;

  padding: 0.5rem 1.1rem;

  border-radius: 4px;

  font-weight: bold;

  text-decoration: none;

  display: inline-block;
}


/* =========================
   MOBILE HAMBURGER MENU
========================= */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.menu-toggle span {
  width: 28px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
  transition: 0.3s;
}


/* =========================
   HERO / FRONT PAGE
========================= */

.hero {

  /*
- Front-page background image
   */
  background:
    linear-gradient(
      rgba(28, 7, 7, 0.25),
      rgba(43, 9, 9, 0.35)
    ),
    url("images/ShreeRam\ \(1\).png")
    center/cover no-repeat;

  color: #fff;

  text-align: center;

  padding: 5rem 10%;

  min-height: 650px;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  border-bottom: 4px solid var(--gold);

  position: relative;
}


/* =========================
   HERO CONTENT BOX (BLUR & BORDER)
========================= */

.hero-content-box {
  background: rgba(18, 5, 5, 0.3);   /* Semi-transparent frosted background */
  backdrop-filter: blur(2px);         /* Creates the transparent blurry highlight effect */
  -webkit-backdrop-filter: blur(2px); /* Safari support */
  
  border: 2px solid var(--gold);      /* Visible golden border */
  border-radius: 16px;
  
  padding: 3rem 1.5rem;
  max-width: 850px;
  width: 100%;
  margin: 0 auto;
  
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}


/* Hero Heading */

.hero h1 {
  font-size: 3rem;

  color: var(--gold);

  margin-bottom: 0.5rem;

  text-transform: uppercase;

  letter-spacing: 2px;

  text-shadow:
    2px 2px 8px rgba(0, 0, 0, 0.2);
}


/* Hindi Tagline */

.hero .hindi-tagline {
  font-size: 1.4rem;

  color: #f5deb3;

  margin-bottom: 1.5rem;

  text-shadow:
    1px 1px 6px rgba(0, 0, 0, 0.7);
}


/* Hero Description */

.hero p {
  max-width: 750px;

  margin: 0 auto 2rem;

  font-size: 1.1rem;

  color: #fff;

  text-shadow:
    1px 1px 6px rgba(0, 0, 0, 0.8);
}


/* Hero Buttons */

.hero-btns a {
  display: inline-block;

  margin: 0.5rem;

  padding: 0.8rem 1.8rem;

  border-radius: 5px;

  font-weight: bold;

  text-decoration: none;
}


/* Primary Button */

.btn-primary {
  background: var(--saffron);

  color: #fff;

  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.3);
}


/* Outline Button */

.btn-outline {
  border: 2px solid var(--gold);

  color: var(--gold);

  background: rgba(0, 0, 0, 0.15);

  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.2);
}

/* =========================
   STATS BANNER
========================= */

.stats {
  background: var(--deep-brown);

  color: var(--gold);

  display: grid;

  grid-template-columns:
    repeat(auto-fit, minmax(200px, 1fr));

  text-align: center;

  padding: 2.5rem 5%;

  gap: 1.5rem;
}

.stat-box h2 {
  font-size: 2.2rem;
}

.stat-box p {
  color: #fff;

  font-size: 0.9rem;

  text-transform: uppercase;

  letter-spacing: 1px;
}


/* =========================
   FOUNDER'S MESSAGE SECTION
========================= */

.founder-section {
  border-bottom: 3px solid var(--gold);
}

.founder-section-bg {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.founder-container {
  display: flex;
  align-items: center;
  gap: 3rem;
  max-width: 1100px;
  margin: 0 auto;
  background: var(--cream);
  padding: 3rem;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  border: 1px solid #ebdcb5;
}

.founder-image-box {
  flex: 1;
  text-align: center;
}

.founder-image-box img {
  width: 100%;
  max-width: 320px;
  height: auto;
  border-radius: 10px;
  border: 4px solid var(--gold);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  object-fit: cover;
}

.founder-text-box {
  flex: 1.5;
}

.founder-text-box h3 {
  color: var(--maroon);
  font-size: 1.6rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.founder-text-box p {
  font-size: 1rem;
  color: #444;
  margin-bottom: 1rem;
  line-height: 1.7;
}

.founder-signature {
  margin-top: 1.5rem;
  border-left: 4px solid var(--gold);
  padding-left: 1rem;
}

.founder-signature h4 {
  color: var(--maroon);
  font-size: 1.1rem;
  font-weight: bold;
}

.founder-signature span {
  font-size: 0.85rem;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

@media (max-width: 850px) {
  .founder-container {
    flex-direction: column;
    padding: 2rem 1.5rem;
    gap: 2rem;
  }
}


/* =========================
   CEO'S MESSAGE SECTION
========================= */

.ceo-section {
  border-bottom: 3px solid var(--gold);
}

.ceo-section-bg {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}


/* =========================
   SECTIONS & SEPARATE BACKGROUNDS
========================= */

section {
  padding: 4.5rem 8%;
}

/* 1. Temples Section Background */
.temples-section-bg {
  background: 
    linear-gradient(rgba(253, 248, 238, 0.1), rgba(253, 248, 238, 0.1)), 
    url('images/SacredTemple.png') center/cover fixed no-repeat;
}

/* 2. Seva Section Background */
.seva-section-bg {
  background: 
    linear-gradient(rgba(253, 248, 238, 0.1), rgba(253, 248, 238, 0.1)), 
    url('images/SevaEducation&Healthcare.png') center/cover fixed no-repeat;
}

/* 3. Helicopter Section Background */
.helicopter-section-bg {
  background: 
    linear-gradient(rgba(244, 235, 217, 0.1), rgba(244, 235, 217, 0.1)), 
    url('images/Helicopter.png') center/cover fixed no-repeat;
}

/* 4. Attractions / Visitor Amenities Section Background */
.visitor-section-bg {
  background: 
    linear-gradient(rgba(253, 248, 238, 0.1), rgba(253, 248, 238, 0.1)), 
    url('images/AttractionVisitor.png') center/cover fixed no-repeat;
}

/* 5. Committee Members Section Background */
.committee-section-bg {
  background: 
    linear-gradient(rgba(253, 248, 238, 0.1), rgba(253, 248, 238, 0.1)), 
    url('images/CommitteeMem.png') center/cover fixed no-repeat;
}

/* 6. Gallery Section Background */
.gallery-section-bg {
  background: 
    linear-gradient(rgba(253, 248, 238, 0.1), rgba(253, 248, 238, 0.1)), 
    url('images/BgMemo.png') center/cover fixed no-repeat;
}

/* 7. Contact Section Background */
.contact-section-bg {
  background: 
    linear-gradient(rgba(253, 248, 238, 0.1), rgba(253, 248, 238, 0.1)), 
    url('images/Bggg.png') center/cover fixed no-repeat;
}

.section-title {
  text-align: center;

  margin-bottom: 3rem;
}

.section-title h2 {
  font-size: 2.2rem;

  color: var(--maroon);

  text-transform: uppercase;
}

.section-title p {
  color: #666;

  max-width: 650px;

  margin: 0.5rem auto 0;
}


/* =========================
   GRID CARDS & LANDSCAPE RATIO FIX
========================= */

.grid {
  display: grid;

  grid-template-columns:
    repeat(auto-fit, minmax(320px, 1fr));

  gap: 2rem;
}

.card {
  background: #fff;

  border-radius: 8px;

  padding: 0;

  box-shadow:
    0 4px 15px rgba(0, 0, 0, 0.06);

  border-top: 4px solid var(--gold);

  transition: transform 0.3s;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-5px);
}

/* Card Background Image Support - Clean Auto Height */
.card.card-bg {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  aspect-ratio: 1672 / 941;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;          /* Gives space around the text box inside the card */
}

/* Frosted dark blur box specifically for text area to ensure readability and perfect fit */
.card-content-box {
  background: rgba(18, 5, 5, 0.7);            /* Darker solid base for 100% readability */
  backdrop-filter: blur(1px);                /* Frosted blur effect */
  -webkit-backdrop-filter: blur(1px);        /* Safari support */
  padding: 0.8rem 1rem;                       /* Decreased padding to fit more compactly */
  border-radius: 6px;
  border: 1px solid rgba(212, 175, 55, 0.6);  /* Golden border accent */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
}

.card h3 {
  color: var(--gold);
  margin-bottom: 0.2rem;
  font-size: 1.05rem;                         /* Slightly smaller, compact heading */
}

.card p {
  font-size: 0.78rem;                         /* Compact text size to fit neatly */
  color: #fdf8ee;
  margin-bottom: 0.4rem;                      /* Reduced spacing below paragraph */
}

.card a {
  color: var(--saffron);
  font-weight: bold;
  text-decoration: none;
  font-size: 0.82rem;
}


/* =========================
   COMMITTEE SECTION STYLING
========================= */

.committee-card-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.team-label {
  text-align: center;
  font-weight: bold;
  color: var(--maroon);
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}


/* =========================
   FLOATING SOCIAL & CONTACT BAR
========================= */

.floating-social-bar {
  position: fixed;
  bottom: 22px;
  right: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 9999;
}

.social-float {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(28, 7, 7, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1.5px solid rgba(212, 175, 55, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

/* Individual Icon Brand Colors */
.social-float.phone { color: #25d366; }
.social-float.email { color: var(--gold); }
.social-float.instagram { color: #e1306c; }
.social-float.facebook { color: #1877f2; }
.social-float.youtube { color: #ff0000; }

/* Hover Effect */
.social-float:hover {
  transform: scale(1.12) translateX(-3px);
  background: var(--maroon);
  border-color: var(--gold);
  box-shadow: 0 6px 18px rgba(212, 175, 55, 0.35);
}


/* =========================
   FOOTER
========================= */

footer {
  background: var(--deep-brown);

  color: #ccc;

  padding: 3rem 8% 1.5rem;

  border-top: 3px solid var(--gold);
}

.footer-grid {
  display: grid;

  grid-template-columns:
    repeat(auto-fit, minmax(220px, 1fr));

  gap: 2rem;

  margin-bottom: 2rem;
}

footer h4 {
  color: var(--gold);

  margin-bottom: 1rem;
}

footer ul {
  list-style: none;
}

footer ul li {
  margin-bottom: 0.5rem;

  font-size: 0.9rem;
}

footer a {
  color: #ccc;

  text-decoration: none;
}

.copyright {
  text-align: center;

  border-top: 1px solid #3a1818;

  padding-top: 1.5rem;

  font-size: 0.85rem;
}


/* =========================
   MOBILE RESPONSIVE
========================= */

@media (max-width: 850px) {

  header {
    padding: 0.7rem 4%;
  }

  .logo img {
    width: 45px;
    height: 45px;
  }

  .menu-toggle {
    display: flex;
  }

  nav {
    display: none;

    flex-direction: column;

    position: absolute;

    top: 100%;

    left: 0;

    width: 100%;

    background: var(--maroon);

    padding: 1.5rem;

    border-bottom: 2px solid var(--gold);
    gap: 1rem;
    text-align: center;
  }

  nav.show {
    display: flex;
  }

  .hero {
    min-height: 580px;

    padding: 4rem 6%;
  }

  .hero-content-box {
    padding: 2rem 1.5rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero .hindi-tagline {
    font-size: 1.1rem;
  }
 
  .hero p {
    font-size: 1rem;
  }

  .hero-btns a {
    padding: 0.7rem 1.2rem;
  }

  .floating-social-bar {
    bottom: 15px;
    right: 15px;
    gap: 8px;
  }

  .social-float {
    width: 38px;
    height: 38px;
    font-size: 0.95rem;
  }
}