/* ============================================================
   ISCCH - Islamic Society & Cultural Center of Hyde Park
   Premium Stylesheet
   ============================================================ */

/* ---------- CSS Variables ---------- */
:root {
  --green-dark:   #0F3D2B;
  --green-primary:#1B5E3B;
  --green-mid:    #2D7A56;
  --green-light:  #4A9A72;
  --green-pale:   #EEF6F0;
  --gold:         #C8A951;
  --gold-dark:    #A07930;
  --gold-light:   #E8C97A;
  --cream:        #FAFAF7;
  --white:        #FFFFFF;
  --text-dark:    #1A2B1E;
  --text-mid:     #3D5248;
  --text-light:   #6B7F74;
  --border:       #D8E8DC;
  --shadow-sm:    0 2px 12px rgba(15,61,43,.07);
  --shadow-md:    0 8px 32px rgba(15,61,43,.12);
  --shadow-lg:    0 20px 60px rgba(15,61,43,.16);
  --radius-sm:    8px;
  --radius-md:    16px;
  --radius-lg:    24px;
  --transition:   all .35s cubic-bezier(.4,0,.2,1);
}

/* ---------- Reset & Base ---------- */
*, *::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-dark);
  background: var(--cream);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  line-height: 1.25;
  color: var(--text-dark);
}

.arabic {
  font-family: 'Amiri', serif;
  direction: rtl;
  text-align: center;
}

.bangla { font-family: 'Noto Sans Bengali', sans-serif; }

/* ---------- Utility ---------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-pad { padding: 96px 0; }

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

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

.section-header h2 span:not(.h2-red) {
  color: rgba(255,255,255,0.65);
}

.h2-red { color: #C0392B !important; }

#events .section-header h2,
.past-events-section .section-header h2,
.past-videos-section .section-header h2,
#education .section-header h2,
#gallery .section-header h2 {
  color: var(--white);
}

#events .section-header .sub,
.past-events-section .section-header .sub,
.past-videos-section .section-header .sub,
#education .section-header .sub,
#gallery .section-header .sub {
  color: rgba(255,255,255,.65);
}

.section-header .sub {
  font-size: .95rem;
  color: var(--text-light);
  font-weight: 400;
}

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  letter-spacing: .3px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--green-primary), var(--green-mid));
  color: var(--white);
  box-shadow: 0 4px 20px rgba(27,94,59,.35);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--green-mid), var(--green-light));
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(27,94,59,.4);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: var(--white);
  box-shadow: 0 4px 20px rgba(200,169,81,.4);
}
.btn-gold:hover {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(200,169,81,.5);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.7);
}
.btn-outline:hover {
  background: rgba(255,255,255,.12);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-outline-green {
  background: transparent;
  color: var(--green-primary);
  border: 2px solid var(--green-primary);
}
.btn-outline-green:hover {
  background: var(--green-primary);
  color: var(--white);
  transform: translateY(-2px);
}

/* ============================================================
   ANNOUNCEMENT BAR
   ============================================================ */
.announcement-bar {
  background: linear-gradient(135deg, var(--green-dark), var(--green-primary));
  color: var(--white);
  padding: 10px 0;
  font-size: .875rem;
  position: relative;
  z-index: 1001;
  overflow: hidden;
  white-space: nowrap;
}

.announcement-bar .ticker-track {
  display: inline-block;
  animation: ticker-scroll 30s linear infinite;
  white-space: nowrap;
}

.announcement-bar .ticker-track:hover {
  animation-play-state: paused;
}

@keyframes ticker-scroll {
  0%   { transform: translateX(100vw); }
  100% { transform: translateX(-100%); }
}

.announcement-bar span { opacity: .9; color: #ffffff; }
.announcement-bar strong { opacity: 1; color: #ffffff; }

/* ============================================================
   NAVIGATION
   ============================================================ */
#navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

#navbar.scrolled {
  box-shadow: var(--shadow-md);
}

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

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

.nav-logo .logo-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--green-primary), var(--green-mid));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.2rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(27,94,59,.3);
}

.nav-logo-img {
  height: 58px;
  width: auto;
  flex-shrink: 0;
  object-fit: contain;
  display: block;
  drop-shadow: 0 2px 8px rgba(0,0,0,.15);
}

.nav-logo .logo-text .name {
  font-family: 'Playfair Display', serif;
  font-size: .95rem;
  font-weight: 700;
  color: var(--green-dark);
  line-height: 1.2;
}

