/* =========================================================================
   KIDBROOKE ISLAMIC CENTRE — STYLESHEET
   Mobile-first design · Logo colours: Green + White + Black
   ========================================================================= */

/* ---------- 1. DESIGN TOKENS ---------- */
:root {
  /* Brand colours (from logo) */
  --green-900: #0D3B13;
  --green-800: #145A1E;
  --green-700: #1B5E20;
  --green-600: #2E7D32;
  --green-500: #388E3C;
  --green-100: #E8F5E9;
  --green-50:  #F1F8F2;

  /* Neutrals */
  --black:     #111111;
  --grey-900:  #1A1A1A;
  --grey-800:  #2D2D2D;
  --grey-700:  #4A4A4A;
  --grey-500:  #6B7280;
  --grey-300:  #D1D5DB;
  --grey-200:  #E5E7EB;
  --grey-100:  #F3F4F6;
  --grey-50:   #F9FAFB;
  --white:     #FFFFFF;

  /* Accent */
  --gold:      #C9A84C;
  --gold-light:#D8BF75;
  --gold-dark: #B59540;

  /* Typography */
  --font-heading: 'Amiri', 'Georgia', serif;
  --font-body:    'Inter', system-ui, sans-serif;

  /* Spacing */
  --section-py: 4rem;
  --container-max: 1200px;
  --container-px: 1.25rem;

  /* Transitions */
  --ease: cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition: all 0.35s var(--ease);

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 14px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
  --shadow-xl: 0 20px 40px rgba(0,0,0,0.16);

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--grey-700);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

ul, ol { list-style: none; }

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

/* ---------- 3. TYPOGRAPHY ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--black);
  line-height: 1.2;
  font-weight: 700;
}

h1 { font-size: 2.25rem; margin-bottom: 1rem; }
h2 { font-size: 1.875rem; margin-bottom: 0.75rem; }
h3 { font-size: 1.375rem; margin-bottom: 0.5rem; }
h4 { font-size: 1.125rem; margin-bottom: 0.5rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.text-center { text-align: center; }
.text-white { color: var(--white) !important; }
.text-green { color: var(--green-700); }
.text-gold  { color: var(--gold); }

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--grey-500);
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

.accent-bar {
  width: 50px;
  height: 3px;
  background: var(--gold);
  border-radius: 3px;
  margin-bottom: 1.5rem;
}
.accent-bar.center { margin-left: auto; margin-right: auto; }

/* ---------- 4. LAYOUT ---------- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-px);
}

.section {
  padding: var(--section-py) 0;
}

.section--green {
  background-color: var(--green-700);
  color: var(--white);
}
.section--green h2,
.section--green h3,
.section--green h4 { color: var(--white); }

.section--dark {
  background-color: var(--grey-900);
  color: var(--grey-300);
}
.section--dark h2,
.section--dark h3 { color: var(--white); }

.section--light {
  background-color: var(--green-50);
}

.section--grey {
  background-color: var(--grey-50);
}

.grid {
  display: grid;
  gap: 1.5rem;
}

/* ---------- 5. BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.9rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  line-height: 1.2;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

.btn--gold {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--black);
}
.btn--gold:hover {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
}

.btn--outline {
  background: transparent;
  border-color: var(--green-700);
  color: var(--green-700);
}
.btn--outline:hover {
  background-color: var(--green-700);
  color: var(--white);
}

.btn--outline-white {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}
.btn--outline-white:hover {
  background-color: var(--white);
  color: var(--green-700);
}

.btn--outline-gold {
  background: transparent;
  border-color: var(--gold);
  color: var(--gold);
}
.btn--outline-gold:hover {
  background-color: var(--gold);
  color: var(--black);
}

.btn--white {
  background-color: var(--white);
  color: var(--green-700);
}
.btn--white:hover {
  background-color: var(--grey-50);
}

.btn--sm {
  padding: 0.625rem 1.25rem;
  font-size: 0.85rem;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ---------- 6. NAVIGATION ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--white);
  border-bottom: 1px solid var(--grey-200);
  transition: var(--transition);
}

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

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  min-height: 80px;
}

.navbar__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.navbar__logo img {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  object-fit: cover;
  overflow: hidden;
  background: transparent;
  border: none;
  clip-path: circle(44%);
}

.navbar__logo-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--green-700);
  line-height: 1.2;
}

.navbar__logo-text span {
  display: block;
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--grey-500);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* Mobile hamburger */
.navbar__toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.navbar__toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background-color: var(--green-700);
  border-radius: 2px;
  transition: var(--transition);
}

