/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green: #1d6561;
  --green-dark: #154846;
  --green-light: #258480;
  --gold: #d0af39;
  --gold-light: #e0c24e;
  --bg: #f9f9f9;
  --bg-card: #ffffff;
  --text: #1a1a1a;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.25s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
}

[dir="rtl"] body,
[dir="rtl"] .nav-links,
[dir="rtl"] .about-grid,
[dir="rtl"] .contact-grid { direction: rtl; }

[dir="rtl"] .arabic-quote,
[dir="rtl"] .donate-hadith,
[dir="rtl"] .prayer-ar { font-family: 'Amiri', serif; }

a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-light); }

img { max-width: 100%; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--green);
  box-shadow: 0 2px 16px rgba(0,0,0,0.18);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff !important;
  font-weight: 700;
  font-size: 1.15rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.logo-symbol { font-size: 1.4rem; color: var(--gold); }

.nav-logo-img {
  height: 36px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.hero-logo {
  width: 110px;
  height: auto;
  object-fit: contain;
  margin-bottom: 16px;
  filter: brightness(0) invert(1) sepia(1) saturate(3) hue-rotate(5deg);
  drop-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

.footer-logo-img {
  height: 32px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
  overflow-x: auto;
}

.nav-links a {
  color: rgba(255,255,255,0.85);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active { color: var(--gold); background: rgba(255,255,255,0.1); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.lang-switcher { display: flex; gap: 4px; }

.lang-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.35);
  color: rgba(255,255,255,0.8);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.lang-btn:hover,
.lang-btn.active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--green-dark);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: var(--transition);
}

/* ===== SECTIONS ===== */
.section {
  display: none;
  min-height: 100vh;
  padding-top: 64px;
}

.section.active { display: block; }

.section-content { padding: 64px 0; }

.section-header { text-align: center; margin-bottom: 48px; }

.section-header h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 12px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  margin-top: 8px;
}

.divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--green), var(--gold));
  margin: 0 auto;
  border-radius: 2px;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background-color: #0d2926;
}

/* Islamisches Girih-Kachelmuster als SVG-Hintergrund */
.hero-overlay {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 200 200'%3E%3Cdefs%3E%3Cstyle%3E.g%7Bfill:none;stroke:%23d4af37;stroke-width:0.7;opacity:0.18%7D%3C/style%3E%3C/defs%3E%3C!-- Stern 8-zackig zentriert --%3E%3Cpolygon class='g' points='100,60 111,85 138,85 117,101 125,128 100,112 75,128 83,101 62,85 89,85'/%3E%3Cpolygon class='g' points='100,50 114,82 148,82 121,101 131,135 100,115 69,135 79,101 52,82 86,82'/%3E%3C!-- Ecksterne --%3E%3Cpolygon class='g' points='0,0 8,18 28,18 12,29 18,49 0,38 -18,49 -12,29 -28,18 -8,18'/%3E%3Cpolygon class='g' points='200,0 208,18 228,18 212,29 218,49 200,38 182,49 188,29 172,18 192,18'/%3E%3Cpolygon class='g' points='0,200 8,218 28,218 12,229 18,249 0,238 -18,249 -12,229 -28,218 -8,218'/%3E%3Cpolygon class='g' points='200,200 208,218 228,218 212,229 218,249 200,238 182,249 188,229 172,218 192,218'/%3E%3C!-- Verbindungslinien Girih --%3E%3Cline class='g' x1='100' y1='60' x2='0' y2='0'/%3E%3Cline class='g' x1='100' y1='60' x2='200' y2='0'/%3E%3Cline class='g' x1='100' y1='140' x2='0' y2='200'/%3E%3Cline class='g' x1='100' y1='140' x2='200' y2='200'/%3E%3Cline class='g' x1='62' y1='85' x2='0' y2='100'/%3E%3Cline class='g' x1='138' y1='85' x2='200' y2='100'/%3E%3Cline class='g' x1='62' y1='115' x2='0' y2='100'/%3E%3Cline class='g' x1='138' y1='115' x2='200' y2='100'/%3E%3Cline class='g' x1='100' y1='50' x2='100' y2='0'/%3E%3Cline class='g' x1='100' y1='150' x2='100' y2='200'/%3E%3C!-- Kreise / Rosette --%3E%3Ccircle class='g' cx='100' cy='100' r='38'/%3E%3Ccircle class='g' cx='100' cy='100' r='25'/%3E%3Ccircle class='g' cx='0' cy='0' r='25'/%3E%3Ccircle class='g' cx='200' cy='0' r='25'/%3E%3Ccircle class='g' cx='0' cy='200' r='25'/%3E%3Ccircle class='g' cx='200' cy='200' r='25'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  background-repeat: repeat;
}

