/* Google Fonts for premium typography */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+Devanagari:wght@400;500;700&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  --primary-color: #5c1d11;      /* Deep Maroon/Brown */
  --secondary-color: #f7e7ce;    /* Soft warm cream/gold tint */
  --accent-color: #d4af37;       /* Metallic Gold */
  --dark-color: #2b0b06;         /* Very dark brown for footer/hero background */
  --light-color: #fdfaf2;        /* Off-white warm cream for main page background */
  --font-family-devanagari: 'Noto Serif Devanagari', serif;
  --font-family-outfit: 'Outfit', sans-serif;
  --shadow-sm: 0 4px 6px rgba(0,0,0,0.05);
  --shadow-md: 0 8px 24px rgba(92, 29, 17, 0.08);
  --shadow-lg: 0 16px 40px rgba(43, 11, 6, 0.15);
  --border-radius-custom: 16px;
}

body {
  font-family: var(--font-family-outfit);
  background-color: var(--light-color);
  color: #3f312e;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .hindi-text {
  font-family: var(--font-family-devanagari);
  font-weight: 700;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--light-color);
}
::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 4px;
}

/* Decorative Border element */
.spiritual-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1.5rem 0;
}
.spiritual-divider::before, .spiritual-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--accent-color), transparent);
  max-width: 150px;
}
.spiritual-divider span {
  font-size: 1.5rem;
  color: var(--accent-color);
  margin: 0 1rem;
}

/* Header & Navigation */
.navbar {
  background-color: var(--light-color);
  box-shadow: var(--shadow-sm);
  border-bottom: 2px solid var(--secondary-color);
  padding: 0.8rem 1rem;
  transition: all 0.3s ease;
}
.navbar-brand {
  font-family: var(--font-family-devanagari);
  font-weight: 700;
  color: var(--primary-color) !important;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.navbar-brand img {
  height: 40px;
  width: auto;
}
.nav-link {
  font-family: var(--font-family-devanagari);
  font-weight: 600;
  color: #554440 !important;
  font-size: 1.1rem;
  margin: 0 0.5rem;
  transition: color 0.3s ease;
  position: relative;
}
.nav-link:hover, .nav-link.active {
  color: var(--primary-color) !important;
}
.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--accent-color);
  transition: width 0.3s ease;
}
.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, var(--dark-color) 0%, #44140b 100%);
  color: white;
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
  border-bottom: 5px solid var(--accent-color);
}
.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(circle at 80% 50%, rgba(212, 175, 55, 0.15) 0%, transparent 60%);
  pointer-events: none;
}
.hero-title {
  font-size: 3.5rem;
  color: var(--accent-color);
  margin-bottom: 0.5rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}
.hero-subtitle {
  font-size: 1.5rem;
  font-weight: 300;
  margin-bottom: 2rem;
  opacity: 0.9;
}
.hero-text {
  font-size: 1.8rem;
  color: var(--secondary-color);
  margin-bottom: 2.5rem;
}
.hero-img-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-img {
  width: 85%;
  max-width: 450px;
  border-radius: 50%;
  border: 6px solid var(--accent-color);
  box-shadow: 0 0 40px rgba(212, 175, 55, 0.4);
  position: relative;
  z-index: 2;
}
.halo-glow {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.3) 0%, rgba(212, 175, 55, 0) 70%);
  transform: scale(1.3);
  z-index: 1;
  animation: pulse-glow 4s infinite alternate;
}

@keyframes pulse-glow {
  0% { transform: scale(1.2); opacity: 0.8; }
  100% { transform: scale(1.4); opacity: 1; }
}

/* Button style */
.btn-gold {
  background-color: var(--accent-color);
  color: var(--dark-color) !important;
  font-family: var(--font-family-devanagari);
  font-weight: 700;
  padding: 0.8rem 2rem;
  border-radius: 30px;
  border: 2px solid var(--accent-color);
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}
.btn-gold:hover {
  background-color: transparent;
  color: var(--accent-color) !important;
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.5);
  transform: translateY(-2px);
}

.btn-primary-custom {
  background-color: var(--primary-color);
  color: white !important;
  font-family: var(--font-family-devanagari);
  font-weight: 700;
  padding: 0.8rem 2rem;
  border-radius: 30px;
  border: 2px solid var(--primary-color);
  transition: all 0.3s ease;
}
.btn-primary-custom:hover {
  background-color: transparent;
  color: var(--primary-color) !important;
  transform: translateY(-2px);
}

/* General Sections */
.section-padding {
  padding: 5rem 0;
}
.section-title {
  color: var(--primary-color);
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 0.5rem;
  position: relative;
}