.navbar__toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.navbar__toggle.active span:nth-child(2) {
  opacity: 0;
}
.navbar__toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile menu overlay */
.navbar__menu {
  position: fixed;
  top: 0; right: -100%;
  width: 85%;
  max-width: 360px;
  height: 100vh;
  background: var(--white);
  padding: 5rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  transition: right 0.35s var(--ease);
  z-index: 1000;
  box-shadow: -10px 0 30px rgba(0,0,0,0.1);
  overflow-y: auto;
}

.navbar__menu.open {
  right: 0;
}

.navbar__overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.4);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
}

.navbar__overlay.show {
  opacity: 1;
  visibility: visible;
}

.navbar__link {
  display: block;
  padding: 0.875rem 0;
  font-weight: 500;
  color: var(--grey-700);
  border-bottom: 1px solid var(--grey-100);
  font-size: 1rem;
}

.navbar__link:hover,
.navbar__link.active {
  color: var(--green-700);
}

.navbar__link--donate {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.875rem 1.75rem;
  background-color: var(--gold);
  color: var(--black) !important;
  border-radius: var(--radius-full);
  font-weight: 700;
  border: none;
  text-align: center;
  justify-content: center;
}

.navbar__link--donate:hover {
  background-color: var(--gold-dark);
}

/* ---------- 7. HERO SECTION ---------- */
.hero {
  position: relative;
  background-color: var(--green-900);
  color: var(--white);
  padding: 2.5rem 0 2.5rem;
  overflow: hidden;
  min-height: 0;
  display: flex;
  align-items: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M40 0L50 10H30ZM0 40L10 30V50ZM80 40L70 30V50ZM40 80L50 70H30Z' fill='%23ffffff' fill-opacity='0.03' fill-rule='evenodd'/%3E%3C/svg%3E");
  background-size: 80px 80px;
  z-index: 0;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 40%;
  background: linear-gradient(to top, rgba(13,59,19,0.8), transparent);
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255,255,255,0.15);
}

.hero__title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 1rem;
  line-height: 1.15;
}

.hero__subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 1.5rem;
  max-width: 540px;
  line-height: 1.6;
}

.hero__location {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 1.25rem;
  font-weight: 500;
}

.hero__features {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.hero__feature {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.9);
}

.hero__feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: rgba(201,168,76,0.2);
  border-radius: 50%;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

/* Prayer widget in hero — visible on all sizes */
.hero__prayer-widget {
  display: block;
  margin-top: 2rem;
}

/* ---------- 8. QUICK INFO BAR ---------- */
.quick-info {
  background-color: var(--green-700);
  color: var(--white);
  padding: 2.5rem 0;
  position: relative;
  z-index: 2;
}

.quick-info__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.quick-info__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.quick-info__item:hover {
  background: rgba(255,255,255,0.12);
}

.quick-info__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.12);
  border-radius: var(--radius-sm);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.quick-info__label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.7;
  margin-bottom: 0.125rem;
}

.quick-info__value {
  font-weight: 700;
  font-size: 0.9rem;
}

.quick-info__item:last-child .quick-info__value {
  white-space: nowrap;
}

.quick-info__value a {
  color: var(--gold-light);
}
.quick-info__value a:hover {
  color: var(--white);
}

/* ---------- 9. SERVICE CARDS ---------- */
.services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--grey-200);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--green-700), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

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

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card__icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--green-50);
  border-radius: var(--radius-md);
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
  color: var(--green-700);
  flex-shrink: 0;
}

.service-card h3 {
  color: var(--green-700);
  margin-bottom: 0.75rem;
}

.service-card p {
  color: var(--grey-500);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.service-card .btn {
  font-size: 0.85rem;
}

.service-card__list {
  text-align: left;
  margin: 0.5rem 0 1.25rem;
}

.service-card__list li {
  position: relative;
  padding: 0.3rem 0 0.3rem 1.5rem;
  color: var(--grey-700);
  font-size: 0.9rem;
}

.service-card__list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green-600);
  font-weight: 700;
}

/* ---------- 10. COMMUNITY SECTION ---------- */
.community__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

.community__image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.community__image img,
.community__image video {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
}