.nav-logo .logo-text .tagline {
  font-size: .68rem;
  color: var(--text-light);
  font-weight: 400;
  line-height: 1.3;
}

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

.nav-links a {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: .88rem;
  font-weight: 500;
  color: var(--text-mid);
  transition: var(--transition);
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--green-pale);
  color: var(--green-primary);
}

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

.nav-actions .btn { padding: 10px 22px; font-size: .85rem; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: var(--transition);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 16px 24px 24px;
  gap: 4px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: .95rem;
  font-weight: 500;
  color: var(--text-mid);
  transition: var(--transition);
}
.mobile-menu a:hover { background: var(--green-pale); color: var(--green-primary); }
.mobile-menu .btn { margin-top: 8px; justify-content: center; }

/* ============================================================
   HERO SECTION
   ============================================================ */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('../images/mosque-building.jpg') center/cover no-repeat;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10,35,20,.88) 0%,
    rgba(15,61,43,.78) 40%,
    rgba(20,55,38,.65) 100%
  );
  z-index: 1;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  background-image: url('../images/islamic-pattern.png');
  background-size: 300px;
  opacity: .06;
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: var(--white);
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
}

.hero-arabic {
  font-family: 'Amiri', serif;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: var(--gold-light);
  margin-bottom: 20px;
  opacity: .92;
  letter-spacing: 1px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(200,169,81,.2);
  border: 1px solid rgba(200,169,81,.4);
  color: var(--gold-light);
  padding: 6px 18px;
  border-radius: 50px;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .8px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 8px;
}

.hero-title-bangla {
  font-family: 'Noto Sans Bengali', sans-serif;
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  color: rgba(255,255,255,.75);
  font-weight: 400;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,.82);
  font-weight: 300;
  margin-bottom: 40px;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.75;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: rgba(255,255,255,.5);
  font-size: .8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: bounce 2s infinite;
}

.hero-scroll i { font-size: 1.1rem; }

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

/* ============================================================
   PRAYER TIMES
   ============================================================ */
#prayer-times {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-primary) 100%);
  padding: 72px 0;
  position: relative;
  overflow: hidden;
}

#prayer-times::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/islamic-pattern.png') center/400px;
  opacity: .04;
}

.prayer-header {
  text-align: center;
  margin-bottom: 48px;
  position: relative;
  z-index: 1;
}

.prayer-header h2 {
  color: var(--white);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  margin-bottom: 8px;
}

.prayer-header .sub { color: rgba(255,255,255,.65); }
.prayer-header .gold-divider { margin: 14px auto; }

.prayer-date-bar {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 50px;
  padding: 10px 24px;
  color: var(--gold-light);
  font-size: .9rem;
  font-weight: 500;
  display: inline-block;
  margin-top: 12px;
}

.prayer-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  position: relative;
  z-index: 1;
}

.prayer-card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-md);
  padding: 28px 16px;
  text-align: center;
  transition: var(--transition);
  cursor: default;
}

.prayer-card:hover {
  background: rgba(255,255,255,.14);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,.2);
}

.prayer-card.active {
  background: linear-gradient(135deg, rgba(200,169,81,.25), rgba(200,169,81,.12));
  border-color: rgba(200,169,81,.5);
  box-shadow: 0 8px 32px rgba(200,169,81,.2);
}

.prayer-card.active .prayer-name { color: var(--gold-light); }
.prayer-card.active .prayer-time { color: var(--white); }

.prayer-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  color: var(--gold-light);
  font-size: 1.1rem;
}

.prayer-card.active .prayer-icon {
  background: rgba(200,169,81,.25);
}

.prayer-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: rgba(255,255,255,.9);
  margin-bottom: 6px;
}

.prayer-arabic-name {
  font-family: 'Amiri', serif;
  font-size: .85rem;
  color: rgba(255,255,255,.45);
  margin-bottom: 12px;
  direction: rtl;
}

.prayer-time {
  font-size: 1.45rem;
  font-weight: 700;
  color: rgba(255,255,255,.95);
  font-variant-numeric: tabular-nums;
}

.prayer-iqama {
  font-size: .75rem;
  color: rgba(255,255,255,.45);
  margin-top: 4px;
}

.prayer-next-badge {
  display: inline-block;
  background: var(--gold);
  color: var(--green-dark);
  font-size: .65rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-top: 8px;
}

