@import url('https://fonts.googleapis.com/css2?family=Amiri:wght@400;700&family=Poppins:wght@300;400;500;600;700&display=swap');

body {
  font-family: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  min-height: 100vh;
  background-color: #0e1f39;
  /* Strong gold glow — top of document only (scrolls away); vw/vh so size isn’t tied to page length */
  background-image:
    radial-gradient(
      ellipse 85vw 58vh at 50% 0%,
      rgba(232, 190, 78, 0.11) 0%,
      rgba(201, 158, 38, 0.08) 14%,
      rgba(166, 124, 26, 0.04) 32%,
      rgba(140, 98, 22, 0.015) 52%,
      transparent 74%
    ),
    radial-gradient(
      ellipse 112vw 76vh at 50% 0%,
      rgba(184, 140, 40, 0.03) 0%,
      transparent 55%
    ),
    url('background.png');
  background-repeat: no-repeat, no-repeat, repeat;
  color: #fff;
}

/*
 * Homepage (body.home) — slightly stronger top wash + dividers/cards vs global body.
 */
body.home {
  background-image:
    radial-gradient(
      ellipse 85vw 58vh at 50% 0%,
      rgba(232, 190, 78, 0.15) 0%,
      rgba(201, 158, 38, 0.11) 14%,
      rgba(166, 124, 26, 0.055) 32%,
      rgba(140, 98, 22, 0.022) 52%,
      transparent 74%
    ),
    radial-gradient(
      ellipse 112vw 76vh at 50% 0%,
      rgba(184, 140, 40, 0.055) 0%,
      transparent 55%
    ),
    url('background.png');
}

body.home .home-section-rule {
  box-shadow:
    0 0 9px rgba(218, 165, 32, 0.3),
    0 0 22px rgba(218, 165, 32, 0.14),
    0 -5px 26px -14px rgba(218, 165, 32, 0.3),
    0 5px 26px -14px rgba(218, 165, 32, 0.3);
}

body.home .gold-glow-border {
  border-color: rgba(232, 196, 86, 0.48);
  box-shadow:
    0 0 12px rgba(218, 165, 32, 0.18),
    0 0 26px rgba(218, 165, 32, 0.1),
    0 0 42px rgba(166, 124, 26, 0.06);
}

body.home .mosque-surah-band {
  box-shadow:
    0 0 10px rgba(218, 165, 32, 0.34),
    0 0 26px rgba(218, 165, 32, 0.16),
    0 -7px 32px -14px rgba(218, 165, 32, 0.36),
    0 7px 32px -14px rgba(218, 165, 32, 0.36);
}

body.home .jummah-banner {
  box-shadow:
    0 0 8px rgba(218, 165, 32, 0.26),
    0 0 18px rgba(218, 165, 32, 0.12),
    0 -4px 24px -14px rgba(218, 165, 32, 0.28),
    0 8px 32px -14px rgba(218, 165, 32, 0.26);
}

body.home .umis-footer {
  box-shadow:
    0 0 9px rgba(218, 165, 32, 0.28),
    0 0 22px rgba(218, 165, 32, 0.12),
    0 -5px 26px -14px rgba(218, 165, 32, 0.28),
    0 5px 26px -14px rgba(218, 165, 32, 0.28);
}

/* Fixed tessellation (designer “tess-bg”) — sits behind all page sections */
.tess-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.05;
  background-size: 120px 120px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cdefs%3E%3Cpattern id='pF' x='0' y='0' width='120' height='120' patternUnits='userSpaceOnUse'%3E%3Ccircle fill='none' stroke='%23ffffff' stroke-width='0.8' cx='0' cy='0' r='60'/%3E%3Ccircle fill='none' stroke='%23ffffff' stroke-width='0.8' cx='120' cy='0' r='60'/%3E%3Ccircle fill='none' stroke='%23ffffff' stroke-width='0.8' cx='0' cy='120' r='60'/%3E%3Ccircle fill='none' stroke='%23ffffff' stroke-width='0.8' cx='120' cy='120' r='60'/%3E%3Ccircle fill='none' stroke='%23ffffff' stroke-width='0.8' cx='60' cy='0' r='60'/%3E%3Ccircle fill='none' stroke='%23ffffff' stroke-width='0.8' cx='60' cy='120' r='60'/%3E%3Ccircle fill='none' stroke='%23ffffff' stroke-width='0.8' cx='0' cy='60' r='60'/%3E%3Ccircle fill='none' stroke='%23ffffff' stroke-width='0.8' cx='120' cy='60' r='60'/%3E%3Ccircle fill='none' stroke='%23ffffff' stroke-width='0.55' cx='60' cy='60' r='17'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='120' height='120' fill='url(%23pF)'/%3E%3C/svg%3E");
}

