/**
 * SHRI SOMESHWARA SWAMY TEMPLE - KUPPAHALLI (KOLAR, SRINIVASPUR)
 * Heritage & Restoration Website UI Theme
 * Clean • Sacred • Minimal • Village Identity
 */

@charset "UTF-8";

/* Fonts */
:root {
  --default-font: "Inter", sans-serif;
  --heading-font: "Poppins", sans-serif;
  --nav-font: "Inter", sans-serif;
}

/* Core Temple Colors */
:root { 
  --background-color: #FFF8EC;      /* Soft sacred / sandal tone */
  --default-color: #3A3A3A;         /* Neutral clean text */
  --heading-color: #7A0010;         /* Deep heritage red */
  --accent-color: #B40016;          /* Primary temple red */
  --surface-color: #ffffff;         /* For cards / content blocks */
  --contrast-color: #ffffff;        /* Text on accent */
  --gold-color: #F2D188;            /* Logo gold tone */
}

/* Nav */
:root {
  --nav-color: #7A0010;
  --nav-hover-color: #B40016;
  --nav-mobile-background-color: #ffffff;
  --nav-dropdown-background-color: #ffffff;
  --nav-dropdown-color: #7A0010;
  --nav-dropdown-hover-color: #B40016;
}

:root { scroll-behavior: smooth; }

/* Base */
body {
  background: var(--background-color);
  color: var(--default-color);
  font-family: var(--default-font);
  line-height: 1.65;
}

a { color: var(--accent-color); transition: 0.3s; }
a:hover { color: var(--heading-color); }

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  font-weight: 600;
  color: var(--heading-color);
  letter-spacing: 0.4px;
}

/* Gold Highlight Utilities */
.gold-text { color: var(--gold-color); }
.gold-bg { background: var(--gold-color); color: #7A0010; }
.hr-gold {
  width: 60px;
  height: 3px;
  background: var(--gold-color);
  border-radius: 12px;
  margin: 10px auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  padding: 0.6rem 1.4rem;
  border-radius: 0.5rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: 0.25s ease;
}

/* Primary (Temple Red Button) */
.btn-primary {
  background: var(--accent-color);
  color: var(--contrast-color);
  border-color: var(--accent-color);
  box-shadow: 0 4px 12px rgba(180, 0, 22, 0.25);
}
.btn-primary:hover {
  background: #7A0010;
  border-color: #7A0010;
  transform: translateY(-2px);
}

/* Outline Button */
.btn-outline {
  background: transparent;
  color: var(--accent-color);
  border-color: var(--accent-color);
}
.btn-outline:hover {
  background: var(--accent-color);
  color: var(--contrast-color);
}

/* Section Themes */
.light-background { background: #FFF8EC; }
.dark-background { background: #7A0010; color: #ffffff; }

/* Scroll Progress */
#scroll-progress {
  position: fixed;
  left: 0;
  height: 3px;
  background: var(--accent-color);
  width: 0%;
  z-index: 1001;
  transition: width 0.25s;
}


/*--------------------------------------------------------------
# Global Section Titles (Modern + Clean)
--------------------------------------------------------------*/
.section-title {
  text-align: center;
  margin-bottom: 3rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.section-title h2 {
  font-size: 32px;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 12px;
  font-family: var(--heading-font);
}

/* ✅ Fixed paragraph truncation issue — now fully readable */
.section-title p {
  font-size: 16px;
  font-weight: 400;
  color: color-mix(in srgb, var(--default-color), transparent 25%);
  margin: 0 auto;
  max-width: 800px;
  line-height: 1.6;
  white-space: normal; /* allow natural wrapping */
}

/*--------------------------------------------------------------
# Responsive Adjustments
--------------------------------------------------------------*/
@media (max-width: 768px) {
  .section-title h2 {
    font-size: 26px;
  }

  .section-title p {
    font-size: 14px;
    line-height: 1.5;
  }
}



/*--------------------------------------------------------------
# Reset
--------------------------------------------------------------*/
body {
  margin: 0;
  padding: 0;
}
header {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
.hero-section {
  position: relative;
  overflow: hidden;
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.hero-swiper,
.hero-swiper .swiper-slide {
  width: 100%;
  height: 80vh; /* Desktop height */
  max-height: 85vh;
  background-size: cover;
  background-position: center;
  position: relative;
}

@media (max-width: 768px) {
  .hero-swiper,
  .hero-swiper .swiper-slide {
    height: 75vh; /* Mobile height */
  }
}

/* Overlay Gradient */
.hero-section .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6), rgba(0,0,0,0.2));
  z-index: 1;
}

/* Hero Content */
.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  text-align: center;
  top: 50%;
  transform: translateY(-50%);
  max-width: 800px;
  margin: 0 auto;
}

.hero-content h1 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
  .hero-content h1 { font-size: 2rem; }
  .hero-content p { font-size: 1rem; }
}

