:root {
  --ink: #10241c;
  --forest: #0b3d2e;
  --forest-deep: #062820;
  --leaf: #1f6b4f;
  --mist: #e7efe9;
  --stone: #f3f0ea;
  --gold: #b8893a;
  --gold-soft: #d4b36a;
  --sand: #c9b89a;
  --cream: #faf8f4;
  --white: #ffffff;
  --muted: #5c6f66;
  --line: rgba(16, 36, 28, 0.12);
  --shadow: 0 18px 50px rgba(6, 40, 32, 0.18);
  --radius: 18px;
  --font-display: "Fraunces", "Times New Roman", serif;
  --font-arabic: "Amiri", "Times New Roman", serif;
  --font-body: "Sora", system-ui, sans-serif;
  --max: 1120px;
  --nav-h: 78px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% -10%, rgba(184, 137, 58, 0.14), transparent 38%),
    radial-gradient(circle at 88% 8%, rgba(31, 107, 79, 0.12), transparent 42%),
    linear-gradient(180deg, #f7f4ee 0%, var(--cream) 40%, #eef4f0 100%);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  min-height: 100vh;
}

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

a {
  color: var(--leaf);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--forest);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
}

p {
  margin: 0 0 1em;
}

.site-wrap {
  overflow-x: hidden;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--gold);
  color: var(--ink);
  padding: 0.75rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(250, 248, 244, 0.86);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  min-height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  display: grid;
  place-items: center;
  box-shadow: 0 8px 20px rgba(11, 61, 46, 0.16);
  flex-shrink: 0;
  overflow: hidden;
  border: 1px solid rgba(11, 61, 46, 0.1);
}

.brand-mark--logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.brand-text strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.brand-text small {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 999px;
  cursor: pointer;
  color: var(--forest);
}

.nav-toggle__box {
  position: relative;
  display: block;
  width: 1.15rem;
  height: 0.85rem;
}

.nav-toggle__line {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.25s ease, opacity 0.2s ease, top 0.25s ease;
}

.nav-toggle__line:nth-child(1) {
  top: 0;
}

.nav-toggle__line:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}

.nav-toggle__line:nth-child(3) {
  bottom: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__line:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__line:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__line:nth-child(3) {
  bottom: auto;
  top: 50%;
  transform: translateY(-50%) rotate(-45deg);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  display: inline-block;
  padding: 0.55rem 0.8rem;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-list a:hover,
.nav-list a:focus-visible,
.nav-list .nav-item:hover > a,
.nav-list .current-menu-item > a,
.nav-list .current_page_item > a,
.nav-list .is-current > a {
  background: rgba(11, 61, 46, 0.12);
  color: var(--forest);
}

.nav-list .menu-donate a,
.nav-list a[href*="/donate"],
.nav-cta {
  background: var(--forest) !important;
  color: var(--cream) !important;
  margin-left: 0.35rem;
}

.nav-list .menu-donate a:hover,
.nav-list a[href*="/donate"]:hover,
.nav-cta:hover {
  background: var(--leaf) !important;
}

.nav-list .menu-item-has-children {
  position: relative;
}

.nav-list .menu-item-has-children > a {
  padding-right: 1.35rem;
}

.nav-list .menu-item-has-children > a::after {
  content: "";
  position: absolute;
  right: 0.45rem;
  top: 50%;
  width: 0.38rem;
  height: 0.38rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-65%) rotate(45deg);
  opacity: 0.7;
}

.nav-list .sub-menu {
  list-style: none;
  margin: 0;
  padding: 0.4rem;
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  min-width: 15.5rem;
  background: rgba(250, 248, 244, 0.98);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 16px 36px rgba(6, 40, 32, 0.14);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(0.35rem);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  z-index: 60;
}

.nav-list .menu-item-has-children:hover > .sub-menu,
.nav-list .menu-item-has-children:focus-within > .sub-menu,
.nav-list .menu-item-has-children.is-open > .sub-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-list .sub-menu a {
  display: block;
  width: 100%;
  border-radius: 10px;
  padding: 0.65rem 0.85rem;
  white-space: nowrap;
}

/* Hero */
.hero {
  position: relative;
  min-height: min(92vh, 820px);
  display: grid;
  align-items: end;
  color: var(--cream);
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transform: scale(1.04);
  animation: hero-drift 18s ease-in-out infinite alternate;
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(6, 40, 32, 0.35) 0%, rgba(6, 40, 32, 0.55) 42%, rgba(6, 40, 32, 0.88) 100%),
    radial-gradient(circle at 70% 20%, rgba(184, 137, 58, 0.22), transparent 40%);
}

