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

:root {
  /* Blue theme */
  --background: hsl(210, 30%, 98%);
  --foreground: hsl(215, 30%, 12%);
  --card: hsl(210, 25%, 96%);
  --card-foreground: hsl(215, 30%, 12%);
  --primary: hsl(215, 65%, 30%);
  --primary-foreground: hsl(210, 30%, 98%);
  --secondary: hsl(210, 25%, 92%);
  --secondary-foreground: hsl(215, 30%, 12%);
  --muted: hsl(210, 15%, 93%);
  --muted-foreground: hsl(215, 10%, 42%);
  --accent: hsl(43, 85%, 50%);
  --accent-foreground: hsl(215, 30%, 12%);
  --border: hsl(210, 15%, 88%);
  --radius: 0.5rem;

  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-logo: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: hsl(215, 65%, 36%) hsl(210, 25%, 92%);
}

/* Subtle branded scrollbar for Chromium and Safari */
::-webkit-scrollbar {
  width: 0.7rem;
  height: 0.7rem;
}

::-webkit-scrollbar-track {
  background: hsl(210, 25%, 92%);
}

::-webkit-scrollbar-thumb {
  background: hsl(215, 65%, 36%);
  border: 0.15rem solid hsl(210, 25%, 92%);
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

body {
  font-family: var(--font-sans);
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

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

/* ===== UTILITIES ===== */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container--narrow {
  max-width: 768px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container--mid {
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-balance {
  text-wrap: balance;
}

.font-serif {
  font-family: var(--font-serif);
}

/* ===== SECTION LABEL ===== */
.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--foreground);
  margin-top: 0.75rem;
}

.section-desc {
  max-width: 640px;
  margin: 1rem auto 0;
  color: var(--muted-foreground);
  line-height: 1.6;
}

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

/* Progressive content reveal: JS adds the hidden state only after observers exist. */
.scroll-reveal {
  opacity: 0;
  translate: 0 1.65rem;
  scale: 0.975;
  will-change: opacity, translate, scale;
}

.scroll-reveal.is-revealed {
  opacity: 1;
  translate: 0 0;
  scale: 1;
  animation: scroll-reveal-in 820ms cubic-bezier(0.16, 1, 0.3, 1) var(--scroll-reveal-delay, 0ms) both;
  will-change: auto;
}

@keyframes scroll-reveal-in {
  from {
    opacity: 0;
    translate: 0 1.65rem;
    scale: 0.975;
  }
  to {
    opacity: 1;
    translate: 0 0;
    scale: 1;
  }
}

.page-intro-reveal {
  animation: page-intro-reveal 900ms cubic-bezier(0.16, 1, 0.3, 1) var(--page-intro-delay, 90ms) both;
}

@keyframes page-intro-reveal {
  from {
    opacity: 0;
    translate: 0 1.35rem;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-reveal,
  .scroll-reveal.is-revealed {
    opacity: 1;
    translate: none;
    scale: 1;
    animation: none;
  }


  .page-intro-reveal {
    animation: none;
  }
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  text-decoration: none;
  cursor: pointer;
}

.btn--primary {
  background: var(--primary);
  color: var(--primary-foreground);
}
.btn--primary:hover {
  opacity: 0.9;
}

.btn--accent {
  background: var(--accent);
  color: var(--accent-foreground);
}
.btn--accent:hover {
  opacity: 0.9;
}

.btn--outline {
  background: transparent;
  color: var(--primary-foreground);
  border: 1px solid hsla(210, 30%, 98%, 0.3);
}
.btn--outline:hover {
  background: hsla(210, 30%, 98%, 0.1);
}

.btn--outline-primary {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}
.btn--outline-primary:hover {
  background: hsla(215, 65%, 30%, 0.05);
}

.btn--lg {
  padding: 0.9rem 2rem;
  font-size: 1rem;
}

/* ===== NAVBAR ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: hsla(210, 30%, 98%, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  max-width: 1280px;
  margin: 0 auto;
}

.navbar__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.navbar__logo-icon {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.navbar__logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.navbar__logo-text {
  font-family: var(--font-logo);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--foreground);
  letter-spacing: 0.02em;
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.navbar__link {
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  transition: all 0.2s ease;
}
.navbar__link:hover {
  background: transparent;
  color: var(--primary);
}
.navbar__link--active {
  background: transparent;
  color: hsl(215, 75%, 24%);
  font-weight: 700;
}

.navbar__hamburger {
  display: none;
  padding: 0.5rem;
  border-radius: var(--radius);
  color: var(--foreground);
}
.navbar__hamburger:hover {
  background: var(--secondary);
}
.navbar__hamburger svg {
  width: 1.5rem;
  height: 1.5rem;
}

.navbar__mobile {
  display: none;
  border-top: 1px solid var(--border);
  background: var(--background);
  padding: 1rem 1.5rem;
}
.navbar__mobile.open {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.navbar__mobile .navbar__link {
  padding: 0.75rem 1rem;
}

/* More dropdown */
.navbar__dropdown {
  position: relative;
}

.navbar__dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s ease;
}

.navbar__dropdown-trigger:hover {
  background: transparent;
  color: var(--primary);
}

/* More highlighted when on a More sub-page (New Mosque, Children's Classes) */
.navbar__dropdown-trigger.navbar__link--active {
  background: transparent;
  color: hsl(215, 75%, 24%);
  font-weight: 700;
}

.navbar__dropdown-trigger.navbar__link--active:hover {
  background: transparent;
  color: hsl(215, 75%, 24%);
  opacity: 1;
}

.navbar__dropdown-trigger svg {
  width: 1rem;
  height: 1rem;
  transition: transform 0.2s ease;
}

.navbar__dropdown.open .navbar__dropdown-trigger svg {
  transform: rotate(180deg);
}

.navbar__dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.25rem;
  min-width: 200px;
  padding: 0.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 60;
  pointer-events: none;
}

.navbar__dropdown.open .navbar__dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.navbar__dropdown-item {
  display: block;
  padding: 0.625rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
  transition: background 0.15s ease, color 0.15s ease;
}

.navbar__dropdown-item:hover {
  background: transparent;
  color: var(--primary);
}

.navbar__dropdown-item.navbar__link--active {
  background: transparent;
  color: hsl(215, 75%, 24%);
  font-weight: 700;
}

/* Mobile: More section (collapsible, collapsed by default) */
.navbar__mobile-more {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.navbar__mobile-more-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.5rem 1rem 0.5rem;
  font: inherit;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-foreground);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
}

.navbar__mobile-more-trigger:hover {
  color: var(--foreground);
}

.navbar__mobile-more-arrow {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  margin-left: 0.5rem;
  transition: transform 0.2s ease;
}

.navbar__mobile-more--open .navbar__mobile-more-arrow {
  transform: rotate(180deg);
}

.navbar__mobile-more-menu {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.25s ease;
}

.navbar__mobile-more--open .navbar__mobile-more-menu {
  max-height: 10rem;
  padding-top: 0.25rem;
}

/* More sub-links: same format as main mobile nav links, slightly indented */
.navbar__mobile-more .navbar__link {
  padding: 0.75rem 1rem;
  padding-left: 1.5rem;
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius);
}
.navbar__mobile-more .navbar__link:hover {
  background: transparent;
  color: var(--primary);
}

@media (max-width: 1023px) {
  .navbar__links {
    display: none;
  }
  .navbar__hamburger {
    display: block;
  }
  .navbar__mobile {
    display: block;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    padding: 0 1rem;
    transform: translateY(-0.35rem);
    transition: max-height 0.28s ease, opacity 0.22s ease, transform 0.22s ease, padding 0.22s ease;
    pointer-events: none;
  }
  .navbar__mobile.open {
    display: block;
    max-height: 34rem;
    opacity: 1;
    padding: 0.9rem 1rem 1rem;
    transform: translateY(0);
    pointer-events: auto;
  }
  .navbar__mobile > * + * {
    margin-top: 0.35rem;
  }
  .navbar__mobile .navbar__link {
    display: flex;
    align-items: center;
    min-height: 2.75rem;
    padding: 0.65rem 0.8rem;
    border-radius: 0.5rem;
    font-size: 0.95rem;
    line-height: 1.25;
  }
  .navbar__mobile-more {
    margin-top: 0.15rem;
    padding-top: 0.35rem;
    border-top: 1px solid var(--border);
  }
  .navbar__mobile-more-trigger {
    min-height: 2.25rem;
    padding: 0.5rem 0.8rem;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
  }
  .navbar__mobile-more-menu {
    margin-top: 0.15rem;
  }
  .navbar__mobile-more .navbar__link {
    min-height: 2.5rem;
    padding: 0.55rem 0.8rem 0.55rem 1.4rem;
    font-size: 0.9rem;
    color: var(--muted-foreground);
  }
  .navbar__mobile-more .navbar__link--active {
    color: hsl(215, 75%, 24%);
  }
}

@media (max-width: 479px) {
  .navbar__mobile.open {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }
}

/* ===== FOOTER ===== */
.footer {
  background: var(--foreground);
  color: var(--primary-foreground);
}

.footer__grid {
  display: grid;
  gap: 3rem;
  padding: 4rem 0;
}

.footer__heading {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
}

.footer__subheading {
  font-weight: 600;
  color: var(--accent);
}

.footer__text {
  margin-top: 1rem;
  font-size: 0.875rem;
  line-height: 1.6;
  opacity: 0.8;
}

.footer__link-list {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer__link-list a {
  font-size: 0.875rem;
  opacity: 0.8;
  transition: opacity 0.2s;
}
.footer__link-list a:hover {
  opacity: 1;
}

.footer__contact-list {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.875rem;
  opacity: 0.8;
}

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.footer__contact-item svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.footer__hours-list {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.875rem;
  opacity: 0.8;
}

.footer__hours-item {
  display: flex;
  justify-content: space-between;
}

.footer__jummah {
  margin-top: 0.75rem;
  border-top: 1px solid hsla(210, 30%, 98%, 0.2);
  padding-top: 0.75rem;
}

.footer__bottom {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1rem;
  border-top: 1px solid hsla(210, 30%, 98%, 0.2);
  padding: 2rem 0;
  font-size: 0.875rem;
  text-align: center;
  opacity: 0.6;
}

.footer__bottom p {
  margin: 0;
}

.footer__legal-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.footer__bottom a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

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

@media (min-width: 1024px) {
  .footer__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ===== HERO (reusable) ===== */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 85vh;
}

.hero--short {
  min-height: auto;
  padding: 6rem 0;
}

/* Center the title/content block on inner pages (short hero) - same as hero__inner on home */
.hero--short .hero__content {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img,
.hero__bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__bg-image {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg-video {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__video-controls {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 101;
  display: flex;
  gap: 0.75rem;
  align-items: center;
  pointer-events: auto;
}

.hero__video-control-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.2s ease;
  color: white;
  pointer-events: auto !important;
  position: relative;
  z-index: 30;
  border: none;
  outline: none;
}

.hero__video-control-btn:hover {
  background: rgba(0, 0, 0, 0.7);
  transform: scale(1.1);
}

.hero__video-control-btn svg {
  width: 1.25rem;
  height: 1.25rem;
}

.hero__video-audio-group {
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  border-radius: 2rem;
  padding: 0.25rem 0.5rem 0.25rem 0.25rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: padding 0.3s ease;
}

.hero__video-audio-group .hero__video-volume-slider {
  width: 0;
  opacity: 0;
  transition: width 0.3s ease, opacity 0.3s ease, margin 0.3s ease;
  overflow: hidden;
  flex-shrink: 0;
}

.hero__video-audio-group:hover {
  padding-right: 0.75rem;
}

.hero__video-audio-group:hover .hero__video-volume-slider {
  width: 70px;
  opacity: 1;
  margin-left: 0.5rem;
}

.hero__video-audio-group .hero__video-control-btn {
  width: 2rem;
  height: 2rem;
  background: transparent;
  border: none;
  margin: 0;
}

.hero__video-audio-group .hero__video-control-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.05);
}

.hero__video-volume-slider {
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.2);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  transition: background 0.2s ease, width 0.3s ease, opacity 0.3s ease, margin 0.3s ease;
  margin: 0;
}