/* ── Next Prayer Card ── */
.npc-wrap {
  position: relative;
  z-index: 1;
  margin: 36px 0 0;
  background: var(--cream);
  border-radius: 20px;
  padding: 30px 40px;
  display: flex;
  align-items: center;
  gap: 40px;
  box-shadow: 0 24px 64px rgba(0,0,0,.28), 0 0 0 1px rgba(200,169,81,.18);
  overflow: hidden;
}

.npc-wrap::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 5px;
  background: linear-gradient(to bottom, var(--gold), #d4a935);
  border-radius: 4px 0 0 4px;
}

.npc-left {
  flex: 1;
  min-width: 0;
}

.npc-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--green-primary);
  background: rgba(27,94,59,.1);
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 12px;
}

.npc-name {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.npc-name #npc-en {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 700;
  color: var(--green-dark);
  line-height: 1;
}

.npc-ar {
  font-family: 'Amiri', serif;
  font-size: 1.4rem;
  color: var(--green-primary);
  opacity: .6;
  direction: rtl;
}

.npc-schedule {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.npc-sch-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .88rem;
  color: var(--text-mid);
}

.npc-sch-item i { color: var(--green-primary); font-size: .8rem; }
.npc-sch-item strong { color: var(--text-dark); font-weight: 700; }

.npc-dot { color: var(--border); font-size: 1.2rem; }

.npc-vline {
  width: 1px;
  height: 80px;
  background: linear-gradient(to bottom, transparent, var(--border), transparent);
  flex-shrink: 0;
}

.npc-right {
  flex-shrink: 0;
  text-align: center;
}

.npc-cdown-label {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-mid);
  margin-bottom: 12px;
}

.npc-digits {
  display: flex;
  align-items: center;
  gap: 8px;
}

.npc-box {
  background: var(--green-dark);
  border-radius: 12px;
  padding: 12px 18px;
  min-width: 72px;
  text-align: center;
}

.npc-num {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  letter-spacing: -1px;
}

.npc-unit {
  font-size: .6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,255,255,.45);
  margin-top: 4px;
}

.npc-sep {
  font-size: 2rem;
  font-weight: 800;
  color: var(--green-primary);
  opacity: .35;
  margin-bottom: 16px;
  line-height: 1;
}

@media (max-width: 640px) {
  .npc-wrap { flex-direction: column; gap: 24px; padding: 24px 20px; text-align: center; }
  .npc-wrap::before { left: 0; right: 0; top: 0; bottom: auto; width: auto; height: 4px; border-radius: 4px 4px 0 0; }
  .npc-vline { width: 80px; height: 1px; }
  .npc-name { justify-content: center; }
  .npc-schedule { justify-content: center; }
  .npc-badge { margin: 0 auto 12px; }
  .npc-box { min-width: 60px; padding: 10px 14px; }
  .npc-num { font-size: 1.8rem; }
}

.jummah-bar {
  margin-top: 40px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(200,169,81,.3);
  border-radius: var(--radius-md);
  padding: 28px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
}

.jummah-info h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  color: var(--white);
  margin-bottom: 4px;
}

.jummah-info .jummah-bangla { font-size: .85rem; color: var(--gold-light); }

.jummah-details {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.jummah-detail {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,.8);
  font-size: .9rem;
}

.jummah-detail i {
  color: var(--gold);
  width: 18px;
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */
#about {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-primary) 100%);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

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

.about-img-main {
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.about-img-badge {
  position: absolute;
  bottom: 32px;
  right: -20px;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  box-shadow: var(--shadow-md);
  text-align: center;
}

.about-img-badge .num {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--green-primary);
  line-height: 1;
}
.about-img-badge .label {
  font-size: .78rem;
  color: var(--text-light);
  font-weight: 500;
}

.about-content .label-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green-pale);
  color: var(--green-primary);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .6px;
  margin-bottom: 20px;
}

.about-content h2 {
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  color: var(--white);
  margin-bottom: 8px;
}

.about-content .gold-divider { margin: 16px 0; }

.about-content p {
  color: rgba(255,255,255,.8);
  line-height: 1.85;
  margin-bottom: 16px;
  font-size: .97rem;
}

.about-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 28px 0 36px;
}

.value-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .9rem;
  color: var(--text-mid);
  font-weight: 500;
}

.value-item i {
  width: 32px;
  height: 32px;
  min-width: 32px;
  background: var(--green-pale);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--green-primary);
  font-size: .85rem;
  flex-shrink: 0;
}

/* ============================================================
   EVENTS SECTION
   ============================================================ */
