/* ===== VARIABLES ===== */
:root {
  --primary: hsl(16, 90%, 50%);
  --primary-dark: hsl(16, 90%, 38%);
  --accent: hsl(42, 95%, 55%);
  --dark: hsl(220, 25%, 10%);
  --dark-2: hsl(220, 20%, 15%);
  --dark-3: hsl(220, 18%, 20%);
  --text: hsl(220, 15%, 20%);
  --text-muted: hsl(220, 10%, 50%);
  --white: #ffffff;
  --light-bg: hsl(30, 40%, 97%);
  --border: hsl(220, 15%, 88%);
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.14);
  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: 'Inter', sans-serif; color: var(--text); background: var(--white); line-height: 1.6; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
input, textarea, select, button { font-family: inherit; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===== BUTTONS ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 28px; border-radius: 50px; font-weight: 600; font-size: 0.95rem; cursor: pointer; border: 2px solid transparent; transition: var(--transition); white-space: nowrap; }
.btn-donate-header { background: var(--primary); color: var(--white); box-shadow: 0 4px 16px hsla(16,90%,50%,0.35); }
.btn-donate-header:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 8px 24px hsla(16,90%,50%,0.45); }
.btn-primary-hero { background: var(--primary); color: var(--white); font-size: 1.05rem; padding: 16px 36px; box-shadow: 0 6px 24px hsla(16,90%,50%,0.4); }
.btn-primary-hero:hover { background: var(--primary-dark); transform: translateY(-3px); box-shadow: 0 12px 32px hsla(16,90%,50%,0.5); }
.btn-outline-hero { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.7); font-size: 1.05rem; padding: 16px 36px; }
.btn-outline-hero:hover { background: rgba(255,255,255,0.15); border-color: var(--white); transform: translateY(-3px); }
.btn-donate-main { background: linear-gradient(135deg, var(--primary), hsl(16,90%,42%)); color: var(--white); width: 100%; font-size: 1.05rem; padding: 16px; box-shadow: 0 6px 20px hsla(16,90%,50%,0.35); margin-top: 8px; border-radius: var(--radius); }
.btn-donate-main:hover { transform: translateY(-2px); box-shadow: 0 10px 28px hsla(16,90%,50%,0.5); }
.btn-submit { background: var(--primary); color: var(--white); width: 100%; padding: 15px; border-radius: var(--radius); font-size: 1rem; box-shadow: 0 4px 16px hsla(16,90%,50%,0.3); }
.btn-submit:hover { background: var(--primary-dark); transform: translateY(-2px); }
.btn-donate-footer { background: var(--primary); color: var(--white); width: 100%; padding: 15px; border-radius: var(--radius); margin-bottom: 16px; justify-content: center; }
.btn-donate-footer:hover { background: var(--primary-dark); transform: translateY(-2px); }
.btn-donate-widget { background: var(--primary); color: var(--white); width: 100%; justify-content: center; padding: 12px; border-radius: var(--radius); margin-top: 10px; font-size: 0.9rem; }
.btn-donate-widget:hover { background: var(--primary-dark); }
.btn-razorpay { background: hsl(200,80%,40%); color: var(--white); width: 100%; padding: 15px; border-radius: var(--radius); font-size: 1rem; justify-content: center; margin: 12px 0; }
.btn-razorpay:hover { background: hsl(200,80%,32%); transform: translateY(-2px); }

/* ===== SECTION LABELS ===== */
.section-label { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.15em; color: var(--primary); text-transform: uppercase; margin-bottom: 12px; }
.section-title { font-family: 'Playfair Display', serif; font-size: clamp(1.8rem, 3.5vw, 2.6rem); color: var(--dark); line-height: 1.25; margin-bottom: 16px; text-align: center; }
.section-subtitle { color: var(--text-muted); font-size: 1.05rem; text-align: center; max-width: 600px; margin: 0 auto 48px; }

/* ===== ANIMATIONS ===== */
@keyframes fadeUp { from { opacity:0; transform:translateY(30px); } to { opacity:1; transform:translateY(0); } }
@keyframes bounceArrow { 0%,100%{transform:translateY(0) rotate(45deg);} 50%{transform:translateY(8px) rotate(45deg);} }
@keyframes pulse { 0%,100%{transform:scale(1);} 50%{transform:scale(1.05);} }
@keyframes shimmer { 0%{background-position:-200% 0;} 100%{background-position:200% 0;} }
.animate-fadeup { opacity:0; animation: fadeUp 0.7s ease forwards; animation-delay: var(--delay, 0s); }
.animate-on-scroll { opacity:0; transform:translateY(28px); transition: opacity 0.65s ease, transform 0.65s ease; transition-delay: var(--delay, 0s); }
.animate-on-scroll.in-view { opacity:1; transform:translateY(0); }

/* ===== STICKY HEADER ===== */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: transparent; will-change: transform; transition: background 0.35s ease, box-shadow 0.35s ease, transform 0.3s ease; }
.site-header.scrolled { background: rgba(10,12,20,0.96); backdrop-filter: blur(16px); box-shadow: 0 2px 24px rgba(0,0,0,0.25); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.site-header.scrolled .header-inner { height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-icon { width: 40px; height: 40px; background: var(--primary); color: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; animation: pulse 2.5s ease infinite; }
.logo-name { font-weight: 800; font-size: 1.2rem; color: var(--white); display: block; line-height: 1.1; }
.logo-tagline { font-size: 0.68rem; color: rgba(255,255,255,0.65); display: block; font-weight: 400; }
.main-nav { display: flex; }
.nav-list { display: flex; gap: 4px; align-items: center; }
.nav-link { padding: 8px 14px; color: rgba(255,255,255,0.88); font-weight: 500; font-size: 0.9rem; border-radius: 8px; transition: var(--transition); }
.nav-link:hover { color: var(--white); background: rgba(255,255,255,0.1); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: var(--transition); }
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-nav { display: none; background: rgba(10,12,20,0.97); backdrop-filter: blur(16px); border-top: 1px solid rgba(255,255,255,0.08); }
.mobile-nav ul { padding: 16px 24px 24px; display: flex; flex-direction: column; gap: 4px; }
.mobile-nav-link { display: block; padding: 12px 16px; color: rgba(255,255,255,0.85); font-weight: 500; border-radius: 8px; }
.mobile-nav-link:hover { background: rgba(255,255,255,0.08); color: var(--white); }
.btn-donate-mobile { display: block; text-align: center; background: var(--primary); color: var(--white); border-radius: 50px; padding: 13px 24px; margin-top: 8px; font-weight: 600; }
.mobile-nav.open { display: block; }

/* ===== HERO ===== */
.hero-section { position: relative; min-height: 100vh; display: flex; align-items: center; background: #0a0a12; overflow: hidden; }
.hero-overlay { position: absolute; inset: 0; z-index: 1; background: linear-gradient(135deg, rgba(8,10,18,0.82) 0%, rgba(20,10,5,0.72) 60%, rgba(180,60,10,0.35) 100%); }
.hero-content { position: relative; z-index: 2; padding-top: 80px; padding-bottom: 60px; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.12); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,0.2); color: rgba(255,255,255,0.9); font-size: 0.82rem; font-weight: 600; letter-spacing: 0.05em; padding: 8px 18px; border-radius: 50px; margin-bottom: 24px; }
.badge-dot { width: 8px; height: 8px; background: var(--accent); border-radius: 50%; animation: pulse 1.5s ease infinite; }
.hero-title { font-family: 'Playfair Display', serif; font-size: clamp(2.4rem, 6vw, 4.2rem); color: var(--white); line-height: 1.15; margin-bottom: 20px; max-width: 700px; }
.hero-title em { color: var(--accent); font-style: italic; }
.hero-subtitle { color: rgba(255,255,255,0.82); font-size: clamp(1rem, 1.8vw, 1.15rem); max-width: 580px; margin-bottom: 36px; line-height: 1.7; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 56px; }
.hero-stats { display: flex; align-items: center; gap: 0; background: rgba(255,255,255,0.1); backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,0.15); border-radius: var(--radius-lg); padding: 20px 32px; width: fit-content; }
.hero-stat { text-align: center; padding: 0 28px; }
.hero-stat strong { display: block; font-size: 1.8rem; font-weight: 800; color: var(--white); }
.hero-stat span { font-size: 0.82rem; color: rgba(255,255,255,0.7); font-weight: 400; }
.hero-stat-divider { width: 1px; height: 44px; background: rgba(255,255,255,0.2); }
.hero-scroll-hint { position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%); z-index: 2; }
.scroll-arrow { width: 18px; height: 18px; border-right: 2px solid rgba(255,255,255,0.6); border-bottom: 2px solid rgba(255,255,255,0.6); transform: rotate(45deg); animation: bounceArrow 1.6s ease infinite; }

