/* ============================================================
   HAFSA TEMPLATE — CSS
   Inspired by the Hafsa Masjid theme by LabArtisan
   Colors: Green #8dc63f, Dark #182d41, Cream #FFFBF9
   Fonts: Arvo (headings), Poppins (body)
   ============================================================ */

/* ============================================================
   CSS VARIABLES
   ============================================================ */
:root {
  --primary: #6aab2e;
  --primary-dark: #6fa32e;
  --primary-light: #a4d65e;
  --accent: #f7931d;
  --accent-light: #f9ab4a;
  --heading: #182d41;
  --bg: #FFFBF9;
  --bg-card: #ffffff;
  --bg-ash: #f7f1e9;
  --text: #555555;
  --text-mid: #444444;
  --text-light: #777777;
  --border: #e8e0d0;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
  --radius: 8px;
  --radius-lg: 16px;
  --nav-height: 64px;
  --top-bar-height: 40px;
}

[data-theme="dark"] {
  --primary: #6aab2e;
  --primary-dark: #5a9226;
  --primary-light: #7dbf3e;
  --heading: #e8e0d0;
  --bg: #0f1518;
  --bg-card: #1a2530;
  --bg-ash: #1e2a35;
  --text: #d0ccc5;
  --text-mid: #b0aca5;
  --text-light: #8a8580;
  --border: #2a3a45;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.45);
}

/* ============================================================
   BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  transition: background 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--heading);
  font-weight: 700;
  font-family: 'Arvo', serif;
  line-height: 1.3;
}

h1 { font-size: clamp(2rem, 5vw, 2.8rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2rem); }
h3 { font-size: 1.6rem; }
h4 { font-size: 1.3rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

a { color: inherit; text-decoration: none; transition: all 0.3s ease; }
a:hover { color: var(--primary); }

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

.container { max-width: 1190px; margin: 0 auto; padding: 0 1.5rem; }
.container-sm { max-width: 800px; margin: 0 auto; padding: 0 1.5rem; }

/* ============================================================
   GEOMETRIC PATTERN BACKGROUNDS
   ============================================================ */
.geo-bg {
  background-color: var(--primary);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='rgba(255,255,255,0.08)' stroke-width='0.8'%3E%3Cpath d='M40 8L48 26L66 18L56 36L76 40L56 44L66 62L48 54L40 72L32 54L14 62L24 44L4 40L24 36L14 18L32 26Z'/%3E%3Ccircle cx='40' cy='40' r='12'/%3E%3C/g%3E%3C/svg%3E");
}

.geo-bg-light {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cg fill='none' stroke='rgba(141,198,63,0.06)' stroke-width='0.7'%3E%3Cpath d='M30 5L36 18L49 13L42 26L55 30L42 34L49 47L36 42L30 55L24 42L11 47L18 34L5 30L18 26L11 13L24 18Z'/%3E%3C/g%3E%3C/svg%3E");
}

/* ============================================================
   TOP BAR
   ============================================================ */
.top-bar {
  background: var(--heading);
  color: rgba(255,255,255,0.85);
  font-size: 0.8rem;
  height: var(--top-bar-height);
  display: flex;
  align-items: center;
}