.hero-content {
  padding: 7rem 0 4.5rem;
  max-width: 720px;
}

.hero-kicker {
  font-family: var(--font-arabic);
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
  color: var(--gold-soft);
  margin-bottom: 0.75rem;
  animation: rise-soft 0.9s ease both 0.05s;
}

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  color: var(--cream);
  margin-bottom: 0.35rem;
  animation: rise-soft 0.9s ease both 0.12s;
}

.hero-brand-sub {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
  color: rgba(250, 248, 244, 0.88);
  margin-bottom: 1rem;
  animation: rise-soft 0.9s ease both 0.2s;
}

.hero p {
  font-size: 1.05rem;
  max-width: 36rem;
  color: rgba(250, 248, 244, 0.86);
  animation: rise-soft 0.9s ease both 0.28s;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
  animation: rise-soft 0.9s ease both 0.36s;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 48px;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-gold {
  background: var(--gold);
  color: var(--forest-deep);
}

.btn-gold:hover {
  background: var(--gold-soft);
  color: var(--forest-deep);
}

.btn-ghost {
  background: transparent;
  color: var(--cream);
  border-color: rgba(250, 248, 244, 0.45);
}

.btn-ghost:hover {
  background: rgba(250, 248, 244, 0.1);
  color: var(--cream);
}

.btn-solid {
  background: var(--forest);
  color: var(--cream);
}

.btn-solid:hover {
  background: var(--leaf);
  color: var(--cream);
}

.btn-outline {
  background: transparent;
  border-color: rgba(11, 61, 46, 0.3);
  color: var(--forest);
}

.btn-outline:hover {
  background: rgba(11, 61, 46, 0.06);
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section- Tight {
  padding: 3.5rem 0;
}

.section-head {
  max-width: 38rem;
  margin-bottom: 2.25rem;
}

.section-head .eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 0.7rem;
}

.section-head h2 {
  font-size: clamp(1.9rem, 3.5vw, 2.7rem);
  color: var(--forest-deep);
}

.section-head p {
  color: var(--muted);
  font-size: 1.02rem;
}

.section-dark {
  background:
    linear-gradient(160deg, var(--forest-deep), var(--forest) 55%, #0f4a38);
  color: var(--cream);
}

.section-dark .section-head h2,
.section-dark .section-head p {
  color: inherit;
}

.section-dark .section-head p {
  color: rgba(250, 248, 244, 0.78);
}

.section-mist {
  background:
    linear-gradient(180deg, rgba(231, 239, 233, 0.7), rgba(243, 240, 234, 0.9));
}

/* Prayer clock */
.prayer-panel {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(231, 239, 233, 0.92));
  border: 1px solid rgba(11, 61, 46, 0.1);
  border-radius: calc(var(--radius) + 8px);
  box-shadow: var(--shadow);
  padding: clamp(1.25rem, 3vw, 2rem);
  overflow: hidden;
  position: relative;
}

.prayer-panel::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 4l3.5 8.5L42 16l-8.5 3.5L30 28l-3.5-8.5L18 16l8.5-3.5L30 4zm0 28l2 5 5 2-5 2-2 5-2-5-5-2 5-2 2-5z' fill='%230b3d2e' fill-opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
}

