/* ==========================================================================
   MODERN MADARSA ISLAMIA SAMITI - MAIN STYLESHEET
   Aesthetic: Regal Islamic Emerald Green, Radiant Gold, Warm Ivory
   Responsive, Mobile-First, Highly Polished UI
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Amiri:ital,wght@0,400;0,700;1,400;1,700&family=Outfit:wght@300;400;500;600;700;800&family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
  --primary-emerald: #0b4632;
  --primary-dark: #072e21;
  --primary-light: #126347;
  --accent-gold: #c99738;
  --accent-gold-light: #e5b968;
  --accent-gold-hover: #b5832a;
  --accent-gold-bg: #fff8eb;
  
  --bg-cream: #faf8f5;
  --bg-card: #ffffff;
  --bg-dark: #092017;
  --bg-subtle: #f3f6f4;
  
  --text-dark: #1b2824;
  --text-muted: #5a6e66;
  --text-light: #ffffff;
  --text-gold: #d4af37;
  
  --border-subtle: rgba(11, 70, 50, 0.12);
  --border-gold: rgba(201, 151, 56, 0.35);
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 24px rgba(11, 70, 50, 0.08);
  --shadow-lg: 0 16px 40px rgba(11, 70, 50, 0.14);
  --shadow-gold: 0 8px 25px rgba(201, 151, 56, 0.3);
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --font-sans: 'Outfit', 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-arabic: 'Amiri', 'Traditional Arabic', serif;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-cream);
  color: var(--text-dark);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

ul {
  list-style: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* Typography Helpers */
.font-arabic {
  font-family: var(--font-arabic);
}

.text-gold {
  color: var(--accent-gold) !important;
}

.text-emerald {
  color: var(--primary-emerald) !important;
}

/* Top Announcement Bar */
.top-bar {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.85rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(201, 151, 56, 0.25);
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.top-bar-bismillah {
  font-family: var(--font-arabic);
  font-size: 1.15rem;
  color: var(--accent-gold-light);
  letter-spacing: 0.5px;
}

.top-bar-contact {
  display: flex;
  align-items: center;
  gap: 20px;
}

.top-bar-contact a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.85);
}

.top-bar-contact a:hover {
  color: var(--accent-gold-light);
}

/* Navigation Header */
.main-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border-bottom: 2px solid rgba(201, 151, 56, 0.2);
  transition: var(--transition);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  max-width: 1280px;
  margin: 0 auto;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-gold);
  box-shadow: 0 3px 10px rgba(201, 151, 56, 0.35);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary-emerald);
  letter-spacing: 0.3px;
  line-height: 1.2;
  text-transform: uppercase;
}

.brand-subtitle {
  font-size: 0.76rem;
  color: var(--accent-gold-hover);
  font-weight: 600;
  letter-spacing: 0.2px;
}

.brand-address {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
  padding: 8px 4px;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent-gold);
  transition: var(--transition);
  transform: translateX(-50%);
}

.nav-link:hover, .nav-link.active {
  color: var(--primary-emerald);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-cta-btn {
  background: linear-gradient(135deg, var(--accent-gold), #b38226);
  color: #fff !important;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(201, 151, 56, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.4);
  transition: var(--transition);
}

.nav-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201, 151, 56, 0.5);
  background: linear-gradient(135deg, #d8a644, #c99738);
}

/* Mobile Nav Toggle & Close Buttons */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--primary-emerald);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 6px;
}

.nav-close-btn {
  display: none;
}

/* Hero Carousel Section */
.hero-slider-section {
  position: relative;
  background: var(--bg-dark);
  overflow: hidden;
}

.slider-container {
  position: relative;
  width: 100%;
  min-height: 520px;
  height: 70vh;
  max-height: 640px;
  overflow: hidden;
}

.slider-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
  display: flex;
  align-items: center;
}

.slider-slide.active {
  opacity: 1;
  visibility: visible;
}

.slider-bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 7s ease-out;
}

.slider-slide.active .slider-bg-img {
  transform: scale(1);
}

.slider-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg, 
    rgba(7, 46, 33, 0.92) 0%, 
    rgba(7, 46, 33, 0.82) 45%, 
    rgba(7, 46, 33, 0.45) 100%
  );
}