/* ===== URGENT CAUSE ===== */
.urgent-cause-section { padding: 80px 0; background: var(--light-bg); }
.urgent-cause-section .section-label, .urgent-cause-section .section-title { text-align: center; }
.urgent-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; margin-top: 48px; }
.urgent-image-wrap { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.urgent-img { width: 100%; height: 420px; object-fit: cover; transition: transform 0.5s ease; }
.urgent-image-wrap:hover .urgent-img { transform: scale(1.04); }
.urgent-badge-overlay { position: absolute; top: 16px; left: 16px; background: var(--primary); color: var(--white); font-size: 0.82rem; font-weight: 700; padding: 6px 14px; border-radius: 50px; }
.urgent-panel { background: var(--white); border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow); }
.urgent-category { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; color: var(--primary); text-transform: uppercase; margin-bottom: 10px; }
.urgent-heading { font-family: 'Playfair Display', serif; font-size: 1.6rem; color: var(--dark); line-height: 1.3; margin-bottom: 14px; }
.urgent-desc { color: var(--text-muted); font-size: 0.95rem; line-height: 1.7; margin-bottom: 24px; }
.progress-section { margin-bottom: 24px; }
.progress-amounts { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 0.88rem; font-weight: 600; }
.raised { color: var(--primary); }
.goal { color: var(--text-muted); }
.progress-bar-track { height: 10px; background: var(--border); border-radius: 50px; overflow: hidden; }
.progress-bar-fill { height: 100%; background: linear-gradient(90deg, var(--primary), var(--accent)); border-radius: 50px; width: 0; transition: width 1.2s cubic-bezier(0.4,0,0.2,1); }
.progress-meta { display: flex; justify-content: space-between; font-size: 0.78rem; color: var(--text-muted); margin-top: 6px; }
.donate-quick-label { font-size: 0.82rem; font-weight: 600; color: var(--text-muted); margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.08em; }
.donate-quick-buttons { display: flex; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.donate-amount-btn { flex: 1; min-width: 70px; padding: 12px 8px; border: 2px solid var(--border); background: var(--white); color: var(--text); font-weight: 700; font-size: 0.95rem; border-radius: var(--radius); cursor: pointer; transition: var(--transition); }
.donate-amount-btn:hover { border-color: var(--primary); color: var(--primary); }
.donate-amount-btn.active { background: var(--primary); border-color: var(--primary); color: var(--white); }
.custom-btn { background: var(--light-bg); border-style: dashed; }
.custom-amount-wrap { display: none; align-items: center; border: 2px solid var(--primary); border-radius: var(--radius); overflow: hidden; margin-bottom: 12px; }
.custom-amount-wrap.visible { display: flex; }
.rupee-sign { padding: 0 14px; color: var(--primary); font-weight: 700; font-size: 1.1rem; }
.custom-amount-wrap input { flex: 1; padding: 12px 12px 12px 0; border: none; outline: none; font-size: 1rem; color: var(--text); }
.donate-trust-badges { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.donate-trust-badges span { font-size: 0.75rem; color: var(--text-muted); font-weight: 500; }

/* ===== IMPACT ===== */
.impact-section { padding: 80px 0; background: var(--dark); position: relative; overflow: hidden; }
.impact-bg-pattern { position: absolute; inset: 0; background: radial-gradient(circle at 20% 50%, hsla(16,90%,50%,0.12) 0%, transparent 60%), radial-gradient(circle at 80% 50%, hsla(200,80%,50%,0.1) 0%, transparent 60%); }
.impact-section .section-label { text-align: center; }
.impact-section .section-title { text-align: center; }
.impact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 48px; position: relative; z-index: 1; }
.impact-card { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); backdrop-filter: blur(8px); border-radius: var(--radius-lg); padding: 36px 24px; text-align: center; transition: var(--transition); }
.impact-card:hover { background: rgba(255,255,255,0.09); transform: translateY(-6px); border-color: hsla(16,90%,50%,0.4); }
.impact-icon { font-size: 2.4rem; margin-bottom: 16px; }
.impact-number { font-size: 3rem; font-weight: 900; color: var(--white); line-height: 1; margin-bottom: 8px; background: linear-gradient(135deg, var(--white), var(--accent)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.impact-label { font-size: 0.88rem; color: rgba(255,255,255,0.65); font-weight: 500; }

/* ===== CAUSES ===== */
.causes-section { padding: 80px 0; background: var(--white); }
.causes-section .section-label, .causes-section .section-title { text-align: center; }
.causes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.cause-card { background: var(--white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border); transition: var(--transition); }
.cause-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.cause-img-wrap { position: relative; overflow: hidden; height: 220px; }
.cause-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.cause-card:hover .cause-img { transform: scale(1.06); }
.cause-category-tag { position: absolute; top: 14px; left: 14px; background: var(--primary); color: var(--white); font-size: 0.72rem; font-weight: 700; padding: 5px 12px; border-radius: 50px; letter-spacing: 0.06em; }
.cause-body { padding: 24px; }
.cause-title { font-family: 'Playfair Display', serif; font-size: 1.15rem; color: var(--dark); margin-bottom: 8px; }
.cause-excerpt { color: var(--text-muted); font-size: 0.88rem; line-height: 1.65; margin-bottom: 16px; }
.cause-progress-wrap { margin-bottom: 18px; }
.cause-progress-bar { height: 6px; background: var(--border); border-radius: 50px; overflow: hidden; margin-bottom: 6px; }
.cause-progress-fill { height: 100%; background: linear-gradient(90deg, var(--primary), var(--accent)); border-radius: 50px; width: 0; transition: width 1.2s ease; }
.cause-amounts { display: flex; justify-content: space-between; font-size: 0.78rem; color: var(--text-muted); font-weight: 500; }
.cause-donate-btn { display: block; text-align: center; background: var(--light-bg); color: var(--primary); font-weight: 700; font-size: 0.88rem; padding: 11px 20px; border-radius: var(--radius); border: 2px solid var(--primary); transition: var(--transition); }
.cause-donate-btn:hover { background: var(--primary); color: var(--white); }

/* ===== EVENTS ===== */
.events-section { padding: 80px 0; background: var(--light-bg); }
.events-section .section-label, .events-section .section-title { text-align: center; }
.timeline { margin-top: 48px; display: flex; flex-direction: column; gap: 20px; max-width: 780px; margin-left: auto; margin-right: auto; }
.timeline-item { display: flex; gap: 24px; align-items: flex-start; background: var(--white); border-radius: var(--radius-lg); padding: 24px 28px; box-shadow: var(--shadow); border-left: 4px solid var(--primary); transition: var(--transition); }
.timeline-item:hover { transform: translateX(6px); box-shadow: var(--shadow-lg); }
.timeline-date { min-width: 52px; text-align: center; }
.timeline-date strong { display: block; font-size: 2rem; font-weight: 900; color: var(--primary); line-height: 1; }
.timeline-date span { font-size: 0.78rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; }
.timeline-content { flex: 1; }
.timeline-tag { display: inline-block; background: var(--primary); color: var(--white); font-size: 0.68rem; font-weight: 700; padding: 3px 10px; border-radius: 50px; margin-bottom: 6px; letter-spacing: 0.06em; }
.timeline-content h4 { font-weight: 700; font-size: 1.05rem; color: var(--dark); margin-bottom: 4px; }
.timeline-content p { font-size: 0.88rem; color: var(--text-muted); }

/* ===== VOLUNTEER + CONTACT ===== */
.volunteer-section { padding: 80px 0; background: var(--white); }
.vol-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.vol-desc { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 28px; }
.vol-form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 0.82rem; font-weight: 600; color: var(--text); }
.form-group input, .form-group select, .form-group textarea { padding: 12px 16px; border: 2px solid var(--border); border-radius: var(--radius); font-size: 0.95rem; color: var(--text); background: var(--white); transition: var(--transition); outline: none; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px hsla(16,90%,50%,0.12); }
.form-success { background: hsl(150,70%,95%); border: 1px solid hsl(150,70%,60%); color: hsl(150,60%,30%); padding: 14px 20px; border-radius: var(--radius); font-weight: 600; margin-top: 16px; }
.contact-items { display: flex; flex-direction: column; gap: 20px; margin: 28px 0; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: 2px; }
.contact-item strong { display: block; font-size: 0.9rem; font-weight: 700; color: var(--dark); margin-bottom: 2px; }
.contact-item p, .contact-item a { font-size: 0.9rem; color: var(--text-muted); }
.contact-item a:hover { color: var(--primary); }
.sidebar-donate-widget { background: linear-gradient(135deg, var(--dark), var(--dark-2)); border-radius: var(--radius-lg); padding: 28px; color: var(--white); }
.widget-title { font-weight: 700; font-size: 1.05rem; margin-bottom: 8px; }
.sidebar-donate-widget p { font-size: 0.88rem; color: rgba(255,255,255,0.7); margin-bottom: 16px; }
.widget-quick-btns { display: flex; gap: 10px; margin-bottom: 0; }
.widget-amt-btn { flex: 1; padding: 11px 8px; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); color: var(--white); font-weight: 700; font-size: 0.9rem; border-radius: var(--radius); cursor: pointer; transition: var(--transition); }
.widget-amt-btn:hover { background: var(--primary); border-color: var(--primary); }

/* ===== FOOTER ===== */
.site-footer { background: var(--dark); color: rgba(255,255,255,0.8); }
.footer-top { padding: 64px 0 48px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr 1.2fr; gap: 40px; }
.footer-about { font-size: 0.88rem; color: rgba(255,255,255,0.6); line-height: 1.7; margin: 16px 0 20px; }
.footer-social { display: flex; gap: 10px; }
.social-btn { width: 36px; height: 36px; background: rgba(255,255,255,0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.85rem; font-weight: 700; transition: var(--transition); color: rgba(255,255,255,0.8); }
.social-btn:hover { background: var(--primary); color: var(--white); transform: translateY(-3px); }
.footer-col-title { font-weight: 700; font-size: 0.95rem; color: var(--white); margin-bottom: 18px; padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 0.88rem; color: rgba(255,255,255,0.6); transition: var(--transition); }
.footer-links a:hover { color: var(--accent); padding-left: 4px; }
.footer-trust-list { display: flex; flex-direction: column; gap: 14px; }
.footer-trust-list li { display: flex; align-items: flex-start; gap: 10px; }
.trust-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 1px; }
.footer-trust-list strong { display: block; font-size: 0.85rem; color: var(--white); font-weight: 600; }
.footer-trust-list small { font-size: 0.75rem; color: rgba(255,255,255,0.5); }
.footer-donate-text { font-size: 0.88rem; color: rgba(255,255,255,0.65); line-height: 1.65; margin-bottom: 18px; }
.footer-payment-logos { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.footer-payment-logos span { font-size: 0.72rem; font-weight: 700; background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.6); padding: 4px 10px; border-radius: 6px; border: 1px solid rgba(255,255,255,0.12); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 20px 0; }
.footer-bottom-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-size: 0.82rem; color: rgba(255,255,255,0.45); }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { font-size: 0.82rem; color: rgba(255,255,255,0.45); transition: color var(--transition); }
.footer-bottom-links a:hover { color: var(--accent); }
.footer-logo .logo-name { color: var(--white); }

/* ===== RAZORPAY MODAL ===== */
.rz-modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.65); backdrop-filter: blur(6px); z-index: 9999; display: none; place-items: center; }
.rz-modal-overlay.open { display: grid; }
.rz-modal { background: var(--white); border-radius: var(--radius-lg); padding: 40px 36px; max-width: 440px; width: 90%; position: relative; animation: fadeUp 0.3s ease; text-align: center; }
.rz-modal-close { position: absolute; top: 14px; right: 16px; background: none; border: none; font-size: 1.2rem; cursor: pointer; color: var(--text-muted); transition: color var(--transition); }
.rz-modal-close:hover { color: var(--primary); }
.rz-modal-logo { font-size: 1.3rem; font-weight: 800; color: var(--primary); margin-bottom: 6px; }
.rz-modal-title { font-family: 'Playfair Display', serif; font-size: 1.4rem; color: var(--dark); margin-bottom: 8px; }
.rz-modal-amount { font-size: 1rem; color: var(--text-muted); margin-bottom: 20px; }
.rz-modal-amount strong { color: var(--primary); font-size: 1.2rem; }
.rz-step-label { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 12px; }
.rz-note { font-size: 0.8rem; color: var(--text-muted); line-height: 1.6; margin-top: 12px; }
.rz-trust { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); }
.rz-trust span { font-size: 0.75rem; color: var(--text-muted); font-weight: 500; }