.hero__video-volume-slider:hover {
  background: rgba(255, 255, 255, 0.3);
}

.hero__video-volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #000;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
}

.hero__video-volume-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.4);
}

.hero__video-volume-slider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #000;
  cursor: pointer;
  border: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
}

.hero__video-volume-slider::-moz-range-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.4);
}

.hero__video-volume-slider::-moz-range-track {
  background: rgba(255, 255, 255, 0.2);
  height: 4px;
  border-radius: 2px;
}

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

  .hero__bg-image {
    display: block;
  }

  .hero__video-controls {
    display: none;
  }

  .hero__watch-video {
    display: none !important;
    visibility: hidden;
    height: 0;
    margin: 0 !important;
    overflow: hidden;
    pointer-events: none;
  }
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: hsla(215, 30%, 12%, 0.65);
  pointer-events: none;
  transition: opacity 0.5s ease;
  z-index: 5;
}

.hero__bg {
  pointer-events: none;
}

.hero__bg .hero__video-controls {
  pointer-events: auto;
}

.hero__overlay--primary {
  background: hsla(215, 65%, 30%, 0.85);
}

.hero__inner {
  position: relative;
  z-index: 10;
  max-width: 1280px;
  margin: 0 auto;
  padding: 6rem 1.5rem;
  width: 100%;
}

.hero__content {
  position: relative;
  z-index: 10;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.hero__content {
  position: relative;
  z-index: 10;
}

.hero__content--center {
  text-align: center;
}

.hero__label {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
}

.hero__title {
  margin-top: 1rem;
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--primary-foreground);
}

.hero__desc {
  margin-top: 1.5rem;
  font-size: 1.125rem;
  line-height: 1.6;
  color: hsla(210, 30%, 98%, 0.9);
  max-width: 640px;
}

.hero__desc--center {
  margin-left: auto;
  margin-right: auto;
}

.hero__icon {
  width: 2.5rem;
  height: 2.5rem;
  color: var(--accent);
  margin: 0 auto 0.5rem;
}

.hero__buttons {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero__buttons--center {
  justify-content: center;
}

.hero__watch-video {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0;
  border: 0;
  background: none;
  font-family: inherit;
  font-size: 0.875rem;
  color: hsla(210, 30%, 98%, 0.7);
  text-decoration: none;
  transition: color 0.2s ease;
  cursor: pointer;
}

.hero__watch-video:hover {
  color: hsla(210, 30%, 98%, 0.9);
  text-decoration: underline;
}

/* ===== QUICK PRAYER TIMES (Home) ===== */
.quick-prayers {
  position: relative;
  z-index: 20;
  margin-top: -12rem;
  transition: transform 0.5s ease;
  pointer-events: none;
}

.quick-prayers a {
  pointer-events: auto;
}

.quick-prayers__card {
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: var(--card);
  padding: 1.25rem 2rem 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.quick-prayers__header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.quick-prayers__header-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.quick-prayers__header-left svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--primary);
}

.quick-prayers__header-left h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--card-foreground);
}

.quick-prayers__date {
  margin-top: 0.15rem;
  font-size: 0.78rem;
  color: var(--muted-foreground);
}

.quick-prayers__date--islamic {
  margin-top: 0.1rem;
}

.quick-prayers__view-link {
  display: none;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary);
}
.quick-prayers__view-link:hover {
  text-decoration: underline;
}
.quick-prayers__view-link svg {
  width: 1rem;
  height: 1rem;
}

.quick-prayers__header .prayer-countdown--home {
  margin-top: 0;
  padding: 0;
  margin-left: auto;
  text-align: right;
}

.prayer-countdown {
  margin-top: 1rem;
  /* border: 1px solid hsla(215, 45%, 38%, 0.097); */
  border-radius: 0.75rem;
  padding: 1rem;
  /* background: var(--card); */
  /* box-shadow: 0 0px 24px rgba(15, 38, 68, 0.049), inset 0 1px 0 hsla(0, 0%, 100%, 0.083); */
  text-align: center;
}

.prayer-countdown__top {
  display: block;
}

.prayer-countdown__label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
}

.prayer-countdown__title {
  margin-top: 0.35rem;
  font-family: var(--font-sans);
  font-size: 2rem;
  font-weight: 700;
  color: var(--foreground);
  line-height: 1.2;
}

.prayer-countdown__time-value {
  display: block;
  font-family: var(--font-sans);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--foreground);
  line-height: 1.1;
}

.prayer-countdown__time-unit {
  display: block;
  margin-top: 0.1rem;
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--muted-foreground);
}

.prayer-countdown__meta {
  margin-top: 0.35rem;
  font-size: 0.76rem;
  color: var(--muted-foreground);
}

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

/* Center the last card (Isha) when it's alone on its row (2-col layout) */
.quick-prayers__item:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  justify-self: center;
  width: calc((100% - 1rem) / 2);
}

.quick-prayers__item {
  background: var(--secondary);
  border-radius: 0.5rem;
  padding: 1rem;
  text-align: center;
}

/* Current prayer – indicates the active prayer (home page quick-prayers only) */
.quick-prayers__item.current-prayer {
  background: linear-gradient(135deg, hsla(215, 65%, 30%, 0.08) 0%, hsla(215, 65%, 30%, 0.04) 100%);
  border: 2px solid var(--primary);
  box-shadow: 0 4px 16px rgba(30, 58, 95, 0.12), 0 0 0 1px hsla(215, 65%, 30%, 0.06);
  position: relative;
}

.quick-prayers__item.current-prayer::before {
  content: 'Now';
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary-foreground);
  background: var(--primary);
  padding: 0.2rem 0.5rem;
  border-radius: 9999px;
  line-height: 1.2;
}

.quick-prayers__item.current-prayer .quick-prayers__item-label {
  color: var(--primary);
}

.quick-prayers__item.current-prayer .quick-prayers__item-time {
  color: var(--foreground);
}

.quick-prayers__item.current-prayer .quick-prayers__item-iqamah {
  color: var(--muted-foreground);
}

.quick-prayers__item-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted-foreground);
}

.quick-prayers__item-time {
  margin-top: 0.25rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--foreground);
  white-space: nowrap;
}

@media (max-width: 639px) {
  .quick-prayers__header {
    position: static;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .quick-prayers__header-left {
    justify-content: center;
    text-align: center;
  }

  .quick-prayers__header .prayer-countdown--home {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

  .quick-prayers__header .prayer-countdown--home .prayer-countdown__title {
    font-size: 1.5rem;
  }

  .quick-prayers__card {
    padding: 1rem 1rem 1.5rem;
  }

  .quick-prayers__header-left h3 {
    font-size: 1.1rem;
    line-height: 1.2;
  }

  .quick-prayers__date {
    font-size: 0.72rem;
  }

  .quick-prayers__grid {
    gap: 0.75rem;
  }

  .quick-prayers__item {
    padding: 0.85rem 0.65rem;
  }

  .quick-prayers__item-label {
    font-size: 0.68rem;
    letter-spacing: 0.08em;
  }

  .quick-prayers__item .quick-prayers__item-time {
    white-space: nowrap;
    font-size: 0.9rem;
  }

  .quick-prayers__item-iqamah,
  .quick-prayers__item-end {
    font-size: 0.68rem;
    white-space: nowrap;
  }
}

.quick-prayers__item-iqamah {
  margin-top: 0.125rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.quick-prayers__item-end {
  margin-top: 0.125rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.quick-prayers__view-link-bottom {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary);
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.quick-prayers__view-link-bottom:hover {
  text-decoration: underline;
}

@media (min-width: 640px) {
  .quick-prayers__grid {
    grid-template-columns: repeat(5, 1fr);
  }
  .quick-prayers__item:last-child:nth-child(odd) {
    grid-column: auto;
    justify-self: auto;
    width: auto;
  }
  .quick-prayers__view-link-bottom {
    display: flex;
  }
}

@media (max-width: 768px) {
  .quick-prayers {
    margin-top: -4.5rem;
  }
}

/* ===== SECTION PADDING ===== */
.section {
  padding: 6rem 0;
}

.section--bg {
  background: var(--background);
}

.section--secondary {
  background: var(--secondary);
}

/* ===== WELCOME (About preview on home) ===== */
.welcome__grid {
  display: grid;
  gap: 4rem;
  align-items: center;
}

.welcome__image-wrapper {
  position: relative;
}

.welcome__image-main {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 0.5rem;
}

.welcome__image-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.welcome__image-inset {
  display: block;
  position: absolute;
  bottom: -1rem;
  right: -1rem;
  width: 8rem;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 0.5rem;
  border: 3px solid var(--secondary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.welcome__image-inset img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 640px) {
  .welcome__image-inset {
    bottom: -1.25rem;
    right: -1.25rem;
    width: 10rem;
    border-width: 4px;
  }
}

@media (min-width: 1024px) {
  .welcome__grid {
    grid-template-columns: 1fr 1fr;
  }
  .welcome__image-inset {
    bottom: -1.5rem;
    right: -1.5rem;
    width: 12rem;
  }
}

/* ===== SERVICE CARDS ===== */
.services__grid {
  margin-top: 4rem;
  display: grid;
  gap: 2rem;
}

.service-card {
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 0.5rem;
  padding: 2rem;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
.service-card:hover {
  border-color: hsla(215, 65%, 30%, 0.3);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
}

.service-card__icon {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  background: hsla(215, 65%, 30%, 0.1);
}

.service-card__icon svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--primary);
}

.service-card__icon .material-symbols-outlined {
  font-size: 1.55rem;
  line-height: 1;
  font-variation-settings: 'FILL' 0, 'wght' 500, 'GRAD' 0, 'opsz' 24;
  color: var(--primary);
}

.service-card__title {
  margin-top: 1.25rem;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--card-foreground);
}

.service-card__desc {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted-foreground);
}

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

@media (min-width: 1024px) {
  .services__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ===== NEW MOSQUE VIDEO SECTION ===== */
.new-mosque-videos__flow {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.new-mosque-video-card {
  width: 100%;
  max-width: 720px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.new-mosque-video-card--first {
  border-radius: 1rem 1rem 0 0;
  box-shadow: 0 4px 24px rgba(30, 58, 95, 0.08);
}

.new-mosque-video-card--second {
  border-radius: 0 0 1rem 1rem;
  box-shadow: 0 8px 32px rgba(30, 58, 95, 0.1);
}

.new-mosque-video-card:hover {
  box-shadow: 0 8px 30px rgba(30, 58, 95, 0.12);
  border-color: hsla(215, 65%, 30%, 0.2);
}

.new-mosque-video-card__label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, hsla(215, 65%, 30%, 0.06) 0%, hsla(215, 65%, 30%, 0.02) 100%);
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
}

.new-mosque-video-card__label--vision {
  background: linear-gradient(135deg, hsla(43, 85%, 50%, 0.12) 0%, hsla(43, 85%, 50%, 0.04) 100%);
  color: var(--accent);
}

.new-mosque-video-card__label svg {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

/* Connector: line + arrow + label between the two videos */
.new-mosque-videos__connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 0.75rem 0 1rem;
  width: 100%;
  max-width: 720px;
}

.new-mosque-videos__connector-line {
  display: block;
  width: 2px;
  height: 1.5rem;
  background: linear-gradient(to bottom, var(--border), hsla(215, 65%, 30%, 0.25));
  border-radius: 1px;
}

.new-mosque-videos__connector-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, hsl(215, 65%, 25%) 100%);
  color: #fff;
  box-shadow: 0 4px 16px rgba(30, 58, 95, 0.35);
  flex-shrink: 0;
}

.new-mosque-videos__connector-arrow svg {
  width: 1.25rem;
  height: 1.25rem;
}

.new-mosque-videos__connector-label {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted-foreground);
}

