/* AlFalaah Scotland - shared stylesheet */

:root {
  --emerald: #1f6584;
  --emerald-dark: #0f3e52;
  --emerald-tint: #eaf2f5;
  --ink: #16232b;
  --muted: #5a6b74;
  --border: #e1e7ea;
  --amber: #edb349;
  --amber-dark: #a97918;
  --radius: 10px;
  --shadow: 0 6px 24px rgba(15, 62, 82, 0.14);
  --font-body: "Inter", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: #fff;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.2px;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---- Masthead (brand + social + prayer times) ---- */
.site-announcement {
  background: var(--amber);
  color: var(--ink);
  padding: 9px 0;
  font-size: 0.88rem;
  font-weight: 600;
  text-align: center;
}
.site-announcement a { color: var(--emerald-dark); text-decoration: underline; margin-left: 6px; }
.masthead {
  background: #0a2c3b;
  color: #fff;
  padding: 16px 0;
}
.masthead-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px 32px;
  max-width: 1280px;
  padding-left: 8px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}
.brand img.logo-mark { width: auto; height: 74px; }
.brand .brand-text {
  font-size: 1.05rem;
  margin: 0;
  color: #fff;
  line-height: 1.18;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: var(--font-body);
  font-weight: 800;
}

.masthead-social { display: flex; gap: 8px; flex: 0 0 auto; }
.masthead-social a {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.35);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}
.masthead-social a svg { width: 14px; height: 14px; }
.masthead-social a:hover { background: var(--amber); border-color: var(--amber); color: var(--emerald-dark); transform: translateY(-1px); }

.masthead-times { flex: 1 1 460px; min-width: 0; margin-left: auto; }
.mt-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 16px;
  font-size: 0.78rem;
}
.mt-top { margin-bottom: 8px; }
.mt-date { color: rgba(255,255,255,0.75); }
.mt-link { font-weight: 700; color: #fff; text-decoration: underline; white-space: nowrap; }
.mt-bottom { margin-top: 8px; }
.mt-sub { color: var(--amber); font-weight: 600; }
a.mt-sub:hover { text-decoration: underline; }

.mt-table-wrap { overflow-x: auto; }
table.mt-table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
}
table.mt-table th,
table.mt-table td {
  padding: 4px 10px;
  text-align: center;
}
table.mt-table th:first-child,
table.mt-table td:first-child { text-align: left; padding-left: 0; }
table.mt-table th {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 700;
  color: var(--amber);
}
table.mt-table td { font-size: 0.85rem; color: rgba(255,255,255,0.85); }
table.mt-table tbody tr:last-child td { font-weight: 800; color: #fff; font-size: 0.92rem; }
table.mt-table tbody tr:first-child td:first-child,
table.mt-table tbody tr:last-child td:first-child {
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  font-size: 0.72rem;
  text-transform: uppercase;
}

/* ---- Header / Nav ---- */
header.site-header {
  background: linear-gradient(rgba(0,0,0,0.14), rgba(0,0,0,0.14)), var(--emerald);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  gap: 20px;
}

nav.main-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 26px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
nav.main-nav a {
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: #fff;
  padding: 8px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}
nav.main-nav a.nav-home { display: flex; align-items: center; padding: 8px 2px; border-bottom-width: 2px; }
nav.main-nav a.nav-home svg { width: 20px; height: 20px; }
.nav-home-label { display: none; }
nav.main-nav a:hover,
nav.main-nav a.active {
  color: var(--amber);
  border-color: var(--amber);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--emerald);
  color: #fff !important;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(15, 62, 82, 0.22);
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn:hover { background: var(--emerald-dark); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(15, 62, 82, 0.28); }
.btn.gold { background: var(--amber); color: var(--ink) !important; box-shadow: 0 4px 14px rgba(169, 121, 24, 0.28); }
.btn.gold:hover { background: var(--amber-dark); }
.btn.outline {
  background: transparent;
  color: var(--emerald) !important;
  border: 2px solid var(--emerald);
}
.btn-lg { display: inline-flex; align-items: center; gap: 10px; padding: 15px 30px; font-size: 1rem; }
.btn-lg svg { width: 19px; height: 19px; }
.btn.outline:hover { background: var(--emerald); color: #fff !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 26px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
}

/* ---- Announcement ticker (legacy, unused but kept for safety) ---- */
.ticker { display: none; }

/* ---- Hero carousel ---- */
.hero {
  position: relative;
  color: #fff;
  overflow: hidden;
  padding: 0;
}
.hero-slides { position: relative; min-height: 580px; }
.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--emerald-dark);
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease;
}
.hero-slide.active { opacity: 1; visibility: visible; z-index: 1; }
.hero-visual {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.hero-tint {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg,
    rgba(8,25,34,0.86) 0%,
    rgba(8,25,34,0.86) 52%,
    var(--amber) 52%,
    var(--amber) 53%,
    transparent 53%,
    transparent 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  width: min(92%, 540px);
  margin: 0;
  padding: 70px 20px;
  margin-left: clamp(24px, 6vw, 90px);
}
.hero .eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--amber);
  font-weight: 700;
  font-size: 0.85rem;
}
.hero h2 {
  font-size: 2.5rem;
  margin: 10px 0 16px;
  line-height: 1.16;
  color: #fff;
  text-shadow: 0 2px 14px rgba(0,0,0,0.45);
}
.hero p { font-size: 1.05rem; margin-bottom: 26px; color: rgba(255,255,255,0.92); text-shadow: 0 1px 8px rgba(0,0,0,0.4); }
.hero .hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-dots {
  position: absolute;
  left: 0; right: 0;
  bottom: 20px;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 8px;
}
.hero-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.8);
  padding: 0;
  background: transparent;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.hero-dot:hover { border-color: var(--amber); }
.hero-dot.active { background: var(--amber); border-color: var(--amber); }

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.4);
  background: rgba(15,62,82,0.35);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.hero-arrow svg { width: 22px; height: 22px; }
.hero-arrow:hover { background: var(--amber); border-color: var(--amber); color: var(--emerald-dark); }
.hero-arrow-prev { left: 24px; }
.hero-arrow-next { right: 24px; }
@media (max-width: 767px) {
  .hero-arrow { width: 36px; height: 36px; }
  .hero-arrow svg { width: 18px; height: 18px; }
  .hero-arrow-prev { left: 10px; }
  .hero-arrow-next { right: 10px; }
}

/* ---- Page header (inner pages) ---- */
.page-header {
  position: relative;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.09' stroke-width='1'%3E%3Crect x='12' y='12' width='40' height='40'/%3E%3Crect x='12' y='12' width='40' height='40' transform='rotate(45 32 32)'/%3E%3C/g%3E%3C/svg%3E") repeat,
    var(--emerald-dark);
  color: #fff;
  padding: 54px 0;
  text-align: center;
  overflow: hidden;
}
.page-header h2 { margin: 0 0 8px; font-size: 2.2rem; }
.page-header p { margin: 0; opacity: 0.9; }

/* ---- Sections ---- */
section { padding: 64px 0; }
section.alt { background: var(--emerald-tint); }
section.pillars-section { background: #edb349; }
.pillars-section .section-head .eyebrow { color: var(--emerald-dark); }
.pillars-section .section-head p { color: rgba(15, 62, 82, 0.75); }

.about-media { position: relative; }
.about-media::before {
  content: "";
  position: absolute;
  inset: -24px;
  background: radial-gradient(circle, rgba(237, 179, 73, 0.28) 0%, transparent 70%);
  z-index: 0;
}
.about-media img { position: relative; z-index: 1; }
.about-media .donate-badge { z-index: 2; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.section-head .eyebrow {
  color: var(--amber-dark);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  font-size: 0.8rem;
}
.section-head h2 { color: var(--emerald-dark); font-size: 2.3rem; margin: 8px 0 12px; }
.section-head h2::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  background: var(--amber);
  margin: 16px auto 0;
  border-radius: 2px;
}
.section-head p { color: var(--muted); margin: 0; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.two-col img { border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---- Cards / Grids ---- */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.grid.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  position: relative;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 30px 24px;
  box-shadow: 0 6px 20px rgba(15, 62, 82, 0.07);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--amber) 0%, #f8d998 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(15, 62, 82, 0.16);
  border-color: transparent;
}
.card:hover::before { transform: scaleX(1); }
.card .icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--emerald-tint);
  color: var(--emerald);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.6rem;
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}
.card .icon svg { width: 26px; height: 26px; }
.card:hover .icon { background: var(--amber); color: var(--emerald-dark); transform: scale(1.06); }

/* ---- Card icon color variants ---- */
.card.icon-rose .icon { background: #fbe4ef; color: #c23b7c; }
.card.icon-amber .icon { background: #fdf1de; color: var(--amber-dark); }
.card.icon-indigo .icon { background: #e8e6fb; color: #5b4fc4; }
.card.icon-emerald .icon { background: var(--emerald-tint); color: var(--emerald); }
.card h3 { margin: 0 0 10px; color: var(--emerald-dark); }
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* ---- Programme / course cards ---- */
.programme-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 30px 26px 26px;
  box-shadow: 0 6px 20px rgba(15, 62, 82, 0.07);
  text-align: left;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.programme-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--amber) 0%, #f8d998 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}
.programme-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(15, 62, 82, 0.16);
  border-color: transparent;
}
.programme-card:hover::before { transform: scaleX(1); }
.programme-card .tag {
  display: inline-block;
  background: var(--emerald-tint);
  color: var(--emerald-dark);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
  align-self: flex-start;
}
.programme-card .tag.free { background: #fdf1de; color: var(--amber-dark); }
.programme-card h3 { margin: 0 0 8px; color: var(--emerald-dark); }
.programme-card .meta { font-size: 0.85rem; color: var(--amber-dark); font-weight: 700; margin-bottom: 10px; }
.programme-card p { margin: 0 0 20px; color: var(--muted); font-size: 0.92rem; line-height: 1.55; flex-grow: 1; }
.programme-card .icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--emerald-tint);
  color: var(--emerald);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}
.programme-card .icon svg { width: 24px; height: 24px; }
.programme-card:hover .icon { background: var(--amber); color: var(--emerald-dark); transform: scale(1.06); }
.programme-card .btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 12px 20px;
  letter-spacing: 0.2px;
}
.programme-card .btn svg { width: 16px; height: 16px; transition: transform 0.3s ease; }
.programme-card .btn:hover svg { transform: translateX(4px); }

/* Centre a lone last card in the 3-column facilities grid */
@media (min-width: 901px) {
  .facilities-grid > .card:last-child:nth-child(3n+1) { grid-column: 2; }
}

/* ---- Takhassus ul Ifta page ---- */
.tf-intro { padding: 84px 0; }
.tf-intro-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 60px; align-items: center; }
.tf-intro .eyebrow { color: var(--amber-dark); text-transform: uppercase; letter-spacing: 2px; font-weight: 700; font-size: 0.8rem; }
.tf-intro p { color: var(--muted); line-height: 1.8; }
.tf-details {
  background: #fff;
  border-radius: 18px;
  border-top: 5px solid var(--amber);
  padding: 32px 30px;
  box-shadow: 0 20px 50px rgba(15, 62, 82, 0.13);
}
.tf-details h3 { margin: 0 0 18px; color: var(--emerald-dark); font-size: 1.6rem; }
.tf-details ul { list-style: none; margin: 0 0 24px; padding: 0; }
.tf-details li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-top: 1px dashed var(--border); }
.tf-details li:first-child { border-top: 0; padding-top: 0; }
.tf-details-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--emerald-tint);
  color: var(--emerald);
  display: flex;
  align-items: center;
  justify-content: center;
}
.tf-details-icon svg { width: 21px; height: 21px; }
.tf-details span { display: block; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1px; font-weight: 700; color: var(--amber-dark); margin-bottom: 2px; }
.tf-details strong { color: var(--emerald-dark); font-size: 0.98rem; line-height: 1.45; }
.tf-details .btn { width: 100%; justify-content: center; border-radius: 999px; padding: 13px 20px; }

