/* Base styles (keeping your original and adding new) */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background: #fef8f0;
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

/* Header styles (keeping your original) */
header {
  background: linear-gradient(45deg, #b3412e, #c94b1f);
  padding: 8px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  min-height: 60px;
  width: 100%;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.logo-area img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid gold;
  object-fit: cover;
  background: white;
  flex-shrink: 0;
}

.logo-area h2 {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-shadow: 1px 1px 2px black;
  word-break: break-word;
}

/* Right controls */
.right-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-switch {
  display: flex;
  gap: 4px;
  flex-wrap: nowrap;
}

.lang-option {
  padding: 4px 8px;
  border-radius: 30px;
  border: none;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: 0.2s;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  white-space: nowrap;
}

.lang-option.en { background: #1e81b0; color: white; }
.lang-option.hi { background: #eead2d; color: #2d1f00; }
.lang-option.as { background: #2e7d32; color: white; }
.lang-option.bho { background: #9c27b0; color: white; }
.lang-option:active { transform: scale(0.95); }
.lang-option.active { outline: 3px solid gold; }

/* Hamburger menu */
.menu-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  cursor: pointer;
  margin-left: 5px;
}

.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background: white;
  border-radius: 4px;
  transition: 0.3s;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 48px;
  right: 0;
  background: white;
  min-width: 220px;
  border-radius: 20px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.3);
  z-index: 999;
  max-height: min(72vh, 520px);
  overflow-y: auto;
  overscroll-behavior: contain;
  animation: slideDown 0.25s ease-out;
  scrollbar-width: thin;
  scrollbar-color: #c94b1f #ffeee0;
}

.dropdown-content::-webkit-scrollbar {
  width: 8px;
}

.dropdown-content::-webkit-scrollbar-track {
  background: #ffeee0;
  border-radius: 999px;
}

.dropdown-content::-webkit-scrollbar-thumb {
  background: #c94b1f;
  border-radius: 999px;
}

.dropdown-content a {
  color: #b3412e;
  padding: 14px 18px;
  text-decoration: none;
  display: block;
  font-weight: 500;
  border-bottom: 1px solid #ffeee0;
  transition: 0.2s;
  font-size: 15px;
}

.dropdown-content a i {
  width: 24px;
  margin-right: 8px;
  color: #c94b1f;
}

.dropdown-content {
  display: none;
}

.menu-dropdown.active .dropdown-content {
  display: block;
}

/* Hero Section */
.hero {
  min-height: 70vh;
  background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.6)), 
              url('https://images.unsplash.com/photo-1606760227091-3dd870d97f1d?q=80&w=2070&auto=format&fit=crop') center/cover no-repeat;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
  position: relative;
}

.hero h1 {
  font-size: clamp(28px, 8vw, 48px);
  text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
  margin-bottom: 10px;
  animation: fadeInUp 1s ease;
}

.hero p {
  font-size: clamp(16px, 4vw, 22px);
  background: rgba(0,0,0,0.4);
  padding: 8px 24px;
  border-radius: 60px;
  backdrop-filter: blur(5px);
  margin-bottom: 30px;
}

.hero-stats {
  display: flex;
  gap: 30px;
  justify-content: center;
  margin-top: 20px;
}

.stat-item {
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  padding: 15px 25px;
  border-radius: 15px;
  border: 1px solid rgba(255,255,255,0.3);
}

.stat-number {
  font-size: 28px;
  font-weight: 700;
  display: block;
  color: gold;
}

.stat-label {
  font-size: 14px;
  opacity: 0.9;
}
/* Animated Pooja Booking Button */
.pooja-booking-btn {
    display: inline-block;
    margin-top: 30px;
    padding: 14px 35px;
    background: linear-gradient(45deg, #b3412e, #c94b1f);
    color: white;
    font-size: 18px;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid gold;
    animation: pulse 2s infinite;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.pooja-booking-btn:hover {
    transform: scale(1.05);
    background: linear-gradient(45deg, #c94b1f, #b3412e);
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 8px 30px rgba(0,0,0,0.4);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    }
}
/* Sections */
.section {
  padding: 50px 16px;
  text-align: center;
  scroll-margin-top: 70px;
}

@supports (content-visibility: auto) {
  .section {
    content-visibility: auto;
    contain-intrinsic-size: 1px 620px;
  }
}

.section h2 {
  margin-bottom: 25px;
  font-size: clamp(24px, 7vw, 32px);
  color: #a1301a;
  position: relative;
  display: inline-block;
  padding: 0 10px;
}

.section h2:after {
  content: '';
  width: 60%;
  height: 4px;
  background: #f3a446;
  position: absolute;
  bottom: -8px;
  left: 20%;
  border-radius: 4px;
}

/* Cards */
.card {
  background: white;
  padding: 25px 18px;
  margin: 16px auto;
  max-width: 900px;
  border-radius: 40px 10px 40px 10px;
  box-shadow: 0 12px 25px rgba(180, 60, 20, 0.15);
  transition: transform 0.25s ease, box-shadow 0.3s;
  border-left: 6px solid #f28c38;
}

/* News Grid */
.news-grid, .events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 20px 0;
}

.news-item, .event-item {
  background: #fef8f0;
  border-radius: 20px;
  padding: 20px;
  text-align: left;
  border: 1px solid #f3b28a;
  transition: transform 0.2s;
}

.news-item:hover, .event-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(180,60,20,0.1);
}

