:root {
  --primary: #FF9933;
  --primary-dark: #CC6600;
  --secondary: #FFD700;
  --bg-cream: #FFF8F0;
  --text-dark: #333;
  --text-muted: #666;
}

* { box-sizing: border-box; }

body {
  font-family: 'Poppins', 'Noto Sans Devanagari', sans-serif;
  color: var(--text-dark);
  background: #fff;
  overflow-x: hidden;
}

html[lang="hi"] body { font-family: 'Noto Sans Devanagari', 'Poppins', sans-serif; }

.top-notice {
  background: var(--primary);
  color: #fff;
  text-align: center;
  padding: 6px 15px;
  font-size: 0.85rem;
}

.header-top {
  background: var(--primary-dark);
  color: #fff;
  font-size: 0.85rem;
}
.header-top a { color: #fff; text-decoration: none; margin-right: 15px; }
.header-lang a { color: rgba(255,255,255,0.7); text-decoration: none; padding: 0 5px; }
.header-lang a.active { color: #fff; font-weight: 600; }

.site-header { position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.navbar { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); padding: 0.5rem 0; }
.navbar-brand .logo-img { height: 50px; width: auto; }
@media (max-width: 991px) {
  .navbar .btn-donate { font-size: 0.8rem; padding: 6px 14px; margin-top: 10px; width: 100%; }
}
.navbar-nav .nav-link { color: #fff !important; font-weight: 500; padding: 0.5rem 1rem !important; }
.navbar-nav .nav-link:hover, .navbar-nav .nav-link.active { color: var(--secondary) !important; }
.dropdown-menu { border: none; box-shadow: 0 5px 20px rgba(0,0,0,0.15); border-radius: 8px; }
.btn-donate { background: var(--secondary); color: var(--primary-dark); font-weight: 600; border-radius: 25px; padding: 8px 24px; border: none; }
.btn-donate:hover { background: #fff; color: var(--primary-dark); }

.hero-slider { position: relative; }
.hero-slide {
  min-height: 400px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  position: relative;
}
@media (min-width: 768px) { .hero-slide { min-height: 550px; } }
@media (min-width: 1200px) { .hero-slide { min-height: 600px; } }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.7), rgba(0,0,0,0.3));
}
.hero-content { position: relative; z-index: 2; color: #fff; padding: 40px 0; }
.hero-content h1 { font-size: 1.8rem; font-weight: 700; text-shadow: 2px 2px 4px rgba(0,0,0,0.5); }
@media (min-width: 768px) { .hero-content h1 { font-size: 2.8rem; } }
.hero-content p { font-size: 1rem; opacity: 0.95; }
.hero-btns .btn { margin: 5px; border-radius: 25px; padding: 10px 24px; font-weight: 600; min-height: 44px; }
.btn-hero-primary { background: var(--primary); color: #fff; border: none; }
.btn-hero-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-hero-outline { background: transparent; color: #fff; border: 2px solid #fff; }
.btn-hero-outline:hover { background: #fff; color: var(--primary-dark); }

.counter-section { background: var(--bg-cream); padding: 40px 0; }
.counter-box {
  text-align: center;
  padding: 25px 15px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 3px 15px rgba(0,0,0,0.08);
  margin-bottom: 15px;
  border-bottom: 4px solid var(--primary);
}
.counter-box .counter-num { font-size: 2rem; font-weight: 700; color: var(--primary-dark); }
.counter-box .counter-label { font-size: 0.85rem; color: var(--text-muted); margin-top: 5px; }
@media (min-width: 768px) { .counter-box .counter-num { font-size: 2.5rem; } }

.section-title {
  text-align: center;
  margin-bottom: 30px;
}
.section-title h2 {
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 1.6rem;
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
}
.section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--primary);
}
.section-padding { padding: 50px 0; }
@media (min-width: 768px) { .section-padding { padding: 70px 0; } }

.seva-card {
  border: none;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 3px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s;
  height: 100%;
}
.seva-card:hover { transform: translateY(-5px); }
.seva-card img { width: 100%; height: 200px; object-fit: cover; }
.seva-card .card-body { padding: 20px; }
.seva-card .card-title { color: var(--primary-dark); font-weight: 600; }

.darshan-box {
  background: linear-gradient(135deg, var(--bg-cream), #FFE4B5);
  border-radius: 15px;
  padding: 30px;
  text-align: center;
}
.darshan-quote {
  font-size: 1.2rem;
  font-style: italic;
  color: var(--primary-dark);
  font-weight: 600;
  line-height: 1.8;
}
.teaching-box {
  background: #fff;
  border-left: 4px solid var(--primary);
  padding: 20px;
  border-radius: 0 8px 8px 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  margin-bottom: 15px;
}

.event-card, .blog-card {
  border: none;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 3px 12px rgba(0,0,0,0.08);
  height: 100%;
  transition: transform 0.3s;
}
.event-card:hover, .blog-card:hover { transform: translateY(-3px); }
.event-date {
  background: var(--primary);
  color: #fff;
  padding: 8px 15px;
  border-radius: 8px;
  display: inline-block;
  font-weight: 600;
  font-size: 0.85rem;
}

.page-header {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
  padding: 40px 0;
  text-align: center;
  position: relative;
}
.page-header-img {
  background-size: cover;
  background-position: center;
  padding: 50px 0 45px;
  min-height: 200px;
  display: flex;
  align-items: center;
}
@media (min-width: 768px) { .page-header-img { padding: 70px 0 60px; min-height: 280px; } }
.page-header-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(44,24,16,0.88), rgba(204,102,0,0.75));
}
.page-header-img .container { position: relative; z-index: 2; width: 100%; }
.page-header h1 { font-size: 1.8rem; font-weight: 700; text-shadow: 2px 2px 8px rgba(0,0,0,0.4); }
@media (min-width: 768px) { .page-header h1 { font-size: 2.2rem; } }
.page-header-desc { opacity: 0.95; text-shadow: 1px 1px 4px rgba(0,0,0,0.3); }
.page-header .breadcrumb a { color: rgba(255,255,255,0.9); }
.page-header .breadcrumb .active { color: var(--secondary); }

.page-feature-image img { width: 100%; max-height: 420px; object-fit: cover; }
.blog-card-img { height: 200px; object-fit: cover; }
.blog-feature-img { max-height: 450px; object-fit: cover; }
.festival-card-img { height: 160px; object-fit: cover; }
.festival-card-body { background: #fff; }
.festival-card { padding: 0; border-radius: 15px; overflow: hidden; box-shadow: 0 3px 15px rgba(0,0,0,0.1); }

.trust-intro-img {
  background-size: cover;
  background-position: center;
  position: relative;
  padding: 35px 0;
}
.trust-intro-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(44,24,16,0.92), rgba(204,102,0,0.85));
}
.trust-intro-img .container { position: relative; z-index: 2; }
.trust-intro-img h2, .trust-intro-img p { color: #fff; }

.section-bg-img {
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
  position: relative;
}
@media (min-width: 992px) { .section-bg-img { background-attachment: fixed; } }
.section-bg-overlay {
  position: absolute; inset: 0;
  background: rgba(255,248,240,0.93);
}
.section-bg-overlay-light { background: rgba(255,255,255,0.92); }
.section-bg-img .section-title h2 { position: relative; }

.gallery-item { position: relative; }
.gallery-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  color: #fff;
  padding: 25px 12px 10px;
  font-size: 0.8rem;
  font-weight: 600;
}

.bhajan-hero-caption {
  position: absolute; bottom: 20px; left: 20px; right: 20px;
  color: #fff; font-size: 1.2rem; font-weight: 700;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.6);
}
.bhajan-hero { position: relative; }

.counter-section {
  background: var(--bg-cream) url('../images/banners/page-header-rasik-dham-1920x500-01.jpg') center/cover no-repeat;
  position: relative;
}
.counter-section::before {
  content: '';
  position: absolute; inset: 0;
  background: rgba(255,248,240,0.94);
}
.counter-section .container { position: relative; z-index: 1; }

.about-baba-section {
  background: linear-gradient(180deg, var(--bg-cream) 0%, #fff 100%);
}
.page-content { padding: 40px 0; }
.page-content img { max-width: 100%; height: auto; border-radius: 8px; }

.breadcrumb { background: transparent; padding: 15px 0 0; font-size: 0.85rem; }
.breadcrumb a { color: var(--primary-dark); text-decoration: none; }

.donate-amounts { display: flex; flex-wrap: wrap; gap: 10px; }
.donate-amount-btn {
  padding: 12px 20px;
  border: 2px solid var(--primary);
  background: #fff;
  color: var(--primary-dark);
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  min-width: 80px;
  text-align: center;
  transition: all 0.2s;
  min-height: 44px;
}
.donate-amount-btn:hover, .donate-amount-btn.active {
  background: var(--primary);
  color: #fff;
}

.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 768px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 15px; } }
@media (min-width: 1200px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); } }
.gallery-item {
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.gallery-item:hover img { transform: scale(1.05); }

.bhajan-player {
  background: var(--bg-cream);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 15px;
}
.bhajan-player audio { width: 100%; margin-top: 10px; }

.countdown-box {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
  border-radius: 12px;
  padding: 25px;
  text-align: center;
}
.countdown-box .countdown-num { font-size: 2rem; font-weight: 700; }

.site-footer { margin-top: auto; }
.footer-top { background: #2C1810; color: rgba(255,255,255,0.8); padding: 50px 0 30px; }
.footer-top h5 { color: var(--primary); font-weight: 600; margin-bottom: 15px; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: rgba(255,255,255,0.7); text-decoration: none; font-size: 0.9rem; }
.footer-links a:hover { color: var(--primary); }
.footer-logo { filter: brightness(1.2); }
.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  color: #fff;
  margin-right: 8px;
  font-size: 1.2rem;
  transition: background 0.3s;
}
.social-links a:hover { background: var(--primary); color: #fff; }
.footer-bottom { background: #1A0F0A; color: rgba(255,255,255,0.5); padding: 15px 0; font-size: 0.85rem; }

.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 56px;
  height: 56px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  z-index: 999;
  transition: transform 0.3s;
  text-decoration: none;
}
.whatsapp-float:hover { transform: scale(1.1); color: #fff; }

.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(255,153,51,0.25);
}
.btn-warning { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-warning:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }

.mobile-donate-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--primary-dark);
  padding: 10px;
  z-index: 998;
  text-align: center;
}
@media (max-width: 767px) {
  .mobile-donate-bar { display: block; }
  .whatsapp-float { bottom: 70px; }
  body { padding-bottom: 70px; }
}