[data-theme="dark"] .top-bar { background: #0a1118; }

.top-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.top-bar-left {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.top-bar-left span { display: flex; align-items: center; gap: 0.4rem; }
.top-bar-left i { font-size: 0.75rem; color: var(--primary); }

.top-bar-social {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.top-bar-social a {
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  transition: color 0.2s;
}

.top-bar-social a:hover { color: var(--primary); }

@media (max-width: 768px) {
  .top-bar { display: none; }
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fffbf9;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}

[data-theme="dark"] .navbar { background: #0f1518; }
.navbar.scrolled { box-shadow: var(--shadow); }

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  gap: 0.5rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.nav-logo-name {
  font-family: 'Arvo', serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--heading);
  display: block;
  line-height: 1.1;
}

.nav-logo-sub {
  font-size: 0.6rem;
  color: var(--text-light);
  display: none;
  line-height: 1.2;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 0.2rem;
  align-items: center;
  flex-wrap: nowrap;
}

.nav-links li a {
  padding: 0.4rem 0.6rem;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-mid);
  border-radius: var(--radius);
  transition: all 0.2s;
  white-space: nowrap;
}

.nav-links li a:hover,
.nav-links li a.active {
  color: var(--primary);
  background: rgba(141, 198, 63, 0.08);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-nav-prayer {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1rem;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
}

.btn-nav-prayer:hover { background: var(--primary-dark); color: #fff; }

.btn-nav-donate {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
}

.btn-nav-donate:hover { background: #e0850f; color: #fff; }

/* Dark mode toggle */
.dark-toggle {
  background: none;
  border: 1px solid var(--border);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.dark-toggle:hover { border-color: var(--primary); background: rgba(141,198,63,0.08); }

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

.hamburger span {
  width: 22px;
  height: 2px;
  background: var(--heading);
  border-radius: 2px;
  transition: 0.3s;
}

@media (max-width: 992px) {
  .nav-links { display: none; }
  .btn-nav-prayer { display: none; }
  .hamburger { display: flex; }
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0; right: 0; bottom: 0;
  background: var(--bg-card);
  z-index: 999;
  padding: 1.5rem;
  overflow-y: auto;
  animation: slideDown 0.25s ease;
}

.mobile-menu.open { display: block; }

.mobile-menu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mobile-menu ul li a {
  display: block;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-mid);
  border-radius: var(--radius);
  transition: all 0.2s;
}

.mobile-menu ul li a:hover,
.mobile-menu ul li a.active {
  color: var(--primary);
  background: rgba(141,198,63,0.08);
}

.mobile-menu-footer {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

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

/* ============================================================
   SECTIONS & LAYOUT
   ============================================================ */
.section { padding: 5rem 0; }
.section-sm { padding: 2rem 0; }

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: rgba(106,171,46,0.08);
  padding: 0.3rem 1rem;
  border-radius: 20px;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.section-subtitle {
  color: var(--text-light);
  font-size: 0.95rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Ornament (decorative divider) */
.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: 1rem 0 1.5rem;
}

.ornament-line {
  height: 2px;
  width: 50px;
  background: linear-gradient(to right, transparent, var(--primary));
}

.ornament-line.right {
  background: linear-gradient(to left, transparent, var(--primary));
}

.ornament-icon { color: var(--primary); font-size: 1rem; }

/* Grids */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

@media (max-width: 992px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(106,171,46,0.3);
}

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

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-1px);
}

.btn-white {
  background: #fff;
  color: var(--heading);
  border-color: #fff;
}

.btn-white:hover {
  background: rgba(255,255,255,0.9);
  color: var(--primary);
}

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

.btn-outline-white:hover {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
  color: #fff;
}

.btn-accent {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn-accent:hover {
  background: #e0850f;
  border-color: #e0850f;
  color: #fff;
}

.btn-sm { padding: 0.45rem 1rem; font-size: 0.82rem; }

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.card-body { padding: 1.5rem; }

.card-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  background: rgba(141,198,63,0.1);
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  margin-bottom: 0.5rem;
}

.card-title {
  font-family: 'Arvo', serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--heading);
  margin-bottom: 0.5rem;
  line-height: 1.35;
}

.card-text {
  color: var(--text-light);
  font-size: 0.88rem;
  margin-bottom: 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-light);
  flex-wrap: wrap;
}

/* ============================================================
   HERO / BANNER
   ============================================================ */
.hero {
  background: linear-gradient(135deg, var(--heading) 0%, #1a3a52 100%);
  color: #fff;
  padding: 3rem 0 2.5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='rgba(141,198,63,0.08)' stroke-width='0.7'%3E%3Cpath d='M40 8L48 26L66 18L56 36L76 40L56 44L66 62L48 54L40 72L32 54L14 62L24 44L4 40L24 36L14 18L32 26Z'/%3E%3Ccircle cx='40' cy='40' r='12'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  background: rgba(141,198,63,0.15);
  color: #fff;
  padding: 0.6rem 1.8rem;
  border-radius: 24px;
  font-size: 1.4rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  direction: rtl;
}

.hero-bismillah {
  font-family: 'Arvo', serif;
  font-size: 1.6rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: 3rem;
  color: #fff;
  margin-bottom: 1rem;
  line-height: 1.15;
}

.hero h1 em {
  color: var(--primary);
  font-style: normal;
}

.hero p {
  color: rgba(255,255,255,0.8);
  font-size: 1rem;
  max-width: 560px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  color: rgba(255,255,255,0.5);
  font-size: 0.75rem;
  animation: float 2s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

@media (max-width: 768px) {
  .hero { padding: 4rem 0 3rem; }
  .hero h1 { font-size: 2.2rem; }
  .hero-scroll { display: none; }
}

/* ============================================================
   PAGE HEADER (inner pages)
   ============================================================ */
.page-header {
  background: linear-gradient(135deg, var(--heading) 0%, #1a3a52 100%);
  padding: 4rem 0 3.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='rgba(141,198,63,0.06)' stroke-width='0.7'%3E%3Cpath d='M40 8L48 26L66 18L56 36L76 40L56 44L66 62L48 54L40 72L32 54L14 62L24 44L4 40L24 36L14 18L32 26Z'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.page-header h1 {
  font-size: 2.4rem;
  color: #fff;
  margin-bottom: 0.5rem;
  position: relative;
}

.page-header p,
.page-header .page-header-subtitle {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
  margin: 0.25rem auto 0;
  max-width: 720px;
  position: relative;
}

.page-header .breadcrumb {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  align-items: center;
  list-style: none;
  position: relative;
  color: rgba(255,255,255,0.7);
  font-size: 0.88rem;
}

.page-header .breadcrumb a {
  color: rgba(255,255,255,0.7);
  transition: color 0.2s;
}

.page-header .breadcrumb a:hover { color: #fff; }
.page-header .breadcrumb .active { color: var(--primary); }
.page-header .breadcrumb .sep { color: rgba(255,255,255,0.4); }

/* ============================================================
   WELCOME / ABOUT FLEX
   ============================================================ */
.welcome-flex {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

@media (max-width: 768px) {
  .welcome-flex { grid-template-columns: 1fr; }
}

.welcome-img-wrap { position: relative; }

.welcome-img {
  border-radius: var(--radius-lg);
  width: 100%;
  object-fit: cover;
}

.welcome-badge {
  position: absolute;
  bottom: -1rem;
  right: -1rem;
  background: var(--primary);
  color: #fff;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.welcome-badge-num {
  font-family: 'Arvo', serif;
  font-weight: 700;
  font-size: 2rem;
  line-height: 1;
}

.welcome-badge-txt {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.9;
}

/* Value items (icon + text rows) */
.value-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.value-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: rgba(141,198,63,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.value-text h4 {
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.value-text p {
  font-size: 0.88rem;
  color: var(--text-light);
  margin: 0;
}

/* ============================================================
   FEATURE CARDS (4 small icon + text items)
   ============================================================ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

@media (max-width: 992px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 576px) { .feature-grid { grid-template-columns: 1fr; } }

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
}

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

.feature-card:hover h5 { color: var(--primary); }

.feature-card-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.feature-card h5 {
  margin-bottom: 0.5rem;
  transition: color 0.3s;
}

.feature-card p {
  font-size: 0.88rem;
  color: var(--text-light);
  margin: 0;
}

/* ============================================================
   SERVICE CARDS (image + content)
   ============================================================ */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

@media (max-width: 768px) { .service-grid { grid-template-columns: 1fr; } }

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.3s;
}

.service-card:hover { transform: translateY(-3px); }

.service-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.4s;
}

.service-card:hover .service-card-img { transform: scale(1.06); }

.service-card-body {
  padding: 1.5rem;
}

.service-card-tag {
  color: var(--primary);
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}

.service-card-body h5 { margin-bottom: 0.5rem; }
.service-card-body h5 a:hover { color: var(--primary); }

.service-card-body p {
  font-size: 0.88rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.text-btn {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--heading);
  transition: color 0.2s;
}

.text-btn:hover { color: var(--primary); }

/* ============================================================
   FAITH PILLARS (tabs)
   ============================================================ */
.faith-tabs {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.faith-tab {
  padding: 0.6rem 1.25rem;
  border: 2px solid var(--border);
  border-radius: 30px;
  background: var(--bg-card);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.3s;
  color: var(--text-mid);
  font-family: 'Poppins', sans-serif;
}

.faith-tab:hover { border-color: var(--primary); color: var(--primary); }
.faith-tab.active { background: var(--primary); color: #fff; border-color: var(--primary); }

.faith-panel {
  display: none;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.faith-panel.active { display: grid; grid-template-columns: 1fr 1fr; align-items: center; }

@media (max-width: 768px) {
  .faith-panel.active { grid-template-columns: 1fr; }
}

.faith-panel img {
  width: 100%;
  height: 350px;
  object-fit: cover;
}

.faith-panel-content {
  padding: 2.5rem;
}

.faith-panel-content h4 { margin-bottom: 0.75rem; }
.faith-panel-content h4 span { color: var(--primary); font-weight: 400; }
.faith-panel-content p { color: var(--text); font-size: 0.95rem; line-height: 1.7; }

/* ============================================================
   STAT CARDS
   ============================================================ */
.stat-card {
  text-align: center;
  color: #fff;
  padding: 2rem 1rem;
}

.stat-icon { font-size: 2rem; margin-bottom: 0.5rem; }

.stat-number {
  font-family: 'Arvo', serif;
  font-weight: 700;
  font-size: 2.5rem;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.85rem;
  opacity: 0.85;
}

/* ============================================================
   QUOTE / HADITH BANNER
   ============================================================ */
.quote-banner {
  background: linear-gradient(135deg, var(--heading), #1a3a52);
  color: #fff;
  text-align: center;
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.quote-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='rgba(141,198,63,0.06)' stroke-width='0.7'%3E%3Cpath d='M40 8L48 26L66 18L56 36L76 40L56 44L66 62L48 54L40 72L32 54L14 62L24 44L4 40L24 36L14 18L32 26Z'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.quote-icon {
  font-family: 'Arvo', serif;
  font-size: 5rem;
  line-height: 0.8;
  color: var(--primary);
  opacity: 0.7;
  position: relative;
}

.quote-arabic {
  font-size: 2rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  position: relative;
}

.quote-translation {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 0.75rem;
  font-style: italic;
  opacity: 0.9;
  line-height: 1.7;
  position: relative;
}

.quote-source {
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 600;
  position: relative;
}

/* ============================================================
   GALLERY GRID
   ============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

@media (max-width: 768px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .gallery-grid { grid-template-columns: 1fr; } }

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

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

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

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 50%, rgba(24,45,65,0.8));
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.3s;
}

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

.gallery-overlay h3 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 0.15rem;
}

.gallery-overlay span {
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
}

/* ============================================================
   DONATE CTA
   ============================================================ */
.donate-cta {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.donate-cta h2 {
  font-size: 2rem;
  color: #fff;
  margin-bottom: 0.75rem;
}

.donate-cta p {
  opacity: 0.9;
  margin-bottom: 2rem;
  max-width: 380px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   PROGRESS BAR (campaign/fundraising)
   ============================================================ */
.progress-wrap {
  background: var(--bg-ash);
  border-radius: 10px;
  height: 10px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.progress-bar-inner {
  height: 100%;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  transition: width 1s ease;
}

/* ============================================================
   EVENTS LIST
   ============================================================ */
.event-date-box {
  background: var(--primary);
  color: #fff;
  padding: 0.75rem 1rem;
  text-align: center;
  border-radius: var(--radius) var(--radius) 0 0;
  min-width: 80px;
}

.event-date-box .day {
  font-family: 'Arvo', serif;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.event-date-box .month {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.85;
}

/* ============================================================
   FORMS
   ============================================================ */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="number"],
input[type="url"],
input[type="date"],
input[type="time"],
textarea,
select {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  color: var(--text);
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  transition: border-color 0.2s;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(141,198,63,0.15);
}

label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 0.35rem;
  color: var(--text-mid);
}

/* ============================================================
   PRAYER TIMES
   ============================================================ */
.prayer-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
  transition: all 0.3s;
}

.prayer-card.current {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 15px rgba(141,198,63,0.3);
}

.prayer-card.current .prayer-name,
.prayer-card.current .prayer-time-val {
  color: #fff;
}

.prayer-icon { font-size: 1.2rem; margin-bottom: 0.3rem; }
.prayer-name { font-weight: 700; font-size: 0.88rem; }
.prayer-arabic { font-size: 0.78rem; opacity: 0.7; margin-bottom: 0.35rem; }
.prayer-time-val { font-weight: 700; font-size: 1.05rem; font-variant-numeric: tabular-nums; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--heading);
  color: rgba(255,255,255,0.8);
  padding: 4rem 0 0;
}

[data-theme="dark"] .footer { background: #0a1118; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 2.5rem;
}

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

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-brand-name {
  font-family: 'Arvo', serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 0.75rem;
}

.footer-desc {
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.footer-social {
  display: flex;
  gap: 0.5rem;
}

.social-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  transition: all 0.2s;
}

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

.footer h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.85);
  transition: all 0.2s;
}

.footer-links a:hover { color: var(--primary); padding-left: 4px; }

.footer-contact-item {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  margin-bottom: 0.75rem;
  font-size: 0.88rem;
}

.footer-contact-icon { font-size: 1rem; min-width: 1.2rem; }

.footer-newsletter {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.footer-newsletter input {
  flex: 1;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  border-radius: var(--radius);
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
}

.footer-newsletter input::placeholder { color: rgba(255,255,255,0.4); }

.footer-divider {
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin: 2.5rem 0 1.5rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.75);
  padding-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

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

.lightbox.open { display: flex; }

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(255,255,255,0.1);
  border: none;
  color: #fff;
  font-size: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10001;
  transition: background 0.2s;
}

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

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  border: none;
  color: #fff;
  font-size: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10001;
  transition: background 0.2s;
}

.lightbox-nav:hover { background: rgba(255,255,255,0.2); }
.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }

.lightbox-img-wrap {
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img-wrap img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
}

.lightbox-caption {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  text-align: center;
  max-width: 600px;
}

/* ============================================================
   TOAST
   ============================================================ */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--heading);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-size: 0.88rem;
  opacity: 0;
  transition: all 0.3s;
  z-index: 9999;
  pointer-events: none;
}

.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============================================================
   SCROLL TOP
   ============================================================ */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scroll-top.show { opacity: 1; transform: translateY(0); }
.scroll-top:hover { background: var(--primary-dark); }

/* ============================================================
   LOADING STATE
   ============================================================ */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 0.9rem;
  padding: 2rem;
}

/* ============================================================
   FADE IN ANIMATION
   ============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   DONATION PAGE
   ============================================================ */
.donate-amounts {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.donate-btn {
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  font-family: 'Arvo', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--heading);
  cursor: pointer;
  transition: all 0.2s;
}

.donate-btn:hover,
.donate-btn.active {
  border-color: var(--primary);
  background: rgba(141,198,63,0.08);
  color: var(--primary);
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-info-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.contact-icon {
  width: 50px;
  height: 50px;
  min-width: 50px;
  background: rgba(141,198,63,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

/* ============================================================
   CAMPAIGNS PAGE
   ============================================================ */
.campaign-progress {
  margin-top: 0.75rem;
}

.campaign-stats {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  margin-bottom: 0.35rem;
}

.campaign-stats .raised { color: var(--primary); font-weight: 700; }
.campaign-stats .goal { color: var(--text-light); }

/* ============================================================
   MEMBERSHIP PAGE
   ============================================================ */
.plan-card {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  transition: all 0.3s;
}

.plan-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
}

.plan-card.featured {
  border-color: var(--primary);
  position: relative;
}

.plan-price {
  font-family: 'Arvo', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  margin: 1rem 0;
}

.plan-price span {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-light);
}

.plan-features {
  list-style: none;
  text-align: left;
  margin-bottom: 1.5rem;
}

.plan-features li {
  padding: 0.4rem 0;
  font-size: 0.88rem;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}

.plan-features li::before {
  content: '\\2713 ';
  color: var(--primary);
  font-weight: 700;
  margin-right: 0.5rem;
}

/* ============================================================
   PRIVACY POLICY / CONTENT PAGE
   ============================================================ */
.content-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.content-page h2 { margin-top: 2rem; margin-bottom: 0.75rem; font-size: 1.4rem; }
.content-page h3 { margin-top: 1.5rem; margin-bottom: 0.5rem; font-size: 1.15rem; }
.content-page p { margin-bottom: 1rem; line-height: 1.8; }
.content-page ul { padding-left: 1.5rem; margin-bottom: 1rem; }
.content-page li { margin-bottom: 0.5rem; line-height: 1.7; }

/* ============================================================
   RESPONSIVE UTILITIES
   ============================================================ */
@media (max-width: 768px) {
  .section { padding: 3.5rem 0; }
  .section-title { font-size: 1.6rem; }
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.6rem; }
}

/* ── Filter tabs (gallery, events) ──────────────────────────── */
.filter-tabs { display:flex; flex-wrap:wrap; gap:0.5rem; margin-bottom:2rem; }
.filter-tab { background:var(--bg-card,#fff); border:1px solid var(--border,#e2e2e2); border-radius:50px; padding:0.5rem 1.2rem; font-size:0.85rem; font-weight:600; color:var(--text-mid,#555); cursor:pointer; transition:all 0.25s; font-family:inherit; }
.filter-tab:hover { border-color:var(--primary); color:var(--primary); }
.filter-tab.active { background:var(--primary); color:#fff; border-color:var(--primary); }
.gallery-filter-btn { background:var(--bg-card,#fff); border:1px solid var(--border,#e2e2e2); border-radius:50px; padding:0.5rem 1.2rem; font-size:0.85rem; font-weight:600; color:var(--text-mid,#555); cursor:pointer; transition:all 0.25s; font-family:inherit; }
.gallery-filter-btn:hover { border-color:var(--primary); color:var(--primary); }
.gallery-filter-btn.active { background:var(--primary); color:#fff; border-color:var(--primary); }


/* Social icons (gauravghongde/social-icons) */
.social-btn img { width: 22px; height: 22px; display: block; pointer-events: none; }