/* Button Pulse (one time) */
.hero-btn {
  animation: pulse-once 1.6s ease-out 0.8s 1;
}
@keyframes pulse-once {
  0% { transform: scale(1); box-shadow: 0 0 0 rgba(255,255,255,0); }
  50% { transform: scale(1.05); box-shadow: 0 0 20px rgba(255,255,255,0.4); }
  100% { transform: scale(1); box-shadow: 0 0 0 rgba(255,255,255,0); }
}

/* Text Animations */
.animate-text {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1s ease forwards;
}
.animate-text:nth-child(1) { animation-delay: 0.3s; }
.animate-text:nth-child(2) { animation-delay: 0.6s; }
.animate-text:nth-child(3) { animation-delay: 0.9s; }

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* Navigation Arrows */
.swiper-button-prev,
.swiper-button-next {
  width: 40px;
  height: 40px;
  background: #fff;
  border-radius: 50%;
  color: var(--accent-color);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.swiper-button-prev::after,
.swiper-button-next::after {
  font-size: 16px;
  color: var(--accent-color);
}
@media (max-width: 768px) {
  .swiper-button-prev,
  .swiper-button-next {
    display: none;
  }
}

/* Pagination Dots */
.swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(0,0,0,0.6);
  opacity: 1;
}
.swiper-pagination-bullet-active {
  background: var(--heading-color);
}

/* Force all hero text white */
.hero-content h1,
.hero-content p,
.hero-content a {
  color: #fff !important;
}

/* Desktop: dots outside hero */
@media (min-width: 769px) {
  .swiper-pagination {
    position: static !important;
    margin-top: 16px;
  }
}

/* Mobile: dots overlay inside hero */
@media (max-width: 768px) {
  .swiper-pagination {
    bottom: 20px !important;
  }
}


/*******************
   HEADER
********************/
.header {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  padding: 12px 0;
  z-index: 1000;
}

/* Logo */
.header .logo img {
  max-height: 80px;
  width: auto;
  transition: max-height 0.3s ease;
}
@media (max-width: 991.98px) { .header .logo img { max-height: 70px; } }
@media (max-width: 575.98px) { .header .logo img { max-height: 55px; } }

/*******************
   DESKTOP NAV (>=1200px)
********************/
@media (min-width: 1200px) {

  .navmenu ul {
    display: flex;
    gap: 26px;
    margin: 0;
    padding: 0;
    list-style: none;
    align-items: center;
  }

  .navmenu a {
    color: var(--nav-color);
    font-size: 15px;
    font-weight: 600;
    padding: 10px 0;
    text-decoration: none;
    transition: color 0.25s ease, transform 0.25s ease;
  }

  /* Hover + Active color only (NO underline) */
  .navmenu a:hover,
  .navmenu a.active {
    color: var(--accent-color);
    transform: translateY(-2px);
  }
}