/* Stack page content above .tess-bg (z-index 0) */
body > *:not(.tess-bg) {
  position: relative;
  z-index: 1;
}

/* Nav + mobile drawer stay above page sections (later siblings also use z-index: 1) */
#nav-placeholder {
  z-index: 50;
}

/* Gold frame + subtle outer glow — homepage cards, about mission cards, event cards, etc. */
.gold-glow-border,
.mission-statement-card {
  border: 1px solid rgba(232, 196, 86, 0.42);
  box-shadow:
    0 0 8px rgba(218, 165, 32, 0.12),
    0 0 18px rgba(218, 165, 32, 0.06),
    0 0 32px rgba(166, 124, 26, 0.04);
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

/* Stronger gold rim + halo on hover (events grid, featured card, mission cards, etc.) */
.gold-glow-border:hover,
.mission-statement-card:hover {
  border-color: rgba(245, 210, 110, 0.72);
  box-shadow:
    0 0 14px rgba(218, 165, 32, 0.4),
    0 0 30px rgba(218, 165, 32, 0.24),
    0 0 50px rgba(166, 124, 26, 0.14),
    0 16px 44px -14px rgba(218, 165, 32, 0.32);
}

body.home .gold-glow-border:hover {
  border-color: rgba(245, 210, 110, 0.78);
  box-shadow:
    0 0 16px rgba(218, 165, 32, 0.45),
    0 0 34px rgba(218, 165, 32, 0.28),
    0 0 54px rgba(166, 124, 26, 0.16),
    0 18px 48px -14px rgba(218, 165, 32, 0.36);
}

a.gold-glow-border:focus-visible {
  outline: none;
  border-color: rgba(245, 210, 110, 0.85);
  box-shadow:
    0 0 0 2px rgba(10, 22, 40, 0.9),
    0 0 0 4px rgba(218, 165, 32, 0.45),
    0 0 18px rgba(218, 165, 32, 0.42),
    0 0 36px rgba(218, 165, 32, 0.22);
}

/*
 * Section heading rules — same 1px stroke as Surah band (gold/40) + similar up/down gold bloom.
 * Flex sizing is applied in HTML (flex-1 / responsive) so mobile column stacks don’t stretch the bar.
 */
.home-section-rule {
  height: 1px;
  min-height: 1px;
  align-self: center;
  background-color: rgba(218, 165, 32, 0.4);
  box-shadow:
    0 0 6px rgba(218, 165, 32, 0.22),
    0 0 16px rgba(218, 165, 32, 0.1),
    0 -4px 22px -14px rgba(218, 165, 32, 0.22),
    0 4px 22px -14px rgba(218, 165, 32, 0.22);
}

/*
 * Mosque / Surah block — 1px gold/40 borders + glow (same stack as .home-section-rule).
 * Section must not use overflow:hidden or the shadow is clipped; clip lives on inner bg wrapper in HTML.
 */
.mosque-surah-band {
  border-top: 1px solid rgba(218, 165, 32, 0.4);
  border-bottom: 1px solid rgba(218, 165, 32, 0.4);
  box-shadow:
    0 0 8px rgba(218, 165, 32, 0.28),
    0 0 20px rgba(218, 165, 32, 0.12),
    0 -6px 28px -14px rgba(218, 165, 32, 0.3),
    0 6px 28px -14px rgba(218, 165, 32, 0.3);
}

/* Shared footer (components.js) — top edge matches .home-section-rule */
.umis-footer {
  border-top: 1px solid rgba(218, 165, 32, 0.4);
  box-shadow:
    0 0 6px rgba(218, 165, 32, 0.22),
    0 0 16px rgba(218, 165, 32, 0.1),
    0 -4px 22px -14px rgba(218, 165, 32, 0.22),
    0 4px 22px -14px rgba(218, 165, 32, 0.22);
}

/* Mobile Menu Toggle (Hamburger) */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
  z-index: 1002;
  position: relative;
}

.mobile-menu-toggle span {
  width: 26px;
  height: 3px;
  background: rgba(255, 255, 255, 0.9);
  transition: all 0.3s ease;
  border-radius: 2px;
}