.tf-supervision {
  text-align: center;
  color: #fff;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.08' stroke-width='1'%3E%3Crect x='12' y='12' width='40' height='40'/%3E%3Crect x='12' y='12' width='40' height='40' transform='rotate(45 32 32)'/%3E%3C/g%3E%3C/svg%3E") repeat,
    #082430;
  padding: 84px 0;
}
.tf-supervision .container { max-width: 820px; }
.tf-supervision .eyebrow { color: var(--amber); text-transform: uppercase; letter-spacing: 2px; font-weight: 700; font-size: 0.8rem; }
.tf-supervision blockquote { font-family: var(--font-display); font-size: 2.3rem; line-height: 1.3; margin: 14px 0 18px; }
.tf-supervision blockquote span { color: var(--amber); white-space: nowrap; }
.tf-supervision p { color: rgba(255, 255, 255, 0.78); line-height: 1.75; margin: 0 auto 34px; max-width: 640px; }
.tf-teachers-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 2px; color: rgba(255, 255, 255, 0.55); font-weight: 700; margin-bottom: 14px; }
.tf-teachers { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.tf-teachers li {
  border: 1px solid rgba(237, 179, 73, 0.5);
  background: rgba(237, 179, 73, 0.08);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 10px 24px;
  border-radius: 999px;
}

.tf-curriculum {
  scroll-margin-top: 120px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64'%3E%3Cg fill='none' stroke='%230f3e52' stroke-opacity='0.07' stroke-width='1'%3E%3Crect x='12' y='12' width='40' height='40'/%3E%3Crect x='12' y='12' width='40' height='40' transform='rotate(45 32 32)'/%3E%3C/g%3E%3C/svg%3E") repeat,
    #edb349;
  padding: 84px 0 90px;
}
.tf-curriculum .section-head .eyebrow { color: var(--emerald-dark); }
.tf-curriculum .section-head h2::after { background: var(--emerald-dark); }
.tf-curriculum .section-head p { color: rgba(15, 62, 82, 0.8); }
.tf-terms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; align-items: stretch; }
.tf-term {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 14px 36px rgba(15, 62, 82, 0.16);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.tf-term:hover { transform: translateY(-6px); box-shadow: 0 24px 48px rgba(15, 62, 82, 0.24); }
.tf-term header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 26px;
  color: #fff;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.08' stroke-width='1'%3E%3Crect x='12' y='12' width='40' height='40'/%3E%3Crect x='12' y='12' width='40' height='40' transform='rotate(45 32 32)'/%3E%3C/g%3E%3C/svg%3E") repeat,
    var(--emerald-dark);
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1;
}
.tf-term header small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--amber);
  margin-bottom: 4px;
}
.tf-term-num {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: var(--amber);
  color: var(--emerald-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}
.tf-term ul { list-style: none; margin: 0; padding: 8px 26px 14px; }
.tf-term li {
  padding: 16px 0;
  border-top: 1px dashed var(--border);
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}
.tf-term li:first-child { border-top: 0; }
.tf-term li span[lang="ar"] {
  display: block;
  text-align: right;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--emerald-dark);
  margin-bottom: 4px;
}
.tf-term li em { color: var(--amber-dark); font-style: normal; font-weight: 600; }

@media (max-width: 900px) {
  .tf-intro-grid { grid-template-columns: 1fr; gap: 40px; }
  .tf-terms { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
}
@media (max-width: 700px) {
  .tf-intro, .tf-supervision, .tf-curriculum { padding: 64px 0; }
  .tf-supervision blockquote { font-size: 1.8rem; }
}

/* ---- Contact page ---- */
.ct-hero { padding: 96px 0 130px; }

.ct-quick {
  margin: -70px auto 0;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.ct-quick-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: #fff;
  border-radius: 18px;
  padding: 28px 18px 24px;
  box-shadow: 0 18px 44px rgba(15, 62, 82, 0.15);
  border-bottom: 4px solid transparent;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.ct-quick-card:hover { transform: translateY(-6px); border-color: var(--amber); box-shadow: 0 26px 50px rgba(15, 62, 82, 0.2); }
.ct-quick-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--emerald-dark);
  color: var(--amber);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  transition: background 0.3s ease, color 0.3s ease;
}
.ct-quick-icon svg { width: 25px; height: 25px; }
.ct-quick-card:hover .ct-quick-icon { background: var(--amber); color: var(--emerald-dark); }
.ct-quick-card small { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1.5px; font-weight: 700; color: var(--amber-dark); margin-bottom: 4px; }
.ct-quick-card strong { color: var(--emerald-dark); font-size: 0.98rem; word-break: break-word; }

.ct-main { padding: 80px 0 90px; }
.ct-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 32px; align-items: stretch; }
.ct-main .eyebrow,
.ct-map-card .eyebrow { text-transform: uppercase; letter-spacing: 2px; font-weight: 700; font-size: 0.78rem; }

.ct-panel {
  color: #fff;
  border-radius: 22px;
  padding: 38px 34px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.07' stroke-width='1'%3E%3Crect x='12' y='12' width='40' height='40'/%3E%3Crect x='12' y='12' width='40' height='40' transform='rotate(45 32 32)'/%3E%3C/g%3E%3C/svg%3E") repeat,
    var(--emerald-dark);
  box-shadow: 0 24px 54px rgba(15, 62, 82, 0.25);
  display: flex;
  flex-direction: column;
}
.ct-panel .eyebrow { color: var(--amber); }
.ct-panel h3 { color: #fff; font-size: 1.9rem; margin: 8px 0 22px; }
.ct-hours { list-style: none; margin: 0 0 24px; padding: 0; }
.ct-hours li { display: flex; gap: 16px; align-items: flex-start; padding: 16px 0; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.ct-hours li:first-child { border-top: 0; padding-top: 0; }
.ct-hours-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(237, 179, 73, 0.15);
  color: var(--amber);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ct-hours-icon svg { width: 21px; height: 21px; }
.ct-hours small { display: block; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 1.5px; color: rgba(255, 255, 255, 0.55); font-weight: 700; margin-bottom: 2px; }
.ct-hours strong { display: block; font-size: 1.05rem; }
.ct-hours span { color: rgba(255, 255, 255, 0.78); font-size: 0.92rem; }
.ct-hours a { color: var(--amber); font-weight: 600; }
.ct-panel-emails { margin-top: auto; padding: 18px 20px; border-radius: 14px; background: rgba(255, 255, 255, 0.06); }
.ct-panel-emails small { display: block; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 1.5px; color: rgba(255, 255, 255, 0.55); font-weight: 700; margin-bottom: 4px; }
.ct-panel-emails a { color: #fff; font-weight: 600; }
.ct-panel-emails a:hover { color: var(--amber); }
.ct-panel-social { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.ct-panel-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.ct-panel-social a:hover { background: var(--amber); border-color: var(--amber); color: var(--emerald-dark); }
.ct-panel-social svg { width: 16px; height: 16px; }

form.contact-form.ct-form {
  border: 0;
  border-radius: 22px;
  padding: 38px 38px 34px;
  box-shadow: 0 24px 54px rgba(15, 62, 82, 0.12);
  border-top: 5px solid var(--amber);
}
.ct-form .eyebrow { color: var(--amber-dark); }
.contact-form.ct-form h3 { font-size: 1.9rem; margin: 8px 0 6px; }
.ct-form-lead { color: var(--muted); font-size: 0.92rem; margin: 0 0 24px; }
.ct-form .form-note { margin: 0 0 20px; }
.ct-form input,
.ct-form select,
.ct-form textarea { background: #f6f9fa; border-radius: 12px; }
.ct-form input:focus,
.ct-form select:focus,
.ct-form textarea:focus { background: #fff; }
.ct-form select {
  width: 100%;
  padding: 12px 40px 12px 14px;
  border: 1px solid var(--border);
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  margin-bottom: 16px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f6584' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  cursor: pointer;
}
.ct-form select:focus { outline: none; border-color: var(--emerald); box-shadow: 0 0 0 3px var(--emerald-tint); }
.ct-form textarea { min-height: 150px; }
.btn.ct-submit { width: 100%; justify-content: center; border-radius: 999px; padding: 14px 20px; font-size: 0.95rem; }

.ct-map { position: relative; padding: 0; }
.ct-map iframe { display: block; width: 100%; height: 460px; border: 0; filter: saturate(0.85); }
.ct-map .container { position: absolute; inset: 0; display: flex; align-items: center; pointer-events: none; }
.ct-map-card {
  pointer-events: auto;
  max-width: 320px;
  background: #fff;
  border-radius: 20px;
  padding: 30px 28px;
  box-shadow: 0 24px 54px rgba(15, 62, 82, 0.28);
  border-left: 5px solid var(--amber);
}
.ct-map-card .eyebrow { color: var(--amber-dark); }
.ct-map-card h3 { color: var(--emerald-dark); font-size: 1.8rem; margin: 6px 0 10px; }
.ct-map-card p { color: var(--muted); line-height: 1.65; margin: 0 0 20px; }
.ct-map-card .btn { border-radius: 999px; padding: 12px 22px; }

@media (max-width: 900px) {
  .ct-quick { grid-template-columns: repeat(2, 1fr); }
  .ct-grid { grid-template-columns: 1fr; }
  .ct-map .container { position: static; display: block; }
  .ct-map-card { max-width: none; margin: -60px 0 0; position: relative; }
  .ct-map { padding-bottom: 60px; }
}
@media (max-width: 700px) {
  .ct-hero { padding: 64px 0 110px; }
  .ct-quick { gap: 12px; }
  .ct-quick-card { padding: 20px 12px 18px; }
  .ct-quick-card strong { font-size: 0.85rem; }
  .ct-main { padding: 56px 0 64px; }
  .ct-panel, form.contact-form.ct-form { padding: 28px 22px; }
  .ct-map iframe { height: 320px; }
}

/* ---- Donate page ---- */
.dn-hero { padding: 96px 0 100px; }
.dn-hadith { font-size: 0.9rem; color: rgba(255, 255, 255, 0.7); font-style: italic; margin: 0 0 18px !important; }

.dn-causes { padding: 84px 0 90px; scroll-margin-top: 120px; }
.dn-cause-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.dn-cause {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 14px 36px rgba(15, 62, 82, 0.12);
  border: 1px solid var(--border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.dn-cause:hover { transform: translateY(-8px); box-shadow: 0 26px 50px rgba(15, 62, 82, 0.2); }
.dn-cause-media {
  position: relative;
  height: 200px;
  background-size: cover;
  background-position: center;
}
.dn-cause-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 36, 48, 0.1) 0%, rgba(8, 36, 48, 0.55) 100%);
  transition: opacity 0.3s ease;
}
.dn-cause:hover .dn-cause-media::after { opacity: 0.6; }
.dn-cause-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 1;
  background: rgba(255, 255, 255, 0.95);
  color: var(--emerald-dark);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 5px 12px;
  border-radius: 999px;
}
.dn-cause-icon {
  position: absolute;
  left: 26px;
  bottom: -26px;
  z-index: 1;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--amber);
  color: var(--emerald-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 4px solid #fff;
  box-shadow: 0 8px 20px rgba(15, 62, 82, 0.2);
}
.dn-cause-icon svg { width: 25px; height: 25px; }
.dn-cause-body { padding: 42px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.dn-cause-body h3 { margin: 0 0 10px; color: var(--emerald-dark); font-size: 1.6rem; line-height: 1.15; }
.dn-cause-body p { margin: 0 0 22px; color: var(--muted); font-size: 0.93rem; line-height: 1.65; flex: 1; }
.btn.dn-cause-btn { justify-content: center; border-radius: 999px; padding: 13px 20px; background: var(--emerald-dark); }
.btn.dn-cause-btn:hover { background: var(--amber); color: var(--emerald-dark) !important; }
.btn.dn-cause-btn svg { transition: transform 0.3s ease; }
.btn.dn-cause-btn:hover svg { transform: translateX(4px); }

.dn-verse {
  text-align: center;
  color: #fff;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.08' stroke-width='1'%3E%3Crect x='12' y='12' width='40' height='40'/%3E%3Crect x='12' y='12' width='40' height='40' transform='rotate(45 32 32)'/%3E%3C/g%3E%3C/svg%3E") repeat,
    #082430;
  padding: 84px 0;
}
.dn-verse .container { max-width: 860px; }
.dn-verse .em-arabic { font-size: 1.6rem; line-height: 1.8; margin-bottom: 18px; }
.dn-verse blockquote { font-family: var(--font-display); font-size: 2rem; line-height: 1.4; margin: 0 0 18px; }
.dn-verse cite {
  display: inline-block;
  font-style: normal;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--amber);
  border-top: 1px solid rgba(237, 179, 73, 0.4);
  padding-top: 14px;
}

.dn-how {
  scroll-margin-top: 120px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64'%3E%3Cg fill='none' stroke='%230f3e52' stroke-opacity='0.07' stroke-width='1'%3E%3Crect x='12' y='12' width='40' height='40'/%3E%3Crect x='12' y='12' width='40' height='40' transform='rotate(45 32 32)'/%3E%3C/g%3E%3C/svg%3E") repeat,
    #edb349;
  padding: 90px 0;
}
.dn-how-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center; }
.dn-how .eyebrow { color: var(--emerald-dark); text-transform: uppercase; letter-spacing: 2px; font-weight: 700; font-size: 0.8rem; }
.dn-how h2 { color: var(--emerald-dark); font-size: 2.5rem; line-height: 1.15; margin: 10px 0 16px; }
.dn-how-lead { color: rgba(15, 62, 82, 0.85); line-height: 1.75; margin: 0 0 28px; }
.dn-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.dn-steps li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.55);
  border-radius: 14px;
  padding: 16px 18px;
}
.dn-steps li > span {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--emerald-dark);
  color: var(--amber);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dn-steps div { color: rgba(15, 62, 82, 0.8); font-size: 0.9rem; line-height: 1.5; }
.dn-steps strong { display: block; color: var(--emerald-dark); font-size: 1rem; margin-bottom: 2px; }

.dn-contact {
  background: #fff;
  border-radius: 22px;
  padding: 36px 32px;
  box-shadow: 0 26px 60px rgba(15, 62, 82, 0.25);
  text-align: center;
}
.dn-contact-icon {
  width: 62px;
  height: 62px;
  margin: 0 auto 16px;
  border-radius: 18px;
  background: var(--emerald-dark);
  color: var(--amber);
  display: flex;
  align-items: center;
  justify-content: center;
}
.dn-contact-icon svg { width: 28px; height: 28px; }
.dn-contact h3 { margin: 0 0 6px; color: var(--emerald-dark); font-size: 1.7rem; }
.dn-contact > p { margin: 0 0 22px; color: var(--muted); font-size: 0.92rem; }
.dn-method {
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-top: 12px;
  color: var(--emerald-dark);
  font-weight: 700;
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}
.dn-method:hover { border-color: var(--amber); background: #fdf6e8; transform: translateX(4px); }
.dn-method small { display: block; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 1px; color: var(--amber-dark); font-weight: 700; }
.dn-method-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--emerald-tint);
  color: var(--emerald);
  display: flex;
  align-items: center;
  justify-content: center;
}
.dn-method-icon svg { width: 20px; height: 20px; }