/*******************
   MOBILE NAV (<=1199px)
********************/
@media (max-width: 1199px) {

  .mobile-nav {
    display: none;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    background: #fff;
    padding: 20px;
    overflow-y: auto;
    z-index: 999;
    max-height: 0;
    transition: max-height 0.35s ease;
    border-top: 1px solid #eee;
  }

  .mobile-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .mobile-nav li {
    border-bottom: 1px solid #eee;
  }

  .mobile-nav a {
    display: block;
    padding: 14px 0;
    font-size: 17px;
    font-weight: 600;
    color: var(--nav-color);
    text-decoration: none;
    transition: color 0.25s ease;
  }

  .mobile-nav a:hover,
  .mobile-nav a.active {
    color: var(--accent-color);
  }

  /* Mobile Toggle (hamburger icon) */
  .mobile-nav-toggle {
    font-size: 28px;
    cursor: pointer;
    color: var(--nav-color);
    z-index: 1001;
  }

  /* When menu is open */
  .mobile-nav-active {
    overflow: hidden;
  }
  .mobile-nav-active .mobile-nav {
    display: block;
    max-height: 100vh;
  }

  .mobile-nav-active .mobile-nav-toggle {
    position: fixed;
    top: 18px;
    right: 20px;
    font-size: 32px;
  }
}

/* ===== Small tweaks to ensure pseudo-element renders above footer content ===== */
.navmenu a::after,
.navmenu a { -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale; }

/* Hide floating contact icons when mobile menu is active */
.mobile-nav-active .floating-contact {
  display: none !important;
}

/* If you have other floating elements, you can add them here */
.mobile-nav-active .floating-buttons,
.mobile-nav-active .chat-widget {
  display: none !important;
}




/*--------------------------------------------------------------
# Global Footer 
--------------------------------------------------------------*/
.footer {
  background: #FFF8EC; /* Soft Sandal Background */
  color: #3A3A3A;
  font-size: 14px;
  padding: 60px 0 0;
  border-radius: 12px 12px 0 0;
  box-shadow: 0 -6px 30px rgba(0, 0, 0, 0.04);
}

/* Logo Sizing */
.footer .logo img {
  max-height: 85px;
  height: auto;
  width: auto;
}
@media (max-width: 768px) {
  .footer .logo img {
    max-height: 45px;
  }
}

/* Headings */
.footer h4,
.footer .enquiry-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #7A0010; /* Deep Temple Red */
}
.footer h4:after {
  content: "";
  display: block;
  width: 32px;
  height: 3px;
  background: #B40016; /* Accent Temple Red */
  border-radius: 3px;
  margin-top: 6px;
}

/* Paragraphs */
.footer p {
  color: #4A4A4A;
  line-height: 1.65;
}

/* Links */
.footer .footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer .footer-links ul li {
  margin-bottom: 7px;
}
.footer .footer-links ul a {
  color: #5A5A5A;
  text-decoration: none;
  transition: 0.25s ease;
  position: relative;
}
.footer .footer-links ul a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: #B40016;
  transition: width 0.25s ease;
}
.footer .footer-links ul a:hover {
  color: #B40016;
}
.footer .footer-links ul a:hover::after {
  width: 100%;
}

/* Contact */
.footer-contact p {
  display: flex;
  align-items: center;
  gap: 10px;
}
.contact-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  margin-right: 8px;
}
.footer-contact .contact-link {
  color: #444;
  font-size: 14px;
  text-decoration: none;
}
.footer-contact .contact-link:hover {
  color: #B40016;
  text-decoration: underline;
}

/* Social Icons */
.footer .social-links {
  display: flex;
  gap: 12px;
}
.footer .social-links a {
  display: inline-flex;
  width: 34px;
  height: 34px;
  transition: transform 0.25s ease;
}
.footer .social-links a img {
  width: 100%;
  height: 100%;
}
.footer .social-links a:hover {
  transform: translateY(-3px);
}

/* Bank Details Highlight (Optional Gold Accent) */
.footer .bank-highlight strong {
  color: #7A0010;
}

/* Bottom Footer */
.footer-bottom {
  margin-top: 20px;
  padding: 14px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 13px;
  color: #666;
  background: transparent;
}
.footer-bottom a {
  color: #666;
  margin: 0 8px;
}
.footer-bottom a:hover {
  color: #B40016;
  text-decoration: underline;
}

/* Mobile Responsive */
@media (max-width: 767px) {
  .footer .col-md-6 {
    width: 100%;
  }
  .footer-bottom {
    text-align: center;
    flex-direction: column;
    gap: 6px;
  }
}


/*--------------------------------------------------------------
# Preloader
--------------------------------------------------------------*/
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  overflow: hidden;
  background-color: var(--background-color);
  transition: all 0.6s ease-out;
}