/* === Enhanced Mobile & Desktop Styles === */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-size: 16px; line-height: 1.7; }
img { max-width: 100%; height: auto; }

.hero-tagline { font-size: 0.9rem; opacity: 0.9; }
.hero-subtitle { font-size: 1rem; max-width: 600px; }
@media (min-width: 768px) { .hero-subtitle { font-size: 1.15rem; } }

.trust-intro-strip {
  background: linear-gradient(90deg, var(--primary-dark), var(--primary));
  color: #fff;
  padding: 30px 0;
}
.trust-intro-strip h2 { color: #fff; font-weight: 700; }

.counter-icon { font-size: 1.5rem; color: var(--primary); display: block; margin-bottom: 8px; }
.section-subtitle { color: var(--text-muted); font-size: 0.95rem; margin-top: -10px; }

.info-card {
  background: #fff;
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  border-left: 5px solid var(--primary);
}
.info-card-icon {
  width: 50px; height: 50px;
  background: var(--bg-cream);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; color: var(--primary-dark);
  margin-bottom: 15px;
}
.info-card h3 { color: var(--primary-dark); font-size: 1.25rem; font-weight: 700; }

.about-baba-section { background: var(--bg-cream); }
.baba-highlights { list-style: none; padding: 0; margin: 20px 0; }
.baba-highlights li {
  padding: 8px 0;
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.95rem;
}
.baba-highlights li i { color: var(--primary); flex-shrink: 0; margin-top: 3px; }

.teachings-section { background: #fff; }
.seva-icon {
  width: 36px; height: 36px;
  background: var(--bg-cream);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--primary-dark);
  margin-bottom: 10px;
}

.donate-categories-section { background: linear-gradient(180deg, var(--bg-cream), #fff); }
.donate-cat-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: #fff;
  border: 2px solid #f0e0d0;
  border-radius: 12px;
  padding: 20px 15px;
  text-decoration: none;
  color: var(--text-dark);
  transition: all 0.3s;
  min-height: 100px;
  text-align: center;
}
.donate-cat-card i { font-size: 1.5rem; color: var(--primary); margin-bottom: 8px; }
.donate-cat-card span { font-size: 0.85rem; font-weight: 600; }
.donate-cat-card:hover {
  border-color: var(--primary);
  background: var(--bg-cream);
  transform: translateY(-3px);
  color: var(--primary-dark);
}

.festival-card {
  background: #fff;
  border-radius: 15px;
  padding: 30px 20px;
  box-shadow: 0 3px 15px rgba(0,0,0,0.08);
  height: 100%;
}
.festival-icon {
  width: 60px; height: 60px;
  background: var(--bg-cream);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 15px;
  font-size: 1.5rem; color: var(--primary-dark);
}
.countdown-sm { padding: 15px; }
.countdown-sm .countdown-num { font-size: 1.5rem; }

.faq-section .accordion-item { border: none; margin-bottom: 8px; border-radius: 8px !important; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.faq-section .accordion-button { font-weight: 600; font-size: 0.95rem; padding: 16px 20px; }
.faq-section .accordion-button:not(.collapsed) { background: var(--bg-cream); color: var(--primary-dark); }
.faq-home-section { background: var(--bg-cream); }

.cta-strip {
  background: linear-gradient(135deg, rgba(44,24,16,0.92), rgba(139,69,19,0.88)), url('../images/banners/banner-rasik-dham-1920x600-01.jpg') center/cover no-repeat;
  color: #fff;
  padding: 40px 0;
  position: relative;
}
.cta-strip h3 { font-size: 1.3rem; font-weight: 700; }
@media (min-width: 768px) { .cta-strip h3 { font-size: 1.5rem; } }

.page-header-desc { opacity: 0.9; font-size: 0.95rem; margin-bottom: 10px; }
.rich-content h2 { color: var(--primary-dark); font-size: 1.4rem; margin-top: 30px; margin-bottom: 15px; font-weight: 700; }
.rich-content h3 { color: var(--primary-dark); font-size: 1.15rem; margin-top: 25px; }
.rich-content p { margin-bottom: 16px; }
.rich-content ul, .rich-content ol { margin-bottom: 20px; padding-left: 24px; }
.rich-content li { margin-bottom: 8px; }
.rich-content strong { color: var(--primary-dark); }

.page-sidebar { position: sticky; top: 90px; }
.sidebar-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 3px 15px rgba(0,0,0,0.08);
}
.sidebar-title { color: var(--primary-dark); font-size: 1rem; font-weight: 700; margin-bottom: 15px; }
.sidebar-links { list-style: none; padding: 0; margin: 0; }
.sidebar-links li { margin-bottom: 6px; }
.sidebar-links a {
  color: var(--text-dark);
  text-decoration: none;
  font-size: 0.9rem;
  display: flex; align-items: center; gap: 6px;
  padding: 6px 0;
  min-height: 36px;
}
.sidebar-links a:hover { color: var(--primary-dark); }
.sidebar-cta { background: var(--bg-cream); border: 2px solid var(--primary); }

.btn-touch { min-height: 48px; padding: 12px 28px; }

/* Tablet optimizations */
@media (min-width: 768px) and (max-width: 991px) {
  .hero-content h1 { font-size: 2.2rem; }
  .seva-card img { height: 180px; }
  .counter-box .counter-num { font-size: 2rem; }
}

/* Mobile optimizations */
@media (max-width: 575px) {
  .hero-content h1 { font-size: 1.5rem; }
  .hero-btns .btn { width: 100%; margin: 4px 0; }
  .section-title h2 { font-size: 1.35rem; }
  .section-padding { padding: 40px 0; }
  .info-card { padding: 20px; }
  .darshan-quote { font-size: 1rem; }
  .trust-intro-strip .btn { width: 100%; margin: 5px 0 !important; }
  .page-sidebar { position: static; margin-top: 30px; }
  .navbar-brand .logo-img { height: 40px; }
  .footer-top { padding: 35px 0 20px; }
  .donate-cat-card { min-height: 90px; padding: 15px 10px; }
  .donate-cat-card span { font-size: 0.75rem; }
  .festival-card { padding: 20px 15px; }
  .cta-strip { padding: 30px 0; text-align: center; }
  .cta-strip .btn { width: 100%; margin: 5px 0; }
}

/* Large desktop */
@media (min-width: 1400px) {
  .container { max-width: 1320px; }
  .hero-slide { min-height: 650px; }
  .hero-content h1 { font-size: 3.2rem; }
}

/* Touch-friendly */
a, button, .btn, .donate-amount-btn, .donate-cat-card {
  -webkit-tap-highlight-color: transparent;
}
@media (hover: none) {
  .seva-card:hover, .event-card:hover, .blog-card:hover { transform: none; }
}