.community__image--video {
  background: linear-gradient(135deg, var(--green-700) 0%, var(--green-900, #0a3a1f) 100%);
}

.community__image--video video {
  object-fit: contain;
}

/* Community slider — fixed-size container so different image dimensions don't shift the layout */
.community__slider {
  position: relative;
  width: 100%;
  height: 480px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, var(--green-700) 0%, var(--green-900, #0a3a1f) 100%);
}

.community__slider-track {
  position: absolute;
  inset: 0;
}

.community__slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
  pointer-events: none;
}

.community__slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.community__slide img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: 100%;
  object-fit: contain;
  display: block;
}

.community__slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.85);
  color: var(--green-700);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background 0.2s ease, transform 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.community__slider-btn:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.05);
}

.community__slider-btn--prev {
  left: 12px;
}

.community__slider-btn--next {
  right: 12px;
}

.community__slider-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}

.community__slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s ease, transform 0.2s ease;
}

.community__slider-dot.is-active {
  background: #fff;
  transform: scale(1.2);
}

.community__content h2 {
  margin-bottom: 1rem;
}

.community__content p {
  color: var(--grey-500);
  font-size: 1rem;
  margin-bottom: 1.25rem;
}

.community__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.stat {
  text-align: center;
}

.stat__number {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--green-700);
  font-family: var(--font-heading);
}

.stat__label {
  font-size: 0.8rem;
  color: var(--grey-500);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ---------- 11. DONATION SECTION ---------- */
.donate {
  background: linear-gradient(135deg, var(--green-900) 0%, var(--green-700) 100%);
  color: var(--white);
  padding: var(--section-py) 0;
  position: relative;
  overflow: hidden;
}

.donate::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0l15 15h-30zM0 30l15-15v30zM60 30l-15-15v30zM30 60l15-15h-30z' fill='%23ffffff' fill-opacity='0.03' fill-rule='evenodd'/%3E%3C/svg%3E");
  background-size: 60px 60px;
}

.donate .container {
  position: relative;
  z-index: 1;
}

.donate__content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.donate h2 {
  color: var(--white);
  font-size: 2rem;
  margin-bottom: 1rem;
}

.donate p {
  color: rgba(255,255,255,0.85);
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

.donate__methods {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.donate__method {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.1);
  text-align: left;
  flex: 1 1 0;
  min-width: 0;
}

.donate__method-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(201,168,76,0.2);
  border-radius: var(--radius-sm);
  font-size: 1.3rem;
  flex-shrink: 0;
}

.donate__method h4 {
  color: var(--gold-light);
  margin-bottom: 0.25rem;
  font-size: 1rem;
}

.donate__method p {
  font-size: 0.85rem;
  margin: 0;
  color: rgba(255,255,255,0.7);
}

.donate__support-list {
  margin-bottom: 2rem;
  text-align: center;
}

.donate__support-list ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
}

.donate__support-list li {
  position: relative;
  padding-left: 1.25rem;
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
}

.donate__support-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--gold-light);
  font-weight: 700;
}

.donate__buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 0.5rem;
}

/* ---------- 12. PRAYER TIMETABLE ---------- */
.prayer-table-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  max-width: 800px;
  margin: 0 auto;
}

.prayer-table-header {
  background: var(--green-700);
  color: var(--white);
  padding: 1.5rem;
  text-align: center;
}

.prayer-table-header h3 {
  color: var(--white);
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.prayer-table-header p {
  font-size: 0.85rem;
  opacity: 0.8;
  margin: 0;
}

.prayer-table {
  width: 100%;
  border-collapse: collapse;
}

.prayer-table th,
.prayer-table td {
  padding: 1rem;
  text-align: center;
  border-bottom: 1px solid var(--grey-200);
  font-size: 0.95rem;
}

.prayer-table th {
  font-weight: 700;
  color: var(--green-700);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: var(--grey-50);
}

.prayer-table td:first-child {
  text-align: left;
  padding-left: 1.5rem;
  font-weight: 600;
  color: var(--green-700);
}

.prayer-table tbody tr:hover {
  background-color: var(--green-50);
}

.prayer-table tbody tr:last-child td {
  border-bottom: none;
}

.prayer-table .highlight-row {
  background: linear-gradient(90deg, rgba(201,168,76,0.08), rgba(201,168,76,0.15));
}

.prayer-table .highlight-row td {
  color: var(--gold-dark) !important;
  font-weight: 700;
}

/* Mini prayer card (hero/quick display) */
.prayer-mini {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: 2rem 1.5rem;
  color: var(--grey-700);
  width: 100%;
  max-width: 420px;
  border: 2px solid rgba(201,168,76,0.3);
}

.prayer-mini__header {
  text-align: center;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 3px solid var(--green-700);
}

.prayer-mini__header h3 {
  color: var(--green-700);
  font-size: 1.5rem;
  margin-bottom: 0.35rem;
}

.prayer-mini__header p {
  font-size: 0.85rem;
  color: var(--grey-500);
  margin: 0;
}

.prayer-mini__list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.prayer-mini__item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.875rem 0.5rem;
  border-bottom: 1px solid var(--grey-100);
  font-size: 1.05rem;
}