#preloader:before {
  content: "";
  position: fixed;
  top: calc(50% - 30px);
  left: calc(50% - 30px);
  border: 6px solid var(--accent-color);
  border-top-color: color-mix(in srgb, var(--accent-color), transparent 90%);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: animate-preloader 1s linear infinite;
}

@keyframes animate-preloader {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/*--------------------------------------------------------------
# Scroll Top Button
--------------------------------------------------------------*/
.scroll-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: -15px;
  z-index: 99999;
  background-color: var(--accent-color);
  width: 44px;
  height: 44px;
  border-radius: 50px;
  transition: all 0.4s;
}

.scroll-top i {
  font-size: 24px;
  color: var(--contrast-color);
  line-height: 0;
}

.scroll-top:hover {
  background-color: color-mix(in srgb, var(--accent-color), transparent 20%);
  color: var(--contrast-color);
}

.scroll-top.active {
  visibility: visible;
  opacity: 1;
  bottom: 15px;
}

/* ================= Page Title================= */
.page-title {
  background: #FFF8EC; /* Sandal Background */
  padding: 90px 0 45px;
  text-align: center;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.page-title h1 {
  font-size: 38px;
  font-weight: 700;
  color: #7A0010; /* Deep Heritage Red */
  margin-bottom: 12px;
  letter-spacing: 0.4px;
}

.page-title p {
  font-size: 15px;
  color: #555;
  max-width: 720px;
  margin: 0 auto 18px;
  line-height: 1.65;
}

/* Accent line under title */
.page-title h1::after {
  content: "";
  display: block;
  width: 42px;
  height: 3px;
  background: #B40016; /* Primary Temple Red */
  margin: 14px auto 0;
  border-radius: 2px;
}

/* ================= Breadcrumbs (Inside Page Title) ================= */
.page-title .breadcrumbs {
  margin-top: 10px;
  font-size: 14px;
  background: transparent;
}

.page-title .breadcrumbs ol {
  display: inline-flex;
  flex-wrap: wrap;
  list-style: none;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.page-title .breadcrumbs ol li {
  color: #7A0010;
  font-weight: 500;
}

.page-title .breadcrumbs ol li a {
  color: #B40016;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-title .breadcrumbs ol li a:hover {
  color: #7A0010;
}

.page-title .breadcrumbs ol li.current {
  font-weight: 700;
  color: #7A0010;
}

.page-title .breadcrumbs ol li+li::before {
  content: "/";
  margin: 0 6px;
  color: #B40016;
}

/* Responsive */
@media (max-width: 768px) {
  .page-title {
    padding: 70px 0 35px;
  }

  .page-title h1 {
    font-size: 30px;
  }

  .page-title p {
    font-size: 14px;
    padding: 0 10px;
  }

  .page-title .breadcrumbs {
    font-size: 13px;
  }
}


/* ==========================================================
   Home page Image Ticker (Seamless Version) - FINAL
========================================================== */

#temple-gallery {
  padding: 60px 0;
  background: transparent; /* No background */
}

#temple-gallery .section-title h2 {
  font-weight: 700;
  color: #7A0010;
}

#temple-gallery .section-title p {
  color: #4A4A4A;
  max-width: 680px;
  line-height: 1.65;
  margin: 0 auto;
}

/* Ticker Wrapper */
.image-ticker {
  width: 100%;
  overflow: hidden;
  background: transparent !important;
  border-radius: 0;
  box-shadow: none !important;
  margin-top: 20px;
  position: relative;
}

/* Scrolling Track */
.image-track {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  width: max-content;
  animation: tickerMove 38s linear infinite;
}

/* Images */
.image-track img {
  height: 220px; /* Better desktop size */
  width: auto;
  object-fit: cover;
  border-radius: 6px;
  background: transparent !important;
  transition: transform 0.3s ease;
}

.image-track img:hover {
  transform: scale(1.06);
}