.slider-content {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 680px;
  padding: 40px 20px;
}

.slider-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201, 151, 56, 0.2);
  color: var(--accent-gold-light);
  border: 1px solid var(--border-gold);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 16px;
  backdrop-filter: blur(5px);
}

.slider-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.18;
  margin-bottom: 16px;
  color: #ffffff;
}

.slider-title span {
  color: var(--accent-gold-light);
}

.slider-desc {
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 26px;
}

.slider-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* Slider Controls */
.slider-prev, .slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  backdrop-filter: blur(5px);
}

.slider-prev:hover, .slider-next:hover {
  background: var(--accent-gold);
  border-color: var(--accent-gold);
}

.slider-prev { left: 24px; }
.slider-next { right: 24px; }

.slider-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.slider-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
}

.slider-dot.active {
  background: var(--accent-gold);
  transform: scale(1.2);
  border-color: #fff;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-gold), #b38226);
  color: #fff;
  box-shadow: 0 4px 15px rgba(201, 151, 56, 0.4);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #d8a644, #c99738);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201, 151, 56, 0.5);
  color: #fff;
}

.btn-outline-white {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
  backdrop-filter: blur(5px);
}

.btn-outline-white:hover {
  background: #fff;
  color: var(--primary-emerald);
}

.btn-emerald {
  background: var(--primary-emerald);
  color: #fff;
  box-shadow: 0 4px 14px rgba(11, 70, 50, 0.25);
}

.btn-emerald:hover {
  background: var(--primary-dark);
  color: #fff;
  transform: translateY(-2px);
}

.btn-outline-emerald {
  background: transparent;
  border-color: var(--primary-emerald);
  color: var(--primary-emerald);
}

.btn-outline-emerald:hover {
  background: var(--primary-emerald);
  color: #fff;
}

/* Quranic Verse Banner & Cards */
.quran-verse-card {
  background: linear-gradient(145deg, #0e3d2c, #072318);
  border: 2px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.quran-verse-card::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(201, 151, 56, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.quran-verse-badge {
  display: inline-block;
  background: rgba(201, 151, 56, 0.15);
  color: var(--accent-gold-light);
  border: 1px solid var(--border-gold);
  padding: 4px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.quran-arabic-text {
  font-family: var(--font-arabic);
  font-size: clamp(1.4rem, 2.6vw, 2.1rem);
  line-height: 2.2;
  color: #ffffff;
  margin-bottom: 18px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  letter-spacing: 0.5px;
}

.quran-divider {
  color: var(--accent-gold);
  font-size: 1.1rem;
  margin: 12px 0 16px;
  letter-spacing: 6px;
}

.quran-english-text {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.92);
  max-width: 820px;
  margin: 0 auto;
  font-style: italic;
}

.quran-urdu-text {
  font-family: var(--font-arabic), serif;
  font-size: 1.15rem;
  line-height: 1.9;
  color: var(--accent-gold-light);
  max-width: 800px;
  margin: 14px auto 0;
}

/* Section Common Styling */
.section {
  padding: 70px 0;
}

.section-subtle {
  background-color: var(--bg-subtle);
}

.section-emerald {
  background: linear-gradient(135deg, var(--primary-emerald), var(--primary-dark));
  color: #fff;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 50px;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-gold-bg);
  color: var(--accent-gold-hover);
  border: 1px solid var(--border-gold);
  padding: 5px 16px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 12px;
}

.section-emerald .section-badge {
  background: rgba(201, 151, 56, 0.18);
  color: var(--accent-gold-light);
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--primary-emerald);
  line-height: 1.25;
  margin-bottom: 14px;
}

.section-emerald .section-title {
  color: #fff;
}

.section-desc {
  font-size: 1.02rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.section-emerald .section-desc {
  color: rgba(255, 255, 255, 0.85);
}

/* Feature & Service Cards */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

.service-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 30px 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-subtle);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-gold);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-emerald), var(--accent-gold));
  opacity: 0;
  transition: var(--transition);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: var(--accent-gold-bg);
  border: 1px solid var(--border-gold);
  color: var(--accent-gold-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  margin-bottom: 20px;
  transition: var(--transition);
}

.service-card:hover .service-icon-wrap {
  background: var(--primary-emerald);
  color: #fff;
  transform: scale(1.05);
}