#events {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-primary) 100%);
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 48px;
}

.event-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

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

.event-img {
  height: 200px;
  overflow: hidden;
  position: relative;
}

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

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

.event-category {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--green-primary);
  color: var(--white);
  font-size: .72rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.event-date-chip {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255,255,255,.92);
  border-radius: 10px;
  padding: 6px 12px;
  text-align: center;
  font-size: .8rem;
  font-weight: 700;
  color: var(--green-primary);
  backdrop-filter: blur(4px);
  line-height: 1.3;
}

.event-body { padding: 24px; }

.event-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.event-body .event-bangla {
  font-size: .8rem;
  color: var(--green-primary);
  font-weight: 500;
  margin-bottom: 12px;
}

.event-body p {
  font-size: .88rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 18px;
}

.event-meta {
  display: flex;
  gap: 16px;
  font-size: .8rem;
  color: var(--text-light);
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.event-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.event-meta i { color: var(--green-primary); }

.events-cta { text-align: center; }

/* ============================================================
   PAST EVENTS SECTION
   ============================================================ */
.past-events-section {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-primary) 100%);
  border-top: none;
}

.past-events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.past-event-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--cream);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.past-event-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(27,94,59,.2);
}

.past-event-img {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.past-event-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(35%) brightness(.88);
  transition: filter .4s ease, transform .5s ease;
}

.past-event-card:hover .past-event-img img {
  filter: grayscale(0%) brightness(.95);
  transform: scale(1.04);
}

.past-event-year {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(0,0,0,.55);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .8px;
  padding: 4px 10px;
  border-radius: 50px;
  backdrop-filter: blur(4px);
}

.past-done-badge {
  position: absolute;
  bottom: 14px;
  right: 14px;
  background: rgba(27,94,59,.88);
  color: #fff;
  font-size: .7rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 5px;
  backdrop-filter: blur(4px);
}

.past-done-badge i {
  font-size: .65rem;
  color: var(--gold-light);
}

.past-event-body {
  padding: 20px;
}

.past-event-category {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--green-primary);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.past-event-category::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}

.past-event-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
  line-height: 1.35;
}

.past-event-body .event-bangla {
  font-size: .78rem;
  color: var(--green-primary);
  margin-bottom: 10px;
  opacity: .8;
}

.past-event-body p:not(.event-bangla) {
  font-size: .88rem;
  color: var(--text-mid);
  line-height: 1.6;
  margin-bottom: 14px;
}

.past-event-meta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

/* ── Past Event Videos ── */
.past-videos-section {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-primary) 100%);
  border-top: none;
}

.past-video-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #111;
}

.video-thumb-link {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
}

.video-thumb-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease, filter .4s ease;
}

.video-thumb-link:hover img {
  transform: scale(1.04);
  filter: brightness(.75);
}

.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: rgba(255,0,0,.85);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.6rem;
  pointer-events: none;
  transition: background .3s ease, transform .3s ease;
}

.video-thumb-link:hover .video-play-btn {
  background: #ff0000;
  transform: translate(-50%, -50%) scale(1.1);
}

.video-no-thumb {
  width: 100%;
  height: 100%;
  background: #1a1a1a;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: rgba(255,255,255,.4);
  font-size: .85rem;
}

.video-no-thumb i {
  font-size: 2rem;
}

.past-video-thumb .past-event-year {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--green-dark);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: .5px;
  z-index: 2;
}

.past-event-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: .78rem;
  color: var(--text-mid);
  font-weight: 500;
}

.past-event-meta i {
  color: var(--green-primary);
  font-size: .75rem;
}

.past-event-photos {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.past-event-photos-label {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .7px;
  color: var(--text-mid);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.past-event-photos-label i { color: var(--green-primary); }

.past-event-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.past-thumb {
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 1;
  cursor: pointer;
}

.past-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
  min-height: unset;
}

.past-thumb:hover img { transform: scale(1.08); }

/* ============================================================
   DONATION SECTION
   ============================================================ */
#donation {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-primary) 100%);
  position: relative;
  overflow: hidden;
}

#donation::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/islamic-pattern.png') center/400px;
  opacity: .04;
}

.donation-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.donation-content .label-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(200,169,81,.2);
  border: 1px solid rgba(200,169,81,.35);
  color: var(--gold-light);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .6px;
  margin-bottom: 20px;
}

.donation-content h2 {
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  color: var(--white);
  margin-bottom: 8px;
}

.donation-content .gold-divider { margin: 16px 0; }