/* Dunkler Gradient-Overlay über dem Muster */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(13, 41, 38, 0.82) 0%,
    rgba(29, 101, 97, 0.75) 50%,
    rgba(10, 34, 32, 0.88) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: 32px 24px;
}

.hero-bismillah {
  font-family: 'Amiri', serif;
  font-size: 1.8rem;
  color: var(--gold-light);
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 16px;
}

.hero-assoc {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.65);
  font-weight: 400;
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}

.hero-desc {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 32px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--gold);
  color: var(--green-dark);
  border-color: var(--gold);
}

.btn-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  color: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212,175,55,0.4);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.6);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
  color: #fff;
  transform: translateY(-2px);
}

/* ===== FEATURE CARDS ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  padding: 48px 0;
}

.feature-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid var(--border);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--green);
}

.feature-icon { font-size: 2.5rem; margin-bottom: 16px; }

.feature-icon svg {
  width: 56px;
  height: 56px;
  display: block;
  margin: 0 auto;
}

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--green-dark);
  margin-bottom: 8px;
}

.feature-card p { color: var(--text-muted); font-size: 0.9rem; }

/* ===== ABOUT ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 16px;
  font-size: 1rem;
}

.about-values {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}

.value-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  color: var(--green-dark);
}

.value-icon { font-size: 1.3rem; }

.value-icon svg { display: block; flex-shrink: 0; }

.about-quote {
  background: var(--green-dark);
  border-radius: var(--radius);
  padding: 40px 32px;
  text-align: center;
  color: #fff;
}

.arabic-quote {
  font-family: 'Amiri', serif;
  font-size: 1.6rem;
  color: var(--gold);
  line-height: 1.8;
  margin-bottom: 20px;
  font-style: normal;
}

.quote-source {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  font-style: italic;
}

/* ===== PRAYER TIMES ===== */
.prayers-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  max-width: 800px;
  margin: 0 auto;
}

.prayer-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 20px 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.prayer-card:hover { border-color: var(--green); transform: translateX(4px); }

.prayer-card.highlight { border-left: 4px solid var(--green); }

.prayer-card.jumua {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-light) 100%);
  color: #fff;
  border: none;
  grid-column: 1 / -1;
}

.prayer-card.jumua .prayer-ar { color: var(--gold); }
.prayer-card.jumua .prayer-time { color: var(--gold); }

.prayer-name {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.prayer-ar {
  font-family: 'Amiri', serif;
  font-size: 1.2rem;
  color: var(--green);
}

.prayer-name span:not(.prayer-ar) {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.prayer-time {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--green-dark);
  font-variant-numeric: tabular-nums;
}

.prayers-note {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-top: 24px;
}

/* ===== EVENTS ===== */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.event-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  overflow: hidden;
  height: 380px;
}

.event-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

/* Bild oben – immer gleich groß */
.event-card-img {
  width: 100%;
  height: 180px;
  flex-shrink: 0;
  overflow: hidden;
  background: var(--green-dark);
  position: relative;
}

.event-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.event-card:hover .event-card-img img { transform: scale(1.04); }

/* Platzhalter wenn kein Bild */
.event-card-img--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 100%);
}

.event-card-img--placeholder img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  opacity: 0.45;
  filter: brightness(0) invert(1);
}

/* Unterer Bereich */
.event-card-body {
  padding: 16px 18px;
  display: flex;
  gap: 14px;
  flex: 1;
  min-height: 0;
}