.new-mosque-video-card__player {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0f172a;
  border-radius: 0 0 0 0;
}

.new-mosque-video-card__player video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  vertical-align: middle;
}

/* Custom video controls – overlay play + control bar */
.nm-video__play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.4);
  border: none;
  cursor: pointer;
  transition: opacity 0.25s ease, background 0.25s ease;
  z-index: 2;
}

.nm-video__play-overlay:hover {
  background: rgba(15, 23, 42, 0.5);
}

.nm-video__play-overlay--hidden {
  opacity: 0;
  pointer-events: none;
}

.nm-video__play-overlay svg {
  width: 5.5rem;
  height: 5.5rem;
  color: #fff;
  filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.4));
  transition: transform 0.2s ease;
}

.nm-video__play-overlay:hover svg {
  transform: scale(1.08);
}

.nm-video__controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem 0.6rem;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.7) 60%, transparent);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.new-mosque-video-card__player:hover .nm-video__controls,
.new-mosque-video-card__player.nm-video__controls-visible .nm-video__controls,
.new-mosque-video-card__player.nm-video__controls-pinned .nm-video__controls {
  opacity: 1;
}

.nm-video__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  border-radius: 0.375rem;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
  flex-shrink: 0;
}

.nm-video__btn:hover {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.nm-video__btn:active {
  transform: scale(0.96);
}

.nm-video__btn svg {
  width: 1.125rem;
  height: 1.125rem;
}

.nm-video__progress-wrap {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
}

.nm-video__progress {
  width: 100%;
  height: 0.35rem;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  cursor: pointer;
  outline: none;
}

.nm-video__progress::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 0.875rem;
  height: 0.875rem;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.nm-video__progress::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.4);
}

.nm-video__progress::-moz-range-thumb {
  width: 0.875rem;
  height: 0.875rem;
  border-radius: 50%;
  border: none;
  background: var(--primary);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: transform 0.15s ease;
}

.nm-video__progress::-moz-range-thumb:hover {
  transform: scale(1.15);
}

.nm-video__progress::-moz-range-track {
  background: rgba(255, 255, 255, 0.25);
  height: 0.35rem;
  border-radius: 999px;
}

.nm-video__time {
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  min-width: 4.5rem;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.nm-video__volume-wrap {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nm-video__volume {
  width: 0;
  opacity: 0;
  overflow: hidden;
  transition: width 0.2s ease, opacity 0.2s ease, margin 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
  height: 0.25rem;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  cursor: pointer;
}

.nm-video__volume-wrap:hover .nm-video__volume {
  width: 4rem;
  opacity: 1;
  margin-left: 0.25rem;
}

.nm-video__volume::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}

.nm-video__volume::-moz-range-thumb {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  border: none;
  background: #fff;
  cursor: pointer;
}

.nm-video__volume::-moz-range-track {
  background: rgba(255, 255, 255, 0.25);
  height: 0.25rem;
  border-radius: 999px;
}

.new-mosque-video-card__caption {
  padding: 1rem 1.25rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.5;
  border-top: 1px solid var(--border);
}

@media (min-width: 768px) {
  .new-mosque-videos__connector {
    padding: 1rem 0 1.25rem;
  }
  .new-mosque-videos__connector-line {
    height: 2rem;
  }
  .new-mosque-videos__connector-arrow {
    width: 3rem;
    height: 3rem;
  }
  .new-mosque-videos__connector-arrow svg {
    width: 1.375rem;
    height: 1.375rem;
  }
}

/* ===== GALLERY ===== */
.gallery__grid {
  margin-top: 4rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.gallery__item {
  position: relative;
  overflow: hidden;
  border-radius: 0.5rem;
  min-height: 200px;
}

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

.gallery__item:hover img {
  transform: scale(1.05);
}

.gallery__item--large {
  grid-column: span 2;
  grid-row: span 2;
}

@media (min-width: 768px) {
  .gallery__grid {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 1fr);
  }
}

/* ===== CTA BANNER ===== */
.cta-banner {
  position: relative;
  padding: 6rem 0;
}

.cta-banner__bg {
  position: absolute;
  inset: 0;
}

.cta-banner__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-banner__content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.cta-banner__title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--primary-foreground);
  text-wrap: balance;
}

.cta-banner__desc {
  max-width: 640px;
  margin: 1.5rem auto 0;
  font-size: 1.125rem;
  line-height: 1.6;
  color: hsla(210, 30%, 98%, 0.9);
}

.cta-banner__buttons {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

/* ===== PRAYER TIMES PAGE ===== */
.prayer-cards {
  display: grid;
  gap: 1.5rem;
}

.prayer-countdown--page {
  margin: 1.25rem auto 0;
  max-width: 34rem;
}

@media (max-width: 768px) {
  .prayer-countdown__title {
    font-size: 1.65rem;
  }
}

.prayer-card {
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 0.75rem;
  padding: 1.5rem;
  text-align: center;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
.prayer-card:hover {
  border-color: hsla(215, 65%, 30%, 0.3);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
}

.prayer-card__icon {
  width: 3.5rem;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: hsla(215, 65%, 30%, 0.1);
  margin: 0 auto;
}

.prayer-card__icon svg {
  width: 1.75rem;
  height: 1.75rem;
  color: var(--primary);
}

.prayer-card__name {
  margin-top: 1rem;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--card-foreground);
}

.prayer-card__desc {
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.prayer-card__time-box {
  margin-top: 1rem;
  padding: 0.75rem;
  border-radius: 0.5rem;
}

.prayer-card__time-box--adhan {
  background: var(--secondary);
}

.prayer-card__time-box--iqamah {
  background: hsla(215, 65%, 30%, 0.05);
}

/* End box: same design as Begins (Fajr = sunrise time, others = next prayer name) */
.prayer-card__time-box--end {
  background: var(--secondary);
}

.prayer-card__time-value--end {
  color: var(--foreground);
}

.prayer-card__time-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted-foreground);
}

.prayer-card__time-value {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--foreground);
}

.prayer-card__time-value--primary {
  color: var(--primary);
}

/* Current prayer – Today's Schedule (prayer times page only) */
.prayer-card.current-prayer {
  background: linear-gradient(135deg, hsla(215, 65%, 30%, 0.08) 0%, hsla(215, 65%, 30%, 0.04) 100%);
  border: 2px solid var(--primary);
  box-shadow: 0 6px 20px rgba(30, 58, 95, 0.12), 0 0 0 1px hsla(215, 65%, 30%, 0.06);
  position: relative;
}

.prayer-card.current-prayer::before {
  content: 'Now';
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary-foreground);
  background: var(--primary);
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
  line-height: 1.2;
}

.prayer-card.current-prayer .prayer-card__name {
  color: var(--primary);
}

.prayer-card.current-prayer .prayer-card__icon {
  background: hsla(215, 65%, 30%, 0.15);
}

.prayer-card.current-prayer .prayer-card__icon svg {
  color: var(--primary);
}

@media (min-width: 640px) {
  .prayer-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .prayer-cards {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* ===== JUMMAH BANNER ===== */
.jummah-banner {
  background: var(--primary);
  padding: 4rem 0;
}

.jummah-banner__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.jummah-banner__title {
  font-family: var(--font-serif);
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--primary-foreground);
}

.jummah-banner__sub {
  margin-top: 0.5rem;
  color: hsla(210, 30%, 98%, 0.8);
}

.jummah-banner__note {
  margin-top: 0.65rem;
  max-width: 34rem;
  font-size: 0.8rem;
  line-height: 1.5;
  color: hsla(210, 30%, 98%, 0.74);
}

.jummah-banner__times {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  justify-content: center;
}

.jummah-period {
  min-width: 12rem;
  padding: 1.25rem 1.75rem;
  border-radius: 0.75rem;
  background: hsla(210, 30%, 98%, 0.12);
  border: 1px solid hsla(210, 30%, 98%, 0.2);
  text-align: center;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.jummah-period--current {
  background: hsla(210, 30%, 98%, 0.22);
  border-color: var(--accent);
  box-shadow: 0 0 0 2px hsla(210, 30%, 98%, 0.15);
}

.jummah-period--current .jummah-period__label::after {
  content: ' · Current';
  font-weight: 500;
  opacity: 0.95;
}

.jummah-period__label {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin: 0 0 0.75rem 0;
}

.jummah-period__times {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0;
  font-size: 1rem;
  color: var(--primary-foreground);
}

.jummah-period__row {
  display: block;
  line-height: 1.4;
}

.jummah-period__row strong {
  font-weight: 700;
  margin-left: 0.25rem;
}

/* ===== FRIDAY JUMMAH HOME TOAST ===== */
.friday-jummah-toast {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right, 0px));
  bottom: max(1rem, env(safe-area-inset-bottom, 0px));
  z-index: 40;
  width: min(20rem, calc(100% - 2rem));
  padding: 1.15rem 1.25rem 1.2rem 1.25rem;
  border-radius: 1rem;
  border: 1px solid hsl(215, 45%, 42%);
  background: var(--primary);
  box-shadow: 0 10px 28px rgba(12, 38, 78, 0.22);
  color: var(--primary-foreground);
  opacity: 0;
  visibility: hidden;
  transform: translate3d(0, calc(100% + 0.5rem), 0);
  transform-origin: bottom right;
  will-change: transform, opacity;
  transition:
    transform 0.48s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    visibility 0s linear 0.48s;
  pointer-events: none;
}

.friday-jummah-toast.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translate3d(0, 0, 0);
  transition:
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0s linear 0s;
  pointer-events: auto;
}

.friday-jummah-toast__close {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.friday-jummah-toast__close:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.friday-jummah-toast__title {
  margin: 0.15rem 0 0.2rem;
  padding-right: 1.75rem;
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #ffffff;
}

.friday-jummah-toast__subtitle {
  margin: 0 0 0.85rem;
  padding-right: 1.75rem;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.35;
}

.friday-jummah-toast__times {
  display: grid;
  gap: 0.45rem;
}

.friday-jummah-toast__row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.4;
}

.friday-jummah-toast__row strong {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.02em;
  white-space: nowrap;
  text-align: right;
  justify-self: end;
}

@media (max-width: 480px) {
  .friday-jummah-toast {
    width: min(18.5rem, calc(100% - 1.5rem));
    right: max(0.75rem, env(safe-area-inset-right, 0px));
    bottom: max(0.75rem, env(safe-area-inset-bottom, 0px));
    padding: 1rem 1rem 1.05rem 1rem;
  }

  .friday-jummah-toast__title {
    font-size: 1.0625rem;
  }

  .friday-jummah-toast__row strong {
    font-size: 0.9375rem;
  }
}

.jummah-time {
  text-align: center;
}