/* ===== FLOATING DONATE BTN ===== */
.floating-donate-btn { position: fixed; bottom: 24px; right: 24px; background: var(--primary); color: var(--white); font-weight: 700; font-size: 0.9rem; padding: 13px 22px; border-radius: 50px; box-shadow: 0 6px 24px hsla(16,90%,50%,0.45); z-index: 900; display: none; transition: var(--transition); }
.floating-donate-btn:hover { background: var(--primary-dark); transform: translateY(-3px); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .impact-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 768px) {
  .main-nav { display: none; }
  .hamburger { display: flex; }
  .btn-donate-header { display: none; }
  .urgent-grid { grid-template-columns: 1fr; }
  .vol-grid { grid-template-columns: 1fr; }
  .causes-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; gap: 16px; padding: 20px 24px; }
  .hero-stat-divider { width: 80px; height: 1px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }
  .floating-donate-btn { display: flex; }
  .widget-quick-btns { flex-direction: column; }
  .impact-grid { grid-template-columns: repeat(2,1fr); }
  .donate-quick-buttons { flex-wrap: wrap; }
}
@media (max-width: 480px) {
  .hero-title { font-size: 2rem; }
  .hero-buttons { flex-direction: column; }
  .btn-primary-hero, .btn-outline-hero { width: 100%; justify-content: center; }
  .urgent-panel { padding: 24px 20px; }
  .impact-grid { grid-template-columns: 1fr 1fr; }
}

/* ===== DANCING SCRIPT (section labels) ===== */
.section-label-script { font-family: 'Dancing Script', cursive; font-size: 1.35rem; color: hsl(170,65%,42%); margin-bottom: 10px; display: block; }

/* ===== TOP BAR ===== */
.top-bar { background: var(--dark); color: rgba(255,255,255,0.8); font-size: 0.78rem; padding: 8px 0; position: fixed; top: 0; left: 0; right: 0; z-index: 1001; will-change: transform; transition: transform 0.3s ease; }
.top-bar-inner { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:nowrap; overflow:hidden; }
.top-bar-left { display:flex; align-items:center; gap:6px; flex-wrap:nowrap; overflow:hidden; min-width:0; }
.top-bar-item, a.top-bar-item { white-space:nowrap; font-size:0.78rem; color:rgba(255,255,255,0.85); display:inline-flex; align-items:center; gap:5px; }
.top-bar-sep { color: rgba(255,255,255,0.3); }
.top-bar-right { display: flex; align-items: center; gap: 8px; }
.top-bar-update strong { color: var(--primary); margin-right: 4px; }
.top-bar-ticker { color: rgba(255,255,255,0.75); }
@media (max-width:768px) { .top-bar { display: none; } .site-header { top: 0; } }