.location-tabs {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.location-tab {
  border: 1px solid rgba(11, 61, 46, 0.14);
  background: rgba(255, 255, 255, 0.75);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.65rem 1rem;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.location-tab:hover {
  border-color: rgba(11, 61, 46, 0.35);
}

.location-tab.is-active {
  background: var(--forest);
  border-color: var(--forest);
  color: var(--cream);
  transform: translateY(-1px);
}

.prayer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.4rem;
}

.prayer-meta__copy {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  align-items: baseline;
  min-width: min(100%, 16rem);
  flex: 1 1 14rem;
}

.prayer-meta h3 {
  font-size: 1.45rem;
  margin: 0;
  color: var(--forest-deep);
}

.prayer-meta p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.prayer-widget-link {
  flex: 0 0 auto;
  margin-left: auto;
  white-space: nowrap;
  position: relative;
  z-index: 1;
}

.countdown {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.countdown-card,
.live-clock {
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
  border: 1px solid rgba(11, 61, 46, 0.1);
}

.countdown-card {
  background: linear-gradient(135deg, var(--forest-deep), var(--leaf));
  color: var(--cream);
  animation: pulse-soft 4s ease-in-out infinite;
}

.countdown-card .label {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.8;
  margin-bottom: 0.45rem;
}

.countdown-card .next-name {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  margin-bottom: 0.2rem;
}

.countdown-card .next-time {
  font-size: 1rem;
  opacity: 0.9;
  margin-bottom: 0.85rem;
}

.countdown-digits {
  display: flex;
  gap: 0.55rem;
  font-variant-numeric: tabular-nums;
}

.countdown-digits span {
  min-width: 3.1rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 0.55rem 0.4rem;
}

.countdown-digits strong {
  display: block;
  font-size: 1.45rem;
  line-height: 1;
}

.countdown-digits small {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.75;
}

.live-clock {
  background: rgba(255, 255, 255, 0.75);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.live-clock .label {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 0.45rem;
}

.live-clock .time {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.4vw, 2.4rem);
  color: var(--forest-deep);
  font-variant-numeric: tabular-nums;
}

.live-clock .date {
  color: var(--muted);
  font-size: 0.92rem;
}

.prayer-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.65rem;
}

.prayer-cell {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(11, 61, 46, 0.1);
  border-radius: 14px;
  padding: 0.9rem 0.7rem;
  text-align: center;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.prayer-cell.is-next {
  background: rgba(184, 137, 58, 0.14);
  border-color: rgba(184, 137, 58, 0.55);
  transform: translateY(-2px);
}

.prayer-cell.is-passed {
  opacity: 0.55;
}

.prayer-cell .name {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.35rem;
  font-weight: 600;
}

.prayer-cell .time,
.prayer-cell [data-adhan] {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--forest-deep);
  font-variant-numeric: tabular-nums;
  display: block;
}

.prayer-cell .adhan-label {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.15rem;
}

.prayer-cell .iqamah {
  display: block;
  margin-top: 0.55rem;
  padding-top: 0.45rem;
  border-top: 1px dashed rgba(11, 61, 46, 0.15);
}

.prayer-cell .iqamah small {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}

.prayer-cell .iqamah em {
  font-style: normal;
  font-family: var(--font-display);
  font-size: 0.98rem;
  color: var(--forest);
  font-variant-numeric: tabular-nums;
}

.jumah-panel {
  margin-top: 1.25rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(11, 61, 46, 0.12);
}

.jumah-title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--forest-deep);
}

.jumah-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.jumah-card {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(11, 61, 46, 0.1);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  display: grid;
  gap: 0.35rem;
}

.jumah-card strong {
  font-family: var(--font-display);
  color: var(--forest-deep);
}

.jumah-card span {
  color: var(--muted);
  font-size: 0.92rem;
}

.jumah-card small {
  color: var(--gold);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  margin-right: 0.25rem;
}

.prayer-note {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.88rem;
}

/* Announcement slider */
.announce-slider {
  position: relative;
  border-radius: calc(var(--radius) + 8px);
  overflow: hidden;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(231, 239, 233, 0.9));
  border: 1px solid rgba(11, 61, 46, 0.1);
  box-shadow: var(--shadow);
}

.announce-track {
  position: relative;
  min-height: 280px;
}

.announce-slide {
  margin: 0;
  display: none;
  animation: rise-soft 0.55s ease both;
}

.announce-slide.is-active {
  display: block;
}