@media (max-width: 900px) {
  .dn-cause-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .dn-how-grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 700px) {
  .dn-hero { padding: 64px 0 70px; }
  .dn-causes, .dn-verse, .dn-how { padding: 64px 0; }
  .dn-verse blockquote { font-size: 1.5rem; }
  .dn-verse .em-arabic { font-size: 1.4rem; }
  .dn-how h2 { font-size: 2rem; }
}

/* ---- Madrassah page ---- */
.md-hero { padding: 96px 0 130px; }
.md-hero-lead { font-size: 1.1rem; max-width: 620px; margin: 0 auto 28px !important; }

.md-highlights {
  list-style: none;
  margin: -64px auto 0;
  padding: 0;
  position: relative;
  z-index: 2;
  max-width: 1040px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(15, 62, 82, 0.16);
  overflow: hidden;
}
.md-highlights li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 26px 24px;
  border-left: 1px solid var(--border);
}
.md-highlights li:first-child { border-left: 0; }
.md-highlights strong {
  font-family: var(--font-display);
  font-size: 2.3rem;
  line-height: 1;
  color: var(--amber-dark);
  white-space: nowrap;
}
.md-highlights span { font-size: 0.8rem; line-height: 1.35; color: var(--muted); font-weight: 600; }

.md-journey { padding: 80px 0 84px; }
.md-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  position: relative;
}
.md-steps::before {
  content: "";
  position: absolute;
  top: 29px;
  left: 16.67%;
  right: 16.67%;
  border-top: 2px dashed rgba(237, 179, 73, 0.75);
}
.md-step { position: relative; display: flex; flex-direction: column; align-items: center; }
.md-step-num {
  position: relative;
  z-index: 1;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--emerald-dark);
  color: var(--amber);
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 5px solid #fff;
  box-shadow: 0 0 0 2px var(--amber), 0 10px 22px rgba(15, 62, 82, 0.25);
  margin-bottom: 22px;
}
.md-step-card {
  flex: 1;
  width: 100%;
  text-align: center;
  background: var(--emerald-tint);
  border-radius: 16px;
  padding: 26px 24px 28px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}
.md-step:hover .md-step-card { background: #fff; transform: translateY(-4px); box-shadow: 0 16px 36px rgba(15, 62, 82, 0.12); }
.md-chip {
  display: inline-block;
  background: #fff;
  color: var(--amber-dark);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.md-step:hover .md-chip { background: #fdf1de; }
.md-step-card h3 { margin: 0 0 8px; color: var(--emerald-dark); font-size: 1.45rem; }
.md-step-card p { margin: 0; color: var(--muted); font-size: 0.92rem; line-height: 1.6; }

section.programmes-section {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64'%3E%3Cg fill='none' stroke='%230f3e52' stroke-opacity='0.07' stroke-width='1'%3E%3Crect x='12' y='12' width='40' height='40'/%3E%3Crect x='12' y='12' width='40' height='40' transform='rotate(45 32 32)'/%3E%3C/g%3E%3C/svg%3E") repeat,
    #edb349;
  padding: 84px 0 90px;
}
.programmes-section .section-head .eyebrow { color: var(--emerald-dark); }
.programmes-section .section-head h2::after { background: var(--emerald-dark); }
.programmes-section .section-head p { color: rgba(15, 62, 82, 0.8); }
.md-programmes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; align-items: stretch; }
.md-prog {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 14px 36px rgba(15, 62, 82, 0.16);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  scroll-margin-top: 140px;
}
.md-prog:hover { transform: translateY(-8px); box-shadow: 0 26px 50px rgba(15, 62, 82, 0.24); }
.md-prog-head {
  position: relative;
  padding: 30px 28px 26px;
  color: #fff;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.08' stroke-width='1'%3E%3Crect x='12' y='12' width='40' height='40'/%3E%3Crect x='12' y='12' width='40' height='40' transform='rotate(45 32 32)'/%3E%3C/g%3E%3C/svg%3E") repeat,
    var(--emerald-dark);
}
.md-prog-featured .md-prog-head {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.08' stroke-width='1'%3E%3Crect x='12' y='12' width='40' height='40'/%3E%3Crect x='12' y='12' width='40' height='40' transform='rotate(45 32 32)'/%3E%3C/g%3E%3C/svg%3E") repeat,
    var(--emerald);
}
.md-prog-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: var(--amber);
  color: var(--emerald-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  transition: transform 0.3s ease;
}
.md-prog:hover .md-prog-icon { transform: rotate(-6deg) scale(1.06); }
.md-prog-icon svg { width: 26px; height: 26px; }
.md-prog-num {
  position: absolute;
  top: 18px;
  right: 24px;
  font-family: var(--font-display);
  font-size: 3.4rem;
  font-weight: 700;
  line-height: 1;
  color: rgba(255, 255, 255, 0.12);
}
.md-prog-head h3 { margin: 0; color: #fff; font-size: 1.7rem; line-height: 1.15; }
.md-prog-body { padding: 24px 28px 28px; display: flex; flex-direction: column; flex: 1; }
.md-facts { list-style: none; margin: 0 0 16px; padding: 0 0 16px; border-bottom: 1px dashed var(--border); }
.md-facts li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--emerald-dark);
  padding: 4px 0;
}
.md-facts svg { width: 17px; height: 17px; color: var(--amber-dark); flex-shrink: 0; }
.md-prog-body p { margin: 0 0 24px; color: var(--muted); font-size: 0.93rem; line-height: 1.65; flex: 1; }
.btn.md-prog-btn {
  justify-content: center;
  width: 100%;
  border-radius: 999px;
  padding: 13px 20px;
  background: var(--emerald-dark);
}
.btn.md-prog-btn:hover { background: var(--amber); color: var(--emerald-dark) !important; }
.btn.md-prog-btn svg { transition: transform 0.3s ease; }
.btn.md-prog-btn:hover svg { transform: translateX(4px); }

.md-enrol {
  color: #fff;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.07' stroke-width='1'%3E%3Crect x='12' y='12' width='40' height='40'/%3E%3Crect x='12' y='12' width='40' height='40' transform='rotate(45 32 32)'/%3E%3C/g%3E%3C/svg%3E") repeat,
    #082430;
  padding: 90px 0;
}
.md-enrol-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: center; }
.em-media.md-enrol-media img { aspect-ratio: 4 / 3.4; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4); }
.md-enrol .eyebrow { color: var(--amber); text-transform: uppercase; letter-spacing: 2px; font-weight: 700; font-size: 0.8rem; }
.md-enrol h2 { color: #fff; font-size: 2.4rem; line-height: 1.15; margin: 10px 0 16px; }
.md-enrol-lead { color: rgba(255, 255, 255, 0.78); line-height: 1.75; margin: 0 0 26px; }
.md-enrol-steps { list-style: none; margin: 0 0 32px; padding: 0; display: grid; gap: 14px; }
.md-enrol-steps li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  padding: 16px 18px;
}
.md-enrol-steps li > span {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--amber);
  color: var(--emerald-dark);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.md-enrol-steps div { color: rgba(255, 255, 255, 0.72); font-size: 0.9rem; line-height: 1.5; }