/* ===== CAUSES BANNER (Premium Override) ===== */
.causes-banner { background: transparent; padding: 0 20px; margin-top: -70px; position: relative; z-index: 20; max-width: 1240px; margin-left: auto; margin-right: auto; }
.causes-banner-inner { display: grid; grid-template-columns: repeat(4,1fr); background: linear-gradient(135deg, #1e1e2d 0%, #151522 100%); border-radius: 16px; box-shadow: 0 24px 48px rgba(0,0,0,0.25); overflow: hidden; }
.causes-banner-card { padding: 36px 28px; border-right: 1px solid rgba(255,255,255,0.06); display: flex; flex-direction: column; gap: 8px; position: relative; overflow: hidden; transition: all 0.4s ease; text-decoration: none; }
.causes-banner-card:last-child { border-right: none; }
.causes-banner-card:hover { background: rgba(255,255,255,0.03); transform: translateY(-4px); }
.causes-banner-num { font-size: 4.5rem; font-weight: 900; color: rgba(255,255,255,0.02); line-height: 0.8; position: absolute; bottom: -5px; right: -5px; transition: all 0.4s ease; z-index: 0; }
.causes-banner-card:hover .causes-banner-num { color: rgba(255,255,255,0.05); transform: scale(1.1); }
.causes-banner-icon { font-size: 2.2rem; color: var(--primary); margin-bottom: 8px; transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); position: relative; z-index: 1; }
.causes-banner-card:hover .causes-banner-icon { transform: scale(1.15) rotate(-8deg); }
.causes-banner-sub { font-size: 0.72rem; font-weight: 600; color: rgba(255,255,255,0.6); text-transform: uppercase; letter-spacing: 0.12em; position: relative; z-index: 1; }
.causes-banner-text strong { display: block; font-size: 1.15rem; font-weight: 800; color: var(--white); line-height: 1.35; position: relative; z-index: 1; }
.causes-banner-link { font-size: 0.8rem; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 10px; transition: color 0.3s ease; position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 6px; }
.causes-banner-link:hover { color: var(--white); }
@media (max-width:992px) { 
  .causes-banner-inner { grid-template-columns: repeat(2, 1fr); }
  .causes-banner-card:nth-child(2) { border-right: none; }
  .causes-banner-card:nth-child(3), .causes-banner-card:nth-child(4) { border-top: 1px solid rgba(255,255,255,0.06); }
}
@media (max-width:480px) { 
  .causes-banner { margin-top: -40px; padding: 0 15px; }
  .causes-banner-card { padding: 24px 16px; }
  .causes-banner-icon { font-size: 1.8rem; margin-bottom: 4px; }
  .causes-banner-text strong { font-size: 0.95rem; }
  .causes-banner-num { font-size: 3.5rem; }
  .causes-banner-link { font-size: 0.7rem; }
}

/* ===== ABOUT SECTION ===== */
.about-section { padding: 90px 0; background: hsl(30,30%,97%); }
.about-grid { display: grid; grid-template-columns: 1fr 1.4fr 0.8fr; gap: 48px; align-items: center; }
.about-img-circle-wrap { position: relative; display: inline-block; }
.about-img-main { width: 340px; height: 380px; object-fit: cover; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; box-shadow: 0 20px 60px rgba(0,0,0,0.18); }
.about-img-badge { position: absolute; bottom: 20px; right: -16px; background: var(--primary); color: var(--white); border-radius: var(--radius-lg); padding: 14px 18px; text-align: center; box-shadow: var(--shadow-lg); }
.about-img-badge-num { display: block; font-size: 1.6rem; font-weight: 900; line-height: 1; }
.about-img-badge-text { font-size: 0.72rem; font-weight: 600; opacity: 0.9; }
.about-desc { color: var(--text-muted); font-size: 0.95rem; line-height: 1.75; margin-bottom: 14px; }
.about-benefits { display: flex; flex-direction: column; gap: 8px; margin: 18px 0 24px; }
.about-benefit { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; color: var(--text); font-weight: 500; }
.benefit-icon { width: 22px; height: 22px; background: var(--primary); color: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.65rem; flex-shrink: 0; }
.btn-about-cta { background: transparent; border: 2px solid var(--primary); color: var(--primary); padding: 12px 28px; border-radius: 50px; font-weight: 700; transition: var(--transition); }
.btn-about-cta:hover { background: var(--primary); color: var(--white); transform: translateY(-2px); }
.about-stats-col { display: flex; flex-direction: column; gap: 16px; }
.about-stat-card { background: var(--white); border-radius: var(--radius-lg); padding: 24px 20px; text-align: center; box-shadow: var(--shadow); border-bottom: 3px solid var(--primary); transition: var(--transition); }
.about-stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.about-stat-icon { font-size: 1.8rem; margin-bottom: 8px; }
.about-stat-num { font-size: 2.2rem; font-weight: 900; color: var(--primary); line-height: 1; margin-bottom: 4px; }
.about-stat-label { font-size: 0.78rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
@media (max-width:1024px) { .about-grid { grid-template-columns: 1fr 1fr; } .about-image-col { grid-row: span 1; } .about-stats-col { grid-column: span 2; flex-direction: row; } }
@media (max-width:768px) { .about-grid { grid-template-columns: 1fr; } .about-img-main { width: 100%; max-width: 320px; height: 280px; } .about-stats-col { grid-column: span 1; } }

/* ===== EVENTS GRID (PureHearts-inspired cards) ===== */
.events-section { padding: 80px 0; background: hsl(30,30%,97%); }
.events-section .section-label, .events-section .section-title { text-align: center; }
.events-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; margin-top: 48px; }
.event-card { background: var(--white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); transition: var(--transition); }
.event-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.event-img-wrap { position: relative; height: 190px; overflow: hidden; }
.event-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.event-card:hover .event-img { transform: scale(1.06); }
.event-date-badge { position: absolute; bottom: -1px; left: 20px; background: var(--primary); color: var(--white); border-radius: var(--radius) var(--radius) 0 0; padding: 8px 14px; text-align: center; min-width: 56px; }
.event-date-badge strong { display: block; font-size: 1.4rem; font-weight: 900; line-height: 1; }
.event-date-badge span { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; }
.event-body { padding: 20px 22px 24px; }
.event-meta { display: flex; gap: 14px; font-size: 0.78rem; color: hsl(170,65%,40%); font-weight: 600; margin-bottom: 8px; flex-wrap: wrap; }
.event-title { font-weight: 700; font-size: 1.05rem; color: var(--dark); margin-bottom: 6px; }
.event-desc { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 14px; }
.event-link { font-size: 0.82rem; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: 0.06em; transition: color var(--transition); }
.event-link:hover { color: var(--primary-dark); }
@media (max-width:768px) { .events-grid { grid-template-columns: 1fr; } }

/* ===== NEWSLETTER BAR ===== */
.newsletter-bar { background: var(--white); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 28px 0; }
.newsletter-inner { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.newsletter-logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.newsletter-logo .logo-name { color: var(--dark); }
.newsletter-logo .logo-tagline { color: var(--text-muted); }
.newsletter-content { display: flex; align-items: center; gap: 14px; flex: 1; min-width: 200px; }
.newsletter-icon { font-size: 1.8rem; flex-shrink: 0; }
.newsletter-content strong { display: block; font-size: 1rem; color: var(--dark); font-weight: 700; }
.newsletter-content p { font-size: 0.82rem; color: var(--text-muted); }
.newsletter-form { display: flex; gap: 8px; flex: 1; min-width: 260px; }
.newsletter-form input { flex: 1; padding: 11px 16px; border: 2px solid var(--border); border-radius: 50px; font-size: 0.9rem; outline: none; transition: border-color var(--transition); }
.newsletter-form input:focus { border-color: var(--primary); }
.btn-newsletter { background: var(--primary); color: var(--white); padding: 11px 22px; border-radius: 50px; font-weight: 700; font-size: 0.88rem; border: none; cursor: pointer; white-space: nowrap; transition: var(--transition); }
.btn-newsletter:hover { background: var(--primary-dark); transform: translateY(-1px); }
.newsletter-social { display: flex; gap: 8px; flex-shrink: 0; }
@media (max-width:768px) { .newsletter-inner { flex-direction: column; align-items: flex-start; } .newsletter-form { width: 100%; } }

/* ===== SOCIAL ICON BRAND COLORS ===== */
.social-btn { font-size: 0.95rem; }
.social-btn i { line-height: 1; }
.social-btn.social-fb:hover  { background: #1877F2; color: #fff; border-color: #1877F2; }
.social-btn.social-tw:hover  { background: #000000; color: #fff; border-color: #000; }
.social-btn.social-ig:hover  { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); color: #fff; border-color: transparent; }
.social-btn.social-yt:hover  { background: #FF0000; color: #fff; border-color: #FF0000; }
.social-btn.social-li:hover  { background: #0A66C2; color: #fff; border-color: #0A66C2; }

/* ============================================================
   COMPREHENSIVE ICON & VISIBILITY FIXES — v1.1
   ============================================================ */

/* ---- Top Bar: FA icon color & spacing ---- */
.top-bar-item i { color: var(--primary); margin-right: 4px; font-size: 0.78rem; }
.top-bar-update i { color: var(--primary); margin-right: 4px; }

/* ---- Causes Banner: FA icons on dark bg ---- */
.causes-banner-icon { font-size: 2rem; color: var(--accent); margin-bottom: 6px; line-height: 1; }
.causes-banner-icon i { font-size: 1.8rem; color: var(--accent); }

/* ---- About Section: stat icons & benefit icons ---- */
.about-stat-icon { font-size: 1.8rem; color: var(--primary); margin-bottom: 8px; }
.about-stat-icon i { font-size: 1.6rem; color: var(--primary); }
.benefit-icon { background: var(--primary); color: var(--white); width: 20px; height: 20px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 0.6rem; flex-shrink: 0; }
.benefit-icon i { font-size: 0.58rem; color: var(--white); }

/* ---- Urgent Cause: badge bolt & progress icons ---- */
.urgent-badge-overlay i { color: inherit; }
.progress-meta span i { color: var(--primary); margin-right: 4px; }
.donate-trust-badges span i { margin-right: 4px; }

/* ---- Impact Section: FA icons on dark bg ---- */
.impact-icon { font-size: 2.4rem; color: var(--accent); margin-bottom: 16px; line-height: 1; }
.impact-icon i { font-size: 2rem; color: var(--accent); }

/* ---- Contact Section: icons with color ---- */
.contact-icon { width: 42px; height: 42px; background: hsl(16,90%,95%); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--primary); font-size: 1rem; }
.contact-icon i { font-size: 1rem; color: var(--primary); }

/* ---- Trust List: FA icons with color ---- */
.trust-icon { width: 32px; height: 32px; background: hsl(16,90%,90%); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--primary); font-size: 0.85rem; }
.trust-icon i { color: var(--primary); font-size: 0.82rem; }

/* ---- Events: time & location icons ---- */
.event-meta i { margin-right: 3px; }
.event-time i { color: hsl(170,65%,40%); }
.event-loc i { color: var(--primary); }

/* ---- Newsletter Icon ---- */
.newsletter-icon { font-size: 2rem; color: var(--primary); flex-shrink: 0; }
.newsletter-icon i { font-size: 1.8rem; color: var(--primary); }

/* ---- NEWSLETTER SOCIAL BUTTONS (on white bg — must be dark) ---- */
.newsletter-social .social-btn {
  background: hsl(220,15%,90%);
  color: hsl(220,15%,30%);
  border: none;
}
.newsletter-social .social-btn i { color: hsl(220,15%,30%); }
.newsletter-social .social-btn:hover { color: var(--white); }
.newsletter-social .social-btn.social-fb:hover { background: #1877F2; color: #fff; }
.newsletter-social .social-btn.social-tw:hover { background: #000; color: #fff; }
.newsletter-social .social-btn.social-ig:hover {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
  color: #fff;
}

/* ---- Footer Social Buttons (on dark bg — white) ---- */
.footer-social .social-btn {
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.15);
}
.footer-social .social-btn i { color: rgba(255,255,255,0.85); }
.footer-social .social-btn:hover { color: var(--white); }

/* ---- Ensure all FA icons inside buttons/badges inherit or get colour ---- */
.btn i { font-size: inherit; }
.urgent-badge-overlay span i { margin-right: 4px; }
.form-success i { margin-right: 6px; color: hsl(150,60%,38%); }
.widget-title i { margin-right: 6px; }
.donate-trust-badges { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 12px; }
.donate-trust-badges span { font-size: 0.78rem; color: var(--text-muted); display: flex; align-items: center; gap: 5px; }
.donate-trust-badges span i { color: var(--primary); font-size: 0.82rem; }

/* ---- Razorpay modal icons ---- */
.rz-trust span i { margin-right: 4px; }

/* ============================================================
   LOGO SIZE FIX — v1.2
   Header height = 72px scrolled = 64px
   Logo image must stay contained within header
   ============================================================ */

/* Custom logo image constraint */
.logo .custom-logo-link,
a.logo .custom-logo-link { display: flex; align-items: center; }

.logo .custom-logo,
.custom-logo-link img,
header .custom-logo {
  max-height: 52px !important;
  max-width: 180px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  display: block;
}

.site-header.scrolled .custom-logo { max-height: 44px !important; }

/* Ensure logo anchor doesn't overflow header */
a.logo, a.logo .custom-logo-link {
  max-height: 72px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

/* Gallery section (homepage inline) */
.gallery-section { padding: 80px 0; background: #FAF7F5; overflow: hidden; }
.gallery-section .section-label { color: var(--primary); }
.gallery-section .section-title { color: var(--dark); }
/* ============================================================
   PREMIUM 3-COLUMN ALBUM GRID LAYOUT (Enriched Captions)
   ============================================================ */
.gallery-grid-custom {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 48px;
}

.g-item {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 4/3;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    cursor: pointer;
    background: #e8e8e8;
}

.g-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: block;
}

.g-item:hover img {
    transform: scale(1.06);
}

/* Remove full card overlay, we only need the bottom title bar background */
.g-item .g-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(12, 12, 16, 0.9) 0%, rgba(12, 12, 16, 0.2) 60%, transparent 100%);
    opacity: 0.25;
    z-index: 1;
    transition: opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: block !important;
}

/* Premium Frosted-Glass Title Bar Background strictly behind the title text */
.g-item .g-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px 20px 18px;
    color: #fff;
    font-family: \'Inter\', sans-serif;
    z-index: 2;
    background: rgba(12, 12, 16, 0.65); /* Elegant translucent dark glass strip */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    transition: all 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translateY(0);
    opacity: 1;
}

/* Hover-capable devices (desktops) get the premium scroll/hover WOW transition! */
@media (hover: hover) {
    .g-item .g-overlay {
        opacity: 0;
    }
    .g-item .g-caption {
        transform: translateY(15px);
        opacity: 0;
    }
    
    /* Hover state for desktop: overlay fades in, caption slides up and turns brand orange */
    .g-item:hover .g-overlay {
        opacity: 1;
    }
    .g-item:hover .g-caption {
        transform: translateY(0);
        opacity: 1;
        background: rgba(232, 76, 30, 0.88); 
        border-top-color: rgba(255, 255, 255, 0.25);
        box-shadow: 0 -4px 20px rgba(232, 76, 30, 0.25);
    }
}

.g-item .g-title {
    font-size: 1.02rem;
    font-weight: 700;
    margin: 0 0 4px 0;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.25;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.g-item .g-title i {
    font-size: 0.92rem;
    color: rgba(255,255,255,0.9);
}

.g-item .g-meta {
    font-size: 0.76rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.72);
    display: flex;
    align-items: center;
    gap: 6px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.g-item .g-meta i {
    font-size: 0.76rem;
}

/* Placeholder card */
.g-item.g-placeholder {
    background: rgba(0, 0, 0, 0.04);
    border: 2px dashed rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: rgba(0, 0, 0, 0.4);
    font-size: 0.85rem;
    text-align: center;
    gap: 8px;
}

@media (max-width: 992px) {
    .gallery-grid-custom {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 576px) {
    .gallery-grid-custom {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .g-item .g-caption {
        padding: 12px 16px;
    }
}

/* ============================================================
   LOGO SIZE — FINAL FIX (WordPress custom-logo structure)
   WP outputs: a.custom-logo-link > img.custom-logo
   We must constrain the img AND its wrapper
   ============================================================ */
.site-header a.logo,
.site-header a.logo figure,
.site-header .custom-logo-link {
  display: flex !important;
  align-items: center !important;
  max-height: 56px !important;
  overflow: hidden !important;
}

/* The actual image tag WordPress outputs */
.site-header img.custom-logo,
.site-header .custom-logo-link img {
  max-height: 52px !important;
  max-width: 190px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  display: block !important;
}

/* When scrolled — slightly smaller */
.site-header.scrolled img.custom-logo,
.site-header.scrolled .custom-logo-link img {
  max-height: 44px !important;
}

/* ============================================================
   LOGO ABSOLUTE FINAL FIX — using attribute selectors
   The img tag in header.php now has explicit width="180" height="52"
   But browser may still scale based on natural size
   Force it with pixel values on the element itself
   ============================================================ */
#logo-link img {
  width: 180px !important;
  height: 52px !important;
  max-width: 180px !important;
  max-height: 52px !important;
  object-fit: contain !important;
}
.site-header .header-inner { position: relative; }

/* ============================================================
   HEADER NAV FIX — Logo ?? strict width ??, nav ?? room ??
   ============================================================ */
a#logo-link {
  flex-shrink: 0 !important;
  flex-basis: auto !important;
  max-width: 150px !important;
  width: auto !important;
  overflow: hidden !important;
}
a#logo-link img,
#logo-link img {
  width: auto !important;
  max-width: 148px !important;
  max-height: 46px !important;
  height: 46px !important;
  object-fit: contain !important;
  display: block !important;
}
/* Nav must be visible */
.main-nav { flex: 1 1 auto; overflow: visible; }
.nav-list { flex-wrap: nowrap; }
/* If screen is tight, reduce nav font */
@media (max-width: 1200px) {
  .nav-link { font-size: 0.82rem !important; padding: 6px 10px !important; }
}
@media (max-width: 992px) {
  .main-nav { display: none; }
  .hamburger { display: flex !important; }
}
/* Cause card — make it feel clickable */
.cause-card { cursor: pointer; }
.cause-title a { color: inherit; text-decoration: none; }
.cause-title a:hover { color: var(--primary); }

/* ============================================================
   NAV MENU STYLING FIX
   (Applies to WordPress generated menu items)
   ============================================================ */
.nav-list {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  gap: 16px !important;
  align-items: center !important;
  justify-content: center !important;
}

.nav-list li {
  margin: 0 !important;
  padding: 0 !important;
}

.nav-list a {
  padding: 8px 16px !important;
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 600 !important;
  font-size: 0.95rem !important;
  border-radius: 8px !important;
  transition: all 0.3s ease !important;
  text-decoration: none !important;
  display: inline-block !important;
}

.nav-list a:hover {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.15) !important;
}

/* Ensure the nav container takes up available space and centers items */
.main-nav {
  flex: 1 !important;
  display: flex !important;
  justify-content: center !important;
  padding: 0 20px !important;
}

/* ============================================================
   MOBILE HEADER FIX
   Fixes the main-nav display !important override breaking mobile
   ============================================================ */
@media (max-width: 992px) {
  .main-nav {
    display: none !important; /* Force hide on mobile to override the desktop !important */
  }
  .hamburger {
    display: flex !important;
  }
  .mobile-nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: calc(100vh - 72px);
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  }
  .site-header .header-inner {
    padding: 0 20px;
  }
  a#logo-link { max-width: 130px !important; }
}

@media (max-width: 768px) {
  .urgent-grid { grid-template-columns: 1fr; }
  .urgent-panel { padding: 20px; }
  .about-stats-col { flex-direction: column !important; }
  .about-stat-card { width: 100%; margin-bottom: 12px; }
  .hero-buttons { flex-direction: column; width: 100%; }
  .hero-buttons .btn { width: 100%; text-align: center; margin-bottom: 10px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .cause-amounts { flex-direction: column; align-items: flex-start; gap: 4px; }
  .donate-sidebar { top: 80px; }
}

@media (max-width: 480px) {
  /* Enforced 2x2 grid for mobile banner as requested by user */
  .causes-banner-inner { grid-template-columns: repeat(2, 1fr) !important; }
}

/* ============================================================
   MOBILE TWEAKS (Logo Cutoff Fix + Donate Btn Icon Alignment)
   ============================================================ */
@media (max-width: 992px) {
  a#logo-link {
    max-width: 220px !important; /* Remove strict cutoff limit to show full logo text */
  }
  a#logo-link img, #logo-link img {
    max-width: 218px !important;
  }
}