.event-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  max-width: 52px;
  background: var(--green);
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 8px 6px;
  flex-shrink: 0;
  align-self: flex-start;
}

.event-day { font-size: 1.5rem; font-weight: 700; line-height: 1; }
.event-month { font-size: 0.7rem; font-weight: 500; text-transform: uppercase; opacity: 0.9; }

.event-date--recurring {
  background: var(--gold);
  min-width: 52px;
  max-width: 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  padding: 8px 4px;
  gap: 4px;
  flex-shrink: 0;
  align-self: flex-start;
}

.event-recurring-icon {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--green-dark);
  line-height: 1;
}

.event-recurring-label {
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--green-dark);
  text-transform: uppercase;
  text-align: center;
  line-height: 1.2;
}

.event-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.event-info h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--green-dark);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.event-info p {
  color: var(--text-muted);
  font-size: 0.82rem;
  margin-bottom: 8px;
  flex: 1;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.event-time {
  display: inline-block;
  background: rgba(26,107,60,0.1);
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 20px;
  align-self: flex-start;
}

.events-note {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-top: 32px;
}

/* ===== DONATE ===== */
.donate-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.donate-right {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.donate-hadith {
  font-family: 'Amiri', serif;
  font-size: 1.5rem;
  color: var(--green-dark);
  text-align: center;
  background: rgba(26,107,60,0.06);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 16px;
  border-right: 4px solid var(--gold);
}

.donate-hadith-trans {
  font-style: italic;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 20px;
  text-align: center;
}

.donate-text p { color: var(--text-muted); margin-bottom: 12px; }

.paypal-section {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.paypal-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #0070ba;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 50px;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(0,112,186,0.3);
}

.paypal-btn:hover {
  background: #005ea6;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,112,186,0.4);
}

.paypal-hint {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.qr-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  text-align: center;
}

.qr-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--gold);
}

.qr-img {
  width: 100%;
  max-width: 220px;
  height: auto;
  border-radius: 8px;
  margin: 0 auto 12px;
  display: block;
  border: 4px solid var(--border);
}

.qr-hint {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 8px;
}

.bank-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  border: 2px solid var(--green);
}

.bank-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--gold);
}

.bank-details { display: flex; flex-direction: column; gap: 16px; }

.bank-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

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

.bank-label { color: var(--text-muted); font-size: 0.875rem; min-width: 130px; }

.bank-value {
  font-weight: 600;
  color: var(--text);
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  text-align: right;
}

/* ===== CONTACT ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-info { display: flex; flex-direction: column; gap: 24px; }

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-icon { font-size: 1.5rem; flex-shrink: 0; margin-top: 2px; }

.contact-icon svg { display: block; }

.contact-item strong {
  display: block;
  font-weight: 600;
  color: var(--green-dark);
  margin-bottom: 4px;
}

.contact-item p { color: var(--text-muted); font-size: 0.95rem; }

.hours-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}

.hours-list span {
  display: block;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.contact-item a { color: var(--green); }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.contact-form h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--green-dark);
  margin-bottom: 4px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-family: inherit;
  transition: var(--transition);
  background: var(--bg);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(26,107,60,0.1);
}

.map-container { border-radius: var(--radius); overflow: hidden; }

.map-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 8px;
  text-align: center;
}

/* ===== LEGAL ===== */
.legal-content .section-header { text-align: left; }
.legal-content .divider { margin: 0 0 0 0; }

.legal-body h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--green-dark);
  margin: 28px 0 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}

.legal-body h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin: 16px 0 6px;
}

.legal-body p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 12px;
  line-height: 1.8;
}

.legal-body ul {
  color: var(--text-muted);
  font-size: 0.95rem;
  padding-left: 24px;
  line-height: 2;
}

/* ===== GALLERY ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  box-shadow: var(--shadow);
  background: var(--border);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

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

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,41,38,0.75) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.25s;
  display: flex;
  align-items: flex-end;
  padding: 14px;
}

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

.gallery-item-caption {
  color: #fff;
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.3;
}

.gallery-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 24px;
  color: var(--text-muted);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
}

.gallery-empty-icon { margin-bottom: 16px; }

.gallery-empty p { font-size: 0.95rem; }

/* LIGHTBOX */
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 500;
  align-items: center;
  justify-content: center;
}