.md-enrol-steps strong { display: block; color: #fff; font-size: 1rem; margin-bottom: 2px; }
.md-enrol-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.md-enrol-actions .btn { padding: 13px 26px; border-radius: 999px; }

@media (max-width: 900px) {
  .md-highlights { grid-template-columns: repeat(2, 1fr); }
  .md-highlights li:nth-child(3) { border-left: 0; }
  .md-highlights li:nth-child(n+3) { border-top: 1px solid var(--border); }
  .md-steps, .md-programmes { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .md-steps::before { display: none; }
  .md-enrol-grid { grid-template-columns: 1fr; gap: 44px; }
}
@media (max-width: 700px) {
  .md-hero { padding: 64px 0 110px; }
  .md-highlights li { padding: 18px 16px; gap: 10px; }
  .md-highlights strong { font-size: 1.8rem; }
  .md-enrol { padding: 64px 0; }
  .md-enrol h2 { font-size: 1.9rem; }
}

/* ---- Services grid ---- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-tile {
  position: relative;
  display: block;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 30px 26px 26px;
  text-align: left;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(15, 62, 82, 0.07);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.service-tile::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--amber) 0%, #f8d998 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}
.service-tile:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(15, 62, 82, 0.16);
  border-color: transparent;
}
.service-tile:hover::before { transform: scaleX(1); }
.service-icon {
  width: 54px; height: 54px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: var(--emerald-tint);
  color: var(--emerald-dark);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.3s ease, color 0.3s ease;
}
.service-icon svg { width: 26px; height: 26px; }
.service-tile:hover .service-icon { background: var(--amber); color: var(--emerald-dark); }
.service-tile h3 { margin: 0 0 4px; font-size: 1.15rem; color: var(--emerald-dark); }
.service-tile .meta {
  font-size: 0.72rem;
  color: var(--amber-dark);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}
.service-tile p { font-size: 0.9rem; color: var(--muted); margin: 0 0 18px; line-height: 1.55; }
.service-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--emerald);
  transition: color 0.3s ease, gap 0.2s ease;
}
.service-link svg { width: 15px; height: 15px; transition: transform 0.3s ease; }
.service-tile:hover .service-link { color: var(--amber-dark); }
.service-tile:hover .service-link svg { transform: translateX(3px); }

/* Services section sits on white between the dark hero and the next section */
.services-section { background: #fff; }

/* Three featured madrassah programmes: larger boxes with prominent titles */
.services-grid-featured { gap: 28px; }
.services-grid-featured .service-tile {
  padding: 38px 32px 32px;
  border-top: 4px solid var(--amber);
  box-shadow: 0 12px 32px rgba(15, 62, 82, 0.1);
}
.services-grid-featured .service-tile::before { display: none; }
.services-grid-featured .service-icon { width: 62px; height: 62px; margin-bottom: 22px; }
.services-grid-featured .service-icon svg { width: 30px; height: 30px; }
.services-grid-featured .service-tile h3 {
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 10px;
}
.services-grid-featured .service-tile p { font-size: 0.98rem; }
.programme-card[id] { scroll-margin-top: 140px; }

/* ---- Evening Madrassah page ---- */
.em-header {
  background-size: cover;
  background-position: center;
  padding: 90px 0 80px;
}
.em-header h2 { font-size: 3.2rem; margin-bottom: 22px; }
.em-crumbs { font-size: 0.85rem; margin-bottom: 14px; color: rgba(255,255,255,0.75); }
.em-crumbs a { color: var(--amber); }
.em-crumbs span { margin: 0 6px; opacity: 0.5; }
.em-header-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn.em-ghost { background: transparent; color: #fff !important; border: 2px solid rgba(255,255,255,0.6); }
.btn.em-ghost:hover { background: #fff; color: var(--emerald-dark) !important; }

.em-arabic { font-size: 1.7rem; color: var(--amber); margin-bottom: 6px; }
.em-tagline { font-size: 1.1rem; margin: -10px 0 26px !important; }
/* ---- Darul Uloom page ---- */
.du-eyebrow {
  color: var(--amber-dark);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  font-size: 0.8rem;
}
.du-eyebrow-light { color: var(--amber); }

/* Hero */
.du-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: 80px 0 90px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64'%3E%3Cg fill='none' stroke='%23edb349' stroke-opacity='0.10' stroke-width='1'%3E%3Crect x='12' y='12' width='40' height='40'/%3E%3Crect x='12' y='12' width='40' height='40' transform='rotate(45 32 32)'/%3E%3C/g%3E%3C/svg%3E") repeat,
    radial-gradient(circle at 85% 20%, rgba(237,179,73,0.18) 0, transparent 45%),
    linear-gradient(135deg, #0f3e52 0%, #082430 100%);
}
.du-hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 60px; align-items: center; }
.du-hero .em-crumbs { margin-bottom: 22px; }
.du-hero-arabic { font-size: 2.4rem; color: var(--amber); line-height: 1.3; text-align: left; }
.du-hero h1 { font-size: 4rem; line-height: 1.05; margin: 6px 0 18px; color: #fff; }
.du-hero-lead { font-size: 1.12rem; line-height: 1.7; color: rgba(255,255,255,0.82); max-width: 540px; margin: 0 0 30px; }
.du-hero-facts {
  list-style: none;
  margin: 0 0 34px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, auto);
  justify-content: start;
  gap: 0;
}
.du-hero-facts li { padding: 0 26px; border-left: 1px solid rgba(255,255,255,0.18); }
.du-hero-facts li:first-child { padding-left: 0; border-left: 0; }
.du-hero-facts strong { display: block; font-family: var(--font-display); font-size: 1.9rem; color: var(--amber); line-height: 1.1; }
.du-hero-facts span { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; color: rgba(255,255,255,0.65); font-weight: 600; }
.du-hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.du-hero-media { display: flex; justify-content: center; }
.du-arch {
  position: relative;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 4 / 5;
}
.du-arch::before {
  content: "";
  position: absolute;
  inset: -16px 16px 16px -16px;
  border: 2px solid var(--amber);
  border-radius: 999px 999px 24px 24px;
}
.du-arch img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 999px 999px 24px 24px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.4);
}

/* About */
.du-about { padding: 90px 0 70px; }
.du-about-head { max-width: 760px; margin-bottom: 34px; }
.du-about-head h2 { font-size: 2.8rem; line-height: 1.12; color: var(--emerald-dark); margin: 10px 0 0; }
.du-about-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.du-about-lead {
  margin: 0;
  padding-left: 26px;
  border-left: 4px solid var(--amber);
  font-family: var(--font-display);
  font-size: 1.55rem;
  line-height: 1.45;
  color: var(--emerald-dark);
}
.du-about-cols p:not(.du-about-lead) { color: var(--muted); line-height: 1.8; margin: 0 0 14px; font-size: 1.02rem; }

/* What students study */
.du-study { background: var(--emerald-tint); padding: 80px 0; }
.du-dual { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: stretch; }
.du-panel { position: relative; border-radius: 22px; padding: 42px 38px 38px; }
.du-panel h3 { font-size: 2rem; line-height: 1.15; margin: 14px 0 12px; }
.du-panel > p { line-height: 1.75; margin: 0 0 24px; }
.du-panel-tag {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.du-panel-dark {
  color: #fff;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64'%3E%3Cg fill='none' stroke='%23edb349' stroke-opacity='0.10' stroke-width='1'%3E%3Crect x='12' y='12' width='40' height='40'/%3E%3Crect x='12' y='12' width='40' height='40' transform='rotate(45 32 32)'/%3E%3C/g%3E%3C/svg%3E") repeat,
    linear-gradient(160deg, #0f3e52 0%, #082430 100%);
  box-shadow: 0 24px 50px rgba(8, 36, 48, 0.25);
}
.du-panel-dark h3 { color: #fff; }
.du-panel-dark > p { color: rgba(255,255,255,0.75); }
.du-panel-dark .du-panel-tag { background: var(--amber); color: var(--emerald-dark); }
.du-panel-light { background: #fff; box-shadow: 0 24px 50px rgba(15, 62, 82, 0.1); }
.du-panel-light h3 { color: var(--emerald-dark); }
.du-panel-light > p { color: var(--muted); }
.du-panel-light .du-panel-tag { background: var(--emerald-tint); color: var(--emerald-dark); }
.du-plus {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--amber);
  color: var(--emerald-dark);
  border: 5px solid var(--emerald-tint);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.9rem;
  font-weight: 700;
}
.du-numbered { list-style: none; counter-reset: du; margin: 0; padding: 0; }
.du-numbered li {
  counter-increment: du;
  position: relative;
  padding: 14px 0 14px 54px;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.du-numbered li::before {
  content: counter(du, decimal-leading-zero);
  position: absolute;
  left: 0; top: 12px;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--amber);
}
.du-numbered strong { display: block; font-size: 1.02rem; }
.du-numbered span { font-size: 0.88rem; color: rgba(255,255,255,0.65); }
.du-checks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.du-checks li {
  position: relative;
  padding: 13px 14px 13px 44px;
  border-radius: 12px;
  background: #f7fafb;
  border: 1px solid var(--border);
  font-weight: 600;
  color: var(--emerald-dark);
  font-size: 0.95rem;
}
.du-checks li::before {
  content: "";
  position: absolute;
  left: 14px; top: 50%;
  width: 20px; height: 20px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: var(--amber) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f3e52' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* Journey timeline */
.du-journey { padding: 90px 0; }
.du-journey .section-head { max-width: 720px; }
.du-timeline { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.du-timeline::before {
  content: "";
  position: absolute;
  top: 30px; left: 12.5%; right: 12.5%;
  height: 3px;
  background: linear-gradient(90deg, var(--emerald) 0%, var(--amber) 100%);
}
.du-timeline li { position: relative; text-align: center; padding: 0 8px; }
.du-dot {
  position: relative;
  width: 62px; height: 62px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--emerald);
  color: var(--emerald-dark);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  box-shadow: 0 0 0 8px #fff;
}
.du-dot-gold { background: var(--amber); border-color: var(--amber); }
.du-timeline h4 { margin: 0 0 6px; font-size: 1.3rem; color: var(--emerald-dark); }
.du-timeline p { margin: 0; color: var(--muted); font-size: 0.92rem; line-height: 1.6; }

/* Facilities */
.du-campus { padding: 80px 0 90px; background: linear-gradient(180deg, #fffaf0 0%, #fff 100%); }
.du-facilities { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.du-facility {
  text-align: center;
  padding: 46px 16px 30px;
  background: #fff;
  border: 1px solid #f0e3c6;
  border-radius: 999px 999px 18px 18px;
  box-shadow: 0 12px 28px rgba(15, 62, 82, 0.07);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}
.du-facility:hover { transform: translateY(-8px); background: var(--emerald-dark); box-shadow: 0 24px 44px rgba(8, 36, 48, 0.28); }
.du-facility-icon {
  width: 76px; height: 76px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--emerald-tint);
  color: var(--emerald-dark);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.3s ease;
}
.du-facility-icon svg { width: 36px; height: 36px; }
.du-facility:hover .du-facility-icon { background: var(--amber); }
.du-facility h4 { margin: 0; font-size: 1.2rem; color: var(--emerald-dark); transition: color 0.3s ease; }
.du-facility:hover h4 { color: #fff; }

/* About Al Falaah + admissions */
.du-final {
  scroll-margin-top: 110px;
  padding: 90px 0;
  color: #fff;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64'%3E%3Cg fill='none' stroke='%23edb349' stroke-opacity='0.10' stroke-width='1'%3E%3Crect x='12' y='12' width='40' height='40'/%3E%3Crect x='12' y='12' width='40' height='40' transform='rotate(45 32 32)'/%3E%3C/g%3E%3C/svg%3E") repeat,
    linear-gradient(135deg, #0f3e52 0%, #082430 100%);
}
.du-final-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center; }
.du-final-about h2 { font-size: 2.6rem; line-height: 1.12; margin: 10px 0 16px; color: #fff; }
.du-final-about > p { color: rgba(255,255,255,0.75); line-height: 1.75; margin: 0 0 30px; }
.du-figures { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.du-figures div {
  padding: 20px 22px;
  border-radius: 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
}
.du-figures strong { display: block; font-family: var(--font-display); font-size: 2.4rem; line-height: 1.05; color: var(--amber); }
.du-figures span { font-size: 0.82rem; color: rgba(255,255,255,0.7); text-transform: uppercase; letter-spacing: 0.8px; font-weight: 600; }
.du-admit {
  background: #fff;
  color: var(--ink);
  border-radius: 22px;
  border-top: 6px solid var(--amber);
  padding: 40px 36px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.3);
}
.du-admit h3 { font-size: 1.9rem; line-height: 1.2; color: var(--emerald-dark); margin: 10px 0 22px; }
.du-admit-steps { list-style: none; margin: 0 0 28px; padding: 0; }
.du-admit-steps li { display: flex; align-items: flex-start; gap: 14px; padding: 10px 0; color: var(--muted); line-height: 1.55; }
.du-admit-steps span {
  flex-shrink: 0;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--emerald-tint);
  color: var(--emerald-dark);
  font-weight: 800;
  font-size: 0.85rem;
  display: flex; align-items: center; justify-content: center;
}
.btn.du-admit-btn { display: flex; justify-content: center; width: 100%; padding: 15px; font-size: 1rem; }
.du-admit-link { display: block; text-align: center; margin-top: 14px; font-weight: 600; font-size: 0.92rem; color: var(--emerald); }

@media (max-width: 1000px) {
  .du-facilities { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .du-hero-grid, .du-final-grid, .du-about-cols, .du-dual { grid-template-columns: 1fr; }
  .du-hero-grid { gap: 50px; }
  .du-arch { max-width: 340px; }
  .du-plus { position: static; transform: none; margin: -50px auto; }
  .du-timeline { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .du-timeline::before { display: none; }
}
@media (max-width: 700px) {
  .du-hero { padding: 56px 0 64px; }
  .du-hero h1 { font-size: 2.6rem; }
  .du-hero-facts { grid-template-columns: repeat(2, auto); row-gap: 16px; }
  .du-hero-facts li:nth-child(3) { padding-left: 0; border-left: 0; }
  .du-about-head h2, .du-final-about h2 { font-size: 2rem; }
  .du-about-lead { font-size: 1.3rem; }
  .du-panel { padding: 32px 24px 28px; }
  .du-checks { grid-template-columns: 1fr; }
  .du-timeline { grid-template-columns: 1fr; }
  .du-facilities { grid-template-columns: repeat(2, 1fr); }
  .du-admit { padding: 32px 24px; }
}

/* Image touches */
.du-arch-badge {
  position: absolute;
  left: -34px;
  bottom: 40px;
  padding: 14px 20px;
  border-radius: 14px;
  background: #fff;
  border-left: 4px solid var(--amber);
  box-shadow: 0 18px 40px rgba(0,0,0,0.3);
}
.du-arch-badge strong { display: block; color: var(--emerald-dark); font-size: 0.98rem; }
.du-arch-badge span { font-size: 0.78rem; color: var(--muted); font-weight: 600; }
.du-panel-media {
  display: block;
  width: calc(100% + 76px);
  height: 220px;
  margin: -42px -38px 26px;
  object-fit: cover;
  border-radius: 22px 22px 0 0;
}
.du-panel-dark .du-panel-media { opacity: 0.88; }
.du-campus-photo {
  position: relative;
  margin: 0 0 -70px;
  height: 420px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(15, 62, 82, 0.18);
}
.du-campus-photo img { width: 100%; height: 100%; object-fit: cover; }
.du-campus-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(8, 36, 48, 0.85) 100%);
}
.du-campus-photo figcaption {
  position: absolute;
  z-index: 1;
  left: 32px;
  bottom: 96px;
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
}
.du-campus-photo figcaption span { display: block; font-family: var(--font-display); font-size: 2rem; color: #fff; line-height: 1.1; }
.du-campus .du-facilities { position: relative; z-index: 2; padding: 0 24px; }

/* Application form extras */
.em-form select {
  width: 100%;
  padding: 13px 40px 13px 15px;
  margin-bottom: 16px;
  border: 1px solid #dbe4e8;
  border-radius: 10px;
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  appearance: none;
  background: #f7fafb url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f6584' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 16px;
  cursor: pointer;
}
.em-form select:focus { outline: none; background-color: #fff; border-color: var(--emerald); box-shadow: 0 0 0 3px var(--emerald-tint); }
.du-hint { display: block; margin: -10px 0 16px; font-size: 0.78rem; color: var(--muted); }
.du-address-row { display: grid; grid-template-columns: 1fr 180px; gap: 16px; }
.du-address-row textarea { min-height: 0; }
.du-declaration {
  margin: 8px 34px 0;
  padding: 14px 16px;
  border-radius: 10px;
  background: #fffaf0;
  border: 1px solid #f0e3c6;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--muted);
}
@media (max-width: 700px) {
  .du-panel-media { margin: -32px -24px 22px; width: calc(100% + 48px); height: 180px; }
  .du-campus-photo { height: 260px; }
  .du-campus-photo figcaption { left: 20px; }
  .du-campus .du-facilities { padding: 0 10px; }
  .du-arch-badge { left: -8px; bottom: 22px; }
  .du-address-row { grid-template-columns: 1fr; gap: 0; }
  .du-declaration { margin: 8px 20px 0; }
}
.em-apply {
  scroll-margin-top: 120px;
  background:
    radial-gradient(circle at 0% 0%, rgba(237,179,73,0.14) 0, transparent 40%),
    radial-gradient(circle at 100% 100%, rgba(31,101,132,0.12) 0, transparent 45%),
    var(--emerald-tint);
  padding: 80px 0;
}
.em-apply-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 32px;
  align-items: start;
}

/* Side panel */
.em-apply-panel {
  position: sticky;
  top: 120px;
  color: #fff;
  border-radius: 20px;
  padding: 34px 30px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.07' stroke-width='1'%3E%3Crect x='12' y='12' width='40' height='40'/%3E%3Crect x='12' y='12' width='40' height='40' transform='rotate(45 32 32)'/%3E%3C/g%3E%3C/svg%3E") repeat,
    linear-gradient(160deg, var(--emerald-dark) 0%, #082430 100%);
  box-shadow: 0 24px 50px rgba(8, 36, 48, 0.28);
}
.em-apply-panel h3 { font-size: 1.8rem; margin: 0 0 8px; line-height: 1.15; }
.em-apply-panel > p { color: rgba(255,255,255,0.75); margin: 0 0 24px; font-size: 0.95rem; }
.em-panel-facts { list-style: none; margin: 0; padding: 0; }
.em-panel-facts li {
  display: grid;
  grid-template-columns: 40px 1fr;
  grid-template-rows: auto auto;
  column-gap: 14px;
  padding: 14px 0;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.em-panel-facts svg {
  grid-row: span 2;
  width: 40px; height: 40px;
  padding: 9px;
  border-radius: 11px;
  background: rgba(237,179,73,0.16);
  color: var(--amber);
}
.em-panel-facts span { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1px; color: rgba(255,255,255,0.6); font-weight: 700; }
.em-panel-facts strong { font-size: 1rem; }
.em-panel-contact {
  margin-top: 18px;
  padding: 20px;
  border-radius: 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
}
.em-panel-contact h4 { margin: 0 0 10px; font-size: 1.1rem; color: var(--amber); }
.em-panel-contact a { display: block; color: #fff; font-weight: 600; font-size: 0.92rem; padding: 3px 0; }
.em-panel-contact a:hover { color: var(--amber); }

/* Form card */
form.contact-form.em-form {
  border: 0;
  border-radius: 20px;
  padding: 0 0 34px;
  overflow: hidden;
  box-shadow: 0 24px 50px rgba(15, 62, 82, 0.12);
}
.em-form-head {
  text-align: center;
  padding: 34px 34px 26px;
  border-top: 5px solid var(--amber);
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #fffaf0 0%, #fff 100%);
}
.em-form-head h2 { color: var(--emerald-dark); font-size: 1.9rem; margin: 0 0 6px; line-height: 1.2; }
.em-form-head p { margin: 0; font-size: 0.82rem; color: var(--muted); }
.em-form-head em, .em-label em { color: #c0392b; font-style: normal; }
.em-form .form-note { margin: 24px 34px 0; }
.em-form-group { padding: 28px 34px 10px; }
.em-form-group + .em-form-group { border-top: 1px dashed var(--border); }
.em-group-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--emerald-dark);
}
.em-group-title span {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--amber);
  color: var(--emerald-dark);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 800;
}
.contact-form .em-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 12px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--emerald-dark);
  margin-bottom: 7px;
}
.em-label [lang="ar"] { font-size: 0.95rem; font-weight: 600; color: var(--muted); }
.em-form input:not([type="radio"]),
.em-form textarea {
  background: #f7fafb;
  border-color: #dbe4e8;
  border-radius: 10px;
  padding: 13px 15px;
}
.em-form input:not([type="radio"]):focus,
.em-form textarea:focus { background: #fff; border-color: var(--emerald); }
.em-form textarea::placeholder { color: #9aa8af; }

.em-radio-group { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
.em-radio-group legend { padding: 0; width: 100%; }
.em-pills { display: flex; gap: 12px; }
.contact-form .em-pill { position: relative; flex: 1; margin: 0; cursor: pointer; }
.em-pill input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.em-pill span {
  display: block;
  text-align: center;
  padding: 12px 16px;
  border: 1.5px solid #dbe4e8;
  border-radius: 10px;
  background: #f7fafb;
  font-weight: 600;
  color: var(--muted);
  transition: all 0.2s ease;
}
.em-pill:hover span { border-color: var(--emerald); color: var(--emerald-dark); }
.em-pill input:checked + span {
  background: var(--emerald-dark);
  border-color: var(--emerald-dark);
  color: #fff;
  box-shadow: 0 6px 16px rgba(15, 62, 82, 0.25);
}
.em-pill input:focus-visible + span { box-shadow: 0 0 0 3px rgba(237,179,73,0.5); }

.btn.em-submit {
  display: flex;
  justify-content: center;
  width: calc(100% - 68px);
  margin: 16px 34px 0;
  padding: 16px;
  font-size: 1.02rem;
}
.btn.em-submit svg { width: 18px; height: 18px; transition: transform 0.25s ease; }
.btn.em-submit:hover svg { transform: translateX(4px); }

@media (max-width: 900px) {
  .em-apply-grid { grid-template-columns: 1fr; }
  .em-apply-panel { position: static; }
}
@media (max-width: 700px) {
  .em-apply { padding: 56px 0; }
  .em-form-head, .em-form-group { padding-left: 20px; padding-right: 20px; }
  .em-form .form-note { margin: 20px 20px 0; }
  .btn.em-submit { width: calc(100% - 40px); margin: 16px 20px 0; }
  .em-form-head h2 { font-size: 1.5rem; }
}

.em-intro .eyebrow, .em-goal .eyebrow, .em-objective .eyebrow {
  color: var(--amber-dark);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  font-size: 0.8rem;
}
.em-title { color: var(--emerald-dark); font-size: 2.3rem; line-height: 1.15; margin: 8px 0 18px; }
.em-intro p, .em-goal p { color: var(--muted); line-height: 1.75; }
.em-lead { font-size: 1.08rem; color: var(--ink) !important; }

.em-media { position: relative; }
.em-media img { border-radius: 16px; box-shadow: var(--shadow); width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.em-badge {
  position: absolute;
  right: -18px;
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--amber);
  color: var(--emerald-dark);
  padding: 16px 20px;
  border-radius: 14px;
  box-shadow: 0 14px 30px rgba(15, 62, 82, 0.25);
}
.em-badge strong { font-family: var(--font-display); font-size: 2.6rem; line-height: 1; }
.em-badge span { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; line-height: 1.3; }

.em-goal-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: start; }
.em-goal-side {
  background: #fff;
  border-left: 4px solid var(--amber);
  border-radius: 14px;
  padding: 30px 32px;
  box-shadow: 0 10px 30px rgba(15, 62, 82, 0.08);
}
.em-goal-side p:last-child { margin-bottom: 0; }

.em-step {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 32px;
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 0;
  border-top: 1px solid var(--border);
}
.em-step:first-of-type { border-top: 0; padding-top: 10px; }
.em-step-num {
  font-family: var(--font-display);
  font-size: 4.2rem;
  font-weight: 700;
  line-height: 1;
  color: var(--amber);
}
.em-step-body h3 { font-size: 1.9rem; color: var(--emerald-dark); margin: 4px 0 14px; }
.em-step-body p { color: var(--muted); line-height: 1.75; margin: 0 0 14px; }
.em-step-body p:last-child { margin-bottom: 0; }
.em-topics {
  list-style: none;
  padding: 0;
  margin: 18px 0 22px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.em-topics li {
  background: var(--emerald-tint);
  border-radius: 12px;
  padding: 14px 18px;
}
.em-topics strong { display: block; color: var(--emerald-dark); font-size: 1.02rem; }
.em-topics span { color: var(--muted); font-size: 0.9rem; }

.em-objective {
  text-align: center;
  color: #fff;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.08' stroke-width='1'%3E%3Crect x='12' y='12' width='40' height='40'/%3E%3Crect x='12' y='12' width='40' height='40' transform='rotate(45 32 32)'/%3E%3C/g%3E%3C/svg%3E") repeat,
    #082430;
  padding: 80px 0;
}
.em-objective .container { max-width: 860px; }
.em-objective .eyebrow { color: var(--amber); }
.em-objective blockquote {
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1.35;
  margin: 16px 0 20px;
}
.em-objective p { color: rgba(255,255,255,0.78); line-height: 1.75; margin: 0 0 30px; }

@media (max-width: 900px) {
  .em-goal-grid { grid-template-columns: 1fr; gap: 28px; }
  .em-badge { right: 16px; }
}
@media (max-width: 700px) {
  .em-header { padding: 64px 0 56px; }
  .em-header h2 { font-size: 2.3rem; }
  .em-title { font-size: 1.8rem; }
  .em-step { grid-template-columns: 1fr; gap: 6px; padding: 30px 0; }
  .em-step-num { font-size: 3rem; }
  .em-topics { grid-template-columns: 1fr; }
  .em-objective blockquote { font-size: 1.5rem; }
}

/* ---- Feature highlight cards (below hero) ---- */
.feature-highlights { padding: 60px 0 10px; }
.highlight-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}
.highlight-grid-4 .highlight-card { min-height: 340px; }
.highlight-card {
  position: relative;
  min-height: 400px;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  box-shadow: 0 10px 28px rgba(15, 62, 82, 0.18);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.highlight-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(15, 62, 82, 0.3); }
.highlight-media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s ease;
}
.highlight-card:hover .highlight-media { transform: scale(1.06); }
.highlight-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--amber) 0%, #f8d998 100%);
  z-index: 2;
}
.highlight-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,62,82,0.02) 0%, rgba(15,62,82,0.4) 45%, rgba(8,25,34,0.92) 100%);
}
.highlight-body { position: relative; z-index: 1; padding: 34px; color: #fff; }
.highlight-body .tag {
  display: inline-block;
  background: rgba(237,179,73,0.18);
  border: 1px solid var(--amber);
  color: var(--amber);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
}
.highlight-body h3 { color: #fff; font-size: 1.8rem; margin: 0 0 10px; text-shadow: 0 2px 10px rgba(0,0,0,0.35); }
.highlight-body p { font-size: 0.95rem; color: rgba(255,255,255,0.9); margin: 0 0 22px; max-width: 400px; }

/* ---- Videos section ---- */
.videos-section { background: var(--amber); }
.videos-section .eyebrow { color: var(--emerald-dark); }
.videos-section .section-head h2 { color: var(--ink); }
.videos-section .section-head h2::after { background: var(--emerald-dark); }
.videos-section .section-head p { color: rgba(22,35,43,0.72); }
.videos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.video-card { display: block; }
.video-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-color: var(--emerald-dark);
  box-shadow: 0 12px 28px rgba(0,0,0,0.22);
}
.video-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(8,25,34,0.15);
  transition: background 0.3s ease;
}
.video-card:hover .video-thumb::after { background: rgba(8,25,34,0.4); }
.play-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 58px; height: 58px;
  border-radius: 50%;
  background: rgba(255,255,255,0.95);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 22px rgba(0,0,0,0.3);
  transition: transform 0.3s ease;
  z-index: 1;
}
.play-btn svg { width: 22px; height: 22px; color: var(--emerald-dark); margin-left: 3px; }
.video-card:hover .play-btn { transform: translate(-50%, -50%) scale(1.1); }
.video-card h3 {
  margin: 14px 2px 0;
  font-size: 1rem;
  font-family: var(--font-body);
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink);
}

/* ---- Founder message ---- */
.founder-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 55%, rgba(237,179,73,0.14) 0%, transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.06' stroke-width='1'%3E%3Crect x='12' y='12' width='40' height='40'/%3E%3Crect x='12' y='12' width='40' height='40' transform='rotate(45 32 32)'/%3E%3C/g%3E%3C/svg%3E") repeat,
    var(--emerald-dark);
  color: #fff;
  padding: 90px 0;
}
.founder-inner { text-align: center; }
.founder-head { max-width: 760px; margin: 0 auto 48px; }
.founder-divider {
  display: inline-flex; align-items: center; gap: 14px;
  color: var(--amber);
}
.founder-divider::before, .founder-divider::after {
  content: ""; width: 70px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--amber));
}
.founder-divider::after { background: linear-gradient(90deg, var(--amber), transparent); }
.founder-divider svg { width: 14px; height: 14px; }
.founder-video-wrap {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  padding: 10px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(237,179,73,0.9), rgba(237,179,73,0.15) 40%, rgba(237,179,73,0.15) 60%, rgba(237,179,73,0.9));
  box-shadow: 0 40px 90px rgba(0,0,0,0.5), 0 0 120px rgba(237,179,73,0.12);
}
.founder-video-wrap::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 21px;
  background: #0a2f3f;
  z-index: 0;
}
.founder-video {
  position: relative;
  z-index: 1;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: #061c26;
}
.founder-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.founder-play {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  padding: 0; border: 0; cursor: pointer;
  background: none;
}
.founder-play img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.6s ease;
}
.founder-play::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 65%, rgba(6,28,38,0.55) 100%);
  transition: background 0.3s ease;
}
.founder-play:hover img { transform: scale(1.03); }
.founder-play-pill {
  position: absolute; right: 26px; bottom: 26px; z-index: 1;
  display: flex; align-items: center; gap: 14px;
  padding: 8px 22px 8px 8px;
  border-radius: 999px;
  background: rgba(8,36,48,0.78);
  border: 1px solid rgba(237,179,73,0.45);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  text-align: left;
  transition: transform 0.3s ease, background 0.3s ease;
}
.founder-play:hover .founder-play-pill { transform: translateY(-3px); background: rgba(8,36,48,0.92); }
.founder-play-btn {
  width: 62px; height: 62px; border-radius: 50%;
  flex-shrink: 0;
  background: var(--amber);
  color: var(--emerald-dark);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 0 rgba(237,179,73,0.6);
  animation: founderPulse 2.4s ease-out infinite;
}
.founder-play-btn svg { width: 26px; height: 26px; margin-left: 3px; }
.founder-play-text { display: flex; flex-direction: column; line-height: 1.25; }
.founder-play-text strong { color: #fff; font-size: 1.05rem; font-weight: 700; }
.founder-play-text small { color: var(--amber); font-size: 0.8rem; letter-spacing: 1px; text-transform: uppercase; margin-top: 2px; }
.founder-play:focus-visible { outline: 3px solid var(--amber); outline-offset: -3px; }
@keyframes founderPulse {
  0%   { box-shadow: 0 0 0 0 rgba(237,179,73,0.55); }
  70%  { box-shadow: 0 0 0 16px rgba(237,179,73,0); }
  100% { box-shadow: 0 0 0 0 rgba(237,179,73,0); }
}
@media (prefers-reduced-motion: reduce) {
  .founder-play-btn { animation: none; }
  .founder-play img, .founder-play-pill { transition: none; }
}
.founder-head .eyebrow {
  color: var(--amber);
  text-transform: uppercase; letter-spacing: 3px;
  font-weight: 700; font-size: 0.82rem;
  margin-bottom: 14px;
}
.founder-head h2 {
  color: #fff;
  font-family: var(--font-display);
  font-size: 3.4rem; line-height: 1.1;
  margin: 0 0 18px;
}
.founder-text { max-width: 820px; margin: 56px auto 0; }
.founder-text blockquote {
  position: relative;
  margin: 0 0 22px;
  padding: 0 20px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.6rem; line-height: 1.5;
  color: rgba(255,255,255,0.94);
}
.founder-text blockquote::before {
  content: "\201C";
  display: block;
  font-size: 5rem; line-height: 0.6;
  color: var(--amber);
  margin-bottom: 10px;
  font-style: normal;
}
.founder-note { color: rgba(255,255,255,0.78); margin: 0 0 30px; font-size: 1.05rem; }
.founder-note strong { color: var(--amber); }
.founder-actions { display: flex; align-items: center; justify-content: center; gap: 28px; flex-wrap: wrap; }
.founder-yt-link {
  color: #fff; font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,0.4);
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.founder-yt-link:hover { color: var(--amber); border-color: var(--amber); }
@media (max-width: 900px) {
  .founder-section { padding: 64px 0; }
  .founder-head { margin-bottom: 36px; }
  .founder-head h2 { font-size: 2.5rem; }
  .founder-text { margin-top: 40px; }
  .founder-text blockquote { font-size: 1.35rem; }
}
@media (max-width: 600px) {
  .founder-head h2 { font-size: 2rem; }
  .founder-video-wrap { padding: 5px; border-radius: 14px; }
  .founder-video-wrap::before { border-radius: 13px; }
  .founder-video { border-radius: 10px; }
  .founder-play-pill { right: 50%; bottom: 50%; transform: translate(50%, 50%); padding: 0; background: none; border: 0; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .founder-play:hover .founder-play-pill { transform: translate(50%, 50%); background: none; }
  .founder-play-text { display: none; }
  .founder-play-btn { width: 58px; height: 58px; }
  .founder-text blockquote { font-size: 1.15rem; padding: 0; }
}

/* ---- Pagination ---- */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 40px;
}
.pg-btn {
  min-width: 40px;
  height: 40px;
  padding: 0 6px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--emerald-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.pg-btn svg { width: 16px; height: 16px; }
.pg-btn:hover { border-color: var(--emerald); }
.pg-btn.active { background: var(--emerald-dark); border-color: var(--emerald-dark); color: #fff; }
.pg-btn.disabled { opacity: 0.4; pointer-events: none; }

/* ---- Stats counter ---- */
.stats-section {
  position: relative;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.08' stroke-width='1'%3E%3Crect x='12' y='12' width='40' height='40'/%3E%3Crect x='12' y='12' width='40' height='40' transform='rotate(45 32 32)'/%3E%3C/g%3E%3C/svg%3E") repeat,
    #082430;
  color: #fff;
  padding: 56px 0;
}
.stats-section::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(237,179,73,0.5) 50%, transparent 100%);
}
.stats-section.pattern-band { min-height: 236px; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}
.stat .num {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--amber);
}
.stat .label {
  font-size: 0.9rem;
  opacity: 0.9;
  margin-top: 6px;
}

/* ---- Donate CTA ---- */
.donate-cta {
  position: relative;
  overflow: hidden;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.07' stroke-width='1'%3E%3Crect x='12' y='12' width='40' height='40'/%3E%3Crect x='12' y='12' width='40' height='40' transform='rotate(45 32 32)'/%3E%3C/g%3E%3C/svg%3E") repeat,
    var(--emerald-dark);
  color: #fff;
}
.donate-cta .eyebrow { color: var(--amber); }
.donate-cta h2 { color: #fff; }
.donate-cta p { color: rgba(255,255,255,0.82); }
.donate-stats { display: flex; gap: 30px; margin: 24px 0 30px; flex-wrap: wrap; }
.donate-stats div { display: flex; flex-direction: column; }
.donate-stats strong { font-family: var(--font-display); font-size: 1.7rem; font-weight: 700; color: var(--amber); line-height: 1; }
.donate-stats span { font-size: 0.75rem; color: rgba(255,255,255,0.62); text-transform: uppercase; letter-spacing: 0.6px; margin-top: 6px; }
.donate-media { position: relative; }
.donate-media::before {
  content: "";
  position: absolute;
  inset: -30px;
  background: radial-gradient(circle, rgba(237,179,73,0.25) 0%, transparent 70%);
  z-index: 0;
}
.donate-media img {
  position: relative;
  z-index: 1;
  width: 100%;
  display: block;
  border-radius: 16px;
  box-shadow: 0 24px 50px rgba(0,0,0,0.4);
}
.donate-badge {
  position: absolute;
  z-index: 2;
  bottom: -18px;
  left: -18px;
  background: var(--amber);
  color: var(--emerald-dark);
  font-weight: 800;
  font-size: 0.85rem;
  padding: 12px 22px;
  border-radius: 10px;
  box-shadow: 0 12px 26px rgba(0,0,0,0.35);
}

/* ---- FAQ accordion ---- */
.accordion { max-width: 760px; margin: 0 auto; }
.accordion-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 14px;
  overflow: hidden;
}
.accordion-item button.accordion-trigger {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 18px 22px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--emerald-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.accordion-item .accordion-trigger .plus {
  font-size: 1.3rem;
  color: var(--amber-dark);
  transition: transform 0.25s;
}
.accordion-item.open .accordion-trigger .plus { transform: rotate(45deg); }
.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 22px;
}
.accordion-item.open .accordion-panel { max-height: 240px; padding-bottom: 18px; }
.accordion-panel p { margin: 0; color: var(--muted); }

/* ---- Gallery lightbox ---- */
.gallery-grid figure { cursor: zoom-in; }
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(9,22,28,0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 30px;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}
.lightbox-close {
  position: absolute;
  top: 22px; right: 30px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}
.lightbox-caption {
  position: absolute;
  bottom: 28px;
  left: 0; right: 0;
  text-align: center;
  color: #fff;
  font-size: 0.95rem;
}
.lightbox-count {
  position: absolute;
  bottom: 8px;
  left: 0; right: 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.78rem;
  letter-spacing: 0.5px;
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
}
.lightbox-nav:hover { background: var(--amber); border-color: var(--amber); color: var(--ink); }
.lightbox-nav svg { width: 22px; height: 22px; }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

/* ---- Prayer times table (full timetable page) ---- */
.prayer-widget {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.prayer-widget .strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}
.prayer-widget .cell {
  text-align: center;
  padding: 20px 10px;
  border-right: 1px solid var(--border);
}
.prayer-widget .cell:last-child { border-right: none; }
.prayer-widget .cell .name {
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 1px;
  color: var(--amber-dark);
  font-weight: 700;
}
.prayer-widget .cell .time {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--emerald-dark);
  margin-top: 6px;
}
.prayer-widget .cell .jamaat {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 2px;
}