.floating-donate-btn {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important; /* Ensure proper space between heart icon and text */
}

@media (min-width: 1025px) {
  .floating-donate-btn {
    display: none !important; /* Hide on desktop */
  }
}


  100% { transform: scale(1.15); }
}


img[src=""], img:not([src]) { display: none; }
/* ============================================================
   HERO SLIDER - JS CONTROLLED (SEAMLESS LOOP)
   ============================================================ */
.hero-slider {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  overflow: hidden;
  z-index: 0;
}
.hero-slide {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1);
  transition: opacity 1.5s ease;
}
.hero-slide.active {
  opacity: 1;
  animation: heroKenBurns 7s ease-out forwards;
}
@keyframes heroKenBurns {
  0%   { transform: scale(1); }
  100% { transform: scale(1.12); }
}

/* ============================================================
   HEADER: SOLID DARK BACKGROUND ON ALL INNER PAGES
   (Causes, Events, Blog, Archives, Single Posts)
   ============================================================ */
body:not(.home) .site-header,
.single-orahim_cause .site-header,
.single-orahim_event .site-header,
.post-type-archive-orahim_cause .site-header,
.post-type-archive-orahim_event .site-header,
.single-post .site-header,
.archive .site-header,
.page:not(.home) .site-header {
  background: rgba(8, 10, 20, 0.97) !important;
  backdrop-filter: blur(16px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

/* Keep nav text white on inner pages */
body:not(.home) .site-header .nav-link,
body:not(.home) .site-header .logo-name,
body:not(.home) .site-header .logo-tagline {
  color: var(--white) !important;
}


/* ============================================================
   FIX: White line & scroll jank on inner pages
   ============================================================ */

/* Remove any border/gap that creates white line at header top */
.site-header {
  border: none !important;
  outline: none !important;
}

/* Top bar transitions smoothly on hide */
.top-bar {
  transition: opacity 0.3s ease, max-height 0.3s ease;
  overflow: hidden;
  border-bottom: none !important;
}

/* Inner pages: header slides down from top-bar seamlessly */
body:not(.home) .site-header {
  border-top: none !important;
  box-shadow: 0 2px 20px rgba(0,0,0,0.35) !important;
}

/* Smooth top property transition to prevent scroll jank */
.site-header {
  will-change: transform;
  transition: background 0.35s ease, box-shadow 0.35s ease, top 0.25s ease !important;
}



/* ============================================================
   SCROLL SYSTEM: GPU-accelerated, zero jank
   Transform-based (no top/height changes = no reflow)
   ============================================================ */

/* Top bar: slides UP via transform when scrolled */
.top-bar.bar-scrolled-out {
  transform: translateY(-100%);
}

/* Header: default position = below top-bar via transform */
.site-header {
  transform: translateY(37px); /* sits below 37px top-bar */
}

/* When top-bar hides, header slides to top (transform:0) */
.site-header.bar-scrolled-out {
  transform: translateY(0);
}

/* Scrolled state: dark background */
.site-header.scrolled {
  background: rgba(8, 10, 20, 0.97) !important;
  backdrop-filter: blur(16px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

/* Inner pages: always dark header */
body:not(.home) .site-header {
  background: rgba(8, 10, 20, 0.97) !important;
  backdrop-filter: blur(16px);
  box-shadow: 0 2px 16px rgba(0,0,0,0.3);
}

/* Body padding to offset fixed top-bar + header */
body {
  padding-top: 109px; /* 37px top-bar + 72px header */
}
/* Homepage: hero is full-screen, no padding needed */
.home {
  padding-top: 0 !important;
}

/* Nav text always white */
.site-header .nav-link,
.site-header .logo-name,
.site-header .logo-tagline {
  color: var(--white) !important;
}

/* Remove any border artifact */
.top-bar,
.site-header {
  border: none !important;
  outline: none !important;
}

/* Mobile: top-bar hidden, header at top */
@media (max-width: 768px) {
  .top-bar { display: none !important; }
  .site-header { transform: translateY(0) !important; }
  body { padding-top: 72px; }
  .home { padding-top: 0 !important; }
}

/* ============================================================
   FIX 2: Our Impact mobile glitch - GPU accelerate counters
   ============================================================ */
.impact-section {
  overflow: hidden;
  transform: translateZ(0); /* force GPU layer */
}
.impact-card {
  will-change: transform, opacity;
  transform: translateZ(0);
}
.impact-number {
  will-change: contents;
}
/* Prevent animate-on-scroll from causing reflow on mobile */
@media (max-width: 768px) {
  .impact-card {
    transform: none !important;
    opacity: 1 !important;
    animation: none;
    transition: none;
  }
  .animate-on-scroll {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ===========================================================
   DEFINITIVE FIX - Overrides all previous conflicting rules
   =========================================================== */

/* 1. Top bar: fixed at very top */
.top-bar {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 1001 !important;
  transform: none !important;
  transition: opacity 0.3s ease !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
}
.top-bar.bar-scrolled-out {
  opacity: 0 !important;
  pointer-events: none !important;
  height: 0 !important;
  overflow: hidden !important;
  padding: 0 !important;
}

/* 2. Header: sits just below top-bar */
.site-header {
  position: fixed !important;
  top: 0; /* JS sets this dynamically via setHeaderTop() */
  left: 0 !important;
  right: 0 !important;
  z-index: 1000 !important;
  transform: none !important;
  transition: top 0.25s ease, background 0.3s ease, box-shadow 0.3s ease !important;
}
.site-header.bar-scrolled-out {
  top: 0 !important;
}

/* 3. Inner pages: dark header always */
body:not(.home) .site-header {
  background: rgba(8, 10, 20, 0.97) !important;
  box-shadow: 0 2px 16px rgba(0,0,0,0.3) !important;
}

/* 4. Body offset so content is NOT hidden behind fixed header */
body {
  padding-top: 0 !important;
  margin-top: 0 !important;
}
/* Inner page content pushed below fixed header+topbar */
body:not(.home) > *:not(.top-bar):not(.site-header):not(script):not(style):first-of-type {
  margin-top: 0;
}
.single-orahim_cause .site,
.single-orahim_event .site,
.single-post .site,
.archive .site,
.page:not(.home) .site {
  padding-top: 110px !important;
}

/* 5. Mobile */
@media (max-width: 768px) {
  .top-bar { display: none !important; }
  .site-header { top: 0 !important; }
  .single-orahim_cause .site,
  .single-orahim_event .site,
  .single-post .site,
  .archive .site,
  .page:not(.home) .site {
    padding-top: 72px !important;
  }
  /* Fix mobile counter jank - disable JS animations */
  .impact-card {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }
  .animate-on-scroll {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* == FINAL TARGETED FIX: Inner page content offset == */
.single-cause-wrap,
.single-event-wrap,
.single-blog-wrap {
  margin-top: 110px !important;
  padding-top: 0 !important;
}
@media (max-width: 768px) {
  .single-cause-wrap,
  .single-event-wrap,
  .single-blog-wrap {
    margin-top: 72px !important;
  }
}

/* ============================================================
   WHITE LINE FIX (v2 - no ::before, no side effects)
   html dark bg fills any sub-pixel gap between top-bar & header
   ============================================================ */
html {
  background: rgb(8, 10, 20) !important;
}
/* Inner pages: slight dark strip at top ONLY via html bg (no fixed element) */
body:not(.home) {
  background: #f0ede8;
}

/* ===== CLASSIC CHECKOUT STYLES ===== */
.woocommerce-checkout h3 { font-family: 'Playfair Display', serif; color: var(--dark); font-size: 1.8rem; margin-bottom: 24px; border-bottom: 2px solid var(--primary); padding-bottom: 10px; display: inline-block; }
.woocommerce-checkout form.checkout { display: grid; grid-template-columns: 1fr 450px; gap: 50px; align-items: start; margin-top: 30px; }
.woocommerce-checkout #customer_details { background: #fff; padding: 30px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.woocommerce-checkout #order_review_heading { display: none; } /* Hide the duplicate heading */
.woocommerce-checkout #order_review { background: #f9f9fc; padding: 30px; border-radius: 12px; border: 2px solid #eee; position: sticky; top: 100px; }

/* Hide redundant payment methods list */
.woocommerce-checkout #payment ul.payment_methods { display: none !important; }
.woocommerce-checkout #payment div.payment_box { display: none !important; }

/* Premium Place Order Button */
.woocommerce-checkout #place_order { 
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%); 
    color: #fff !important; 
    font-size: 1.15rem; 
    font-weight: 800; 
    padding: 18px 24px; 
    border-radius: 50px; 
    width: 100%; 
    border: none; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    box-shadow: 0 8px 20px rgba(232, 76, 30, 0.3);
    transition: all 0.3s ease; 
    margin-top: 20px;
}
.woocommerce-checkout #place_order:hover { 
    transform: translateY(-3px); 
    box-shadow: 0 12px 25px rgba(232, 76, 30, 0.4); 
}

/* Inputs styling */
.woocommerce-checkout input.input-text, .woocommerce-checkout select, .woocommerce-checkout textarea {
    border: 1px solid #ddd; padding: 12px 16px; border-radius: 8px; width: 100%; font-size: 0.95rem; background: #fff;
}
.woocommerce-checkout input.input-text:focus, .woocommerce-checkout select:focus {
    border-color: var(--primary); outline: none; box-shadow: 0 0 0 3px rgba(232,76,30,0.1);
}

@media (max-width: 992px) {
    .woocommerce-checkout form.checkout { grid-template-columns: 1fr; }
    .woocommerce-checkout #order_review { position: static; }
}

/* ===== WOOCOMMERCE FORM FIXES ===== */
.woocommerce form .form-row {
    padding: 3px;
    margin: 0 0 15px;
    clear: both;
    width: 100%;
}
.woocommerce form .form-row label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark);
}
.woocommerce form .form-row-first, 
.woocommerce form .form-row-last {
    width: 48%;
    float: left;
}
.woocommerce form .form-row-last {
    float: right;
}
.woocommerce form .form-row-wide {
    clear: both;
}
.woocommerce-input-wrapper {
    display: block;
    width: 100%;
}
.select2-container {
    width: 100% !important;
}

/* Clearfix for form-rows */
.woocommerce form .form-row:after {
    content: '';
    display: table;
    clear: both;
}

/* ===== AGGRESSIVE WOOCOMMERCE FORM FIXES ===== */
.woocommerce form .form-row {
    display: block !important;
    width: 100% !important;
    margin-bottom: 20px !important;
    float: none !important;
}
.woocommerce form .form-row-first, 
.woocommerce form .form-row-last {
    width: 48% !important;
    display: inline-block !important;
    vertical-align: top;
}
.woocommerce form .form-row-last {
    float: right !important;
}
.woocommerce form .form-row label {
    display: block !important;
    width: 100% !important;
    text-align: left !important;
    margin-bottom: 8px !important;
}
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row select {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
    height: 48px !important;
    padding: 0 15px !important;
}
.woocommerce-checkout #place_order {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
}
.select2-container {
    width: 100% !important;
    display: block !important;
}
.woocommerce-billing-fields__field-wrapper {
    display: block !important;
    width: 100% !important;
}

/* ===== EXTRA CHECKOUT CSS FOR LAYOUT ===== */
.woocommerce-checkout .col2-set .col-1 {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
}
.woocommerce-checkout .col2-set .col-2 {
    display: none !important;
}
.woocommerce-checkout .col2-set {
    width: 100% !important;
}

/* ===== WOOCOMMERCE CART STYLES ===== */
.woocommerce-cart .woocommerce {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
    align-items: start;
    margin-top: 30px;
}
.woocommerce-cart table.shop_table {
    border: 1px solid #eee;
    border-radius: 12px;
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}
.woocommerce-cart table.shop_table th {
    background: #f9f9fc;
    padding: 18px 20px;
    font-weight: 700;
    color: var(--dark);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}
.woocommerce-cart table.shop_table td {
    padding: 20px;
    border-top: 1px solid #eee;
    vertical-align: middle;
}
/* Hide Thumbnail & Quantity since it's a direct donation */
.woocommerce-cart table.shop_table .product-thumbnail,
.woocommerce-cart table.shop_table .product-quantity {
    display: none !important;
}
/* Style Cart Totals Box */
.woocommerce-cart .cart-collaterals {
    width: 100%;
}
.woocommerce-cart .cart_totals {
    background: #f9f9fc;
    padding: 30px;
    border-radius: 12px;
    border: 2px solid #eee;
    width: 100% !important;
    float: none !important;
}
.woocommerce-cart .cart_totals h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 10px;
    display: inline-block;
}
.woocommerce-cart .cart_totals table {
    width: 100%;
    margin-bottom: 25px;
}
.woocommerce-cart .cart_totals table th {
    text-align: left;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    font-weight: 600;
}
.woocommerce-cart .cart_totals table td {
    text-align: right;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    font-weight: 700;
    color: var(--primary);
}

/* Premium Proceed Button */
.woocommerce-cart .checkout-button {
    display: block !important;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%) !important;
    color: #fff !important;
    font-size: 1.15rem !important;
    font-weight: 800 !important;
    padding: 18px 24px !important;
    border-radius: 50px !important;
    width: 100% !important;
    text-align: center !important;
    border: none !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    box-shadow: 0 8px 20px rgba(232, 76, 30, 0.3) !important;
    transition: all 0.3s ease !important;
}
.woocommerce-cart .checkout-button:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 12px 25px rgba(232, 76, 30, 0.4) !important;
    color: #fff !important;
}