.news-date, .event-date {
  color: #c94b1f;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.news-title, .event-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #2d1f00;
}

.news-excerpt, .event-description {
  color: #666;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 15px;
}

.read-more {
  color: #b3412e;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* Office Bearers Preview */
.office-bearers-preview {
  margin-top: 40px;
}

.office-bearers-preview h3 {
  color: #a1301a;
  margin-bottom: 20px;
  font-size: 24px;
}

.bearers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin: 20px 0;
}

.bearer-card {
  background: white;
  border-radius: 20px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.bearer-card img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #f3a446;
  margin-bottom: 15px;
}

.bearer-card h4 {
  color: #2d1f00;
  margin-bottom: 5px;
}

.bearer-card .designation {
  color: #b3412e;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 5px;
}

.bearer-card .district {
  color: #666;
  font-size: 13px;
}

/* Gallery Preview */
.media-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
  margin: 20px 0;
}

.media-item {
  background: #fcf3ea;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.media-item img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  transition: transform 0.3s;
}

.media-item:hover img {
  transform: scale(1.05);
}

.media-item p {
  padding: 10px;
  font-size: 13px;
  color: #6b2f0e;
  background: white;
}

/* CTA Sections */
.cta-section {
  background: linear-gradient(135deg, #fef8f0 0%, #fce3d5 100%);
}

.cta-card {
  background: linear-gradient(135deg, #b3412e, #c94b1f);
  color: white;
  border-left-color: gold;
}

.cta-card h2, .donation-card h2 {
  color: white;
}

.cta-card h2:after {
  background: gold;
}

.cta-features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin: 20px 0;
}

.cta-features span {
  background: rgba(255,255,255,0.2);
  padding: 8px 15px;
  border-radius: 30px;
  font-size: 14px;
}

.cta-features i {
  color: gold;
  margin-right: 5px;
}

.cta-button {
  background: white;
  color: #b3412e;
  font-size: 18px;
  padding: 15px 40px;
}

/* Donation Card */
.donation-card {
  background: linear-gradient(135deg, #2d6a4f, #1b4d3e);
  color: white;
  border-left-color: gold;
}

.donation-impact {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin: 20px 0;
}

.impact-item {
  text-align: center;
}

.impact-item i {
  font-size: 30px;
  color: gold;
  margin-bottom: 5px;
}

.donate-cta {
  background: gold;
  color: #2d1f00;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  margin: 10px;
  background: linear-gradient(45deg, #ff512f, #dd2476);
  color: white;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 5px 12px rgba(255,80,0,0.3);
  text-decoration: none;
  font-size: 16px;
}

.btn:active {
  transform: scale(0.96);
}

.secondary-btn {
  background: linear-gradient(45deg, #2d6a4f, #1b4d3e);
}

.view-all-btn {
  background: transparent;
  border: 2px solid #b3412e;
  color: #b3412e;
  box-shadow: none;
}

/* Contact Preview */
.contact-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.contact-info p {
  margin: 10px 0;
  font-size: 16px;
}

.contact-info i {
  color: #b3412e;
  width: 30px;
}

/* Footer */
footer {
  background: #251008;
  color: #e2c7b3;
  padding: 40px 20px 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-section h3, .footer-section h4 {
  color: #f3a446;
  margin-bottom: 15px;
}

.footer-section a {
  color: #e2c7b3;
  text-decoration: none;
  display: block;
  margin: 8px 0;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s;
}

.social-links a:hover {
  background: #b3412e;
  color: white;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  margin-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* WhatsApp Button */
.whatsapp {
  position: fixed;
  bottom: 20px;
  right: 15px;
  background: #25D366;
  color: white;
  padding: 14px;
  border-radius: 50%;
  font-size: 28px;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(0,0,0,0.25);
  z-index: 999;
  animation: bounce 2s infinite;
}

/* Loading Spinner */
.loading-spinner {
  text-align: center;
  padding: 40px;
  color: #b3412e;
}

.loading-spinner i {
  font-size: 30px;
  margin-right: 10px;
}

/* Error Message */
.error-message {
  background: #fee;
  color: #c00;
  padding: 15px;
  border-radius: 10px;
  margin: 20px 0;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .hero-stats {
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 300px;
  }
  
  .cta-features {
    flex-direction: column;
    align-items: center;
  }
  
  .donation-impact {
    flex-direction: column;
    gap: 15px;
  }
  
  .bearers-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .social-links {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .logo-area h2 {
    font-size: 0.85rem;
    max-width: 140px;
  }
  
  .lang-option {
    padding: 3px 5px;
    font-size: 11px;
  }
  
  .dropdown-content {
    min-width: 180px;
    max-height: calc(100vh - 76px);
  }
  
  .dropdown-content a {
    padding: 12px;
    font-size: 14px;
  }
  
  .btn {
    padding: 10px 20px;
    font-size: 14px;
    min-width: 140px;
  }
  
  .stat-number {
    font-size: 22px;
  }
}