.donation-content p {
  color: rgba(255,255,255,.75);
  line-height: 1.85;
  margin-bottom: 28px;
  font-size: .97rem;
}

.donation-stats {
  display: flex;
  gap: 32px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.d-stat .num {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--gold-light);
  line-height: 1;
}
.d-stat .label {
  font-size: .8rem;
  color: rgba(255,255,255,.6);
  margin-top: 4px;
}

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

.donation-img-main {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.donation-form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-lg);
}

.donation-form-card h3 {
  font-size: 1.4rem;
  margin-bottom: 6px;
  color: var(--text-dark);
}

.donation-form-card .sub {
  font-size: .85rem;
  color: var(--text-light);
  margin-bottom: 24px;
}

.donation-types {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 24px;
}

.dtype-btn {
  padding: 14px 12px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  cursor: pointer;
  text-align: center;
  transition: var(--transition);
  font-family: 'Inter', sans-serif;
}

.dtype-btn:hover,
.dtype-btn.active {
  border-color: var(--green-primary);
  background: var(--green-pale);
  color: var(--green-primary);
}

.dtype-btn .dtype-icon {
  font-size: 1.4rem;
  margin-bottom: 4px;
  display: block;
}
.dtype-btn .dtype-name { font-size: .88rem; font-weight: 600; color: var(--text-dark); }
.dtype-btn .dtype-bangla { font-size: .72rem; color: var(--text-light); }

.dtype-btn.active .dtype-name { color: var(--green-primary); }

.amount-label {
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-mid);
  margin-bottom: 10px;
}

.amount-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.amount-btn {
  padding: 10px 4px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-size: .9rem;
  font-weight: 600;
  color: var(--text-mid);
  cursor: pointer;
  transition: var(--transition);
  font-family: 'Inter', sans-serif;
}

.amount-btn:hover,
.amount-btn.active {
  border-color: var(--green-primary);
  background: var(--green-pale);
  color: var(--green-primary);
}

.amount-custom {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-size: .95rem;
  color: var(--text-dark);
  margin-bottom: 20px;
  outline: none;
  transition: var(--transition);
}
.amount-custom:focus { border-color: var(--green-primary); }

.donation-submit {
  width: 100%;
  padding: 16px;
  font-size: 1rem;
  justify-content: center;
}

/* ============================================================
   EDUCATION SECTION
   ============================================================ */
#education {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-primary) 100%);
}

.edu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.edu-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
}

.edu-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.edu-img {
  height: 220px;
  overflow: hidden;
}

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

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

.edu-body {
  padding: 28px;
}

.edu-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--green-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--green-primary);
  margin-bottom: 16px;
}

.edu-body h3 {
  font-size: 1.2rem;
  margin-bottom: 4px;
  color: var(--text-dark);
}

.edu-body .edu-bangla {
  font-size: .8rem;
  color: var(--green-primary);
  font-weight: 500;
  margin-bottom: 12px;
}

.edu-body p {
  font-size: .88rem;
  color: var(--text-light);
  line-height: 1.75;
  margin-bottom: 20px;
}

.edu-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 22px;
}

.edu-feature {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .83rem;
  color: var(--text-mid);
}

.edu-feature i {
  color: var(--green-primary);
  font-size: .75rem;
  flex-shrink: 0;
}

.edu-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--green-primary);
  font-size: .88rem;
  font-weight: 600;
  transition: var(--transition);
}
.edu-link:hover { gap: 10px; color: var(--green-mid); }

/* ============================================================
   NEWS SECTION
   ============================================================ */
#news {
  background: var(--green-pale);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 48px;
}

.news-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.news-img {
  height: 196px;
  overflow: hidden;
  position: relative;
}

.news-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s;
}
.news-card:hover .news-img img { transform: scale(1.05); }

.news-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--gold);
  color: var(--green-dark);
  font-size: .7rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: .4px;
}

.news-body { padding: 24px; }

.news-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .78rem;
  color: var(--text-light);
  margin-bottom: 10px;
}
.news-meta i { color: var(--green-primary); }

.news-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
  line-height: 1.45;
}

.news-body p {
  font-size: .85rem;
  color: var(--text-light);
  line-height: 1.75;
  margin-bottom: 16px;
}

.news-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--green-primary);
  font-size: .85rem;
  font-weight: 600;
  transition: var(--transition);
}
.news-link:hover { gap: 9px; }

.news-cta { text-align: center; }