.mobile-menu-toggle:hover span {
  background: #daa520;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Current page in main nav (desktop + mobile drawer) — gold + soft halo */
.nav-link--active {
  text-shadow:
    0 0 10px rgba(218, 165, 32, 0.5),
    0 0 22px rgba(218, 165, 32, 0.28),
    0 0 36px rgba(218, 165, 32, 0.14);
}

@media (prefers-reduced-motion: no-preference) {
  .nav-link--active {
    animation: nav-link-active-glow 3.4s ease-in-out infinite;
  }
}

@keyframes nav-link-active-glow {
  0%,
  100% {
    text-shadow:
      0 0 8px rgba(218, 165, 32, 0.42),
      0 0 18px rgba(218, 165, 32, 0.22),
      0 0 30px rgba(218, 165, 32, 0.1);
  }
  50% {
    text-shadow:
      0 0 14px rgba(218, 165, 32, 0.62),
      0 0 30px rgba(218, 165, 32, 0.38),
      0 0 48px rgba(218, 165, 32, 0.18);
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav-link--active {
    animation: none;
  }
}

/* Desktop: hide mobile menu and overlay */
.nav-links,
.nav-overlay {
  display: none;
}

/* Tablet and below - Activate Hamburger Menu */
@media (max-width: 900px) {
  nav {
    padding: 1rem 2rem;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .nav-links {
    display: flex;
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    max-width: 85vw;
    height: 100vh;
    background: rgba(10, 22, 40, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: flex-start;
    padding: 6rem 2rem 2rem;
    gap: 2rem;
    transition: right 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-left: 1px solid rgba(218, 165, 32, 0.2);
    overflow-y: auto;
    z-index: 1001;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links a {
    font-size: 1.2rem;
    font-weight: 600;
    display: block;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
  }

  .nav-links a:hover {
    padding-left: 1rem;
  }

  .nav-overlay {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 999;
  }

  .nav-overlay.active {
    opacity: 1;
    visibility: visible;
  }
}
/* Header container */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 10px 20px;
    flex-wrap: nowrap; /* stay in one row */
}

.hero-img {
  width:100%; 
  height:100%; 
  object-fit:cover; 
  z-index:1; 
  position: relative;
}

/* Homepage — Jumua banner (quote-style, patterned navy) */
.jummah-banner {
  position: relative;
  background-color: #0a1628;
  background-image: url('background.png');
  background-repeat: repeat;
  /* Match .home-section-rule / mosque band: 1px gold/40 + same glow family */
  border-top: 1px solid rgba(218, 165, 32, 0.4);
  box-shadow:
    0 0 6px rgba(218, 165, 32, 0.22),
    0 0 16px rgba(218, 165, 32, 0.1),
    0 -4px 22px -14px rgba(218, 165, 32, 0.22),
    0 4px 22px -14px rgba(218, 165, 32, 0.22);
}

.jummah-banner__inner {
  position: relative;
  max-width: 52rem;
  margin-left: auto;
  margin-right: auto;
  padding: 3.5rem 1.5rem 4rem;
}

@media (min-width: 768px) {
  .jummah-banner__inner {
    padding: 4.5rem 2rem 5rem;
  }
}

/* Decorative quotation marks — motto (“strangers / family”) block only */
.motto-quote-box {
  position: relative;
}

.motto-deco-quote {
  position: absolute;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(3.5rem, 14vw, 8rem);
  line-height: 0.85;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.12);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.motto-deco-quote--open {
  top: 0.35rem;
  left: 0.25rem;
}

.motto-deco-quote--close {
  bottom: 0.25rem;
  right: 0.25rem;
}

@media (min-width: 768px) {
  .motto-deco-quote--open {
    top: 0.5rem;
    left: 0.6rem;
  }
  .motto-deco-quote--close {
    bottom: 0.45rem;
    right: 0.6rem;
  }
}

.jummah-banner__content {
  position: relative;
  z-index: 1;
  text-align: center;
}

/* Mosque band — Arabic ayah + glow over background_mosque.jpg */
.mosque-verse-arabic {
  font-family: 'Amiri', 'Times New Roman', serif;
  text-shadow:
    0 0 8px rgba(255, 255, 255, 0.65),
    0 0 20px rgba(255, 255, 255, 0.45),
    0 0 36px rgba(255, 255, 255, 0.25),
    0 0 24px rgba(218, 165, 32, 0.55),
    0 0 48px rgba(218, 165, 32, 0.35),
    0 0 72px rgba(218, 165, 32, 0.15);
}

.mosque-verse-en {
  text-shadow:
    0 0 12px rgba(255, 255, 255, 0.2),
    0 0 28px rgba(255, 255, 255, 0.08);
}

.mosque-verse-ref {
  text-shadow:
    0 0 10px rgba(218, 165, 32, 0.55),
    0 0 24px rgba(218, 165, 32, 0.3),
    0 0 40px rgba(218, 165, 32, 0.12);
}

/* Homepage hero — “Welcome to UMIS” glow + slow breathing (scale + pulsing halo) */
/* h1 stays block-level so “Join Us” isn’t pulled inline with the headline */
.hero-title__inner {
  display: inline-block;
  animation: hero-title-breathe-scale 4.75s ease-in-out infinite;
}

.hero-title__white {
  animation: hero-title-glow-white 4.75s ease-in-out infinite;
}

.hero-title__gold {
  animation: hero-title-glow-gold 4.75s ease-in-out 0.65s infinite;
}

@keyframes hero-title-breathe-scale {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.022);
  }
}

@keyframes hero-title-glow-white {
  0%,
  100% {
    text-shadow:
      0 0 8px rgba(255, 255, 255, 0.32),
      0 0 20px rgba(255, 255, 255, 0.16),
      0 0 36px rgba(255, 255, 255, 0.08),
      0 0 2px rgba(255, 255, 255, 0.4);
  }
  50% {
    text-shadow:
      0 0 16px rgba(255, 255, 255, 0.52),
      0 0 36px rgba(255, 255, 255, 0.3),
      0 0 56px rgba(255, 255, 255, 0.14),
      0 0 3px rgba(255, 255, 255, 0.65);
  }
}

@keyframes hero-title-glow-gold {
  0%,
  100% {
    text-shadow:
      0 0 10px rgba(218, 165, 32, 0.42),
      0 0 26px rgba(218, 165, 32, 0.26),
      0 0 48px rgba(218, 165, 32, 0.12),
      0 0 2px rgba(232, 196, 86, 0.5);
  }
  50% {
    text-shadow:
      0 0 20px rgba(218, 165, 32, 0.62),
      0 0 46px rgba(218, 165, 32, 0.4),
      0 0 72px rgba(218, 165, 32, 0.2),
      0 0 4px rgba(255, 220, 130, 0.55);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-title__inner,
  .hero-title__white,
  .hero-title__gold {
    animation: none;
  }

  .hero-title__white {
    text-shadow:
      0 0 10px rgba(255, 255, 255, 0.38),
      0 0 24px rgba(255, 255, 255, 0.2),
      0 0 2px rgba(255, 255, 255, 0.45);
  }

  .hero-title__gold {
    text-shadow:
      0 0 14px rgba(218, 165, 32, 0.48),
      0 0 32px rgba(218, 165, 32, 0.3),
      0 0 2px rgba(232, 196, 86, 0.45);
  }
}

/* Hero CTA button */
.hero-cta {
  box-shadow: 0 8px 24px rgba(218, 165, 32, 0.3);
}
.hero-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(218, 165, 32, 0.4);
  background-color: #c99a1f;
}

/* Hero quick links – underline on hover */
.hero-quick-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  position: relative;
  transition: color 0.3s;
  -webkit-tap-highlight-color: transparent;
}
.hero-quick-link:focus {
  outline: none;
}
.hero-quick-link i {
  font-size: 1.1rem;
  opacity: 0.9;
}
.hero-quick-link:hover {
  color: #daa520;
}
.hero-quick-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #daa520;
  transition: width 0.3s;
}
.hero-quick-link:hover::after {
  width: 100%;
}
@media (max-width: 768px) {
  .hero-quick-link {
    font-size: 0.85rem;
  }
}