@media (max-width: 992px) {
    .woocommerce-cart .woocommerce {
        grid-template-columns: 1fr;
    }
}

/* Change Proceed to Checkout Text via CSS */
.woocommerce-cart .checkout-button {
    font-size: 0 !important;
}
.woocommerce-cart .checkout-button::after {
    content: 'Proceed to Donate âž”';
    font-size: 1.15rem;
    font-weight: 800;
}
/* Hide the coupon form in the cart as well */
.woocommerce-cart .coupon {
    display: none !important;
}

/* ===== CART LAYOUT FIXES ===== */
.woocommerce-cart .woocommerce {
    display: block !important;
}
.woocommerce-cart form.woocommerce-cart-form {
    width: 100% !important;
    margin-bottom: 40px !important;
}
.woocommerce-cart .cart-collaterals {
    width: 100% !important;
    display: flex !important;
    justify-content: flex-end !important;
}
.woocommerce-cart .cart_totals {
    width: 100% !important;
    max-width: 500px !important;
}
.woocommerce-cart table.shop_table .product-name {
    font-weight: 600;
    font-size: 1.1rem;
}
.woocommerce-cart table.shop_table .product-price,
.woocommerce-cart table.shop_table .product-subtotal {
    font-weight: 700;
    color: var(--primary);
}


/* ============================================================
   VISUAL ENHANCEMENTS & FOOTER RESTYLING (Pair-Programming Turn)
   ============================================================ */

/* 1. About Us Section: Premium Circular Image Mask with Rotating Ring */
.about-img-circle-wrap {
    position: relative;
    display: inline-block;
    padding: 12px;
}

.about-img-circle-wrap::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px dashed rgba(232, 76, 30, 0.3); /* Premium accent dashed border */
    border-radius: 50%;
    animation: rotate-border-slow 25s linear infinite;
    pointer-events: none;
}

@keyframes rotate-border-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.about-img-main {
    width: 350px !important;
    height: 350px !important;
    object-fit: cover !important;
    border-radius: 50% !important;
    border: 6px solid var(--white) !important;
    box-shadow: 0 20px 45px rgba(0,0,0,0.15) !important;
    transition: transform 0.4s ease, box-shadow 0.4s ease !important;
}

.about-img-main:hover {
    transform: scale(1.03) !important;
    box-shadow: 0 25px 55px rgba(0,0,0,0.22) !important;
}

@media (max-width: 768px) {
    .about-img-main {
        width: 280px !important;
        height: 280px !important;
        max-width: 280px !important;
        margin: 0 auto !important;
        display: block !important;
    }
}

/* 2. Footer Re-engineering: Beautiful 2-Column Grid Layout */
.footer-grid {
    grid-template-columns: 1.2fr 1fr !important;
    gap: 60px !important;
    max-width: 1000px;
    margin: 0 auto;
}

@media (max-width: 991px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 32px !important;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
}

/* 3. Footer Bottom Social Icons */
.footer-bottom-social {
    display: flex;
    gap: 12px;
    align-items: center;
}

.footer-bottom-social .social-icon {
    width: 34px;
    height: 34px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
    transition: all 0.3s ease;
}

.footer-bottom-social .social-icon:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .footer-bottom-social {
        justify-content: center;
        margin: 15px 0;
    }
}


/* ============================================================
   CORRECTED FOOTER RESTYLING: BEAUTIFUL 3-COLUMN GRID LAYOUT
   ============================================================ */

/* Re-engineer Footer Grid for a beautiful, modern 3-Column Layout */
.footer-grid {
    grid-template-columns: 1.5fr 1.2fr 1.2fr !important;
    gap: 45px !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
}

@media (max-width: 991px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 32px !important;
    }
    .footer-donate-col {
        grid-column: span 2 !important;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
    .footer-donate-col {
        grid-column: span 1 !important;
    }
}

/* Remove bottom social icon block since we restored the primary footer social block */
.footer-bottom-social {
    display: none !important;
}


/* ============================================================
   IMPACT COUNTER STABILITY FIX â€” Cards same size always
   ============================================================ */

/* Fix: All impact cards must be equal height regardless of number length */
.impact-grid {
    align-items: stretch !important;     /* all cards stretch to same row height */
}

.impact-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 180px !important;        /* fixed minimum height â€” no shifting */
    padding: 36px 20px !important;
    box-sizing: border-box !important;
}

/* Fix: The number element gets a fixed height container so the card
   doesn't jump when digits grow from 1 â†’ 5 during animation */
.impact-number {
    min-height: 64px !important;         /* enough room for the largest number */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 3rem !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    font-variant-numeric: tabular-nums !important;  /* monospace-style digits â€” no width shift */
    letter-spacing: -0.02em !important;
    margin-bottom: 8px !important;
    width: 100% !important;
}

.impact-icon {
    flex-shrink: 0 !important;
    margin-bottom: 14px !important;
}

.impact-label {
    flex-shrink: 0 !important;
    margin-top: 0 !important;
}

/* Mobile: ensure same stable layout on 2x2 grid */
@media (max-width: 768px) {
    .impact-card {
        min-height: 160px !important;
    }
    .impact-number {
        font-size: 2.6rem !important;
        min-height: 52px !important;
    }
}


/* ============================================================
   FLOATING PARTICLE SYSTEM â€” Pure CSS, Zero JS, GPU-Accelerated
   ============================================================ */

/* --- Base Particle Container --- */
.particle-field {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

/* All content inside sectioned with particle-field must stay above */
.hero-section,
.impact-section,
.causes-section,
.volunteer-section {
    position: relative;
}
.hero-section > *:not(.particle-field),
.impact-section > *:not(.particle-field),
.causes-section > *:not(.particle-field),
.volunteer-section > *:not(.particle-field) {
    position: relative;
    z-index: 1;
}

/* ============================================================
   1. HERO SECTION â€” Floating Glowing Orbs
   ============================================================ */
.hero-orb {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(232,76,30,0.18) 0%, rgba(232,76,30,0) 70%);
    animation: float-orb var(--dur, 18s) ease-in-out infinite;
    animation-delay: var(--delay, 0s);
    will-change: transform;
}
.hero-orb:nth-child(1) { width: 320px; height: 320px; top: -80px;  left: -60px;  --dur: 20s; --delay: 0s; }
.hero-orb:nth-child(2) { width: 200px; height: 200px; top: 30%;   right: 5%;    --dur: 16s; --delay: -5s; }
.hero-orb:nth-child(3) { width: 260px; height: 260px; bottom: 0;  left: 30%;    --dur: 22s; --delay: -9s; }
.hero-orb:nth-child(4) { width: 150px; height: 150px; top: 15%;  left: 40%;    --dur: 14s; --delay: -3s; background: radial-gradient(circle, rgba(255,200,80,0.12) 0%, transparent 70%); }
.hero-orb:nth-child(5) { width: 180px; height: 180px; bottom: 10%; right: 15%; --dur: 19s; --delay: -7s; }

@keyframes float-orb {
    0%   { transform: translate(0, 0) scale(1); }
    25%  { transform: translate(30px, -40px) scale(1.05); }
    50%  { transform: translate(-20px, -70px) scale(0.95); }
    75%  { transform: translate(40px, -30px) scale(1.08); }
    100% { transform: translate(0, 0) scale(1); }
}