/* ============================================================
   GALLERY SECTION
   ============================================================ */
#gallery {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-primary) 100%);
}

/* Gallery years side by side */
.gallery-years-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  align-items: start;
}

.gallery-year-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.gallery-featured-album {
  max-width: 760px;
  margin: 0 auto 36px;
}

.gallery-featured-album .album-cover {
  height: 320px;
}

.album-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

@media (max-width: 960px) {
  .gallery-years-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .gallery-years-row { grid-template-columns: 1fr; }
  .gallery-featured-album .album-cover { height: 230px; }
}

/* Album card grid — matches news card style */
.album-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.album-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--transition);
  box-shadow: 0 2px 12px rgba(0,0,0,.05);
}

.album-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.album-cover {
  position: relative;
  height: 220px;
  overflow: hidden;
  cursor: pointer;
  display: block;
}

.album-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
  min-height: unset;
}

.album-card:hover .album-cover img { transform: scale(1.05); }

.album-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--gold);
  color: var(--green-dark);
  font-size: .7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .8px;
  padding: 5px 12px;
  border-radius: 50px;
}

.album-body {
  padding: 20px 22px 22px;
}

.album-meta {
  display: flex;
  gap: 16px;
  font-size: .8rem;
  color: var(--text-mid);
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.album-meta i { color: var(--green-primary); margin-right: 4px; }

.album-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
  line-height: 1.35;
}

.album-body p {
  font-size: .88rem;
  color: var(--text-mid);
  line-height: 1.6;
  margin-bottom: 14px;
}

.album-thumbs {
  display: flex;
  gap: 6px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.album-thumb {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  flex-shrink: 0;
}

.album-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
  min-height: unset;
}

.album-thumb:hover img { transform: scale(1.1); }

@media (max-width: 960px) {
  .album-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .album-grid { grid-template-columns: 1fr; }
}


.gallery-year-heading {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.gallery-year-label {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--green-dark);
  white-space: nowrap;
  line-height: 1;
  position: relative;
  padding-left: 14px;
}

.gallery-year-label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10%;
  height: 80%;
  width: 4px;
  background: var(--gold);
  border-radius: 4px;
}

.gallery-year-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, var(--border), transparent);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.gallery-item {
  overflow: hidden;
  border-radius: var(--radius-md);
  cursor: pointer;
  position: relative;
}

.gallery-item.gallery-featured {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-item.gallery-hidden {
  display: none;
}

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

.gallery-item.gallery-featured img { min-height: 456px; }

.gallery-load-more-wrap {
  text-align: center;
  margin-top: 40px;
}

.btn-load-more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: 2px solid var(--green-primary);
  color: var(--green-primary);
  padding: 14px 36px;
  border-radius: 50px;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.btn-load-more:hover {
  background: var(--green-primary);
  color: var(--white);
}

.btn-load-more.hidden {
  display: none;
}

.load-more-count {
  opacity: .65;
  font-weight: 400;
}

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

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,35,20,.7) 0%, transparent 60%);
  opacity: 0;
  transition: var(--transition);
  display: flex;
  align-items: flex-end;
  padding: 20px;
}

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

.gallery-overlay span {
  color: var(--white);
  font-size: .88rem;
  font-weight: 500;
}

.gallery-item .zoom-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(.8);
  color: var(--white);
  font-size: 1.4rem;
  opacity: 0;
  transition: var(--transition);
}

.gallery-item:hover .zoom-icon {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.92);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius-md);
  object-fit: contain;
}
.lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  color: var(--white);
  font-size: 1.8rem;
  cursor: pointer;
  opacity: .7;
  transition: var(--transition);
  background: none;
  border: none;
}
.lightbox-close:hover { opacity: 1; }

/* ============================================================
   CONTACT SECTION
   ============================================================ */
#contact {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-primary) 100%);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: start;
}

.contact-info h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--white);
  margin-bottom: 8px;
}
.contact-info .gold-divider { margin: 14px 0; }
.contact-info p {
  color: rgba(255,255,255,.8);
  line-height: 1.85;
  margin-bottom: 32px;
  font-size: .95rem;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 36px;
}

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

.contact-item-icon {
  width: 44px;
  height: 44px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-primary);
  font-size: .95rem;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.contact-item-text .label {
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: rgba(255,255,255,.6);
  margin-bottom: 3px;
}

.contact-item-text .value {
  font-size: .95rem;
  color: var(--white);
  font-weight: 500;
}

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

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--white);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-mid);
  font-size: .95rem;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

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