nav a {
  -webkit-tap-highlight-color: transparent;
}
nav a:hover {
  color: #daa520;
}
nav a:focus {
  outline: none;
}

.search-container {
  position: relative; /* parent for absolute positioning */
  display: inline-block;
}

.search-btn {
  font-size: 22px;
  cursor: pointer;
}

.search-bar {
  position: absolute;   /* position relative to .search-container */
  top: 150%;            /* place just below the button (100% = bottom edge) */
  left: 1%;            /* center horizontally */
  transform: translateX(-25%); /* adjust for perfect centering */
  display: none;        /* hidden by default */
  padding: 6px 10px;
  border-radius: 4px;
  border: none;
  outline: none;
}

i {
  font-size: 40px;
  color: white;
}

.swiper {
  width: 100%;
  height: 50%;
  padding-top: 50px;
  padding-bottom: 50px;
}

.swiper-slide {
  width: 80%;       /* not 100%, so others peek in */
  max-width: 900px; /* prevent being too huge */
  height: auto;     /* let image height adjust */
}
.swiper-slide img {
  display: block;
  width: 100%;
  border-radius: 12px;
}

.cta-btn {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;

  /* Responsive sizing */
  padding: 0.6rem 1.2rem;
  font-size: clamp(0.8rem, 2vw, 1rem); /* min 0.8rem, scale with screen, max 1rem */

  background: #daa520;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}

.cta-btn:hover {
  background: #0056b3;
}