/* Scroll Animation */
@keyframes tickerMove {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Responsive Sizes */

/* Large Laptop */
@media (max-width: 1200px) {
  .image-track img { height: 200px; }
}

/* Tablet */
@media (max-width: 992px) {
  .image-track img { height: 180px; }
}

/* Mobile Landscape / Large Phones */
@media (max-width: 768px) {
  .image-track img { height: 170px; border-radius: 8px; }
}

/* Normal Small Smartphones */
@media (max-width: 576px) {
  .image-track img { height: 160px; }
}

/* Extra Small Phones */
@media (max-width: 420px) {
  .image-track img { height: 140px; }
}










/* ================= Mentors / Committee Section ================= */

.mentors {
  padding: 60px 0;
  background: #FFF8EC;
}

.mentor-card {
  text-align: center;
  background: #ffffff;
  border-radius: 14px;
  padding: 18px 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  transition: transform .28s ease, box-shadow .28s ease;
}

.mentor-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.10);
}

.mentor-card .mentor-img {
  width: 100%;
  height: 190px;
  object-fit: contain;
  background: #fff; /* clean background */
  border-radius: 34px !important;
  margin-bottom: 14px;
}

.mentor-card .mentor-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--heading-color);
  margin-bottom: 4px;
}

.mentor-card .mentor-role {
  font-size: 0.85rem;
  color: #666;
  margin: 0;
}

@media(max-width: 768px) {
  .mentor-card .mentor-img { height: 150px; }
}

/*--------------------------------------------------------------
# Global Sections
--------------------------------------------------------------*/
section,
.section {
  color: var(--default-color);
  background-color: var(--background-color);
  padding: 60px 0;
  scroll-margin-top: 90px;
  overflow: clip;
}

@media (max-width: 1199px) {
  section,
  .section {
    scroll-margin-top: 66px;
  }
}



/* ================= Donation Section ================= */
.donation-section {
  background: #FFF8EC;
  padding: 70px 0;
  border-top: 2px solid rgba(0,0,0,0.05);
}

.donation-content {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: flex-start;
  justify-content: center;
}

.donation-text {
  max-width: 520px;
}

.donation-heading {
  font-size: 22px;
  font-weight: 700;
  color: #7A0010;
  margin-bottom: 10px;
}

.donation-text p {
  color: #444;
  line-height: 1.7;
  margin-bottom: 18px;
}

.donation-highlight {
  background: #fae2b7;
  border-left: 5px solid var(--accent-color);
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 16px;
  margin-bottom: 22px;
}

.bank-details h5 {
  font-size: 18px;
  color: var(--heading-color);
  font-weight: 600;
  margin-bottom: 12px;
}

.bank-details p {
  margin: 4px 0;
  font-size: 15px;
  color: #333;
}

/* QR */
.qr-box {
  text-align: center;
}
.qr-box .upi-qr {
  width: 230px;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.10);
  background: #fff;
  padding: 10px;
}
.qr-box p {
  margin-top: 8px;
  font-size: 14px;
  color: #666;
}

/* Final Temple Image */
.temple-image-box {
  margin-top: 50px;
  text-align: center;
}
.temple-image-box img {
  width: 100%;
  max-width: 850px;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

/* Blessing / Mantra Line */
.blessing-text p {
  font-size: 18px;
  font-weight: 600;
  color: #7A0010; /* Deep Heritage Red */
  font-family: "Poppins", sans-serif;
  margin-top: 18px;
  letter-spacing: 0.3px;
}
@media (max-width: 768px) {
  .blessing-text p {
    font-size: 15px;
  }
}


/* ================= Donors Section ================= */
.donors {
  padding: 70px 0;
  background: #FFFFFF;
}

.donor-card {
  background: #fff;
  text-align: center;
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  transition: transform .3s ease, box-shadow .3s ease;
}

.donor-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.10);
}

/* IMAGE: Same Size + No Cropping */
.donor-card img {
  width: 100%;
  aspect-ratio: 1 / 1;       /* makes perfect square */
  object-fit: contain;       /* ensures NO cropping */
  background: #fff3d8;       /* light frame to fill empty spaces */
  border-radius: 10px;
  padding: 6px;              /* spacing inside frame */
  border: 1px solid #e4d6b8; /* subtle border */
}

/* Name */
.donor-card h4 {
  font-size: 16px;
  font-weight: 600;
  margin: 12px 0 6px;
  color: var(--heading-color);
}