.jummah-time__label {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.jummah-time__value {
  margin-top: 0.25rem;
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--primary-foreground);
}

@media (min-width: 768px) {
  .jummah-banner__inner {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* ===== TABLE ===== */
/* No overflow on .data-table so sticky thead sticks to viewport (overflow creates a scroll container and breaks sticky). */
.data-table {
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: var(--card);
  position: relative;
}

.data-table table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
}


.data-table thead tr {
  background: var(--primary);
}

.data-table th {
  padding: 1rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary-foreground);
  text-align: center;
  border-right: 1px dashed hsla(215, 15%, 50%, 0.3);
}

.data-table th:last-child {
  border-right: none;
}

.data-table th[rowspan] {
  vertical-align: middle;
}

/* Sticky header rows – stick just below navbar when scrolling (navbar is ~4.5rem) */
.data-table #prayer-main-header th {
  position: -webkit-sticky;
  position: sticky;
  top: 4.5rem;
  z-index: 10;
  background: var(--primary);
  box-shadow: 0 1px 0 var(--border);
}

.data-table .prayer-sub-header th {
  position: -webkit-sticky;
  position: sticky;
  top: var(--prayer-sub-header-top, 4.5rem);
  z-index: 9;
  box-shadow: 0 1px 0 var(--border);
}

/* Date and Day main headers - left aligned */
.data-table #prayer-main-header th:first-child,
.data-table #prayer-main-header th:nth-child(2) {
  text-align: left;
}

/* Date and Day sub-headers - center aligned like others */
.data-table .prayer-sub-header th:first-child,
.data-table .prayer-sub-header th:nth-child(2) {
  text-align: center;
}

.data-table th[rowspan] {
  vertical-align: middle;
}

.data-table .prayer-sub-header {
  background: var(--secondary);
}

.data-table .prayer-sub-header th {
  font-size: 0.75rem;
  padding: 0.75rem 1rem;
  font-weight: 500;
  color: var(--secondary-foreground);
  background: var(--secondary);
  border-top: 1px solid var(--border);
  border-right: 1px dashed hsla(215, 15%, 50%, 0.3);
}

.data-table .prayer-sub-header th:last-child {
  border-right: none;
}

/* Mobile: prevent zoom-out on prayer times page; allow horizontal scroll only on the table.
   Disable sticky on the real thead so we don't get two stacked blue rows before scroll;
   the fixed clone provides the sticky header only after the user scrolls past. */
@media (max-width: 768px) {
  .page-prayer-times {
    overflow-x: hidden;
  }
  .page-prayer-times .data-table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .page-prayer-times .data-table #prayer-main-header th,
  .page-prayer-times .data-table .prayer-sub-header th {
    position: static;
    top: auto;
    box-shadow: none;
  }
}
@media (min-width: 769px) {
  .data-table-sticky-clone {
    display: none !important;
  }
}

/* Fixed clone of table header (used on mobile when native sticky fails) – match .data-table thead exactly */
.data-table-sticky-clone {
  display: none;
  position: fixed;
  left: 0;
  top: var(--clone-header-top, 4.5rem);
  z-index: 40;
  width: var(--clone-table-width, 100%);
  max-width: 100%;
  box-sizing: border-box;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  pointer-events: none;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}
.data-table-sticky-clone.is-visible {
  display: block;
}
.data-table-sticky-clone table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  table-layout: fixed;
}
.data-table-sticky-clone thead tr {
  background: var(--primary);
}
.data-table-sticky-clone th {
  padding: 1rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary-foreground);
  text-align: center;
  border-right: 1px dashed hsla(215, 15%, 50%, 0.3);
  background: var(--primary);
}
.data-table-sticky-clone th:last-child {
  border-right: none;
}
.data-table-sticky-clone thead tr:first-child th:first-child,
.data-table-sticky-clone thead tr:first-child th:nth-child(2) {
  text-align: left;
}
.data-table-sticky-clone thead tr.prayer-sub-header th {
  font-size: 0.75rem;
  padding: 0.75rem 1rem;
  font-weight: 500;
  color: var(--secondary-foreground);
  background: var(--secondary);
  border-top: 1px solid var(--border);
}
.data-table-sticky-clone thead tr.prayer-sub-header th:first-child,
.data-table-sticky-clone thead tr.prayer-sub-header th:nth-child(2) {
  text-align: center;
}

.data-table td {
  padding: 1rem 1.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  text-align: center;
  border-bottom: 1px solid var(--border);
  border-right: 1px dashed hsla(215, 15%, 50%, 0.3);
}

.data-table td:last-child {
  border-right: none;
}

/* Date column (first) - left aligned */
.data-table td:nth-child(1) {
  text-align: left;
  font-weight: 600;
  color: var(--card-foreground);
}

/* Day column (second) - left aligned */
.data-table td:nth-child(2) {
  text-align: left;
  font-weight: 500;
  color: var(--muted-foreground);
}

/* All prayer time columns - center aligned */
.data-table td:nth-child(n+3) {
  text-align: center;
}

/* Style prayer time cells */
.data-table td:nth-child(n+3) {
  font-size: 0.8125rem;
  padding: 0.875rem 1rem;
  white-space: nowrap;
}

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

.data-table tbody tr:nth-child(even) {
  background: hsla(210, 25%, 92%, 0.5);
}

/* Current day row in calendar */
.data-table tbody tr.data-table__row--today td {
  background: hsla(215, 89%, 53%, 0.081);
}
.data-table tbody tr.data-table__row--today td:first-child {
  font-weight: 700;
}

/* ===== INFO BOX ===== */
.info-box {
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: var(--card);
  padding: 2rem;
}

.info-box__title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--card-foreground);
}

.info-box__list {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.info-box__item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted-foreground);
}

.info-box__dot {
  width: 0.5rem;
  height: 0.5rem;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 0.375rem;
}

.info-box--directions .info-box__intro {
  margin: 1rem 0 0;
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--muted-foreground);
}

.info-box__section-label {
  margin: 1.25rem 0 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--card-foreground);
}

.info-box__directions-list {
  margin: 0;
  padding-left: 1.25rem;
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--muted-foreground);
}

.info-box__directions-list li {
  margin-bottom: 0.35rem;
}

.info-box__directions-note {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--muted-foreground);
}

/* ===== ABOUT PAGE ===== */
.mission-grid {
  display: grid;
  gap: 4rem;
}

.mission-card {
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: var(--card);
  padding: 2rem;
}

.mission-card__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.mission-card__icon {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  background: hsla(215, 65%, 30%, 0.1);
}

.mission-card__icon--accent {
  background: hsla(43, 85%, 50%, 0.2);
}

.mission-card__icon svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--primary);
}

.mission-card__icon--accent svg {
  color: var(--accent);
}

.mission-card__title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--card-foreground);
}

.mission-card__text {
  margin-top: 1rem;
  line-height: 1.6;
  color: var(--muted-foreground);
}

.about-image {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  border-radius: 0.75rem;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 1024px) {
  .mission-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Value cards */
.values__grid {
  margin-top: 4rem;
  display: grid;
  gap: 2rem;
}

.value-card {
  border-radius: 0.75rem;
  background: var(--card);
  border: 1px solid var(--border);
  padding: 2rem;
  text-align: center;
}

.value-card__icon {
  width: 3.5rem;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: hsla(215, 65%, 30%, 0.1);
  margin: 0 auto;
}

.value-card__icon svg {
  width: 1.75rem;
  height: 1.75rem;
  color: var(--primary);
}

.value-card__title {
  margin-top: 1.25rem;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--card-foreground);
}

.value-card__desc {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted-foreground);
}

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

@media (min-width: 1024px) {
  .values__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Timeline */
.timeline {
  margin-top: 4rem;
  display: flex;
  flex-direction: column;
}

.timeline__item {
  display: flex;
  gap: 1.5rem;
}

.timeline__marker {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.timeline__number {
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--primary);
  color: var(--primary-foreground);
  font-size: 0.875rem;
  font-weight: 700;
}

.timeline__line {
  width: 1px;
  flex: 1;
  background: var(--border);
}

.timeline__content {
  padding-bottom: 2.5rem;
}

.timeline__year {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.timeline__event {
  margin-top: 0.25rem;
  line-height: 1.6;
  color: var(--muted-foreground);
}

/* Team grid */
.team__grid {
  margin-top: 4rem;
  display: grid;
  gap: 2rem;
}

.team-card {
  overflow: hidden;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: var(--card);
}

.team-card__image {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.team-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card__body {
  padding: 1.5rem;
}

.team-card__name {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--card-foreground);
}

.team-card__role {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary);
}

.team-card__desc {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted-foreground);
}

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

@media (min-width: 1024px) {
  .team__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Quote banner */
.quote-banner {
  position: relative;
  padding: 8rem 0;
}

.quote-banner__bg {
  position: absolute;
  inset: 0;
}

.quote-banner__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.quote-banner__content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 768px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.quote-banner blockquote {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 3vw, 1.875rem);
  font-weight: 500;
  font-style: italic;
  line-height: 1.5;
  color: var(--primary-foreground);
}

.quote-banner cite {
  display: block;
  margin-top: 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
}

/* ===== EVENTS PAGE ===== */
.featured-events {
  display: grid;
  gap: 2rem;
}

.events-featured-subtitle {
  margin-top: 0.6rem;
  font-size: 0.9rem;
  color: var(--muted-foreground);
}

.events-featured-subtitle a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.events-section-message {
  grid-column: 1 / -1;
  margin: 0;
  padding: 1.25rem;
  border-radius: 0.75rem;
  border: 1px dashed var(--border);
  background: var(--card);
  color: var(--muted-foreground);
  font-size: 0.9375rem;
  text-align: center;
}

.events-section-message--error {
  border-color: hsl(0, 55%, 85%);
  color: hsl(0, 55%, 38%);
}

/* Reusable public loading state, based on the mosque's navy and gold identity. */
.brand-loader {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  min-height: 8rem;
  padding: 1.5rem;
  border: 1px solid hsla(215, 65%, 30%, 0.12);
  border-radius: 0.85rem;
  background: linear-gradient(145deg, hsla(215, 65%, 30%, 0.035), hsla(43, 85%, 55%, 0.055));
  color: var(--muted-foreground);
  text-align: center;
}

.brand-loader--compact {
  min-height: 6rem;
  padding: 1rem;
}

.brand-loader__mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--card);
  box-shadow: 0 6px 18px hsla(215, 65%, 20%, 0.1);
}

.brand-loader__mark::before {
  content: '';
  position: absolute;
  inset: -0.3rem;
  border: 2px solid hsla(215, 65%, 30%, 0.14);
  border-top-color: var(--accent);
  border-right-color: var(--primary);
  border-radius: 50%;
  animation: brand-loader-spin 1.15s linear infinite;
}

.brand-loader__mark img {
  display: block;
  width: 2.5rem;
  height: 2.5rem;
  object-fit: contain;
  animation: brand-loader-breathe 1.8s ease-in-out infinite;
}

.brand-loader__text {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

@keyframes brand-loader-spin {
  to { transform: rotate(360deg); }
}

@keyframes brand-loader-breathe {
  0%, 100% { opacity: 0.72; transform: scale(0.94); }
  50% { opacity: 1; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .brand-loader__mark::before,
  .brand-loader__mark img {
    animation: none;
  }
}

#donate-popup .btn.is-loading {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  cursor: wait;
}

#donate-popup .btn.is-loading::before {
  content: '';
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: brand-loader-spin 0.8s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  #donate-popup .btn.is-loading::before {
    animation: none;
  }
}