.service-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 12px;
}

.service-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.service-link {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--primary-emerald);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.service-link:hover {
  color: var(--accent-gold-hover);
  gap: 10px;
}

/* Impact Counters */
.counter-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  background: #fff;
  padding: 40px 30px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-subtle);
  margin-top: -50px;
  position: relative;
  z-index: 20;
}

.counter-item {
  text-align: center;
  padding: 10px;
}

.counter-icon {
  font-size: 2rem;
  color: var(--accent-gold);
  margin-bottom: 10px;
}

.counter-number {
  font-size: 2.3rem;
  font-weight: 800;
  color: var(--primary-emerald);
  line-height: 1.1;
  margin-bottom: 6px;
}

.counter-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* Gallery Grid */
.gallery-filter-bar {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 35px;
}

.gallery-filter-btn {
  background: #fff;
  border: 1px solid var(--border-subtle);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.gallery-filter-btn:hover, .gallery-filter-btn.active {
  background: var(--primary-emerald);
  color: #fff;
  border-color: var(--primary-emerald);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  aspect-ratio: 16 / 10;
  cursor: pointer;
  background: #000;
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-img {
  transform: scale(1.08);
  opacity: 0.85;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 46, 33, 0.95), rgba(7, 46, 33, 0.2));
  opacity: 0;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  color: #fff;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.gallery-tag {
  font-size: 0.78rem;
  color: var(--accent-gold-light);
  font-weight: 600;
  text-transform: uppercase;
}

/* Lightbox Modal */
.lightbox-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.9);
  padding: 30px;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
}

.lightbox-modal.active {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 900px;
  max-height: 90vh;
}

.lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}

.lightbox-caption {
  color: #fff;
  text-align: center;
  margin-top: 14px;
  font-weight: 600;
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
}

/* Donation Page & Interactive Form */
.donation-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: start;
}

.donation-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-gold);
}

.form-group {
  margin-bottom: 22px;
}

.form-label {
  display: block;
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 8px;
  color: var(--primary-dark);
}

.form-label .optional {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-muted);
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  transition: var(--transition);
  background: #fafbfc;
  color: var(--text-dark);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-gold);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(201, 151, 56, 0.15);
}

/* Quick Amount Selector Chips */
.amount-presets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 14px;
}

.amount-chip {
  background: #f8faf8;
  border: 1.5px solid rgba(11, 70, 50, 0.15);
  padding: 12px 10px;
  text-align: center;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 1rem;
  color: var(--primary-emerald);
  cursor: pointer;
  transition: var(--transition);
}

.amount-chip:hover, .amount-chip.active {
  background: var(--primary-emerald);
  color: #fff;
  border-color: var(--primary-emerald);
  box-shadow: 0 4px 12px rgba(11, 70, 50, 0.2);
}

/* Payment Gateway Selector */
.gateway-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 24px;
}

.gateway-card {
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 14px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
}

.gateway-card.selected {
  border-color: var(--accent-gold);
  background: var(--accent-gold-bg);
  box-shadow: 0 4px 15px rgba(201, 151, 56, 0.2);
}

.gateway-card input[type="radio"] {
  accent-color: var(--accent-gold);
  width: 18px;
  height: 18px;
}

.gateway-icon {
  font-size: 1.4rem;
  color: var(--primary-emerald);
}

.gateway-info h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.gateway-info p {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Bank Details Box */
.bank-details-box {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 26px;
  border: 1.5px dashed var(--accent-gold);
  margin-bottom: 24px;
}

.bank-detail-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 0.92rem;
}

.bank-detail-row:last-child {
  border-bottom: none;
}

.bank-detail-label {
  font-weight: 600;
  color: var(--text-muted);
}

.bank-detail-value {
  font-weight: 700;
  color: var(--primary-emerald);
  text-align: right;
  user-select: all;
}