table.timetable {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  overflow: hidden;
}
table.timetable th, table.timetable td {
  padding: 14px 16px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
table.timetable th {
  background: var(--emerald-dark);
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
table.timetable tr:last-child td { border-bottom: none; }
table.timetable tr:nth-child(even) td { background: var(--emerald-tint); }

/* ---- Monthly prayer timetable ---- */
.timetable-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(15, 62, 82, 0.1);
  overflow: hidden;
}
.timetable-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  background: var(--emerald-dark);
  flex-wrap: wrap;
}
.tt-nav { display: flex; align-items: center; gap: 16px; }
.tt-nav-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s ease, color 0.2s ease;
}
.tt-nav-btn:hover { background: var(--amber); color: var(--ink); }
.tt-nav-btn svg { width: 18px; height: 18px; }
.tt-month-label { text-align: center; min-width: 170px; }
.tt-month { display: block; font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; color: #fff; }
.tt-hijri { display: block; font-size: 0.78rem; color: var(--amber); letter-spacing: 0.4px; margin-top: 2px; min-height: 1em; }
.tt-print-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.tt-print-btn:hover { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.5); }
.tt-print-btn svg { width: 16px; height: 16px; }

.timetable-scroll { overflow-x: auto; }
table.tt-calendar { box-shadow: none; border-radius: 0; min-width: 880px; }
table.tt-calendar th, table.tt-calendar td { padding: 10px 12px; font-size: 0.83rem; white-space: nowrap; }
table.tt-calendar thead tr:first-child th { background: var(--emerald); }
table.tt-calendar thead .tt-subrow th {
  background: var(--emerald-tint);
  color: var(--emerald-dark);
  font-size: 0.68rem;
  padding: 8px 12px;
}
table.tt-calendar th.tt-col-date, table.tt-calendar td.tt-col-date { text-align: left; padding-left: 18px; }
.tt-day-num { font-weight: 700; color: var(--emerald-dark); margin-right: 6px; }
.tt-day-name { font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.4px; }
table.tt-calendar td.tt-jamaat { font-weight: 700; color: var(--emerald-dark); }
table.tt-calendar tbody tr:nth-child(even) td { background: #f7f9fa; }
table.tt-calendar tbody tr.tt-friday td { background: #fdf1de; }
table.tt-calendar tbody tr.tt-today td { background: var(--amber) !important; color: var(--ink); }
table.tt-calendar tbody tr.tt-today .tt-day-num,
table.tt-calendar tbody tr.tt-today .tt-jamaat { color: var(--ink); }
table.tt-calendar tbody tr.tt-today .tt-day-name { color: rgba(22, 35, 43, 0.7); }

@media print {
  .masthead, .site-header, .page-header, .site-footer,
  section:not(.timetable-section) { display: none !important; }
  body { background: #fff; }
  .timetable-section { padding: 10px 0; background: #fff !important; }
  .timetable-section .eyebrow, .timetable-section .section-head p { display: none; }
  .timetable-card { box-shadow: none; border: 1px solid #999; }
  .timetable-toolbar { background: #fff !important; border-bottom: 2px solid #000; }
  .tt-month, .tt-hijri { color: #000 !important; }
  .tt-nav-btn, .tt-print-btn { display: none; }
  table.tt-calendar thead tr:first-child th,
  table.tt-calendar thead .tt-subrow th { background: #eee !important; color: #000 !important; }
  table.tt-calendar tbody tr.tt-today td { background: #f5deb3 !important; }
}

/* ---- Events ---- */
.event-featured {
  position: relative;
  overflow: hidden;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.07' stroke-width='1'%3E%3Crect x='12' y='12' width='40' height='40'/%3E%3Crect x='12' y='12' width='40' height='40' transform='rotate(45 32 32)'/%3E%3C/g%3E%3C/svg%3E") repeat,
    var(--emerald-dark);
  color: #fff;
  padding: 56px 0;
}
.event-featured-inner { display: flex; align-items: center; gap: 40px; }
.ef-date {
  flex: 0 0 140px;
  width: 140px;
  height: 140px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid var(--amber);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.25);
}
.ef-day { font-family: var(--font-display); font-size: 3rem; font-weight: 700; line-height: 1; color: #fff; }
.ef-mon { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 2px; color: var(--amber); margin-top: 6px; }
.ef-body { flex: 1; min-width: 0; }
.event-featured .eyebrow { color: var(--amber); text-transform: uppercase; letter-spacing: 2px; font-weight: 700; font-size: 0.8rem; }
.event-featured h2 { color: #fff; margin: 8px 0 14px; font-size: 2rem; }
.ef-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 14px;
}
.ef-meta svg { width: 17px; height: 17px; flex-shrink: 0; color: var(--amber); }
.event-featured p { color: rgba(255, 255, 255, 0.78); max-width: 620px; margin: 0 0 24px; }

.events-list { display: flex; flex-direction: column; gap: 20px; }
.events-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.event-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 24px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px 28px;
  box-shadow: 0 6px 20px rgba(15, 62, 82, 0.07);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.event-card::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--amber) 0%, #f8d998 100%);
  transform: scaleY(0);
  transition: transform 0.35s ease;
}
.event-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 36px rgba(15, 62, 82, 0.15);
  border-color: transparent;
}
.event-card:hover::before { transform: scaleY(1); }
.event-date {
  position: relative;
  flex: 0 0 88px;
  background: linear-gradient(160deg, var(--emerald) 0%, var(--emerald-dark) 100%);
  color: #fff;
  border-radius: 12px;
  text-align: center;
  padding: 16px 6px;
  box-shadow: 0 8px 18px rgba(15, 62, 82, 0.25);
}
.event-date .day { font-size: 1.9rem; font-weight: 800; line-height: 1; }
.event-date .mon { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--amber); margin-top: 4px; }
.event-body { flex: 1; min-width: 0; }
.event-body .tag {
  display: inline-block;
  background: var(--emerald-tint);
  color: var(--emerald-dark);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}
.event-body h3 { margin: 0 0 6px; font-size: 1.2rem; color: var(--emerald-dark); }
.event-body .meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--amber-dark);
  font-weight: 700;
  margin-bottom: 10px;
}
.event-body .meta svg { width: 15px; height: 15px; flex-shrink: 0; }
.event-body p { margin: 0; color: var(--muted); }
.event-arrow {
  flex: 0 0 auto;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--emerald-tint);
  color: var(--emerald-dark);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}
.event-arrow svg { width: 18px; height: 18px; }
.event-card:hover .event-arrow { background: var(--amber); color: var(--emerald-dark); transform: translateX(4px); }

/* ---- Gallery ---- */
.gallery-filters {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}
.gf-btn {
  background: #fff;
  border: 1px solid var(--border);
  color: var(--emerald-dark);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 9px 20px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.gf-btn:hover { border-color: var(--emerald); }
.gf-btn.active { background: var(--emerald-dark); border-color: var(--emerald-dark); color: #fff; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.gallery-grid figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
}
.gallery-grid figure.gf-hidden { display: none; }
.gallery-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 0.35s;
}
.gallery-grid figure:hover img { transform: scale(1.06); }
.gallery-grid figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.65));
  color: #fff;
  padding: 26px 14px 12px;
  font-size: 0.9rem;
  font-weight: 600;
}