.event-card {
  overflow: hidden;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: var(--card);
  transition: box-shadow 0.3s ease;
}
.event-card:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
}

.event-card__image {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}

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

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

.event-card__badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: hsla(215, 65%, 30%, 0.1);
  color: var(--primary);
}

.event-card__body {
  padding: 1.5rem;
}

.event-card__title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--card-foreground);
}

.event-card__desc {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted-foreground);
}

.event-card__meta {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.event-card__meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.event-card__meta-item svg {
  width: 1rem;
  height: 1rem;
  color: var(--primary);
}

.events-whatsapp-callout {
  margin-top: 1.35rem;
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 0.95rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid hsla(215, 65%, 30%, 0.2);
  background: hsla(215, 65%, 30%, 0.06);
}

.events-whatsapp-callout__icon {
  width: 2rem;
  height: 2rem;
  border-radius: 0.55rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: hsla(215, 65%, 30%, 0.12);
  color: var(--primary);
  flex: 0 0 auto;
}

.events-whatsapp-callout__icon svg {
  width: 1rem;
  height: 1rem;
}

.events-whatsapp-callout__title {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--card-foreground);
}

.events-whatsapp-callout__desc {
  margin: 0.25rem 0 0;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--muted-foreground);
}

.events-whatsapp-callout__link {
  display: inline-flex;
  align-items: center;
  margin-top: 0.6rem;
  padding: 0.45rem 0.75rem;
  border-radius: 9999px;
  border: 1px solid hsla(215, 65%, 30%, 0.24);
  background: var(--card);
  color: var(--primary);
  font-size: 0.76rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.events-whatsapp-callout__link:hover {
  background: hsla(215, 65%, 30%, 0.08);
  border-color: hsla(215, 65%, 30%, 0.34);
}

@media (min-width: 1024px) {
  .featured-events {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Upcoming events list */
.events-list {
  display: grid;
  gap: 1.5rem;
}

.event-list-item {
  display: flex;
  gap: 1.25rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: var(--card);
  padding: 1.25rem;
  transition: box-shadow 0.3s ease;
}
.event-list-item:hover {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.event-list-item__image {
  display: none;
  position: relative;
  width: 7rem;
  flex-shrink: 0;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 0.5rem;
}

.event-list-item__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-list-item__body {
  flex: 1;
}

.event-list-item__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

.event-list-item__title {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--card-foreground);
}

.event-list-item__badge {
  flex-shrink: 0;
  padding: 0.125rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  background: hsla(215, 65%, 30%, 0.1);
  color: var(--primary);
}

.event-list-item__desc {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted-foreground);
}

.event-list-item__meta {
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.event-list-item__meta span {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.event-list-item__meta svg {
  width: 0.875rem;
  height: 0.875rem;
  color: var(--primary);
}

@media (min-width: 640px) {
  .event-list-item__image {
    display: block;
  }
}

@media (min-width: 768px) {
  .events-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Event posters grid */
.events-posters {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.events-posters__item {
  position: relative;
  overflow: hidden;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: var(--card);
  aspect-ratio: 3/4;
}

.events-posters__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.events-posters__item:hover img {
  transform: scale(1.03);
}

@media (min-width: 640px) {
  .events-posters {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .events-posters {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }
}

/* Events page: compact, overflow-safe phone layout */
@media (max-width: 639px) {
  .page-events {
    overflow-x: hidden;
  }

  .page-events .hero--short {
    padding: 4.5rem 0;
  }

  .page-events .hero--short .hero__title {
    font-size: clamp(2rem, 10vw, 2.5rem) !important;
    line-height: 1.08;
  }

  .page-events .hero--short .hero__desc {
    font-size: 0.95rem;
    line-height: 1.55;
  }

  .page-events .section {
    padding: 4rem 0;
  }

  .page-events .section-title {
    font-size: clamp(1.8rem, 9vw, 2.15rem);
    line-height: 1.15;
  }

  .page-events .featured-events,
  .page-events .events-list,
  .page-events .events-posters,
  .page-events .data-table {
    margin-top: 2rem !important;
  }

  .page-events .events-whatsapp-callout {
    flex-direction: column;
    padding: 1rem;
  }

  .page-events .events-whatsapp-callout__link {
    justify-content: center;
    width: 100%;
    min-height: 2.75rem;
  }

  .page-events .event-card__body,
  .page-events .event-list-item {
    padding: 1rem;
  }

  .page-events .event-card__meta-item,
  .page-events .event-list-item__meta span {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .page-events .events-posters {
    grid-template-columns: 1fr;
    gap: 1rem;
    max-width: 22rem;
    margin-left: auto;
    margin-right: auto;
  }

  .page-events .data-table {
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .page-events .data-table table,
  .page-events .data-table tbody,
  .page-events .data-table tr,
  .page-events .data-table td {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .page-events .data-table thead {
    display: none;
  }

  .page-events .data-table tbody {
    display: grid;
    gap: 0.85rem;
  }

  .page-events .data-table tbody tr {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    background: var(--card);
  }

  .page-events .data-table tbody tr:nth-child(even) {
    background: var(--card);
  }

  .page-events .data-table td {
    display: grid;
    grid-template-columns: minmax(5.5rem, 0.75fr) minmax(0, 1.25fr);
    gap: 0.75rem;
    align-items: baseline;
    padding: 0.75rem 1rem;
    border-right: 0;
    border-bottom: 1px solid var(--border);
    text-align: left;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .page-events .data-table td::before {
    color: var(--muted-foreground);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .page-events .data-table td:nth-child(1)::before { content: 'Programme'; }
  .page-events .data-table td:nth-child(2)::before { content: 'Day'; }
  .page-events .data-table td:nth-child(3)::before { content: 'Time'; }
  .page-events .data-table td:nth-child(4)::before { content: 'Audience'; }

  .page-events .data-table td:last-child {
    border-bottom: 0;
  }

  .page-events .data-table td[colspan] {
    display: block;
    padding: 0;
    border: 0;
  }

  .page-events .data-table td[colspan]::before {
    content: none;
  }

  .page-events .data-table td[colspan] .events-section-message {
    width: 100%;
    border: 0;
    border-radius: 0;
  }

  .page-events .data-table td[colspan] .brand-loader {
    width: 100%;
    border-radius: 0;
  }

  .page-events .cta-banner {
    padding: 4.5rem 0;
  }

  .page-events .cta-banner__desc {
    margin-top: 1rem;
    font-size: 1rem;
  }

  .page-events .cta-banner__buttons {
    margin-top: 1.75rem;
  }
}

@media (min-width: 640px) and (max-width: 767px) {
  .page-events .data-table table {
    min-width: 0;
    table-layout: fixed;
  }

  .page-events .data-table th,
  .page-events .data-table td,
  .page-events .data-table td:nth-child(n+3) {
    padding: 0.8rem 0.5rem;
    font-size: 0.78rem;
  }

  .page-events .data-table td:nth-child(-n+2) {
    overflow-wrap: anywhere;
  }
}

/* ===== DONATE PAGE ===== */
.donate-section {
  padding: 0.4rem 0 4.2rem;
  position: relative;
  z-index: 20;
  margin-top: 20px;
  margin-bottom: 0;
  background: linear-gradient(180deg, hsla(215, 45%, 97%, 0.95) 0%, transparent 100%);
}

.donate-modern {
  max-width: 41rem;
  margin: 0 auto;
  padding-top: 2.25rem;
  text-align: center;
}

.donate-modern__label {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.donate-modern__title {
  margin-top: 0.5rem;
  font-family: var(--font-serif);
  font-size: clamp(2.15rem, 3.3vw, 2.85rem);
  line-height: 1.1;
  color: var(--card-foreground);
  text-wrap: balance;
}

.donate-modern__desc {
  margin-top: 0.85rem;
  font-size: 1rem;
  line-height: 1.6;
  max-width: 37rem;
  margin-left: auto;
  margin-right: auto;
  color: var(--muted-foreground);
}

.donate-modern__panel {
  margin-top: 1.85rem;
  border-radius: 1.05rem;
  border: 1px solid var(--border);
  background: var(--card);
  padding: 1.25rem;
  box-shadow: 0 18px 38px rgba(16, 30, 52, 0.06), 0 2px 10px rgba(16, 30, 52, 0.03);
  text-align: left;
}

.donate-modern__frequency {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: linear-gradient(180deg, #eef3f8, #eaf0f6);
  border-radius: 0.6rem;
  padding: 0.25rem;
  gap: 0.2rem;
}

.donate-modern__frequency-btn {
  border: 1px solid transparent;
  background: transparent;
  border-radius: 0.48rem;
  padding: 0.62rem 0.45rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted-foreground);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.donate-modern__frequency-btn.is-active {
  background: var(--card);
  color: var(--primary);
  border-color: hsla(215, 65%, 30%, 0.18);
  box-shadow: 0 1px 1px rgba(16, 30, 52, 0.06);
}

.donate-card__amount-label {
  margin-top: 1.25rem;
  margin-bottom: 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.donate-card__amount-label--custom {
  margin-top: 1.25rem;
  margin-bottom: 0.65rem;
}

.donate-amounts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.55rem;
}

.donate-amounts--modern {
  grid-template-columns: repeat(3, 1fr);
}

.donate-amount-btn {
  min-height: 2.55rem;
  padding: 0.7rem 0.9rem;
  border-radius: 0.625rem;
  border: 1px solid var(--border);
  background: var(--card);
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  color: var(--foreground);
  font-variant-numeric: tabular-nums;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.15s ease;
  cursor: pointer;
}

.donate-amount-btn:hover {
  border-color: hsla(215, 65%, 30%, 0.35);
  background: hsla(215, 65%, 30%, 0.05);
  transform: translateY(-1px);
}

.donate-amount-btn.active {
  border-color: var(--primary);
  background: hsla(215, 65%, 30%, 0.1);
  color: var(--primary);
}

.donate-custom-input {
  position: relative;
}

.donate-custom-input--modern {
  margin-top: 0.3rem;
}

.donate-custom-input__symbol {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--muted-foreground);
}

.donate-custom-input input {
  width: 100%;
  min-height: 2.5rem;
  padding: 0.65rem 1rem 0.65rem 2.1rem;
  border-radius: 0.625rem;
  border: 1px solid var(--border);
  background: var(--card);
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--foreground);
  font-variant-numeric: tabular-nums;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.donate-custom-input input::placeholder {
  color: var(--muted-foreground);
  opacity: 0.65;
}

.donate-custom-input input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px hsla(215, 65%, 30%, 0.16);
}

.donate-modern__allocations {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.55rem;
}

.donate-modern__purpose-select {
  width: 100%;
  min-height: 2.55rem;
  border-radius: 0.62rem;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--foreground);
  padding: 0.6rem 0.75rem;
  font-size: 0.95rem;
}

.donate-modern__purpose-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px hsla(215, 65%, 30%, 0.12);
}

.donate-modern__purpose-other {
  margin-top: 0.55rem;
}

.donate-modern__purpose-other-input {
  width: 100%;
  min-height: 2.5rem;
  padding: 0.65rem 1rem;
  border-radius: 0.625rem;
  border: 1px solid var(--border);
  background: var(--card);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--foreground);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.donate-modern__purpose-other-input::placeholder {
  color: var(--muted-foreground);
  opacity: 0.7;
}

.donate-modern__purpose-other-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px hsla(215, 65%, 30%, 0.12);
}

.donate-modern__allocation {
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 0.6rem;
  padding: 0.6rem 0.7rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.84rem;
  color: var(--muted-foreground);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.donate-modern__allocation .material-symbols-outlined {
  font-size: 1rem;
  color: var(--primary);
  opacity: 0.82;
}

.donate-modern__allocation.is-active {
  border-color: var(--primary);
  background: hsla(215, 65%, 30%, 0.1);
  color: var(--primary);
}

.donate-modern__summary {
  margin-top: 1.2rem;
  padding-top: 0.95rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.donate-modern__summary-main {
  padding-right: 0.2rem;
  text-align: left;
}

.donate-modern__summary-label {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted-foreground);
}

.donate-modern__summary-value {
  margin: 0.12rem 0;
  font-family: var(--font-serif);
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--card-foreground);
  font-variant-numeric: tabular-nums;
  line-height: 1.05;
}

.donate-modern__summary-meta {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted-foreground);
}

.donate-modern__frequency-note {
  margin: 0.65rem 0 0;
  color: var(--muted-foreground);
  font-size: 0.83rem;
  line-height: 1.45;
}

.donate-manage-form {
  display: grid;
  gap: 0.82rem;
}

.donate-modern__secondary-action {
  margin: 0.9rem 0 0;
  font-size: 0.85rem;
  color: var(--muted-foreground);
  text-align: center;
}

.donate-modern__link-btn {
  border: 0;
  background: transparent;
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  padding: 0;
}

.donate-popup__dialog--compact {
  width: min(30rem, calc(100% - 1.2rem));
}

.donate-popup__dialog--compact .donate-popup__header {
  padding-bottom: 0.65rem;
}

.donate-popup__dialog--compact .donate-popup__header .donate-popup__intro {
  margin-top: 0.45rem;
  margin-bottom: 0;
}

.donate-popup__dialog--compact .donate-popup__body {
  padding-top: 0.5rem;
}

.donate-popup__dialog--compact .donate-manage-form {
  gap: 0.6rem;
}

.donate-popup__dialog--compact .donate-popup__field {
  margin: 0;
}

.donate-popup__dialog--compact .donate-popup__actions {
  margin-top: 0.35rem;
}

.donate-modern__gift-aid {
  margin-top: 0.8rem;
  border: 0;
  background: transparent;
  border-radius: 0;
  padding: 0.15rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.83rem;
  color: var(--muted-foreground);
  line-height: 1.4;
}

.donate-modern__gift-aid input {
  margin-top: 0;
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
  accent-color: var(--primary);
}

.donate-modern__impact-row {
  margin-top: 0.55rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  transition: 0.5s;
}

.donate-modern__impact-row p {
  margin: 0;
  border: 1px solid var(--border);
  background: var(--secondary);
  border-radius: 0.6rem;
  padding: 0.55rem 0.65rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.55rem;
}

.donate-modern__impact-row span {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted-foreground);
}

.donate-modern__impact-row strong {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--card-foreground);
  font-variant-numeric: tabular-nums;
}

.donate-modern__impact-row.is-muted {
  opacity: 0.45;
}

.donate-modern__submit {
  width: 100%;
  margin-top: 0.9rem;
  justify-content: center;
  font-weight: 700;
}

.donate-modern__submit:focus-visible,
.donate-modern__frequency-btn:focus-visible,
.donate-amount-btn:focus-visible,
.donate-modern__allocation:focus-visible {
  outline: 2px solid hsla(215, 65%, 30%, 0.5);
  outline-offset: 2px;
}

.donate-modern__trust {
  margin-top: 0.8rem;
  padding-top: 0.75rem;
  border-top: 1px dashed hsla(215, 35%, 30%, 0.2);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  justify-content: center;
}

.donate-modern__trust span {
  font-size: 0.76rem;
  color: var(--muted-foreground);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.donate-modern__trust svg {
  width: 0.82rem;
  height: 0.82rem;
  color: var(--primary);
}

.donate-popup {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

.donate-popup.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.donate-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13, 26, 44, 0.58);
  backdrop-filter: blur(5px);
  opacity: 0;
  transition: opacity 0.24s ease;
}

.donate-popup__dialog {
  position: relative;
  width: min(44rem, calc(100% - 2rem));
  max-height: calc(100vh - 2rem);
  overflow: auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  box-shadow: 0 24px 54px rgba(16, 30, 52, 0.28);
  transform: translateY(12px) scale(0.98);
  opacity: 0;
  transition: transform 0.24s ease, opacity 0.24s ease;
}

.donate-popup.is-open .donate-popup__backdrop {
  opacity: 1;
}

.donate-popup.is-open .donate-popup__dialog {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.donate-popup__close {
  position: absolute;
  right: 0.8rem;
  top: 0.8rem;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 999px;
  background: var(--secondary);
  color: var(--muted-foreground);
}

.donate-popup__close svg {
  width: 1rem;
  height: 1rem;
  margin-top: 0.15rem;
}

.donate-popup__header {
  padding: 1.2rem 1.2rem 0.8rem;
}

.donate-popup__eyebrow {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
}

.donate-popup__header h3 {
  margin: 0.45rem 0 0;
  font-family: var(--font-serif);
  font-size: 1.75rem;
  color: var(--card-foreground);
}

.donate-popup__progress {
  margin: 0 1.2rem;
  padding: 0.9rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
}

.donate-popup__step {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--muted-foreground);
}

.donate-popup__step span {
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
}

.donate-popup__step.is-active {
  color: var(--primary);
}

.donate-popup__step.is-active span {
  background: hsla(215, 65%, 30%, 0.1);
  border-color: hsla(215, 65%, 30%, 0.4);
}

.donate-popup__step small {
  font-size: 0.78rem;
  font-weight: 600;
}

.donate-popup__progress-line {
  width: 3.1rem;
  height: 1px;
  background: var(--border);
}

.donate-popup__body {
  padding: 1.2rem;
}

.donate-popup__panel {
  display: none;
}

.donate-popup__panel.is-active {
  display: block;
}

.donate-popup__intro {
  margin: 0 0 1rem;
  color: var(--muted-foreground);
  font-size: 0.92rem;
}

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

.donate-popup__field {
  display: block;
  margin-bottom: 0.75rem;
}

.donate-popup__field--purpose-other[hidden] {
  display: none;
}

.donate-popup__field span {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.donate-popup__field input,
.donate-popup__field select {
  width: 100%;
  min-height: 2.5rem;
  border-radius: 0.6rem;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--foreground);
  padding: 0.6rem 0.72rem;
  font-size: 0.95rem;
}

.donate-popup__gift-aid-group {
  margin-top: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 0.7rem;
  background: var(--secondary);
  padding: 0.7rem;
}

.donate-popup__checkbox {
  margin-top: 0;
  border: 0;
  background: transparent;
  border-radius: 0;
  padding: 0;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.86rem;
  color: var(--muted-foreground);
}

.donate-popup__checkbox input {
  margin-top: 0.1rem;
}

.donate-popup__summary {
  margin-top: 0.65rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.donate-popup__summary span {
  display: block;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted-foreground);
}

.donate-popup__summary strong {
  display: block;
  margin-top: 0.3rem;
  font-family: var(--font-serif);
  font-size: 1.45rem;
  color: var(--card-foreground);
}

.donate-popup__actions {
  margin-top: 1rem;
  display: flex;
  gap: 0.65rem;
}

.donate-popup__actions .btn {
  flex: 1;
  justify-content: center;
}

.donate-popup__section-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--card-foreground);
}

.donate-popup__payment-note {
  margin: 0.85rem 0 0;
  font-size: 0.86rem;
  color: var(--muted-foreground);
}

.donate-popup__gift-aid-fields {
  margin-top: 0.7rem;
  padding-top: 0.7rem;
  border-top: 1px dashed hsla(215, 35%, 30%, 0.24);
  display: block;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transform: translateY(-0.25rem);
  pointer-events: none;
  transition:
    max-height 0.28s ease,
    opacity 0.22s ease,
    transform 0.28s ease;
}

.donate-popup__gift-aid-fields.is-open {
  max-height: 28rem;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.donate-popup__gift-aid-note {
  margin: 0 0 0.6rem;
  font-size: 0.82rem;
  color: var(--muted-foreground);
}

.donate-popup__summary--final {
  margin-top: 0.75rem;
}

.donate-confirm {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.donate-confirm.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.donate-confirm__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13, 26, 44, 0.55);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.donate-confirm__dialog {
  position: relative;
  width: min(35rem, calc(100% - 1.6rem));
  border-radius: 1.2rem;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  box-shadow: 0 24px 56px rgba(16, 30, 52, 0.3);
  padding: 1.35rem 1.35rem 1.2rem;
  transform: translateY(10px) scale(0.98);
  opacity: 0;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.donate-confirm.is-open .donate-confirm__backdrop {
  opacity: 1;
}

.donate-confirm.is-open .donate-confirm__dialog {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.donate-confirm__badge {
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e4f2ff 0%, #d6ecff 100%);
  color: #1363b8;
  border: 1px solid rgba(19, 99, 184, 0.24);
}

.donate-confirm__badge.is-success {
  background: linear-gradient(135deg, #e4f2ff 0%, #d6ecff 100%);
  color: #1363b8;
  border-color: rgba(19, 99, 184, 0.24);
}

.donate-confirm__badge.is-warning {
  background: linear-gradient(135deg, #fff4d6 0%, #ffe9b0 100%);
  color: #a26a00;
  border-color: rgba(162, 106, 0, 0.24);
}

.donate-confirm__badge.is-info {
  background: linear-gradient(135deg, #e9eef7 0%, #dae5f5 100%);
  color: #30507d;
  border-color: rgba(48, 80, 125, 0.22);
}

.donate-confirm__badge svg {
  width: 1.2rem;
  height: 1.2rem;
}

.donate-confirm__eyebrow {
  margin: 0.7rem 0 0;
  color: #1363b8;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.7rem;
  font-weight: 700;
}

.donate-confirm__dialog h4 {
  margin: 0.35rem 0 0;
  font-family: var(--font-serif);
  font-size: 1.52rem;
  color: var(--card-foreground);
  line-height: 1.2;
}

.donate-confirm__dialog p {
  margin: 0.72rem 0 0;
  color: var(--muted-foreground);
  line-height: 1.58;
  font-size: 1.02rem;
}

.donate-confirm__actions {
  margin-top: 1.15rem;
  display: flex;
  gap: 0.75rem;
}

.donate-confirm__actions .btn {
  flex: 1;
  justify-content: center;
}

.donate-confirm__notice.is-hidden {
  display: none;
}

.donate-receipt {
  text-align: left;
}

.donate-receipt__header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.donate-receipt__logo {
  width: 3rem;
  height: 3rem;
  object-fit: contain;
  flex-shrink: 0;
}

.donate-receipt__eyebrow {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #1363b8;
  font-weight: 600;
}

.donate-receipt__brand h4 {
  margin: 0.15rem 0 0;
  font-family: var(--font-sans);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--foreground);
}

.donate-receipt__thanks {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #334155;
}

.donate-receipt__details {
  margin: 0;
  padding: 0.85rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.donate-receipt__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.35rem 0;
}

.donate-receipt__row dt {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  font-weight: 500;
}

.donate-receipt__row dd {
  margin: 0;
  font-size: 0.875rem;
  color: var(--foreground);
  text-align: right;
}

.donate-receipt__amount {
  font-size: 1.125rem !important;
  font-weight: 700;
  color: #1363b8 !important;
}

.donate-receipt__status-note {
  margin: 0.85rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #475569;
}

.donate-receipt__footer {
  margin-top: 1rem;
  font-size: 0.75rem;
  line-height: 1.55;
  color: var(--muted-foreground);
}

.donate-receipt__footer p {
  margin: 0.15rem 0;
}

.donate-receipt__footnote {
  margin-top: 0.65rem !important;
  font-style: italic;
}

.donate-confirm__dialog:has(.donate-receipt:not([hidden])) {
  width: min(28rem, calc(100% - 1.6rem));
}

@media print {
  @page {
    size: auto;
    margin: 14mm;
  }

  html,
  body {
    width: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #ffffff !important;
  }

  body > :not(.donate-confirm) {
    display: none !important;
  }

  .donate-confirm {
    display: block !important;
    position: static !important;
    inset: auto !important;
    width: 100% !important;
    min-height: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: none !important;
  }

  .donate-confirm__backdrop,
  .donate-confirm__actions,
  .donate-confirm__notice {
    display: none !important;
  }

  .donate-confirm__dialog {
    position: static;
    width: 100% !important;
    max-width: none;
    box-shadow: none !important;
    border: none !important;
    transform: none !important;
    opacity: 1 !important;
    padding: 0 !important;
    background: #ffffff !important;
    break-inside: avoid-page;
    page-break-inside: avoid;
  }

  .donate-receipt {
    display: block !important;
    break-inside: avoid-page;
    page-break-inside: avoid;
  }
}

.donate-popup__gift-aid-fields[hidden] {
  display: none;
}

.donate-popup__dialog--gift-aid:not(.is-gift-aid-selected) {
  max-width: 34rem;
}

.donate-popup__dialog--gift-aid:not(.is-gift-aid-selected) #popup-gift-aid-declaration,
.donate-popup__dialog--gift-aid:not(.is-gift-aid-selected) .donate-popup__summary {
  display: none;
}

.donate-embedded {
  position: fixed;
  inset: 0;
  z-index: 1350;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.donate-embedded.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.donate-embedded__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13, 26, 44, 0.64);
}

.donate-embedded__dialog {
  position: relative;
  width: min(60rem, calc(100% - 1.2rem));
  max-height: calc(100vh - 1.2rem);
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: #ffffff;
  box-shadow: 0 24px 56px rgba(16, 30, 52, 0.35);
  overflow: hidden;
}

.donate-embedded__header {
  position: relative;
  padding: 1rem 1rem 0.75rem;
  border-bottom: 1px solid var(--border);
  background: #ffffff;
}

.donate-embedded__header h3 {
  margin: 0.18rem 0 0;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--card-foreground);
}

.donate-embedded__header .donate-popup__close {
  position: absolute;
  top: 0.7rem;
  right: 0.75rem;
}

.donate-embedded__body {
  padding: 0.9rem;
  max-height: calc(100vh - 7.4rem);
  overflow: auto;
  background: #ffffff;
}

.donate-btn--primary {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.donate-btn--primary:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

@media (min-width: 640px) {
  .donate-amounts {
    grid-template-columns: repeat(4, 1fr);
  }
  .donate-amounts--modern {
    grid-template-columns: repeat(3, 1fr);
  }

  .donate-modern__panel {
    padding: 1.35rem 1.4rem;
  }
}

@media (max-width: 680px) {
  .donate-modern__title {
    font-size: clamp(1.9rem, 8.2vw, 2.25rem);
  }

  .donate-modern__desc {
    font-size: 0.95rem;
  }

  .donate-modern__panel {
    padding: 1rem;
  }

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

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

  .donate-modern__summary {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

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

  .donate-modern__trust {
    justify-content: flex-start;
  }

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

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

  .donate-popup__actions {
    flex-direction: column;
  }

  .donate-popup {
    align-items: center;
  }

  .donate-popup__dialog {
    width: min(94vw, 42rem);
    max-height: min(92vh, 52rem);
    border-radius: 1rem;
    overscroll-behavior: contain;
  }

  .donate-popup__close {
    width: 2.35rem;
    height: 2.35rem;
    right: 0.7rem;
    top: 0.65rem;
  }

  .donate-popup__header {
    padding: 1rem 1rem 0.65rem;
  }

  .donate-popup__header h3 {
    font-size: 1.42rem;
    line-height: 1.2;
    padding-right: 2.2rem;
  }

  .donate-popup__body {
    padding: 0.9rem 1rem 1rem;
  }

  .donate-popup__field input,
  .donate-popup__field select {
    min-height: 2.75rem;
    font-size: 1rem;
  }

  .donate-popup__checkbox {
    font-size: 0.92rem;
  }

  .donate-popup__dialog--compact {
    max-height: 84vh;
  }

  .donate-popup__dialog--compact .donate-popup__header {
    padding-bottom: 0.55rem;
  }

  .donate-popup__dialog--compact .donate-popup__body {
    padding-top: 0.35rem;
  }

  .donate-confirm {
    align-items: center;
  }

  .donate-confirm__dialog {
    width: min(94vw, 30rem);
    border-radius: 1rem;
    padding: 1rem 1rem 0.95rem;
  }

  .donate-confirm__actions {
    flex-direction: column;
  }

  .donate-confirm__actions .btn {
    width: 100%;
  }

  .donate-embedded {
    align-items: center;
  }

  .donate-embedded__dialog {
    width: min(94vw, 44rem);
    max-height: min(94vh, 56rem);
    border-radius: 1rem;
  }

  .donate-embedded__header {
    padding: 0.85rem 0.9rem 0.62rem;
  }

  .donate-embedded__header h3 {
    font-size: 1.2rem;
    padding-right: 2.1rem;
  }

  .donate-embedded__body {
    padding: 0.62rem;
    max-height: calc(min(94vh, 56rem) - 5.8rem);
  }
}

@media (max-width: 900px) {
  .donation-areas {
    gap: 1.1rem;
  }

  .donation-area {
    padding: 1.35rem;
    gap: 0.9rem;
  }

  .donation-area__title {
    font-size: 1.15rem;
    line-height: 1.25;
    margin: 0;
  }

  .donation-area__desc {
    margin-top: 0.45rem;
    font-size: 0.84rem;
    line-height: 1.55;
  }

  .donation-area__amount {
    margin-top: 0.65rem;
    font-size: 0.82rem;
  }

  .bank-details__grid {
    grid-template-columns: 1fr;
  }

  .bank-detail__row {
    align-items: flex-start;
    gap: 0.45rem;
  }

  .bank-detail__value {
    overflow-wrap: anywhere;
  }
}

@media (max-width: 560px) {
  .container,
  .container--narrow {
    width: min(100%, calc(100% - 1rem));
  }

  .hero__content--center {
    padding-left: 0.4rem;
    padding-right: 0.4rem;
  }

  .donate-modern__frequency {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }

  .donate-modern__frequency-btn {
    width: 100%;
    justify-content: center;
  }

  .donate-modern__trust {
    gap: 0.45rem 0.6rem;
  }

  .donation-area__icon {
    width: 3rem;
    height: 3rem;
  }

  .donation-areas {
    gap: 0.85rem;
  }

  .donation-area {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.72rem;
    padding: 1rem 0.9rem;
    border-radius: 0.9rem;
  }

  .donation-area__icon {
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 0.6rem;
  }

  .donation-area__icon svg {
    width: 1.4rem;
    height: 1.4rem;
  }

  .donation-area__title {
    font-size: 1.02rem;
  }

  .donation-area__desc {
    margin-top: 0.38rem;
    font-size: 0.82rem;
    line-height: 1.5;
  }

  .donation-area__amount {
    margin-top: 0.55rem;
    font-size: 0.8rem;
  }
}

/* Impact stats */
.impact-stats {
  display: grid;
  gap: 1rem;
}

.impact-stat {
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: var(--card);
  padding: 2rem;
  text-align: center;
}

.impact-stat__number {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--primary);
}

.impact-stat__label {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

@media (min-width: 640px) {
  .impact-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .impact-stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Donation areas */
.donation-areas {
  display: grid;
  gap: 2rem;
}

.donation-area {
  display: flex;
  gap: 1.25rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: var(--card);
  padding: 2rem;
}

.donation-area__icon {
  width: 3.5rem;
  height: 3.5rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  background: hsla(215, 65%, 30%, 0.1);
}

.donation-area__icon svg {
  width: 1.75rem;
  height: 1.75rem;
  color: var(--primary);
}

.donation-area__title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--card-foreground);
}

.donation-area__desc {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted-foreground);
}

.donation-area__amount {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
}

@media (min-width: 640px) {
  .donation-areas {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Planned new mosque design gallery (donate page) */
.new-mosque-design-gallery {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.new-mosque-design-card {
  margin: 0;
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.new-mosque-design-card img {
  width: 100%;
  height: 100%;
  min-height: 12rem;
  object-fit: cover;
}

.new-mosque-design-gallery .new-mosque-design-card:first-child {
  grid-column: 1 / -1;
}

.new-mosque-design-gallery .new-mosque-design-card:first-child img {
  min-height: 16rem;
}

@media (min-width: 768px) {
  .new-mosque-design-gallery {
    grid-template-columns: repeat(3, 1fr);
  }
  .new-mosque-design-gallery .new-mosque-design-card:first-child {
    grid-column: auto;
  }
  .new-mosque-design-gallery .new-mosque-design-card:first-child img {
    min-height: 12rem;
  }
}

@media (min-width: 1200px) {
  .new-mosque-design-gallery {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Bank details */
.bank-details__grid {
  margin-top: 1.5rem;
  display: grid;
  gap: 1rem;
}

.bank-detail {
  background: var(--secondary);
  border-radius: 0.5rem;
  padding: 1rem;
}

.bank-detail__label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted-foreground);
}

.bank-detail__value {
  margin-top: 0.25rem;
  font-weight: 600;
  color: var(--foreground);
}

.bank-detail__row {
  margin-top: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.bank-detail__row .bank-detail__value {
  margin-top: 0;
}

.bank-detail__copy {
  position: relative;
  width: 1.9rem;
  height: 1.9rem;
  border: 1px solid hsla(215, 65%, 30%, 0.16);
  background: transparent;
  color: var(--primary);
  border-radius: 0.45rem;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.bank-detail__copy svg {
  width: 0.92rem;
  height: 0.92rem;
}

.bank-detail__copy:hover {
  background: hsla(215, 65%, 30%, 0.1);
  border-color: hsla(215, 65%, 30%, 0.3);
}

.bank-detail__copy.is-copied {
  background: hsla(141, 45%, 42%, 0.14);
  border-color: hsla(141, 45%, 42%, 0.35);
  color: #1f6b44;
}

.bank-detail__copy.is-copied::after {
  content: "Copied";
  position: absolute;
  right: calc(100% + 0.35rem);
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.64rem;
  font-weight: 600;
  color: #1f6b44;
  background: #e8f5ee;
  border: 1px solid #bfe3ce;
  border-radius: 9999px;
  padding: 0.1rem 0.4rem;
  pointer-events: none;
}

@media (min-width: 640px) {
  .bank-details__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Zakat & Sadaqah */
.zakat-grid {
  display: grid;
  gap: 3rem;
}

.zakat-grid h3 {
  font-family: var(--font-serif);
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--primary-foreground);
}

.zakat-grid p {
  margin-top: 1rem;
  line-height: 1.6;
  color: hsla(210, 30%, 98%, 0.8);
}

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

/* ===== CONTACT PAGE ===== */
.contact-cards {
  display: grid;
  gap: 1rem;
  position: relative;
  z-index: 20;
  margin-top: -3rem;
}

.contact-card {
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: var(--card);
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

.contact-card__icon {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: hsla(215, 65%, 30%, 0.1);
  margin: 0 auto;
}

.contact-card__icon svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--primary);
}

.contact-card__title {
  margin-top: 0.75rem;
  font-weight: 600;
  color: var(--card-foreground);
}

.contact-card__details {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.contact-card__details p {
  margin: 0;
}

@media (min-width: 640px) {
  .contact-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .contact-cards {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Contact form */
.contact-grid {
  display: grid;
  gap: 4rem;
}

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

.form-row {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .form-row--2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--foreground);
  font-size: 0.875rem;
}

/* Prayer times selectors */
.prayer-select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted-foreground) 50%),
    linear-gradient(135deg, var(--muted-foreground) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% - 2px),
    calc(100% - 12px) calc(50% - 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2.5rem;
}

.prayer-select option {
  background: var(--card);
  color: var(--foreground);
}

.prayer-time-controls {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.prayer-time-controls__label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
}

.prayer-time-controls__group {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.toggle-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.toggle-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.toggle-chip__pill {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--foreground);
  font-size: 0.875rem;
  font-weight: 500;
  transition: background 150ms ease, border-color 150ms ease, box-shadow 150ms ease, color 150ms ease;
}

.toggle-chip input:checked + .toggle-chip__pill {
  border-color: hsla(215, 65%, 30%, 0.45);
  background: hsla(215, 65%, 30%, 0.08);
  box-shadow: 0 0 0 2px hsla(215, 65%, 30%, 0.12);
}

.toggle-chip input:focus-visible + .toggle-chip__pill {
  outline: none;
  box-shadow: 0 0 0 3px hsla(215, 65%, 30%, 0.18);
}

.prayer-col-sub {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted-foreground);
  background: hsla(210, 15%, 88%, 0.6);
}

.prayer-empty {
  text-align: center;
  padding: 1.5rem 1rem;
  color: var(--muted-foreground);
}

.prayer-times-error {
  text-align: center;
  padding: 1rem 1.5rem;
  color: var(--muted-foreground);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.quick-prayers__grid .prayer-times-error {
  grid-column: 1 / -1;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px hsla(215, 65%, 30%, 0.15);
}

.form-group textarea {
  resize: none;
}

.form-success {
  margin-top: 2rem;
  border-radius: 0.75rem;
  border: 1px solid hsla(215, 65%, 30%, 0.3);
  background: hsla(215, 65%, 30%, 0.05);
  padding: 2rem;
  text-align: center;
}

.form-status {
  display: grid;
  gap: 0.35rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1rem 1.125rem;
  line-height: 1.55;
}

.form-status[hidden] {
  display: none;
}

.form-status strong,
.form-status span {
  display: block;
}

.form-status--pending {
  border-color: hsla(215, 65%, 30%, 0.3);
  background: hsla(215, 65%, 30%, 0.06);
}

.form-status--error {
  border-color: hsl(0, 65%, 48%);
  background: hsl(0, 75%, 97%);
  color: hsl(0, 55%, 28%);
}

.form-status--error a {
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
}

.form-success__icon {
  width: 4rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: hsla(215, 65%, 30%, 0.1);
  margin: 0 auto;
}

.form-success__icon svg {
  width: 2rem;
  height: 2rem;
  color: var(--primary);
}

.form-success h3 {
  margin-top: 1rem;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--foreground);
}

.form-success p {
  margin-top: 0.5rem;
  color: var(--muted-foreground);
}

/* Map placeholder */
.map-placeholder {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
}

.map-placeholder iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* FAQ */
.faq-list {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: var(--card);
  padding: 1.5rem;
}

.faq-item__question {
  font-weight: 600;
  color: var(--card-foreground);
}

.faq-item__answer {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted-foreground);
}

/* ===== FULLSCREEN VIDEO MODAL ===== */
.video-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.video-fullscreen.active {
  display: flex;
  opacity: 1;
}

.video-fullscreen__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(8px);
}

.video-fullscreen__container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0.8);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.video-fullscreen.active .video-fullscreen__container {
  transform: scale(1);
}

.video-fullscreen__video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  max-width: 100vw;
  max-height: 100vh;
}

.video-fullscreen__controls {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  padding: 2rem;
  pointer-events: none;
}

.video-fullscreen__controls-group {
  display: flex;
  gap: 1rem;
  align-items: center;
  pointer-events: auto;
}

.video-fullscreen__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.2s ease;
  color: white;
  pointer-events: auto;
}

.video-fullscreen__btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.1);
}

.video-fullscreen__btn svg {
  width: 1.5rem;
  height: 1.5rem;
}

.video-fullscreen__btn--exit {
  background: rgba(255, 255, 255, 0.2);
}

.video-fullscreen__btn--exit:hover {
  background: rgba(255, 255, 255, 0.3);
}

@media (max-width: 768px) {
  .video-fullscreen__controls {
    padding: 1rem;
  }
  
  .video-fullscreen__btn {
    width: 3rem;
    height: 3rem;
  }

  .video-fullscreen__btn svg {
    width: 1.25rem;
    height: 1.25rem;
  }
}

/* ===== CHILDREN'S CLASSES PAGE ===== */
.page-maktab {
  background:
    radial-gradient(circle at 1px 1px, rgba(30, 58, 95, 0.07) 1px, transparent 0) 0 0 / 18px 18px,
    linear-gradient(180deg, #f0f7ff 0%, #fff9ee 55%, #f5f8fc 100%);
}

.maktab {
  padding-bottom: 2rem;
}

.maktab-hero {
  padding: 2.5rem 1.25rem 1.5rem;
  text-align: center;
}

.maktab-hero__inner {
  position: relative;
  max-width: 36rem;
  margin: 0 auto;
}

.maktab-hero__decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.maktab-hero__star,
.maktab-hero__book {
  position: absolute;
  color: hsl(43, 85%, 55%);
  opacity: 0.55;
}

.maktab-hero__star--1 {
  top: -0.5rem;
  left: 0.5rem;
  width: 1.5rem;
  height: 1.5rem;
  transform: rotate(-12deg);
}

.maktab-hero__star--2 {
  top: 0.25rem;
  right: 0.25rem;
  width: 1.1rem;
  height: 1.1rem;
  transform: rotate(18deg);
}

.maktab-hero__book {
  bottom: 0.5rem;
  right: 1rem;
  width: 2rem;
  height: 2rem;
  color: var(--primary);
  opacity: 0.2;
}

.maktab-hero__title {
  margin: 0;
  font-family: 'Fredoka', var(--font-sans);
  font-size: clamp(2.25rem, 7vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--primary);
  letter-spacing: 0.01em;
}

.maktab-hero__desc {
  margin: 0.85rem auto 0;
  max-width: 28rem;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--muted-foreground);
}

.maktab-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.maktab-chips__item {
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 2px solid hsl(43, 80%, 62%);
  background: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--primary);
}

.maktab-gallery-section {
  padding: 0 1.25rem 1.5rem;
}

.maktab-gallery-section__inner {
  max-width: 56rem;
  margin: 0 auto;
}

.maktab-gallery-section__title {
  margin: 0 0 1rem;
  font-family: 'Fredoka', var(--font-sans);
  font-size: 1.25rem;
  font-weight: 600;
  text-align: center;
  color: var(--primary);
}

.maktab-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}

.maktab-gallery__status {
  grid-column: 1 / -1;
  margin: 0;
  padding: 1.5rem 1rem;
  text-align: center;
  font-size: 0.95rem;
  color: var(--text-muted, #5a6578);
}

.maktab-gallery__item {
  margin: 0;
  border-radius: 1.1rem;
  overflow: hidden;
  border: 3px solid #fff;
  background: #fff;
  box-shadow: 0 10px 24px rgba(30, 58, 95, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.maktab-gallery__item:hover {
  transform: translateY(-4px) rotate(0deg) !important;
  box-shadow: 0 14px 28px rgba(30, 58, 95, 0.16);
}

.maktab-gallery__item--tilt-left {
  transform: rotate(-2deg);
}

.maktab-gallery__item--tilt-right {
  transform: rotate(2deg);
}

.maktab-gallery__item img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 9.5rem;
  object-fit: cover;
}

.maktab-cta {
  padding: 0 1.25rem 2.5rem;
}

.maktab-cta__card {
  max-width: 32rem;
  margin: 0 auto;
  padding: 1.5rem 1.35rem;
  border-radius: 1.25rem;
  border: 2px solid hsl(215, 45%, 85%);
  background: #fff;
  box-shadow: 0 8px 24px rgba(30, 58, 95, 0.08);
  text-align: center;
}

.maktab-cta__title {
  margin: 0;
  font-family: 'Fredoka', var(--font-sans);
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--primary);
}

.maktab-cta__text {
  margin: 0.65rem 0 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--muted-foreground);
}

.maktab-cta__btn {
  margin-top: 1.1rem;
}

@media (min-width: 640px) {
  .maktab-gallery {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  .maktab-gallery__item img {
    min-height: 10.5rem;
  }
}

@media (min-width: 768px) {
  .maktab-hero {
    padding: 3rem 1.5rem 2rem;
  }

  .maktab-gallery-section {
    padding: 0 1.5rem 2rem;
  }

  .maktab-cta {
    padding: 0 1.5rem 3rem;
  }
}

body.maktab-dev-locked {
  overflow: hidden;
}

.maktab-dev-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(13, 26, 44, 0.72);
  backdrop-filter: blur(6px);
}

.maktab-dev-overlay__card {
  width: min(100%, 22rem);
  padding: 1.75rem 1.5rem;
  border-radius: 1rem;
  border: 2px solid hsl(215, 45%, 85%);
  background: #fff;
  box-shadow: 0 16px 40px rgba(30, 58, 95, 0.2);
  text-align: center;
}

.maktab-dev-overlay__card h2 {
  margin: 0;
  font-family: 'Fredoka', var(--font-sans);
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--primary);
}

.maktab-dev-overlay__card p {
  margin: 0.75rem 0 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--muted-foreground);
}