.prayer-mini__item:last-child {
  border-bottom: none;
}

.prayer-mini__item.jumuah {
  background: linear-gradient(90deg, rgba(201,168,76,0.08), rgba(201,168,76,0.2));
  padding: 0.875rem 0.75rem;
  border-radius: var(--radius-sm);
  margin-top: 0.75rem;
  border: none;
  font-weight: 700;
  color: var(--gold-dark);
  font-size: 1.1rem;
}

.prayer-mini__name {
  font-weight: 600;
  color: var(--grey-700);
}

.prayer-mini__time {
  font-weight: 500;
  color: var(--grey-500);
}

.prayer-mini__footer {
  text-align: center;
  margin-top: 1rem;
  padding-top: 0.75rem;
}

.prayer-mini__footer a {
  color: var(--green-700);
  font-weight: 600;
  font-size: 0.85rem;
}
.prayer-mini__footer a:hover { color: var(--gold); }

/* ---------- 13. PAGE HEADER (inner pages) ---------- */
.page-header {
  background: linear-gradient(135deg, var(--green-900), var(--green-700));
  color: var(--white);
  padding: 3rem 0 2.5rem;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M40 0L50 10H30ZM0 40L10 30V50ZM80 40L70 30V50ZM40 80L50 70H30Z' fill='%23ffffff' fill-opacity='0.03' fill-rule='evenodd'/%3E%3C/svg%3E");
  background-size: 80px 80px;
}

.page-header .container {
  position: relative;
  z-index: 1;
}

.page-header h1 {
  color: var(--white);
  font-size: 2.25rem;
  margin-bottom: 0.75rem;
}

.page-header p {
  color: rgba(255,255,255,0.8);
  font-size: 1.05rem;
  max-width: 550px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
  color: rgba(255,255,255,0.6);
}

.breadcrumb a {
  color: var(--gold-light);
}
.breadcrumb a:hover { color: var(--white); }

/* ---------- 14. CONTENT BLOCKS ---------- */
.content-block {
  padding: var(--section-py) 0;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}

.content-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--grey-200);
}

.content-card h3 {
  color: var(--green-700);
  margin-bottom: 0.75rem;
}

.content-card ul {
  margin: 0.75rem 0;
}

.content-card li {
  position: relative;
  padding: 0.5rem 0 0.5rem 1.5rem;
  color: var(--grey-700);
  font-size: 0.95rem;
}

.content-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green-600);
  font-weight: 700;
}

/* Info list for location/details */
.info-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.info-list__item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.info-list__icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--green-50);
  border-radius: var(--radius-sm);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.info-list__text h4 {
  color: var(--green-700);
  margin-bottom: 0.15rem;
  font-size: 1rem;
}

.info-list__text p {
  font-size: 0.9rem;
  color: var(--grey-500);
  margin: 0;
}

.info-list__text a {
  color: var(--green-700);
  font-weight: 500;
}
.info-list__text a:hover { color: var(--gold); }

/* ---------- 15. FORMS ---------- */
.form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form__group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.form__group--row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.form__label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--grey-700);
}

.form__input,
.form__select,
.form__textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1.5px solid var(--grey-300);
  border-radius: var(--radius-md);
  background: var(--white);
  color: var(--grey-700);
  transition: var(--transition);
  outline: none;
  font-size: 0.95rem;
}

.form__input:focus,
.form__select:focus,
.form__textarea:focus {
  border-color: var(--green-600);
  box-shadow: 0 0 0 3px rgba(27,94,32,0.1);
}