/* Donation Badge */
.donation-amount {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  background: #fae2b7;
  padding: 6px 14px;
  border-radius: 50px;
  color: #7A0010;
  border: 1px solid #e4b979;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .donor-card img {
    padding: 4px;
  }
  .donor-card h4 {
    font-size: 15px;
  }
  .donation-amount {
    font-size: 13px;
    padding: 5px 12px;
  }
}


/* Temple Story Section */
.temple-story p {
  font-size: 1rem;
  line-height: 1.75;
  color: color-mix(in srgb, var(--default-color), transparent 18%);
  margin-bottom: 16px;
}

.temple-story .temple-highlight {
  font-weight: 600;
  color: #7A0010;
  background: #fae2b7;
  padding: 12px 18px;
  border-left: 4px solid var(--accent-color);
  border-radius: 6px;
  margin-top: 10px;
}


/* Village Story */
.village-story p {
  font-size: 1rem;
  line-height: 1.75;
  color: color-mix(in srgb, var(--default-color), transparent 18%);
  margin-bottom: 16px;
}

.village-highlight {
  font-weight: 600;
  background: #fae2b7;
  border-left: 4px solid var(--accent-color);
  padding: 12px 16px;
  border-radius: 6px;
  color: #7A0010;
}
.drone-section video.drone-video {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  background: #000;
}

/* ================= Responsive Adjustments ================= */

/* Reduce padding & font sizing on tablets */
@media (max-width: 992px) {

  .temple-story p,
  .village-story p {
    font-size: 0.95rem;
    line-height: 1.65;
  }

  .temple-story .temple-highlight,
  .village-highlight {
    font-size: 0.95rem;
    padding: 10px 14px;
  }

  .drone-section video.drone-video {
    height: 220px; /* keep same aspect but slightly shorter */
  }
}

/* Improve layout on mobile screens */
@media (max-width: 768px) {

  .temple-story,
  .village-story {
    text-align: center;   /* center text for clean readability */
  }

  .temple-story img,
  .village-story img {
    margin-top: 20px;
  }

  .drone-section video.drone-video {
    height: 190px;
    border-radius: 10px;
  }
}

/* Extra small screens */
@media (max-width: 480px) {

  .temple-story p,
  .village-story p {
    font-size: 0.9rem;
  }

  .temple-story .temple-highlight,
  .village-highlight {
    font-size: 0.85rem;
    padding: 8px 12px;
  }

  .drone-section video.drone-video {
    height: 160px;
  }
}



/* ================= About Us Section ================= */
.about .section-badge {
  display: inline-block;
  background: color-mix(in srgb, var(--accent-color), transparent 85%);
  color: var(--accent-color);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.about .about-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--heading-color);
}

.about .about-desc {
  font-size: 1rem;
  line-height: 1.6;
  color: color-mix(in srgb, var(--default-color), transparent 15%);
  margin-bottom: 2rem;
}

.about .about-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.about .about-stats .stat-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.about .about-stats .stat-item i {
  font-size: 1.5rem;
  color: var(--accent-color);
}

.about .about-stats .stat-item strong {
  display: block;
  font-size: 1.2rem;
  color: var(--heading-color);
}

.about .about-stats .stat-item span {
  font-size: 0.9rem;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
}

/* About Image */
.about-image img {
  width: 100%;
  max-width: 420px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  border: 4px solid color-mix(in srgb, var(--accent-color), transparent 60%);
}


/* Reduce gutter spacing only in About section */
.about .row {
  --bs-gutter-x: 1.5rem; /* smaller gap than default */
}

@media (max-width: 768px) {
  .about .about-title { font-size: 1.6rem; }
  .about .about-stats { flex-direction: column; }
  .about-image img { width: 220px; height: 220px; }
}


/* ================= Responsive Fix ================= */