/* QR Code Section */
.upi-qr-card {
  text-align: center;
  padding: 24px;
  background: linear-gradient(135deg, #fdfbf7, #f6f2e9);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  margin-bottom: 24px;
}

.upi-qr-box {
  background: #fff;
  padding: 16px;
  border-radius: var(--radius-md);
  display: inline-block;
  box-shadow: var(--shadow-sm);
  margin: 14px 0;
  border: 2px solid var(--accent-gold);
}

.upi-qr-box img {
  width: 190px;
  height: 190px;
  object-fit: contain;
}

/* Footer */
.main-footer {
  background: var(--bg-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 70px 0 25px;
  position: relative;
  border-top: 4px solid var(--accent-gold);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: 36px;
  margin-bottom: 50px;
}

.footer-widget-title {
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-widget-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--accent-gold);
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-links a:hover {
  color: var(--accent-gold-light);
  transform: translateX(4px);
}

.footer-contact-item {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.8);
}

.footer-contact-icon {
  color: var(--accent-gold-light);
  font-size: 1.1rem;
  margin-top: 2px;
}

.footer-bottom {
  padding-top: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
}

.footer-legal-links {
  display: flex;
  gap: 20px;
}

.footer-legal-links a:hover {
  color: var(--accent-gold-light);
}

/* Floating WhatsApp & Donate Button */
.floating-whatsapp {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 999;
  background: #25d366;
  color: #fff;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  transition: var(--transition);
}

.floating-whatsapp:hover {
  transform: scale(1.1);
  color: #fff;
}

.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  background: var(--primary-emerald);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  border: 1px solid var(--border-gold);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--accent-gold);
}

/* Page Banner (Inner Pages) */
.page-hero-banner {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-emerald) 100%);
  padding: 60px 0;
  color: #fff;
  position: relative;
  text-align: center;
  border-bottom: 3px solid var(--accent-gold);
}

.page-hero-title {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 10px;
}

.breadcrumb-trail {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
}

.breadcrumb-trail a {
  color: var(--accent-gold-light);
}

/* Social Media Styles */
.top-bar-social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 10px;
  padding-left: 14px;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.top-bar-social a {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.9);
  transition: var(--transition);
}

.top-bar-social a:hover {
  background: var(--accent-gold);
  color: #fff;
  transform: translateY(-2px);
}

.footer-social-links {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 14px;
}

.social-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  transition: var(--transition);
}

.social-icon-btn:hover {
  transform: translateY(-3px);
  color: #fff;
}

.social-icon-btn.fb:hover {
  background: #1877f2;
  border-color: #1877f2;
  box-shadow: 0 4px 12px rgba(24, 119, 242, 0.4);
}

.social-icon-btn.insta:hover {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
  border-color: #d6249f;
  box-shadow: 0 4px 12px rgba(214, 36, 159, 0.4);
}

.social-icon-btn.wa:hover {
  background: #25d366;
  border-color: #25d366;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

.btn-social-contact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
  transition: var(--transition);
}

.btn-social-contact.fb {
  background: #1877f2;
}

.btn-social-contact.fb:hover {
  background: #1464cc;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(24, 119, 242, 0.35);
  color: #fff;
}

.btn-social-contact.insta {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.btn-social-contact.insta:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(220, 39, 67, 0.35);
  filter: brightness(1.08);
  color: #fff;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .donation-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 868px) {
  .mobile-nav-toggle {
    display: block;
  }
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 290px;
    height: 100vh;
    background: #ffffff;
    flex-direction: column;
    align-items: flex-start;
    padding: 70px 24px 30px;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
    transition: right 0.4s ease-in-out;
    z-index: 1001;
  }
  .nav-links.active {
    right: 0;
  }
  .nav-link {
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  }
  .nav-close-btn {
    display: block;
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.5rem;
    color: var(--primary-dark);
    background: none;
    border: none;
    cursor: pointer;
  }
  .top-bar-contact {
    display: none;
  }
  .top-bar-inner {
    justify-content: center;
  }
  .slider-container {
    min-height: 480px;
    height: auto;
  }
  .slider-prev, .slider-next {
    display: none;
  }
  .counter-strip {
    margin-top: 0;
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .brand-title {
    font-size: 0.95rem;
  }
  .brand-subtitle {
    font-size: 0.68rem;
  }
  .brand-logo {
    width: 46px;
    height: 46px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .gateway-options {
    grid-template-columns: 1fr;
  }
  .amount-presets {
    grid-template-columns: repeat(2, 1fr);
  }
  .counter-strip {
    grid-template-columns: 1fr;
  }
  .section {
    padding: 45px 0;
  }
}