/* ============================================================
   2. IMPACT SECTION â€” Tiny Floating Hearts
   ============================================================ */
.float-heart {
    position: absolute;
    font-size: var(--size, 14px);
    color: rgba(232,76,30, var(--op, 0.12));
    animation: rise-heart var(--dur, 12s) ease-in-out infinite;
    animation-delay: var(--delay, 0s);
    will-change: transform, opacity;
    user-select: none;
    line-height: 1;
}
.float-heart:nth-child(1)  { left: 5%;  bottom: -20px; --size: 16px; --dur: 14s; --delay: 0s;   --op: 0.10; }
.float-heart:nth-child(2)  { left: 15%; bottom: -20px; --size: 10px; --dur: 11s; --delay: -3s;  --op: 0.08; }
.float-heart:nth-child(3)  { left: 28%; bottom: -20px; --size: 18px; --dur: 15s; --delay: -6s;  --op: 0.13; }
.float-heart:nth-child(4)  { left: 42%; bottom: -20px; --size: 12px; --dur: 12s; --delay: -1s;  --op: 0.09; }
.float-heart:nth-child(5)  { left: 58%; bottom: -20px; --size: 20px; --dur: 16s; --delay: -8s;  --op: 0.11; }
.float-heart:nth-child(6)  { left: 70%; bottom: -20px; --size: 11px; --dur: 13s; --delay: -4s;  --op: 0.08; }
.float-heart:nth-child(7)  { left: 82%; bottom: -20px; --size: 15px; --dur: 17s; --delay: -2s;  --op: 0.10; }
.float-heart:nth-child(8)  { left: 92%; bottom: -20px; --size: 9px;  --dur: 10s; --delay: -7s;  --op: 0.07; }

@keyframes rise-heart {
    0%   { transform: translateY(0)   rotate(0deg)   scale(1);   opacity: 0; }
    10%  { opacity: 1; }
    80%  { opacity: var(--op, 0.12); }
    100% { transform: translateY(-600px) rotate(25deg) scale(0.6); opacity: 0; }
}

/* ============================================================
   3. CAUSES SECTION â€” Subtle Floating Dots Grid
   ============================================================ */
.float-dot {
    position: absolute;
    width: var(--s, 6px);
    height: var(--s, 6px);
    border-radius: 50%;
    background: rgba(232,76,30, var(--op, 0.08));
    animation: drift-dot var(--dur, 10s) ease-in-out infinite alternate;
    animation-delay: var(--delay, 0s);
    will-change: transform;
}
.float-dot:nth-child(1)  { top: 10%; left: 8%;  --s:5px;  --dur:9s;  --delay:0s;   --op:0.07; }
.float-dot:nth-child(2)  { top: 20%; left: 22%; --s:8px;  --dur:12s; --delay:-2s;  --op:0.09; }
.float-dot:nth-child(3)  { top: 35%; left: 5%;  --s:4px;  --dur:8s;  --delay:-4s;  --op:0.06; }
.float-dot:nth-child(4)  { top: 50%; left: 18%; --s:6px;  --dur:11s; --delay:-1s;  --op:0.08; }
.float-dot:nth-child(5)  { top: 70%; left: 10%; --s:7px;  --dur:13s; --delay:-6s;  --op:0.07; }
.float-dot:nth-child(6)  { top: 15%; right: 8%; --s:5px;  --dur:10s; --delay:-3s;  --op:0.08; }
.float-dot:nth-child(7)  { top: 40%; right: 12%;--s:8px;  --dur:14s; --delay:-5s;  --op:0.09; }
.float-dot:nth-child(8)  { top: 60%; right: 6%; --s:4px;  --dur:9s;  --delay:-2s;  --op:0.06; }
.float-dot:nth-child(9)  { top: 80%; right: 20%;--s:6px;  --dur:11s; --delay:-7s;  --op:0.07; }
.float-dot:nth-child(10) { top: 25%; right: 30%;--s:5px;  --dur:8s;  --delay:-1s;  --op:0.05; }

@keyframes drift-dot {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(18px, -24px) scale(1.3); }
}

/* ============================================================
   4. VOLUNTEER / CONTACT SECTION â€” Tiny Star Sparkles
   ============================================================ */
.float-star {
    position: absolute;
    width: var(--s, 4px);
    height: var(--s, 4px);
    border-radius: 50%;
    background: var(--accent, #f5a623);
    opacity: 0;
    animation: sparkle var(--dur, 4s) ease-in-out infinite;
    animation-delay: var(--delay, 0s);
    will-change: transform, opacity;
}
.float-star:nth-child(1)  { top: 20%; left: 10%; --s:3px; --dur:4s;  --delay:0s;   }
.float-star:nth-child(2)  { top: 40%; left: 25%; --s:4px; --dur:6s;  --delay:-1s;  }
.float-star:nth-child(3)  { top: 60%; left: 15%; --s:3px; --dur:5s;  --delay:-2s;  }
.float-star:nth-child(4)  { top: 30%; left: 50%; --s:5px; --dur:7s;  --delay:-3s;  }
.float-star:nth-child(5)  { top: 75%; left: 60%; --s:3px; --dur:4s;  --delay:-0.5s;}
.float-star:nth-child(6)  { top: 15%; right: 20%;--s:4px; --dur:6s;  --delay:-1.5s;}
.float-star:nth-child(7)  { top: 55%; right: 10%;--s:3px; --dur:5s;  --delay:-2.5s;}
.float-star:nth-child(8)  { top: 80%; right: 30%;--s:4px; --dur:7s;  --delay:-0.8s;}

@keyframes sparkle {
    0%   { opacity: 0;    transform: scale(0.5) rotate(0deg); }
    40%  { opacity: 0.5;  transform: scale(1.4) rotate(180deg); }
    60%  { opacity: 0.35; transform: scale(1.2) rotate(240deg); }
    100% { opacity: 0;    transform: scale(0.5) rotate(360deg); }
}

/* ============================================================
   ACCESSIBILITY â€” Disable all animations if user prefers
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    .hero-orb, .float-heart, .float-dot, .float-star {
        animation: none !important;
        opacity: 0 !important;
    }
}

/* Mobile â€” reduce particle count by hiding alternate children */
@media (max-width: 768px) {
    .hero-orb:nth-child(3),
    .hero-orb:nth-child(4),
    .hero-orb:nth-child(5)    { display: none; }
    .float-heart:nth-child(even) { display: none; }
    .float-dot:nth-child(n+6) { display: none; }
    .float-star:nth-child(n+5){ display: none; }
}


/* ============================================================
   PARTICLE SYSTEM DISABLED â€” Fully neutralized
   ============================================================ */
.particle-field,
.hero-orb,
.float-heart,
.float-dot,
.float-star {
    display: none !important;
    animation: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}


/* ===== IMPACT COUNTER â€” Number Stability Fix (minimal) =====
   Problem: digit count changes (0â†’12,847) causes card height to fluctuate.
   Solution: Give the number a fixed min-height + tabular digit widths.
   We do NOT change card layout, padding, or anything else.
   ============================================================ */
.impact-number {
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-variant-numeric: tabular-nums;
}


/* ============================================================
   HERO SECTION Z-INDEX RESTORE
   The particle system CSS broke hero-section child stacking.
   This restores correct z-index order for all hero children.
   ============================================================ */
.hero-slider {
    position: absolute !important;
    top: 0 !important; left: 0 !important;
    width: 100% !important; height: 100% !important;
    z-index: 0 !important;   /* background â€” behind everything */
}
.hero-overlay {
    position: absolute !important;
    z-index: 1 !important;   /* dark gradient overlay â€” above slider */
}
.hero-content {
    position: relative !important;
    z-index: 2 !important;   /* text & buttons â€” topmost */
}
.hero-scroll-hint {
    z-index: 2 !important;
}




/* ============================================================
   PREMIUM NGO-THEMED ATMOSPHERE (Elegant background floating elements)
   ============================================================ */
.about-section,
.urgent-cause-section,
.causes-section,
.events-section,
.volunteer-section,
.gallery-section {
    position: relative !important;
    overflow: hidden !important;
}

/* Ensure the main container sits cleanly above the background animation */
.about-section > .container,
.urgent-cause-section > .container,
.causes-section > .container,
.events-section > .container,
.volunteer-section > .container,
.gallery-section > .container {
    position: relative !important;
    z-index: 2 !important;
}

.premium-atmosphere {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0 !important; /* Above section bg, below container */
    overflow: hidden;
    user-select: none;
}

/* Faint Warm Ambient Glow Blobs */
.atmosphere-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.14;
    background: radial-gradient(circle, rgba(232,76,30,0.85) 0%, rgba(245,166,35,0) 70%);
    will-change: transform;
    animation: slow-glow-float 35s ease-in-out infinite alternate;
}

.atmosphere-glow.glow-1 {
    width: 450px;
    height: 450px;
    top: 5%;
    left: -150px;
    animation-duration: 35s;
}

.atmosphere-glow.glow-2 {
    width: 500px;
    height: 500px;
    bottom: 5%;
    right: -200px;
    background: radial-gradient(circle, rgba(245,166,35,0.8) 0%, rgba(232,76,30,0) 70%);
    animation-duration: 45s;
    animation-delay: -7s;
}

@keyframes slow-glow-float {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(60px, 45px) scale(1.15); }
    100% { transform: translate(-40px, -60px) scale(0.9); }
}

/* Premium NGO-Themed Floating Icons (Enriched 8-icon system with 18%-25% opacities) */
.atmosphere-icon {
    position: absolute;
    font-size: var(--sz, 26px);
    color: rgba(232, 76, 30, var(--op, 0.22)); /* Warm Brand Color at 22% default opacity */
    will-change: transform;
    animation-delay: var(--delay, 0s);
    text-shadow: 0 0 10px rgba(232, 76, 30, 0.05);
}