@media (max-width: 992px) {
  .about .row {
    --bs-gutter-x: 1.25rem;
    --bs-gutter-y: 2rem;
  }

  .about-image {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .about {
    text-align: center;
  }

  .about .about-title {
    font-size: 1.6rem;
  }

  /* Stats shift to center */
  .about .about-stats {
    flex-direction: column;
    align-items: center;
  }

  /* Image becomes full width and responsive */
  .about-image img {
    width: 100%;
    max-width: 320px;
    height: auto;
    border-radius: 14px;
    display: block;
    margin: 0 auto 20px;
  }
}

@media (max-width: 480px) {
  .about .about-title {
    font-size: 1.4rem;
  }

  .about .about-desc {
    font-size: 0.95rem;
  }

  .about .about-stats .stat-item strong {
    font-size: 1.1rem;
  }
}


/* ================= Call To Action Section ================= */
.call-to-action {
  background: #FFF8EC; /* matches temple theme */
  padding: 80px 0;
  border-top: 1px solid rgba(0,0,0,0.04);
  border-bottom: 1px solid rgba(0,0,0,0.04);
  text-align: center;
}

.call-to-action h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #7A0010; /* deep heritage red */
  margin-bottom: 14px;
}

.call-to-action p {
  font-size: 1.03rem;
  max-width: 660px;
  margin: 0 auto 28px;
  color: #4A4A4A; /* soft clear text */
  line-height: 1.65;
}

/* Buttons remain your default btn styles */
.call-to-action .cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

@media (max-width: 576px) {
  .call-to-action .cta-buttons {
    flex-direction: column;
    gap: 12px;
  }
}






/* ===== Gallery Section ===== */
.gallery-section {
  padding: 3rem 1rem;
}

.section-title {
  text-align: center;
  margin-bottom: 2rem;
  font-family: var(--heading-font);
  color: var(--heading-color);
}