.lightbox-overlay.open { display: flex; }

.lightbox-inner {
  position: relative;
  max-width: 90vw;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-inner img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 48px rgba(0,0,0,0.5);
}

.lightbox-caption {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  margin-top: 14px;
  text-align: center;
  max-width: 600px;
}

.lightbox-close {
  position: fixed;
  top: 20px;
  right: 24px;
  background: rgba(255,255,255,0.12);
  border: none;
  color: #fff;
  font-size: 1.4rem;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 501;
}

.lightbox-close:hover { background: rgba(255,255,255,0.25); }

.lightbox-prev,
.lightbox-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.12);
  border: none;
  color: #fff;
  font-size: 2.2rem;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 501;
  line-height: 1;
}

.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(255,255,255,0.25); }

@media (max-width: 768px) {
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
  .lightbox-prev { left: 6px; }
  .lightbox-next { right: 6px; }
}

/* ===== FOOTER ===== */
.footer {
  background: var(--green-dark);
  color: rgba(255,255,255,0.8);
  padding: 40px 0;
  text-align: center;
}

.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 12px; }

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}

.footer-address { font-size: 0.875rem; opacity: 0.7; }

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

.footer-links a {
  color: rgba(255,255,255,0.7);
  font-size: 0.875rem;
  transition: var(--transition);
}

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

.footer-copy { font-size: 0.8rem; opacity: 0.5; margin-top: 4px; }

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 4px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.85);
  transition: background 0.2s, color 0.2s, transform 0.2s;
  text-decoration: none;
}

.social-link:hover {
  background: var(--gold);
  color: var(--green-dark);
  transform: translateY(-2px);
}

.social-link--inactive {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}

.visitor-counter {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  margin-top: 8px;
}

.visitor-icon { font-size: 0.9rem; }

.visitor-count {
  font-weight: 700;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
  min-width: 24px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 64px;
    left: 0; right: 0;
    background: var(--green-dark);
    flex-direction: column;
    padding: 16px;
    gap: 4px;
    box-shadow: var(--shadow-lg);
  }

  .nav-links.open { display: flex; }

  .nav-links a {
    padding: 12px 16px;
    font-size: 1rem;
    width: 100%;
    border-radius: var(--radius-sm);
  }

  .hamburger { display: flex; }

  .about-grid,
  .donate-container,
  .contact-grid { grid-template-columns: 1fr; }

  .about-quote { order: -1; }

  .paypal-btn { width: 100%; justify-content: center; }

  .hero-bismillah { font-size: 1.3rem; }

  .features-grid { grid-template-columns: 1fr 1fr; }

  .prayers-container { grid-template-columns: 1fr; }

  .prayer-card.jumua { grid-column: auto; }

  .bank-row { flex-direction: column; gap: 4px; }
  .bank-value { text-align: left; }

  .section-header h2 { font-size: 1.6rem; }
}

@media (max-width: 480px) {
  .features-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 2.2rem; }
  .container { padding: 0 20px; }
  .section-content { padding: 40px 0; }
  .bank-card { padding: 20px; }
  .donate-hadith { font-size: 1.1rem; padding: 16px 20px; }
  .donate-hadith-trans { padding: 0 4px; }
  .donate-text p { padding: 0 4px; }
}

/* ===== RTL ADJUSTMENTS ===== */
[dir="rtl"] .nav-links { flex-direction: row-reverse; }
[dir="rtl"] .prayer-card:hover { transform: translateX(-4px); }
[dir="rtl"] .donate-hadith { border-right: none; border-left: 4px solid var(--gold); }
[dir="rtl"] .legal-body ul { padding-left: 0; padding-right: 24px; }
[dir="rtl"] .contact-item { flex-direction: row-reverse; }
[dir="rtl"] .bank-row { flex-direction: row-reverse; }
[dir="rtl"] .bank-value { text-align: left; }
[dir="rtl"] .footer-brand { flex-direction: row-reverse; }
[dir="rtl"] .nav-logo { flex-direction: row-reverse; }