.form__textarea {
  resize: vertical;
  min-height: 120px;
}

.form__checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.form__checkbox input[type="checkbox"] {
  margin-top: 0.3rem;
  width: 18px;
  height: 18px;
  accent-color: var(--green-700);
}

.form__success {
  display: none;
  padding: 1rem 1.25rem;
  background: var(--green-50);
  border: 1px solid var(--green-600);
  border-radius: var(--radius-md);
  color: var(--green-700);
  font-weight: 500;
  text-align: center;
}

.form__success.show {
  display: block;
  animation: fadeIn 0.4s ease;
}

/* ---------- 16. NEWSLETTER ---------- */
.newsletter {
  background: var(--grey-50);
  padding: 3rem 0;
}

.newsletter__inner {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.newsletter h3 {
  margin-bottom: 0.5rem;
}

.newsletter p {
  color: var(--grey-500);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.newsletter__form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.newsletter__form input {
  padding: 0.875rem 1rem;
  border: 1.5px solid var(--grey-300);
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
}

.newsletter__form input:focus {
  border-color: var(--green-600);
  box-shadow: 0 0 0 3px rgba(27,94,32,0.1);
}

/* ---------- 17. FOOTER ---------- */
.footer {
  background-color: var(--black);
  color: var(--grey-500);
  padding-top: 3rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer__brand img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  background: transparent;
  border: none;
  clip-path: circle(44%);
}

.footer__brand-text {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gold);
}

.footer__desc {
  font-size: 0.9rem;
  max-width: 320px;
  margin-bottom: 1.25rem;
  line-height: 1.7;
}

.footer__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  color: var(--gold-light);
  border: 1px solid rgba(201,168,76,0.2);
}

.footer h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.footer__links li {
  margin-bottom: 0.625rem;
}

.footer__links a {
  color: var(--grey-500);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer__links a:hover {
  color: var(--gold);
  padding-left: 4px;
}

.footer__contact p {
  font-size: 0.9rem;
  margin-bottom: 0.625rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer__contact a {
  color: var(--gold-light);
}
.footer__contact a:hover { color: var(--white); }

.footer__social-handle {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
}

.footer__social-handle strong {
  color: var(--gold-light);
  font-weight: 600;
}

.footer__social {
  display: flex;
  gap: 0.625rem;
  margin-top: 0.5rem;
}

.footer__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--gold-light);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.footer__social-link:hover {
  background: var(--gold-light);
  color: var(--green-700);
  transform: translateY(-2px);
}

.footer__social-link svg {
  display: block;
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
  text-align: center;
  font-size: 0.85rem;
}

.footer__bottom a {
  color: var(--gold-light);
}
.footer__bottom a:hover { color: var(--white); }

/* ---------- 18. WHATSAPP BUTTON ---------- */
.whatsapp-btn {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  width: 46px;
  height: 46px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(37,211,102,0.4);
  z-index: 999;
  transition: var(--transition);
}

.whatsapp-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37,211,102,0.5);
}

.whatsapp-btn svg {
  width: 23px;
  height: 23px;
  fill: var(--white);
}