.announce-media {
  display: grid;
  place-items: center;
  text-decoration: none;
  background:
    radial-gradient(circle at 50% 20%, rgba(184, 137, 58, 0.08), transparent 45%),
    linear-gradient(180deg, rgba(11, 61, 46, 0.04), rgba(11, 61, 46, 0.08));
  min-height: 280px;
  max-height: min(70vh, 560px);
  padding: 1rem;
}

.announce-media img {
  max-width: 100%;
  max-height: min(64vh, 520px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
}

.announce-slide.is-landscape .announce-media {
  padding: 0;
  min-height: 320px;
}

.announce-slide.is-landscape .announce-media img {
  width: 100%;
  max-height: min(58vh, 480px);
  object-fit: cover;
  border-radius: 0;
}

.announce-slide.is-portrait .announce-media img {
  max-height: min(70vh, 560px);
  width: auto;
}

.announce-caption {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
  align-items: baseline;
  padding: 0.9rem 1.15rem 1.05rem;
  background: rgba(255, 255, 255, 0.92);
  border-top: 1px solid rgba(11, 61, 46, 0.08);
}

.announce-caption strong {
  font-family: var(--font-display);
  color: var(--forest-deep);
  font-size: 1.05rem;
}

.announce-caption span {
  color: var(--muted);
  font-size: 0.92rem;
}

.announce-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem 1rem;
}

.announce-btn {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  border: 1px solid rgba(11, 61, 46, 0.18);
  background: #fff;
  color: var(--forest);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.announce-btn:hover {
  background: var(--mist);
}

.announce-dots {
  display: flex;
  gap: 0.4rem;
}

.announce-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  border: 0;
  background: rgba(11, 61, 46, 0.22);
  cursor: pointer;
  padding: 0;
}

.announce-dot.is-active {
  background: var(--forest);
  width: 1.15rem;
}

.prayer-status {
  min-height: 1.25rem;
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

/* Programs / services */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.feature {
  padding: 0.25rem 0 0.5rem;
  border-top: 2px solid rgba(184, 137, 58, 0.55);
}

.feature h3 {
  font-size: 1.25rem;
  margin: 0.9rem 0 0.45rem;
  color: var(--forest-deep);
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.program-card {
  border-top: 0;
  padding: 0;
}

.program-card__button {
  width: 100%;
  text-align: left;
  border: 1px solid rgba(11, 61, 46, 0.12);
  background: rgba(255, 255, 255, 0.72);
  border-radius: var(--radius);
  padding: 1.1rem 1.15rem;
  cursor: pointer;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.95rem;
  align-items: start;
  font: inherit;
  color: inherit;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.program-card__button:hover,
.program-card__button:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(184, 137, 58, 0.55);
  box-shadow: 0 12px 28px rgba(11, 61, 46, 0.1);
  outline: none;
}

.program-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, rgba(11, 61, 46, 0.1), rgba(184, 137, 58, 0.14));
  color: var(--forest);
  flex-shrink: 0;
}

.program-icon svg {
  width: 1.45rem;
  height: 1.45rem;
}

.program-icon--lg {
  width: 3.4rem;
  height: 3.4rem;
}

.program-card__title {
  display: block;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--forest-deep);
  margin-bottom: 0.35rem;
}

.program-card__summary {
  display: block;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.55;
}