/* Masonry Layout */
.gallery-grid {
  column-count: 3;
  column-gap: 1rem;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 1rem;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

.gallery-item img {
  width: 100%;
  display: block;
  transition: transform 0.3s ease;
}
.gallery-item img:hover {
  transform: scale(1.05);
}

/* Load More Button */
.gallery-btn-wrap {
  text-align: center;
  margin-top: 2rem;
}

/* Responsive */
@media (max-width: 900px) {
  .gallery-grid { column-count: 2; }
}
@media (max-width: 600px) {
  .gallery-grid { column-count: 1; }
}


/* ==========================================================
   Contact
========================================================== */

.contact-section {
  padding: 60px 20px;
  background: #FFF8EC; /* Soft temple theme background */
}

/* Donation / Info Card Boxes */
.contact-form-box,
.info-box {
  background: #fff;
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

/* Donation Title & Description */
.contact-form-box h2 {
  font-size: 22px;
  font-weight: 700;
  color: #7A0010; /* Heritage Red */
  margin-bottom: 12px;
}

.contact-form-box p {
  color: #555;
  font-size: 14px;
  margin-bottom: 18px;
  line-height: 1.6;
}

/* Bank Details */
.bank-details p {
  font-size: 15px;
  color: #333;
  margin-bottom: 6px;
}

/* QR Code Styling */
.qr-box {
  text-align: center;
  margin-top: 20px;
}

.qr-box .upi-qr {
  width: 100%;
  max-width: 340px; /* increased size */
  display: block;
  margin: 0 auto;
  border-radius: 10px;
  box-shadow: 0 6px 22px rgba(0,0,0,0.08);
}

.qr-box p {
  font-size: 14px;
  margin-top: 12px;
  color: #555;
}

/* Larger on desktop */
@media (min-width: 992px) {
  .qr-box .upi-qr {
    max-width: 380px; 
  }
}

/* Info Boxes (Right Column) */
.info-box {
  margin-bottom: 20px;
}

.info-box h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #7A0010;
}

/* Contact Links */
.contact-link {
  color: #444;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s ease;
}

.contact-link:hover {
  color: #B40016; /* Accent Temple Red */
  text-decoration: underline;
}

/* Social Icons */
.social-links {
  display: flex;
  gap: 12px;
  margin-top: 6px;
}

.social-links a img {
  width: 34px;
  height: 34px;
  transition: transform 0.3s ease;
}

.social-links a img:hover {
  transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 768px) {
  .contact-section {
    padding: 40px 15px;
  }
  .contact-form-box {
    margin-bottom: 20px;
  }
}


/* map  */
.map-section {
  padding: 60px 20px;
  background: #fff;
  width: 100%;
}

.map-container {
  max-width: 1400px;
  margin: 0 auto;
}

.map-section .section-title {
  margin-bottom: 30px;
}

.map-iframe-wrapper {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.map-iframe-wrapper iframe {
  width: 100%;
  height: 450px;
  display: block;
}

@media (max-width: 768px) {
  .map-section {
    padding: 40px 15px;
  }
  .map-iframe-wrapper iframe {
    height: 350px;
  }
}







/*--------------------------------------------------------------
# Error 404 Section
--------------------------------------------------------------*/
.error-404 {
  padding: 80px 0;
  margin: 0 auto;
  text-align: center;
}

.error-404 .error-icon {
  font-size: 4rem;
  color: var(--accent-color);
  opacity: 0.85;
}

.error-404 .error-code {
  font-size: clamp(5rem, 14vw, 10rem);
  font-weight: 800;
  font-family: var(--heading-font);
  color: var(--heading-color);
  line-height: 1;
}

.error-404 .error-title {
  font-size: 1.8rem;
  color: var(--heading-color);
  font-weight: 600;
}

.error-404 .error-text {
  font-size: 1rem;
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  max-width: 620px;
  margin: 0 auto 20px auto;
  line-height: 1.6;
}

/* Button */
.error-404 .error-action .btn-primary {
  padding: 0.75rem 2rem;
  font-size: 1rem;
  background-color: var(--accent-color);
  border: none;
  color: var(--contrast-color);
  border-radius: 50px;
  transition: all 0.3s ease;
}

.error-404 .error-action .btn-primary:hover {
  background-color: color-mix(in srgb, var(--accent-color), transparent 12%);
  transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
  .error-404 {
    padding: 60px 0;
  }

  .error-404 .error-title {
    font-size: 1.5rem;
  }

  .error-404 .error-text {
    font-size: 0.95rem;
    padding: 0 20px;
  }
}


/* ================= Legal Pages (Privacy Policy / Terms) ================= */
.legal-page {
  max-width: 960px;
  margin: 40px auto;
  padding: 48px 20px;
  background: var(--surface-color, #fff);
  color: var(--default-color, #0B2E3E);
  font-family: var(--default-font);
  line-height: 1.75;
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(3, 18, 34, 0.04);
}

/* Section Title */
.legal-page .section-title {
  text-align: center;
  margin-bottom: 24px;
}

.legal-page h1 {
  font-size: 2rem;
  color: var(--heading-color);
  margin-bottom: 6px;
  font-family: var(--heading-font);
}

.legal-page h2 {
  font-size: 1.4rem;
  margin: 24px 0 12px;
  color: var(--heading-color);
  font-family: var(--heading-font);
}

.legal-page h3, .legal-page h4 {
  font-size: 1.1rem;
  margin: 16px 0 8px;
  color: var(--heading-color);
  font-family: var(--heading-font);
}

/* Meta info (like "last updated") */
.legal-page .meta {
  color: #6b7a86;
  font-size: 14px;
  margin-bottom: 18px;
}

/* Paragraphs */
.legal-page p {
  margin: 0 0 16px 0;
  font-size: 15px;
  color: var(--default-color);
}

/* Lists */
.legal-page ul {
  margin: 0 0 16px 20px;
  padding: 0;
}

.legal-page li {
  margin-bottom: 8px;
  font-size: 15px;
  line-height: 1.6;
}

/* Grievance Officer / Contact box */
.legal-page .grievance-box {
  margin-top: 20px;
  padding: 16px;
  background: linear-gradient(180deg, rgba(1,86,151,0.05), transparent);
  border-left: 4px solid var(--heading-color);
  border-radius: 6px;
}

.legal-page .grievance-box h4 {
  margin: 0 0 6px 0;
  color: var(--heading-color);
  font-size: 1.1rem;
}

.legal-page .grievance-box p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}

/* Notes / small print */
.legal-page .note {
  margin-top: 18px;
  font-size: 13px;
  color: #5f6b72;
  font-style: italic;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .legal-page {
    padding: 28px 16px;
    margin: 24px 12px;
  }

  .legal-page h1 {
    font-size: 1.6rem;
  }

  .legal-page h2 {
    font-size: 1.2rem;
  }

  .legal-page p, .legal-page li {
    font-size: 14px;
  }
}