/* Assigning 3 alternate animation patterns for natural multi-directional drift */
.atmosphere-icon.ico-heart-1 { left: 6%;   top: 12%; --sz: 30px; --dur: 28s; --delay: 0s;   --op: 0.22; animation: float-icon-a var(--dur) ease-in-out infinite alternate; }
.atmosphere-icon.ico-leaf-1  { right: 6%;  top: 18%; --sz: 36px; --dur: 32s; --delay: -5s;  --op: 0.25; color: rgba(76, 175, 80, var(--op)); animation: float-icon-b var(--dur) ease-in-out infinite alternate; }
.atmosphere-icon.ico-star-1  { left: 10%;  top: 40%; --sz: 24px; --dur: 26s; --delay: -10s; --op: 0.20; color: rgba(245, 166, 35, var(--op)); animation: float-icon-c var(--dur) ease-in-out infinite alternate; }
.atmosphere-icon.ico-heart-2 { right: 8%;  top: 55%; --sz: 28px; --dur: 30s; --delay: -3s;  --op: 0.24; animation: float-icon-b var(--dur) ease-in-out infinite alternate; }
.atmosphere-icon.ico-leaf-2  { left: 8%;   top: 78%; --sz: 32px; --dur: 34s; --delay: -8s;  --op: 0.22; color: rgba(76, 175, 80, var(--op)); animation: float-icon-a var(--dur) ease-in-out infinite alternate; }
.atmosphere-icon.ico-star-2  { right: 12%; top: 82%; --sz: 26px; --dur: 24s; --delay: -15s; --op: 0.20; color: rgba(245, 166, 35, var(--op)); animation: float-icon-c var(--dur) ease-in-out infinite alternate; }
.atmosphere-icon.ico-heart-3 { left: 48%;  top: 88%; --sz: 24px; --dur: 28s; --delay: -2s;  --op: 0.18; animation: float-icon-c var(--dur) ease-in-out infinite alternate; }
.atmosphere-icon.ico-leaf-3  { left: 52%;  top: 10%; --sz: 28px; --dur: 30s; --delay: -12s; --op: 0.20; color: rgba(76, 175, 80, var(--op)); animation: float-icon-b var(--dur) ease-in-out infinite alternate; }

/* Animation A: Moves up-right, rotates clockwise, scales up */
@keyframes float-icon-a {
    0% { transform: translateY(0) translateX(0) rotate(0deg) scale(1); }
    50% { transform: translateY(-40px) translateX(25px) rotate(20deg) scale(1.12); }
    100% { transform: translateY(20px) translateX(-20px) rotate(-20deg) scale(0.92); }
}

/* Animation B: Moves down-left, rotates counter-clockwise, scales down */
@keyframes float-icon-b {
    0% { transform: translateY(0) translateX(0) rotate(0deg) scale(1); }
    50% { transform: translateY(35px) translateX(-30px) rotate(-25deg) scale(0.9); }
    100% { transform: translateY(-25px) translateX(15px) rotate(15deg) scale(1.1); }
}

/* Animation C: Moves up-left, rotates clockwise, gentle scale */
@keyframes float-icon-c {
    0% { transform: translateY(0) translateX(0) rotate(5deg) scale(0.95); }
    50% { transform: translateY(-30px) translateX(-20px) rotate(-15deg) scale(1.08); }
    100% { transform: translateY(30px) translateX(25px) rotate(25deg) scale(1); }
}

/* Accessibility & Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .atmosphere-glow,
    .atmosphere-icon {
        animation: none !important;
        opacity: 0 !important;
    }
}

/* Mobile Friendly: Enable with specialized mobile scaling & softer opacities */
@media (max-width: 768px) {
    .premium-atmosphere {
        display: block !important; /* Explicitly visible on mobile! */
    }
    
    /* Scale down icon sizes and opacities for narrow mobile screens */
    .atmosphere-icon {
        font-size: calc(var(--sz, 26px) * 0.72) !important; /* 28% smaller on mobile */
        color: rgba(232, 76, 30, calc(var(--op, 0.22) * 0.75)) !important; /* Softer brand color */
    }
    
    .atmosphere-icon.ico-leaf-1,
    .atmosphere-icon.ico-leaf-2,
    .atmosphere-icon.ico-leaf-3 {
        color: rgba(76, 175, 80, calc(var(--op, 0.20) * 0.75)) !important;
    }
    
    .atmosphere-icon.ico-star-1,
    .atmosphere-icon.ico-star-2 {
        color: rgba(245, 166, 35, calc(var(--op, 0.20) * 0.75)) !important;
    }
    
    /* Dark sections mobile colors */
    .impact-section .premium-atmosphere .atmosphere-icon,
    .gallery-section .premium-atmosphere .atmosphere-icon {
        color: rgba(255, 255, 255, 0.14) !important;
    }
    
    .impact-section .premium-atmosphere .ico-leaf-1,
    .impact-section .premium-atmosphere .ico-leaf-2,
    .impact-section .premium-atmosphere .ico-leaf-3,
    .gallery-section .premium-atmosphere .ico-leaf-1,
    .gallery-section .premium-atmosphere .ico-leaf-2,
    .gallery-section .premium-atmosphere .ico-leaf-3 {
        color: rgba(129, 199, 132, 0.15) !important;
    }
    
    .impact-section .premium-atmosphere .ico-star-1,
    .impact-section .premium-atmosphere .ico-star-2,
    .gallery-section .premium-atmosphere .ico-star-1,
    .gallery-section .premium-atmosphere .ico-star-2 {
        color: rgba(255, 213, 79, 0.15) !important;
    }

    /* Soften the drift translations for smaller viewports to prevent overflow */
    @keyframes float-icon-a {
        0% { transform: translateY(0) translateX(0) rotate(0deg) scale(0.9); }
        50% { transform: translateY(-22px) translateX(12px) rotate(12deg) scale(1); }
        100% { transform: translateY(12px) translateX(-12px) rotate(-12deg) scale(0.85); }
    }

    @keyframes float-icon-b {
        0% { transform: translateY(0) translateX(0) rotate(0deg) scale(0.9); }
        50% { transform: translateY(18px) translateX(-15px) rotate(-15deg) scale(0.8); }
        100% { transform: translateY(-15px) translateX(10px) rotate(10deg) scale(1); }
    }

    @keyframes float-icon-c {
        0% { transform: translateY(0) translateX(0) rotate(5deg) scale(0.85); }
        50% { transform: translateY(-18px) translateX(-10px) rotate(-10deg) scale(0.95); }
        100% { transform: translateY(18px) translateX(12px) rotate(15deg) scale(0.9); }
    }
}


/* ============================================================
   DARK SECTIONS ADAPTIVE ATMOSPHERE (Styles for Impact & Gallery)
   ============================================================ */
.impact-section {
    position: relative !important;
    overflow: hidden !important;
    z-index: 1 !important;
}

.impact-section > .container {
    position: relative !important;
    z-index: 2 !important;
}

/* Translucent soft white/pastel stars & leaves for dark backgrounds */
.impact-section .premium-atmosphere .atmosphere-icon {
    color: rgba(255, 255, 255, var(--op, 0.18)); /* Elegant white outline */
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.08);
}

.impact-section .premium-atmosphere .ico-leaf-1,
.impact-section .premium-atmosphere .ico-leaf-2,
.impact-section .premium-atmosphere .ico-leaf-3 {
    color: rgba(129, 199, 132, var(--op)); /* Pastel green for leaves */
}

.impact-section .premium-atmosphere .ico-star-1,
.impact-section .premium-atmosphere .ico-star-2 {
    color: rgba(255, 213, 79, var(--op)); /* Pastel gold/yellow for stars */
}


/* Premium Hover effect for gallery view all button */
#gallery-view-all-btn:hover {
    background: var(--primary) !important;
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(232, 76, 30, 0.3) !important;
}


/* ============================================================
   PREMIUM SLIDESHOW LIGHTBOX (Popup Slideshow Overlay)
   ============================================================ */
.orahim-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 10, 18, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
}

.orahim-lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

/* Lightbox Header (Title and Counter) */
.lightbox-header {
    position: absolute;
    top: 24px;
    left: 28px;
    color: #fff;
    font-family: 'Inter', sans-serif;
    z-index: 10001;
    max-width: 70%;
}

.lightbox-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 4px 0;
    letter-spacing: 0.02em;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.lightbox-counter {
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.65);
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

/* Close Button */
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 28px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 2.5rem;
    font-weight: 300;
    cursor: pointer;
    background: none;
    border: none;
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10001;
    line-height: 1;
}

.lightbox-close:hover {
    color: var(--primary, #e84c1e);
    transform: scale(1.15) rotate(90deg);
}

/* Navigation Arrows */
.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.6);
    font-size: 2.2rem;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 62px;
    height: 62px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10001;
    outline: none;
}

.lightbox-arrow:hover {
    color: #fff;
    background: var(--primary, #e84c1e);
    border-color: var(--primary, #e84c1e);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(232, 76, 30, 0.35);
}

.lightbox-arrow.arrow-left {
    left: 28px;
}

.lightbox-arrow.arrow-right {
    right: 28px;
}

/* Image Container & Transitions */
.lightbox-img-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 100px;
    box-sizing: border-box;
}

.lightbox-img-container img {
    max-height: 75vh;
    max-width: 85vw;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 3px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
    will-change: transform, opacity;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: scale(0.95);
}

.lightbox-img-container img.active {
    opacity: 1;
    transform: scale(1);
}

/* Responsive Scaling for Mobile Screens */
@media (max-width: 768px) {
    .lightbox-header {
        top: 16px;
        left: 20px;
        max-width: 60%;
    }
    
    .lightbox-title {
        font-size: 1rem;
    }
    
    .lightbox-close {
        top: 12px;
        right: 20px;
        font-size: 2.2rem;
    }
    
    .lightbox-arrow {
        width: 48px;
        height: 48px;
        font-size: 1.6rem;
        background: rgba(0, 0, 0, 0.4);
    }
    
    .lightbox-arrow.arrow-left {
        left: 12px;
    }
    
    .lightbox-arrow.arrow-right {
        right: 12px;
    }
    
    .lightbox-img-container {
        padding: 60px 16px;
    }
    
    .lightbox-img-container img {
        max-height: 65vh;
        max-width: 92vw;
        border-radius: 8px;
        border-width: 2px;
    }
}


/* ============================================================
   FIREBASE OTP MODAL OVERLAY (Premium Glassmorphism styling)
   ============================================================ */
.otp-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(10, 12, 20, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.otp-modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.otp-modal-content {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: var(--shadow-lg), 0 24px 64px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    width: 100%;
    max-width: 440px;
    padding: 40px 32px;
    position: relative;
    text-align: center;
}

.otp-modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 2rem;
    font-weight: 300;
    color: var(--text-muted);
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s;
}

.otp-modal-close:hover {
    color: var(--primary);
}

.otp-modal-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 18px;
}

.otp-modal-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    color: var(--dark);
    margin-bottom: 12px;
}

.otp-modal-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 28px;
}

.otp-input-wrap {
    margin-bottom: 24px;
}

.otp-input-wrap input {
    width: 100%;
    text-align: center;
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    padding: 12px;
    border: 2px solid var(--border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.7);
    color: var(--dark);
    transition: border-color 0.3s;
}

.otp-input-wrap input:focus {
    border-color: var(--primary);
    outline: none;
}

.btn-otp-verify {
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    padding: 14px 28px;
    border-radius: 50px;
    width: 100%;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(232, 76, 30, 0.3);
    transition: all 0.3s;
}

.btn-otp-verify:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(232, 76, 30, 0.4);
}

.otp-cooldown-text {
    margin-top: 18px;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.otp-cooldown-text button {
    background: none;
    border: none;
    color: var(--primary);
    font-weight: 700;
    cursor: pointer;
    padding: 0 4px;
    transition: color 0.3s;
}

.otp-cooldown-text button:disabled {
    color: var(--text-muted);
    cursor: not-allowed;
    font-weight: 500;
}