.contact-form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
}

.contact-form-card h3 { font-size: 1.5rem; margin-bottom: 4px; }
.contact-form-card .sub { font-size: .85rem; color: var(--text-light); margin-bottom: 28px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form-group label {
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-mid);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 13px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-size: .92rem;
  color: var(--text-dark);
  outline: none;
  transition: var(--transition);
  background: var(--cream);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--green-primary);
  background: var(--white);
}

.form-group textarea { resize: vertical; min-height: 100px; }

.form-submit { width: 100%; padding: 15px; font-size: .98rem; justify-content: center; }

/* ============================================================
   COMMUNITY SECTION
   ============================================================ */
#community {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-primary) 100%);
}

.community-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.community-content .label-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green-pale);
  color: var(--green-primary);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .6px;
  margin-bottom: 20px;
}

.community-content h2 { font-size: clamp(1.9rem, 3vw, 2.5rem); color: var(--white); margin-bottom: 8px; }
.community-content .gold-divider { margin: 14px 0; }
.community-content p { color: rgba(255,255,255,.8); line-height: 1.85; margin-bottom: 28px; font-size: .96rem; }

.community-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 32px;
}

.community-option {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: var(--transition);
}

.community-option:hover {
  border-color: var(--green-primary);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.community-option .co-icon {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.community-option h4 { font-size: .95rem; margin-bottom: 4px; color: var(--text-dark); }
.community-option p { font-size: .8rem; color: var(--text-light); margin-bottom: 0; line-height: 1.6; }

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

.community-img-main {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.community-stat-card {
  position: absolute;
  top: -20px;
  right: -20px;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  box-shadow: var(--shadow-md);
  text-align: center;
}

.community-stat-card .num {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--green-primary);
  line-height: 1;
}
.community-stat-card .lbl { font-size: .75rem; color: var(--text-light); }

/* ============================================================
   NEWSLETTER SECTION
   ============================================================ */
#newsletter {
  background: linear-gradient(135deg, var(--green-dark), var(--green-primary));
  padding: 80px 0;
  position: relative;
  overflow: hidden;
  text-align: center;
}

#newsletter::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/islamic-pattern.png') center/300px;
  opacity: .05;
}

.newsletter-content { position: relative; z-index: 1; max-width: 620px; margin: 0 auto; }

.newsletter-icon {
  width: 64px;
  height: 64px;
  background: rgba(200,169,81,.2);
  border: 1px solid rgba(200,169,81,.35);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--gold-light);
  margin: 0 auto 20px;
}

.newsletter-content h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--white);
  margin-bottom: 8px;
}

.newsletter-content .gold-divider { margin: 14px auto; }

.newsletter-content p {
  color: rgba(255,255,255,.72);
  line-height: 1.8;
  margin-bottom: 32px;
  font-size: .96rem;
}

.newsletter-form {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 14px 20px;
  border: 2px solid rgba(255,255,255,.2);
  border-radius: 50px;
  background: rgba(255,255,255,.1);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: .92rem;
  outline: none;
  transition: var(--transition);
}

.newsletter-form input::placeholder { color: rgba(255,255,255,.45); }
.newsletter-form input:focus { border-color: rgba(200,169,81,.6); background: rgba(255,255,255,.15); }
.newsletter-form .btn { white-space: nowrap; flex-shrink: 0; }

.newsletter-privacy {
  font-size: .75rem;
  color: rgba(255,255,255,.45);
  margin-top: 14px;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--green-dark);
  color: rgba(255,255,255,.75);
  padding: 72px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.footer-brand .logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.footer-logo-img {
  height: 64px;
  width: auto;
  flex-shrink: 0;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.3));
}

.footer-brand .logo-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--green-mid), var(--green-light));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.footer-brand .logo-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
}

.footer-brand .logo-tagline {
  font-size: .72rem;
  color: rgba(255,255,255,.45);
}

.footer-brand p {
  font-size: .88rem;
  line-height: 1.85;
  margin-bottom: 24px;
  color: rgba(255,255,255,.6);
}

.footer-social {
  display: flex;
  gap: 8px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .88rem;
  color: rgba(255,255,255,.65);
  transition: var(--transition);
}

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

.footer-col h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  color: var(--white);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 12px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 28px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul li a {
  font-size: .88rem;
  color: rgba(255,255,255,.6);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 7px;
}

.footer-col ul li a:hover {
  color: var(--gold-light);
  padding-left: 4px;
}