.program-card__cta {
  display: inline-block;
  margin-top: 0.7rem;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.program-dialog {
  border: 0;
  border-radius: calc(var(--radius) + 6px);
  padding: 0;
  width: min(92vw, 640px);
  max-height: min(86vh, 760px);
  background: var(--cream);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.program-dialog::backdrop {
  background: rgba(6, 40, 32, 0.55);
  backdrop-filter: blur(3px);
}

.program-dialog__inner {
  position: relative;
  padding: 1.5rem 1.4rem 1.5rem;
  overflow: auto;
  max-height: min(86vh, 760px);
}

.program-dialog__close {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  width: 2.2rem;
  height: 2.2rem;
  border: 0;
  border-radius: 999px;
  background: rgba(11, 61, 46, 0.08);
  color: var(--forest);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.program-dialog__header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding-right: 2rem;
  margin-bottom: 1rem;
}

.program-dialog__header h3 {
  margin: 0;
  font-size: 1.55rem;
  color: var(--forest-deep);
}

.program-dialog__body p {
  color: var(--muted);
}

.program-dialog__contacts {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.program-dialog__contacts a,
.program-dialog__links a {
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

.program-dialog__contact-cta {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.program-dialog__contact-cta .btn {
  margin-right: 0.5rem;
  margin-top: 0.35rem;
}

.leadership-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.25rem;
}

.leadership-card {
  text-align: center;
}

.leadership-photo {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 0.85rem;
  border: 3px solid rgba(184, 137, 58, 0.45);
  background: var(--mist);
  box-shadow: 0 10px 28px rgba(11, 61, 46, 0.12);
}

.leadership-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.leadership-card h3 {
  font-size: 1.1rem;
  margin: 0 0 0.25rem;
  color: var(--forest-deep);
}

.leadership-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.donate-options {
  display: grid;
  gap: 0.9rem;
  margin: 1.5rem 0 0.5rem;
}

.donate-option {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.15rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(250, 248, 244, 0.22);
  color: var(--cream);
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease;
}

.donate-option:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.18);
  color: var(--cream);
}

.donate-option__icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(184, 137, 58, 0.25);
  color: var(--gold-soft);
}

.donate-option__icon svg {
  width: 1.35rem;
  height: 1.35rem;
}

.donate-option__body {
  display: grid;
  gap: 0.2rem;
}

.donate-option__body strong {
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.donate-option__body span {
  color: rgba(250, 248, 244, 0.78);
  font-size: 0.92rem;
}

.donate-option__go {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-soft);
  white-space: nowrap;
}

/* About split */
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
}

.split-media {
  border-radius: calc(var(--radius) + 6px);
  overflow: hidden;
  min-height: 420px;
  position: relative;
  box-shadow: var(--shadow);
}

.split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 420px;
}

.split-copy .eyebrow {
  color: var(--gold);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
}

.split-copy h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  color: var(--forest-deep);
}

.mission-list {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.mission-list li {
  padding-left: 1.2rem;
  position: relative;
  color: var(--muted);
}

.mission-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--gold);
}

/* Timeline */
.timeline {
  display: grid;
  gap: 0;
  border-left: 2px solid rgba(184, 137, 58, 0.45);
  margin-left: 0.5rem;
  padding-left: 1.5rem;
}

.timeline-item {
  position: relative;
  padding: 0 0 1.75rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -1.78rem;
  top: 0.35rem;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--forest);
  border: 2px solid var(--gold-soft);
}

.timeline-item .year {
  font-family: var(--font-display);
  color: var(--gold);
  font-size: 1.15rem;
  margin-bottom: 0.2rem;
}

.timeline-item h3 {
  font-size: 1.2rem;
  margin-bottom: 0.35rem;
  color: var(--forest-deep);
}

.timeline-item p {
  margin: 0;
  color: var(--muted);
}

/* Locations */
.location-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.location-block {
  padding-top: 1rem;
  border-top: 2px solid rgba(11, 61, 46, 0.18);
}

.location-block h3 {
  font-size: 1.25rem;
  color: var(--cream);
  margin-bottom: 0.35rem;
}

.location-block p {
  margin: 0 0 0.75rem;
  color: rgba(250, 248, 244, 0.78);
  font-size: 0.95rem;
}

.location-block a {
  color: var(--gold-soft);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.contact-list li {
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.contact-list strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
  color: var(--forest-deep);
}

.contact-form {
  display: grid;
  gap: 0.85rem;
}

.contact-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  border: 1px solid rgba(11, 61, 46, 0.18);
  border-radius: 12px;
  padding: 0.8rem 0.95rem;
  font: inherit;
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink);
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.form-note {
  font-size: 0.85rem;
  color: var(--muted);
}

.form-success,
.form-error {
  display: none;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  font-weight: 500;
  margin-bottom: 1rem;
}

.form-success {
  background: rgba(31, 107, 79, 0.12);
  color: var(--forest);
}

.form-error {
  background: rgba(140, 40, 40, 0.1);
  color: #7a1f1f;
}