.maktab-dev-overlay__card .btn {
  margin-top: 1.25rem;
}

/* Cookie consent banner */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3000;
  padding: 1rem;
  background: rgba(13, 26, 44, 0.96);
  border-top: 1px solid hsl(215, 45%, 25%);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.2);
}

.cookie-consent__inner {
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-consent__text {
  margin: 0;
  flex: 1 1 16rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: hsl(210, 20%, 92%);
}

.cookie-consent__text a {
  color: hsl(43, 90%, 65%);
  text-decoration: underline;
}

.cookie-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.cookie-consent__actions .btn {
  min-width: 6.5rem;
}

.cookie-settings-link {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.form-privacy-note {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--muted-foreground);
}

.form-privacy-note a,
.donate-popup__intro a {
  color: var(--primary);
  text-decoration: underline;
}

.external-map {
  min-height: 20rem;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-align: center;
  color: var(--muted-foreground);
  background: var(--secondary);
}

.external-map p {
  max-width: 30rem;
  margin: 0;
  line-height: 1.6;
}

/* Privacy policy prose */
.privacy-prose {
  max-width: 42rem;
  margin: 0 auto;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--foreground);
}

.privacy-prose h2 {
  margin: 2rem 0 0.75rem;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
}

.privacy-prose h2:first-child {
  margin-top: 0;
}

.privacy-prose p,
.privacy-prose ul {
  margin: 0 0 1rem;
}

.privacy-prose ul {
  padding-left: 1.25rem;
}

.privacy-prose li {
  margin-bottom: 0.35rem;
}

.privacy-prose a {
  color: var(--primary);
  text-decoration: underline;
}