.whatsapp-btn__tooltip {
  position: absolute;
  right: 56px;
  background: var(--white);
  color: var(--grey-700);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.whatsapp-btn:hover .whatsapp-btn__tooltip {
  opacity: 1;
}

.whatsapp-btn__tooltip.show-label {
  opacity: 1;
  animation: fadeInLabel 0.5s ease forwards;
}

@keyframes fadeInLabel {
  from { opacity: 0; transform: translateX(10px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ---------- 19. MAP ---------- */
.map-embed {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 2px solid var(--grey-200);
}

.map-embed iframe {
  width: 100%;
  height: 300px;
  border: 0;
  display: block;
}

/* ---------- 20. SCROLL ANIMATIONS ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

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

.fade-in.delay-1 { transition-delay: 0.1s; }
.fade-in.delay-2 { transition-delay: 0.2s; }
.fade-in.delay-3 { transition-delay: 0.3s; }
.fade-in.delay-4 { transition-delay: 0.4s; }

/* ---------- 21. RESPONSIVE: TABLET (≥768px) ---------- */
@media (min-width: 768px) {
  :root {
    --section-py: 5rem;
  }

  h1 { font-size: 3rem; }
  h2 { font-size: 2.25rem; }

  .hero { padding: 3.5rem 0 3rem; }
  .hero__title { font-size: 3.25rem; }
  .hero__features { flex-direction: row; flex-wrap: wrap; gap: 1rem; }

  .quick-info__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .community__grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }

  .community__image img,
  .community__image video {
    height: 400px;
  }

  .content-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }

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

  .newsletter__form {
    flex-direction: row;
  }
  .newsletter__form input { flex: 1; }

  .footer__grid {
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
  }

  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
  }

  .map-embed iframe {
    height: 400px;
  }
}

/* ---------- 22. RESPONSIVE: DESKTOP (≥1024px) ---------- */
@media (min-width: 1024px) {
  :root {
    --section-py: 6rem;
    --container-px: 2rem;
  }

  h1 { font-size: 3.5rem; }
  h2 { font-size: 2.5rem; }

  /* Navbar: switch to desktop layout */
  .navbar__toggle { display: none; }
  .navbar__overlay { display: none; }

  .navbar__logo img {
    width: 50px;
    height: 50px;
  }

  .navbar__logo-text {
    font-size: 1rem;
  }

  .navbar__logo-text span {
    display: none;
  }

  .navbar__inner {
    min-height: 64px;
  }

  .navbar__menu {
    position: static;
    width: auto;
    height: auto;
    padding: 0;
    flex-direction: row;
    align-items: center;
    gap: 1.1rem;
    box-shadow: none;
    background: transparent;
    overflow: visible;
  }

  .navbar__link {
    padding: 0.5rem 0;
    border-bottom: none;
    font-size: 0.82rem;
    position: relative;
    white-space: nowrap;
  }

  .navbar__link::after {
    content: "";
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 2px;
    background: var(--green-700);
    transition: width 0.3s ease;
  }

  .navbar__link:hover::after,
  .navbar__link.active::after {
    width: 100%;
  }

  .navbar__link--donate {
    margin-top: 0;
    padding: 0.5rem 1.15rem;
    font-size: 0.82rem;
  }

  /* Hero: two-column layout */
  .hero {
    padding: 4rem 0 3.5rem;
    min-height: 0;
  }

  .hero__title {
    font-size: 3.75rem;
  }

  .hero__inner {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 3rem;
    align-items: center;
  }

  .hero__prayer-widget {
    margin-top: 0;
  }

  /* Quick info: 4 columns */
  .quick-info__grid {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Services: 3 columns */
  .services__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }

  .service-card {
    padding: 2.5rem 2rem;
  }

  .community__image img,
  .community__image video {
    height: 450px;
  }

  .donate__methods {
    flex-direction: row;
  }

  .donate h2 {
    font-size: 2.5rem;
  }

  .map-embed iframe {
    height: 450px;
  }
}

/* ---------- 23. RESPONSIVE: LARGE (≥1280px) ---------- */
@media (min-width: 1280px) {
  .hero__title { font-size: 4rem; }
  .hero__inner { grid-template-columns: 1fr 400px; gap: 4rem; }
}

/* ---------- 24. MOBILE UX IMPROVEMENTS ---------- */
@media (max-width: 767px) {
  :root {
    --section-py: 3rem;
    --container-px: 1rem;
  }

  .hero {
    padding: 2rem 0;
  }

  .hero__ctas {
    gap: 0.5rem;
  }

  .hero__ctas .btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.85rem;
  }

  .services__grid {
    gap: 1rem;
  }

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

  .btn-group {
    gap: 0.5rem;
  }

  /* Prevent WhatsApp button overlap with content */
  .footer {
    padding-bottom: 4rem;
  }

  .whatsapp-btn {
    bottom: 1rem;
    right: 1rem;
  }

  /* Reduce padding on content cards */
  .content-card {
    padding: 1.25rem;
  }

  /* Better button spacing on mobile */
  .donate__buttons {
    flex-direction: column;
    align-items: center;
  }

  .quick-info__grid {
    gap: 0.5rem;
  }

  .page-header {
    padding: 2rem 0 1.75rem;
  }
}

/* ---------- 25. UTILITIES ---------- */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

.visually-hidden { display: none; }

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

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* Print Styles */
@media print {
  .navbar, .whatsapp-btn, .newsletter, .footer { display: none; }
  .hero { min-height: auto; padding: 2rem 0; }
  body { color: #000; background: #fff; }
}