.footer-col ul li a i {
  font-size: .65rem;
  color: var(--gold);
  opacity: .7;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.footer-contact-item i {
  color: var(--gold);
  margin-top: 2px;
  font-size: .88rem;
  flex-shrink: 0;
  width: 16px;
}

.footer-contact-item span {
  font-size: .85rem;
  color: rgba(255,255,255,.6);
  line-height: 1.6;
}

.footer-bottom {
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: .82rem;
  color: rgba(255,255,255,.4);
}

.footer-bottom p strong {
  color: rgba(255,255,255,.65);
}

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

.footer-bottom-links a {
  font-size: .82rem;
  color: rgba(255,255,255,.4);
  transition: var(--transition);
}
.footer-bottom-links a:hover { color: var(--gold-light); }

.footer-arabic {
  font-family: 'Amiri', serif;
  text-align: center;
  font-size: 1.1rem;
  color: rgba(200,169,81,.6);
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,.06);
  direction: rtl;
}

/* ============================================================
   BACK TO TOP
   ============================================================ */
#back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--green-primary), var(--green-mid));
  color: var(--white);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  box-shadow: 0 4px 16px rgba(27,94,59,.4);
  transition: var(--transition);
  opacity: 0;
  pointer-events: none;
  z-index: 500;
}

#back-to-top.visible {
  opacity: 1;
  pointer-events: all;
}

#back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(27,94,59,.5);
}

/* ============================================================
   TOAST NOTIFICATION
   ============================================================ */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--green-dark);
  color: var(--white);
  padding: 14px 28px;
  border-radius: 50px;
  font-size: .9rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  z-index: 9000;
  opacity: 0;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: none;
}

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

.toast i { color: var(--gold); }

/* ============================================================
   SECTION BG ALTERNATION HELPERS
   ============================================================ */
.bg-pattern-subtle {
  background-image: url('../images/islamic-pattern.png');
  background-size: 320px;
  background-repeat: repeat;
  opacity: .035;
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .about-grid       { gap: 48px; }
  .donation-inner   { gap: 48px; }
  .footer-grid      { grid-template-columns: 1fr 1fr; gap: 36px; }
  .past-events-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  .nav-links, .nav-actions { display: none; }
  .hamburger { display: flex; }

  .about-grid,
  .donation-inner,
  .community-inner  { grid-template-columns: 1fr; gap: 40px; }

  .about-img-badge  { right: 16px; }

  .about-img-main,
  .donation-img-main,
  .community-img-main { height: 360px; }

  .prayer-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .prayer-grid .prayer-card:nth-child(4),
  .prayer-grid .prayer-card:nth-child(5) {
    grid-column: span 1;
  }

  .events-grid,
  .edu-grid,
  .news-grid        { grid-template-columns: 1fr 1fr; }

  .gallery-grid     { grid-template-columns: repeat(3, 1fr); }
  .gallery-item.gallery-featured { grid-column: span 2; grid-row: span 2; }

  .contact-grid     { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 640px) {
  .section-pad      { padding: 64px 0; }

  .events-grid,
  .edu-grid,
  .news-grid        { grid-template-columns: 1fr; }

  .prayer-grid      { grid-template-columns: 1fr 1fr; }
  .prayer-grid .prayer-card:nth-child(5) { grid-column: span 2; }

  .jummah-bar       { flex-direction: column; gap: 16px; text-align: center; padding: 24px 20px; }
  .jummah-details   { justify-content: center; }

  .donation-types   { grid-template-columns: 1fr 1fr; }
  .amount-grid      { grid-template-columns: repeat(3, 1fr); }

  .form-row         { grid-template-columns: 1fr; }

  .community-options { grid-template-columns: 1fr; }
  .community-stat-card { top: auto; bottom: -16px; right: 16px; }

  .gallery-grid     { grid-template-columns: 1fr 1fr; }
  .gallery-item.gallery-featured { grid-column: span 2; grid-row: span 1; }

  .past-events-grid { grid-template-columns: 1fr; }

  .newsletter-form  { flex-direction: column; }
  .newsletter-form .btn { width: 100%; justify-content: center; }

  .footer-grid      { grid-template-columns: 1fr; }
  .footer-bottom    { flex-direction: column; text-align: center; }

  .hero-cta         { flex-direction: column; align-items: center; }

  .donation-stats   { gap: 16px; }

  .about-img-badge  { position: static; margin-top: 16px; display: inline-block; }
}