.form-success.is-visible,
.form-error.is-visible {
  display: block;
}

.hp-field {
  position: absolute !important;
  left: -9999px !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
}

/* Page hero */
.page-hero {
  padding: 4.5rem 0 2.5rem;
  background:
    linear-gradient(180deg, rgba(11, 61, 46, 0.08), transparent);
}

.page-hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  color: var(--forest-deep);
  margin-bottom: 0.5rem;
}

.page-hero p {
  max-width: 40rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.page-content {
  padding: 1rem 0 4.5rem;
}

.prose {
  max-width: 46rem;
}

.prose h2 {
  margin-top: 2rem;
  color: var(--forest-deep);
}

.prose ul {
  padding-left: 1.15rem;
  color: var(--muted);
}

/* Donate */
.donate-panel {
  background: linear-gradient(145deg, var(--forest-deep), var(--leaf));
  color: var(--cream);
  border-radius: calc(var(--radius) + 8px);
  padding: clamp(1.5rem, 4vw, 2.5rem);
}

.donate-panel h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.donate-panel p {
  max-width: 36rem;
  color: rgba(250, 248, 244, 0.85);
}

.quote {
  margin: 1.5rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(250, 248, 244, 0.2);
  font-family: var(--font-arabic);
  font-size: 1.2rem;
  line-height: 1.5;
  color: var(--gold-soft);
}

/* Footer */
.site-footer {
  background: var(--forest-deep);
  color: rgba(250, 248, 244, 0.82);
  padding: 3.5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.site-footer h3 {
  color: var(--cream);
  font-size: 1.1rem;
  margin-bottom: 0.85rem;
}

.site-footer a {
  color: var(--gold-soft);
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--cream);
  margin-bottom: 0.6rem;
}

.footer-meta {
  border-top: 1px solid rgba(250, 248, 244, 0.12);
  padding-top: 1.25rem;
}

.footer-credit {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.55;
  color: rgba(250, 248, 244, 0.72);
}

.footer-credit a {
  color: var(--gold-soft);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.footer-links a {
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* Animations */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes rise-soft {
  from {
    transform: translateY(14px);
  }
  to {
    transform: translateY(0);
  }
}

@keyframes hero-drift {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.1) translate3d(-1.5%, -1%, 0);
  }
}

@keyframes pulse-soft {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(184, 137, 58, 0);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(184, 137, 58, 0.08);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Responsive */
@media (max-width: 1100px) {
  .leadership-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .countdown,
  .feature-grid,
  .location-grid,
  .split,
  .contact-grid,
  .footer-grid,
  .jumah-grid {
    grid-template-columns: 1fr;
  }

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

  .donate-option {
    grid-template-columns: auto 1fr;
  }

  .donate-option__go {
    grid-column: 2;
  }

  .prayer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .split-media,
  .split-media img {
    min-height: 280px;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-toggle[aria-expanded="true"] {
    border-color: rgba(11, 61, 46, 0.28);
    background: rgba(11, 61, 46, 0.06);
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    background: rgba(250, 248, 244, 0.98);
    border-bottom: 1px solid var(--line);
    padding: 0.75rem 1rem 1rem;
    display: none;
  }

  .site-nav.is-open {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-list .menu-item-has-children > a {
    position: relative;
    width: 100%;
  }

  .nav-list .menu-item-has-children > a::after {
    right: 0.85rem;
  }

  .nav-list .menu-item-has-children.is-open > a::after {
    transform: translateY(-35%) rotate(225deg);
  }

  .nav-list .sub-menu {
    position: static;
    min-width: 0;
    width: 100%;
    margin: 0.25rem 0 0.35rem;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    display: none;
    box-shadow: none;
    background: rgba(11, 61, 46, 0.04);
  }

  .nav-list .menu-item-has-children.is-open > .sub-menu {
    display: block;
  }

  .nav-list .menu-donate a,
  .nav-list a[href*="/donate"],
  .nav-cta {
    margin-left: 0;
    text-align: center;
  }

  .hero-content {
    padding: 6.5rem 0 3.25rem;
  }

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

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

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .hero-media img {
    transform: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}