/* Biography Section */
.bio-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.bio-card-grid img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  border: 3px solid var(--secondary-color);
  transition: transform 0.3s ease;
}
.bio-card-grid img:hover {
  transform: scale(1.05);
  border-color: var(--accent-color);
}

/* Teachings Section */
.teaching-card {
  background-color: var(--secondary-color);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: var(--border-radius-custom);
  padding: 2.5rem 2rem;
  text-align: center;
  transition: all 0.3s ease;
  height: 100%;
  box-shadow: var(--shadow-sm);
}
.teaching-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-color);
  background-color: white;
}
.teaching-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}
.teaching-title {
  color: var(--primary-color);
  font-size: 1.4rem;
  margin-bottom: 1rem;
}
.teaching-desc {
  font-size: 1rem;
  color: #554440;
  line-height: 1.6;
}

/* Gallery Section */
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius-custom);
  box-shadow: var(--shadow-md);
  border: 4px solid white;
  transition: all 0.3s ease;
  aspect-ratio: 1;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(43, 11, 6, 0.8), transparent);
  opacity: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1.5rem;
  transition: opacity 0.3s ease;
}
.gallery-caption {
  color: var(--secondary-color);
  font-family: var(--font-family-devanagari);
  font-size: 1.2rem;
  text-align: center;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}
.gallery-item:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-color);
}
.gallery-item:hover img {
  transform: scale(1.1);
}
.gallery-item:hover .gallery-overlay {
  opacity: 1;
}
.gallery-item:hover .gallery-caption {
  transform: translateY(0);
}

/* Donation / Contribution Section */
.donation-box {
  background-color: white;
  border-radius: var(--border-radius-custom);
  padding: 3rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--secondary-color);
}
.donation-info {
  background-color: var(--light-color);
  border-left: 4px solid var(--accent-color);
  padding: 1.5rem;
  border-radius: 0 12px 12px 0;
  margin-bottom: 2rem;
}
.donation-info h4 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}
.donation-form label {
  font-family: var(--font-family-devanagari);
  font-weight: 600;
  color: var(--primary-color);
}
.form-control {
  border: 1px solid #ced4da;
  border-radius: 8px;
  padding: 0.75rem 1rem;
}
.form-control:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 0.25rem rgba(212, 175, 55, 0.25);
}

/* Footer & Contact Section */
.contact-section {
  background-color: var(--dark-color);
  color: #ebdcd8;
  border-top: 5px solid var(--accent-color);
}
.contact-info-list {
  list-style: none;
  padding: 0;
}
.contact-info-list li {
  margin-bottom: 1.2rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.contact-info-list i {
  color: var(--accent-color);
  font-size: 1.2rem;
  margin-top: 0.2rem;
}
.social-icons {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}
.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary-color) !important;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}
.social-icon:hover {
  background-color: var(--accent-color);
  color: var(--dark-color) !important;
  transform: translateY(-3px);
}
.map-container {
  width: 100%;
  height: 250px;
  border-radius: var(--border-radius-custom);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 2px solid rgba(255,255,255,0.1);
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: var(--primary-color);
  color: white !important;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  z-index: 999;
  transition: all 0.3s ease;
  opacity: 0;
  pointer-events: none;
}
.back-to-top.show {
  opacity: 1;
  pointer-events: auto;
}
.back-to-top:hover {
  background-color: var(--accent-color);
  color: var(--dark-color) !important;
  transform: translateY(-3px);
}

/* Modal for Simulated Mail Sent Feedback */
.spiritual-modal .modal-content {
  background-color: var(--light-color);
  border: 3px solid var(--accent-color);
  border-radius: var(--border-radius-custom);
}
.spiritual-modal .modal-header {
  border-bottom: 1px solid var(--secondary-color);
  color: var(--primary-color);
}
.spiritual-modal .modal-footer {
  border-top: 1px solid var(--secondary-color);
}
.mail-success-icon {
  font-size: 4rem;
  color: var(--accent-color);
  text-shadow: 0 0 10px rgba(212,175,55,0.3);
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
  .hero-section {
    text-align: center;
    padding: 4rem 0;
  }
  .hero-title {
    font-size: 2.8rem;
  }
  .hero-img-container {
    margin-top: 3rem;
  }
  .bio-card-grid {
    margin-top: 2rem;
  }
}
@media (max-width: 575.98px) {
  .hero-title {
    font-size: 2.2rem;
  }
  .section-title {
    font-size: 2rem;
  }
  .donation-box {
    padding: 1.5rem;
  }
  .bio-card-grid img {
    height: 140px;
  }
}

/* Specialties Card styling */
.specialty-card {
  background-color: white;
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: var(--border-radius-custom);
  padding: 2.5rem 2rem;
  text-align: center;
  transition: all 0.3s ease;
  height: 100%;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.specialty-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(to right, var(--primary-color), var(--accent-color));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}