/* ---- Follow Us section ---- */
section.alt.follow-section { position: relative; overflow: hidden; background: #edb349; }
.follow-section .eyebrow { color: #000; }
.follow-section .section-head h2 { color: #000; }
.follow-section .section-head p { color: #000; }

.social-follow-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  align-items: stretch;
}
.social-follow-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 20px;
  box-shadow: 0 16px 38px rgba(15, 62, 82, 0.28);
  padding: 38px 30px 34px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.social-follow-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
}
.social-follow-card:hover { transform: translateY(-6px); box-shadow: 0 24px 48px rgba(15, 62, 82, 0.36); }
.sf-instagram {
  background:
    radial-gradient(circle at 50% -10%, rgba(221, 42, 123, 0.12) 0%, rgba(221, 42, 123, 0) 55%),
    #fff;
}
.sf-instagram::before { background: linear-gradient(90deg, #f58529 0%, #dd2a7b 50%, #515bd4 100%); }
.sf-facebook {
  background:
    radial-gradient(circle at 50% -10%, rgba(24, 119, 242, 0.12) 0%, rgba(24, 119, 242, 0) 55%),
    #fff;
}
.sf-facebook::before { background: linear-gradient(90deg, #1877f2 0%, #0a58d0 100%); }
.btn.ig {
  background: linear-gradient(90deg, #f58529 0%, #dd2a7b 50%, #515bd4 100%);
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(221, 42, 123, 0.35);
}
.btn.ig:hover { filter: brightness(0.92); }
.sf-instagram { justify-content: center; }
.sf-highlights {
  display: flex;
  gap: 22px;
  margin-bottom: 26px;
}
.sf-highlight {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--emerald-dark);
}
.sf-highlight svg {
  width: 40px;
  height: 40px;
  padding: 10px;
  border-radius: 50%;
  background: var(--emerald-tint);
  box-sizing: border-box;
}
.sf-highlight span { font-size: 0.78rem; font-weight: 700; color: var(--muted); }
.sf-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  box-shadow: 0 10px 22px rgba(214, 36, 159, 0.35);
}
.sf-icon svg { width: 32px; height: 32px; }
.sf-icon-fb { background: #1877f2; box-shadow: 0 10px 22px rgba(24, 119, 242, 0.35); }
.social-follow-card h3 { margin: 0 0 4px; color: var(--emerald-dark); font-size: 1.3rem; }
.sf-handle { color: var(--amber-dark); font-weight: 700; margin: 0 0 10px; }
.social-follow-card p { color: var(--muted); margin: 0 0 20px; }
.sf-embed { width: 100%; display: flex; justify-content: center; }
.sf-embed .fb-page, .sf-embed iframe { max-width: 100%; }
.gallery-note {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 18px;
}

/* ---- Donate ---- */
.donate-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.donate-card {
  position: relative;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 30px 26px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(15, 62, 82, 0.07);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.donate-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--amber) 0%, #f8d998 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}
.donate-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(15, 62, 82, 0.16); border-color: transparent; }
.donate-card:hover::before { transform: scaleX(1); }
.donate-card .tag {
  display: inline-block;
  background: var(--emerald-tint);
  color: var(--emerald-dark);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.donate-card .icon {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: var(--emerald-tint);
  color: var(--emerald);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}
.donate-card .icon svg { width: 26px; height: 26px; }
.donate-card:hover .icon { background: var(--amber); color: var(--emerald-dark); transform: scale(1.08); }
.donate-card h3 { color: var(--emerald-dark); margin: 0 0 8px; }
.donate-card p { color: var(--muted); font-size: 0.9rem; margin: 0 0 20px; }

.bank-details {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(15, 62, 82, 0.1);
  padding: 40px;
  max-width: 640px;
  margin: 50px auto 0;
  text-align: center;
}
.bank-details .icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--emerald-tint);
  color: var(--emerald);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}
.bank-details .icon svg { width: 26px; height: 26px; }
.bank-details h3 { color: var(--emerald-dark); margin-top: 0; font-size: 1.4rem; }
.bank-details p { color: var(--muted); margin: 0 0 24px; }
.bank-details .contact-methods {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.notice {
  background: #fdf1de;
  border: 1px solid #f0dfa0;
  color: #6b5210;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  margin-bottom: 30px;
}

/* ---- Contact ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
}
.contact-info .item {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 14px;
  box-shadow: 0 6px 20px rgba(15, 62, 82, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.contact-info .item::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--amber) 0%, #f8d998 100%);
  transform: scaleY(0);
  transition: transform 0.3s ease;
}
.contact-info .item:hover {
  transform: translateX(4px);
  box-shadow: 0 12px 28px rgba(15, 62, 82, 0.12);
  border-color: transparent;
}
.contact-info .item:hover::before { transform: scaleY(1); }
.contact-info .item:last-child { margin-bottom: 0; }
.contact-info .item .icon {
  width: 46px; height: 46px;
  border-radius: 13px;
  background: var(--emerald-tint);
  color: var(--emerald);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background 0.25s ease, color 0.25s ease;
}
.contact-info .item .icon svg { width: 21px; height: 21px; }
.contact-info .item:hover .icon { background: var(--amber); color: var(--emerald-dark); }
.contact-info .item h4 { margin: 0 0 4px; color: var(--emerald-dark); }
.contact-info .item p { margin: 0; color: var(--muted); font-size: 0.92rem; }

.map-box {
  display: block;
  width: 100%;
  margin-top: 20px;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(15, 62, 82, 0.07);
  height: 220px;
}

form.contact-form {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 34px;
  box-shadow: 0 10px 30px rgba(15, 62, 82, 0.1);
}
.contact-form h3 { color: var(--emerald-dark); margin: 0 0 20px; font-size: 1.4rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  margin-bottom: 18px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--emerald);
  box-shadow: 0 0 0 3px var(--emerald-tint);
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.form-note {
  margin: 16px 0 0;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
}
.form-note-ok { background: var(--emerald-tint); color: var(--emerald-dark); }
.form-note-error { background: #fbe6e6; color: #b23b3b; }

/* ---- Footer ---- */
footer.site-footer {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.06' stroke-width='1'%3E%3Crect x='12' y='12' width='40' height='40'/%3E%3Crect x='12' y='12' width='40' height='40' transform='rotate(45 32 32)'/%3E%3C/g%3E%3C/svg%3E") repeat,
    var(--emerald-dark);
  color: #d3e4e9;
  padding: 56px 0 20px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.3fr;
  gap: 32px;
  margin-bottom: 36px;
}
.footer-grid h4 { color: #fff; margin: 0 0 16px; font-size: 1rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 10px; font-size: 0.9rem; }
.footer-grid a:hover { color: var(--amber); }
.footer-brand { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.footer-brand img.logo-mark { width: auto; height: 44px; }
.footer-brand span { color: #fff; font-weight: 700; }
.footer-about p { font-size: 0.88rem; color: #a9bcc4; }
.social-links { display: flex; gap: 10px; margin-top: 16px; }
.social-links a {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}
.social-links a svg { width: 16px; height: 16px; }
.social-links a:hover { background: var(--amber); border-color: var(--amber); color: var(--ink); transform: translateY(-2px); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 18px;
  text-align: center;
  font-size: 0.82rem;
  color: #8ca2ab;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .hero-content { padding-top: 60px; padding-bottom: 50px; width: min(94%, 420px); }
  .hero h2 { font-size: 2.1rem; }
  .two-col { grid-template-columns: 1fr; }
  .highlight-grid { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .grid.grid-4 { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .videos-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .social-follow-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .donate-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
  .events-grid { grid-template-columns: 1fr; }
  .event-featured-inner { flex-direction: column; text-align: center; }
  .event-featured p { margin-left: auto; margin-right: auto; }
  .ef-meta { justify-content: center; }
  .prayer-widget .strip { grid-template-columns: repeat(5, 1fr); }
  .prayer-widget .cell { padding: 14px 4px; }
  .prayer-widget .cell .time { font-size: 1.05rem; }
  .masthead-inner { justify-content: center; text-align: center; }
  .masthead-times { flex-basis: 100%; margin-left: 0; }
}

@media (max-width: 700px) {
  nav.main-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    display: none;
    box-shadow: var(--shadow);
  }
  nav.main-nav.open { display: block; }
  nav.main-nav ul { flex-direction: column; gap: 0; padding: 10px 20px; }
  nav.main-nav li { border-bottom: 1px solid var(--border); }
  .event-card { flex-wrap: wrap; padding: 20px; }
  .event-arrow { display: none; }
  .donate-badge { left: 12px; bottom: -14px; font-size: 0.78rem; padding: 10px 16px; }
  .donate-stats { gap: 22px; }
  nav.main-nav a { display: block; padding: 14px 0; color: var(--ink); }
  nav.main-nav a.nav-home { font-size: 0.85rem; text-transform: uppercase; }
  .nav-home-label { display: inline; margin-left: 8px; }
  .nav-toggle { display: flex; }
  .header-actions .btn { display: none; }
  .hero h2 { font-size: 1.7rem; }
  .hero-tint { background: rgba(8,25,34,0.8); }
  .hero-content { width: 100%; margin-left: 0; padding: 40px 24px; }
  .prayer-widget .strip { grid-template-columns: repeat(3, 1fr); }
  .grid { grid-template-columns: 1fr; }
  .grid.grid-4 { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .videos-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .donate-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .masthead-inner { gap: 14px; }
  .brand .brand-text { font-size: 0.95rem; }
  table.mt-table th, table.mt-table td { padding: 4px 6px; font-size: 0.72rem; }
  table.mt-table tbody tr:last-child td { font-size: 0.8rem; }
}

/* Featured services: stack instead of leaving the third box alone on a 2-column row */
@media (max-width: 900px) {
  .services-grid-featured { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
}

/* ---- Phone refinements ---- */
@media (max-width: 700px) {
  /* Keep Donate reachable in the bar; the menu panel lists the pages */
  .header-actions .btn { display: inline-flex; padding: 8px 18px; font-size: 0.8rem; border-radius: 999px; }
  .nav-wrap { padding-left: 14px; padding-right: 10px; }
  nav.main-nav ul { align-items: stretch; }
  nav.main-nav a { text-align: center; }
  .masthead-social { display: none; }

  /* Carousel arrows sit beside the dots instead of over the slide text */
  .hero-arrow { top: auto; bottom: 10px; transform: none; width: 32px; height: 32px; }
  .hero-arrow-prev { left: calc(50% - 90px); }
  .hero-arrow-next { right: calc(50% - 90px); }
  .hero-dots { bottom: 21px; }
  .hero-content { padding-bottom: 70px; }

  /* Glow behind the About photo was pushing the page 4px wider than the screen */
  .about-media::before { inset: -12px 0; }

  /* Hero pages whose highlight/contact cards overlap the hero's bottom edge */
  .md-hero, .ct-hero { padding-bottom: 96px; }
  .md-highlights, .ct-quick { margin-top: -48px; }
  .md-hero .em-arabic, .dn-hero .em-arabic { font-size: 1.3rem; }

  /* Monthly timetable: date column stays put while the prayer columns scroll */
  table.tt-calendar { min-width: 760px; }
  table.tt-calendar th, table.tt-calendar td { padding: 9px 8px; font-size: 0.78rem; }
  table.tt-calendar th.tt-col-date,
  table.tt-calendar td.tt-col-date {
    position: sticky;
    left: 0;
    z-index: 1;
    padding-left: 12px;
    background: #fff;
    box-shadow: 1px 0 0 var(--border);
  }
  table.tt-calendar thead th.tt-col-date { background: var(--emerald); }
  table.tt-calendar tbody tr:nth-child(even) td.tt-col-date { background: #f7f9fa; }
  table.tt-calendar tbody tr.tt-friday td.tt-col-date { background: #fdf1de; }
  .timetable-scroll::before {
    content: "Swipe to see all prayer times \2192";
    display: block;
    position: sticky;
    left: 0;
    padding: 10px 14px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--muted);
    background: var(--emerald-tint);
  }

  /* Darul Uloom facilities: centre the odd one out in the 2-column grid */
  .du-facilities > :last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 10px); }
}