.specialty-card:hover::before {
  transform: scaleX(1);
}
.specialty-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-color);
}
.specialty-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease;
}
.specialty-card:hover .specialty-icon {
  transform: scale(1.1) rotate(5deg);
  color: var(--accent-color);
}
.specialty-title {
  color: var(--primary-color);
  font-size: 1.35rem;
  margin-bottom: 1rem;
}
.specialty-desc {
  font-size: 0.95rem;
  color: #554440;
  line-height: 1.6;
}

/* Testimonial styling */
.testimonial-card {
  background-color: white;
  border: 1px solid rgba(92, 29, 17, 0.1);
  border-radius: var(--border-radius-custom);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  height: 100%;
  position: relative;
}
.testimonial-card::after {
  content: "\f10d";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  top: 20px;
  right: 25px;
  font-size: 2.5rem;
  color: rgba(92, 29, 17, 0.05);
}
.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-color);
}
.testimonial-stars {
  color: var(--accent-color);
  font-size: 0.9rem;
}
.testimonial-quote {
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #4a3c39;
}
.testimonial-name {
  font-family: var(--font-family-devanagari);
  color: var(--primary-color);
  font-size: 1.15rem;
  font-weight: 700;
}

/* Lightbox Modal */
.lightbox-modal {
  display: none;
  position: fixed;
  z-index: 1050;
  padding-top: 50px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(43, 11, 6, 0.95);
  backdrop-filter: blur(5px);
  transition: opacity 0.3s ease;
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
  z-index: 1060;
}
.lightbox-close:hover,
.lightbox-close:focus {
  color: var(--accent-color);
  text-decoration: none;
}
.lightbox-content {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 800px;
  max-height: 80vh;
  position: relative;
  text-align: center;
}
.lightbox-content img {
  width: 100%;
  height: auto;
  max-height: 70vh;
  object-fit: contain;
  border: 4px solid var(--secondary-color);
  border-radius: 8px;
  box-shadow: 0 0 30px rgba(0,0,0,0.5);
  animation: zoom-in 0.3s ease;
}
@keyframes zoom-in {
  from {transform: scale(0.9); opacity: 0;}
  to {transform: scale(1); opacity: 1;}
}
.lightbox-caption {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  text-align: center;
  color: var(--secondary-color);
  padding: 15px 0;
  font-family: var(--font-family-devanagari);
  font-size: 1.3rem;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}
.lightbox-prev,
.lightbox-next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -50px;
  color: white;
  font-weight: bold;
  font-size: 24px;
  transition: 0.3s ease;
  border-radius: 50%;
  user-select: none;
  -webkit-user-select: none;
  background-color: rgba(255,255,255,0.08);
  width: 55px;
  height: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1060;
}
.lightbox-prev:hover,
.lightbox-next:hover {
  background-color: var(--accent-color);
  color: var(--dark-color) !important;
}
.lightbox-prev {
  left: 20px;
}
.lightbox-next {
  right: 20px;
}
@media (max-width: 768px) {
  .lightbox-content {
    width: 95%;
  }
  .lightbox-prev, .lightbox-next {
    padding: 8px;
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
  .lightbox-prev {
    left: 5px;
  }
  .lightbox-next {
    right: 5px;
  }
}

/* Biography Modal custom quote boxes */
.bio-modal-quote-box {
  border-left: 4px solid var(--accent-color) !important;
  background-color: rgba(247, 231, 206, 0.4) !important;
  border-radius: 0 12px 12px 0;
  transition: background-color 0.3s ease;
}
.bio-modal-quote-box:hover {
  background-color: rgba(247, 231, 206, 0.7) !important;
}

/* Gallery Carousel customization */
.gallery-carousel {
  background-color: transparent;
  border: none;
  overflow: visible;
}
.gallery-carousel .gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius-custom);
  box-shadow: var(--shadow-md);
  border: 4px solid white;
  transition: all 0.3s ease;
  aspect-ratio: 1;
  height: auto;
  cursor: pointer;
}
.gallery-carousel .gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-carousel .gallery-item:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-color);
}
.gallery-carousel .gallery-item:hover img {
  transform: scale(1.1);
}
.gallery-carousel .carousel-indicators [data-bs-target] {
  background-color: var(--accent-color);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin: 0 5px;
}
.gallery-carousel .carousel-control-prev-icon,
.gallery-carousel .carousel-control-next-icon {
  background-color: rgba(92, 29, 17, 0.85);
  border-radius: 50%;
  padding: 1.5rem;
  background-size: 40%;
  border: 2px solid var(--accent-color);
}
.gallery-carousel .carousel-control-prev-icon:hover,
.gallery-carousel .carousel-control-next-icon:hover {
  background-color: var(--accent-color);
}


