:root {
  --brand: #707044;
  --brand-dark: #252915;
  --rose: #b8b177;
  --rose-soft: #e2dfc2;
  --cream: #f2f0df;
  --paper: #faf8ea;
  --ink: #202418;
  --muted: #6c6f55;
  --line: #d9d5b8;
  --white: #ffffff;
  --shadow: 0 18px 42px rgba(43, 46, 25, 0.14);
  --rihan-flower: #6f3a64;
  --rihan-flower-light: #b783a6;
  --rihan-flower-dark: #2d1a2a;
  --rihan-leaf: #82a652;
  --rihan-leaf-light: #c2d77b;
  --rihan-leaf-dark: #50662e;
  --quran-intro-width: min(100% - 48px, 1120px);
  --quran-intro-height: clamp(270px, 34vw, 470px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  touch-action: manipulation;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Cairo", Tahoma, Arial, sans-serif;
  line-height: 1.85;
  overflow-x: clip;
  text-size-adjust: 100%;
  touch-action: manipulation;
}

html.js-ready body:not(.is-loaded) .site-header,
html.js-ready body:not(.is-loaded) main,
html.js-ready body:not(.is-loaded) .site-footer {
  opacity: 0;
  transform: translateY(10px);
}

html.js-ready body.is-loaded .site-header,
html.js-ready body.is-loaded main,
html.js-ready body.is-loaded .site-footer {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

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

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

svg,
video,
iframe {
  max-width: 100%;
}

.site-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--paper);
  transition: opacity 0.38s ease, visibility 0.38s ease;
}

.petal-rain {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.loader-petal {
  position: absolute;
  top: -64px;
  left: var(--left);
  width: var(--size);
  height: calc(var(--size) * 1.22);
  background:
    radial-gradient(circle at 38% 34%, rgba(221, 181, 210, 0.72) 0 9%, transparent 10%),
    radial-gradient(ellipse at 48% 42%, var(--rihan-flower-light) 0 45%, var(--rihan-flower) 74%, var(--rihan-flower-dark) 100%);
  border-radius: 72% 28% 70% 30% / 48% 26% 74% 52%;
  filter: drop-shadow(0 9px 10px rgba(45, 26, 42, 0.16));
  opacity: 0.9;
  transform-origin: 50% 20%;
  animation: petalFall var(--duration) linear var(--delay) infinite;
}

.loader-petal::before,
.loader-petal::after,
.banner-petal::before,
.banner-petal::after {
  display: none;
}

.loader-petal:nth-child(3n) {
  opacity: 0.7;
  background:
    radial-gradient(circle at 38% 34%, rgba(225, 196, 218, 0.58) 0 9%, transparent 10%),
    radial-gradient(ellipse at 48% 42%, #9f6f96 0 44%, var(--rihan-flower) 78%, var(--rihan-flower-dark) 100%);
}

.loader-petal:nth-child(4n) {
  filter: blur(0.3px) drop-shadow(0 9px 10px rgba(45, 26, 42, 0.12));
}

.loader-mark {
  display: grid;
  width: 150px;
  height: 150px;
  place-items: center;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
  animation: loaderBloom 0.65s ease both;
}

.loader-mark img {
  width: 144px;
  height: 144px;
  object-fit: contain;
}

body.is-loaded .site-loader {
  opacity: 0;
  visibility: hidden;
}

.site-header {
  background: rgba(251, 250, 241, 0.95);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 34px rgba(39, 51, 28, 0.08);
  backdrop-filter: blur(14px);
  transition: box-shadow 0.25s ease, background 0.25s ease;
}

.site-header.is-scrolled {
  background: rgba(251, 250, 241, 0.98);
  box-shadow: 0 14px 38px rgba(39, 51, 28, 0.14);
}

.navbar {
  min-height: 92px;
  padding: 0;
}

.navbar-brand img {
  width: 76px;
  height: 76px;
  object-fit: contain;
  transition: transform 0.25s ease;
}

.navbar-brand:hover img {
  transform: scale(1.04) rotate(-2deg);
}

.nav-link {
  position: relative;
  color: var(--brand-dark);
  font-size: clamp(0.9rem, 1vw, 1rem);
  font-weight: 800;
  padding: 0.65rem 0.58rem !important;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link:focus,
.nav-link.active {
  color: var(--brand);
}

.nav-link::after {
  content: "";
  position: absolute;
  right: 1rem;
  left: 1rem;
  bottom: 0.15rem;
  height: 3px;
  border-radius: 999px;
  background: var(--rose);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.24s ease;
}

.nav-link:hover::after,
.nav-link:focus::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.social-links {
  display: flex;
  gap: 0.7rem;
  align-items: center;
}

.social-links a,
.to-top {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--white);
  background: var(--brand);
  border: 0;
  border-radius: 50%;
  transition: transform 0.2s ease, background 0.2s ease;
}

.social-links a:hover,
.to-top:hover {
  background: var(--brand-dark);
  transform: translateY(-3px);
}

.navbar-toggler {
  border-color: var(--line);
}

.home-hero {
  position: relative;
  min-height: 100vh;
  padding: 8.5rem 0 4.5rem;
  overflow: hidden;
  display: grid;
  align-items: center;
  background:
    radial-gradient(circle at 22% 18%, rgba(198, 189, 120, 0.22), transparent 28%),
    linear-gradient(135deg, var(--cream), var(--paper) 55%, #eef0dc);
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: auto -8rem -14rem auto;
  width: 36rem;
  height: 36rem;
  border: 3rem solid rgba(97, 113, 49, 0.05);
  border-radius: 50%;
  transform: translateY(var(--scroll-drift, 0px));
}

.home-hero h1,
.page-title h1 {
  margin: 0 0 1rem;
  color: var(--brand);
  font-family: "Aref Ruqaa", "Cairo", serif;
  font-size: clamp(3.2rem, 6.6vw, 6.35rem);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: 0;
}

body.is-loaded .home-hero .section-kicker,
body.is-loaded .home-hero h1,
body.is-loaded .hero-copy,
body.is-loaded .hero-actions,
body.is-loaded .intro-logo-stage {
  animation: heroRise 0.8s ease both;
}

body.is-loaded .home-hero h1 {
  animation-delay: 0.1s;
}

body.is-loaded .hero-copy {
  animation-delay: 0.2s;
}

body.is-loaded .hero-actions {
  animation-delay: 0.3s;
}

.hero-copy {
  max-width: 720px;
  margin-bottom: 1.7rem;
  color: var(--muted);
  font-size: 1.22rem;
  line-height: 2;
}

.intro-logo-stage {
  display: grid;
  min-height: calc(100vh - 10.5rem);
  place-items: center;
  align-content: center;
  gap: 1rem;
  text-align: center;
}

.brand-orbit {
  position: relative;
  display: grid;
  min-height: 480px;
  place-items: center;
  transform: translateY(calc(var(--scroll-drift, 0px) * -0.5));
  will-change: transform;
}

.brand-orbit::before,
.brand-orbit::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.brand-orbit::before {
  width: 82%;
  aspect-ratio: 1;
  border: 1px solid rgba(97, 113, 49, 0.12);
  animation: slowSpin 24s linear infinite;
}

.brand-orbit::after {
  width: 68%;
  aspect-ratio: 1;
  background: var(--rose-soft);
  opacity: 0.55;
}

.brand-orbit img {
  position: relative;
  z-index: 1;
  width: min(430px, 82vw);
  animation: gentleFloat 5.5s ease-in-out infinite;
}

.hero-logo-orbit {
  width: min(520px, 82vw);
  min-height: clamp(250px, 38vw, 410px);
  margin: 0 auto;
}

.hero-logo-orbit::before {
  display: none;
}

.hero-logo-orbit::after {
  display: none;
}

.hero-logo-orbit img {
  width: min(540px, 70vw);
}

.hero-verse {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 0.25rem;
  margin-top: -0.5rem;
}

.hero-verse p {
  margin: 0;
  color: var(--brand-dark);
  font-family: "Aref Ruqaa", "Cairo", serif;
  font-size: clamp(1.75rem, 4.2vw, 3.6rem);
  font-weight: 700;
  line-height: 1.65;
}

.hero-verse span {
  color: var(--muted);
  font-size: clamp(0.95rem, 1.5vw, 1.15rem);
  font-weight: 800;
}

.hero-verse-art {
  width: min(720px, 88vw);
  margin-top: -0.2rem;
  overflow: hidden;
  border: 1px solid rgba(112, 112, 68, 0.18);
  border-radius: 8px;
  background: #30341f;
  box-shadow: 0 14px 32px rgba(37, 41, 21, 0.12);
}

.hero-verse-art img {
  display: block;
  width: 100%;
  height: auto;
}

.intro-scroll-link {
  position: relative;
  z-index: 2;
  display: inline-grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: var(--white);
  background: var(--brand);
  border-radius: 50%;
  box-shadow: 0 14px 28px rgba(39, 51, 28, 0.16);
  animation: softBounce 1.8s ease-in-out infinite;
}

.intro-scroll-link:hover {
  color: var(--white);
  background: var(--brand-dark);
}

.btn {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0 35%, rgba(255, 255, 255, 0.42) 50%, transparent 65% 100%);
  transform: translateX(120%);
  transition: transform 0.55s ease;
  pointer-events: none;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(39, 51, 28, 0.16);
}

.btn:hover::before {
  transform: translateX(-120%);
}

.btn-brand {
  color: var(--white);
  background: var(--brand);
  border-color: var(--brand);
}

.btn-brand:hover {
  color: var(--white);
  background: var(--brand-dark);
  border-color: var(--brand-dark);
}

.btn-outline-brand {
  color: var(--brand);
  border-color: var(--brand);
  background: transparent;
}

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

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.section-pad {
  padding: 5.5rem 0;
}

.tinted-section {
  background: var(--cream);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-kicker {
  margin: 0 0 0.4rem;
  color: var(--rose);
  font-weight: 900;
}

.why-kicker {
  margin-bottom: 0.75rem;
  color: var(--brand);
  font-family: "Aref Ruqaa", "Cairo", serif;
  font-size: clamp(1.65rem, 3vw, 2.55rem);
  line-height: 1.45;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 2rem;
}

.map-heading {
  margin-inline: auto;
  text-align: center;
}

h2,
h3 {
  color: var(--brand-dark);
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: 0;
}

.lead,
p {
  color: var(--muted);
}

.path-card,
.person-card,
.gallery-card,
.will-card,
.verse-panel,
.map-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.path-card:hover,
.person-card:hover,
.gallery-card:hover,
.will-card:hover {
  border-color: rgba(97, 113, 49, 0.22);
  box-shadow: 0 24px 52px rgba(39, 51, 28, 0.18);
  transform: translateY(-7px);
}

.path-card,
.will-card {
  height: 100%;
  padding: 1.55rem;
}

.path-card i,
.will-card i {
  display: inline-grid;
  width: 50px;
  height: 50px;
  place-items: center;
  margin-bottom: 1rem;
  color: var(--white);
  background: var(--brand);
  border-radius: 50%;
  font-size: 1.35rem;
  transition: transform 0.25s ease, background 0.25s ease;
}

.path-card:hover i,
.will-card:hover i {
  background: var(--rose);
  transform: rotate(-6deg) scale(1.08);
}

.path-card h3,
.gallery-card h3,
.person-card h3 {
  font-size: 1.25rem;
}

.path-card a,
.will-card a {
  color: var(--brand);
  font-weight: 900;
}

.lebanon-map-section {
  position: relative;
  min-height: 100vh;
  padding: clamp(5rem, 8vw, 7rem) 0;
  display: grid;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 12% 20%, rgba(111, 58, 100, 0.12), transparent 23rem),
    radial-gradient(circle at 86% 76%, rgba(97, 113, 49, 0.16), transparent 28rem),
    linear-gradient(135deg, #fbfaf1 0%, #efefdc 52%, #f9f7e9 100%);
}

.lebanon-map-section::before,
.lebanon-map-section::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
}

.lebanon-map-section::before {
  inset: 8% auto auto -8rem;
  width: 28rem;
  height: 28rem;
  border: 3.4rem solid rgba(97, 113, 49, 0.055);
  border-radius: 50%;
}

.lebanon-map-section::after {
  inset: auto -14rem -18rem auto;
  width: 44rem;
  height: 44rem;
  background: radial-gradient(circle, rgba(111, 58, 100, 0.08), transparent 68%);
}

.lebanon-map-section > .container {
  width: 100%;
  max-width: none;
  padding-inline: clamp(1rem, 4vw, 4.5rem);
  display: grid;
  grid-template-columns: minmax(280px, 0.44fr) minmax(360px, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.lebanon-map-section .map-heading {
  max-width: 520px;
  margin: 0;
  text-align: right;
}

.lebanon-map-section .section-kicker {
  color: var(--rose);
}

.lebanon-map-section h2 {
  font-size: clamp(2rem, 4.4vw, 4.7rem);
  line-height: 1.22;
  max-width: 12ch;
}

.lebanon-map-stage {
  position: relative;
  min-height: clamp(560px, 78vh, 820px);
  display: grid;
  place-items: center;
  border-radius: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 249, 0.66), rgba(255, 255, 249, 0.18)),
    radial-gradient(circle at 46% 55%, rgba(255, 255, 255, 0.82), transparent 24rem);
  overflow: visible;
}

.lebanon-map-stage::before {
  content: "";
  position: absolute;
  inset: 5% 12% 8% 10%;
  border: 1px solid rgba(97, 113, 49, 0.16);
  border-radius: 50%;
  transform: rotate(-11deg);
}

.lebanon-map-image {
  position: relative;
  z-index: 1;
  width: min(100%, 980px);
  max-height: min(82vh, 820px);
  object-fit: contain;
  filter: drop-shadow(0 34px 46px rgba(39, 51, 28, 0.16));
  transition: transform 0.45s ease, filter 0.45s ease;
  transform: scale(1.08);
}

.lebanon-map-stage:hover .lebanon-map-image {
  filter: drop-shadow(0 42px 58px rgba(39, 51, 28, 0.2));
  transform: scale(1.1) translateY(-4px);
}

.lebanon-map-stage.is-map-active .lebanon-map-image {
  animation: mapFind 1.15s ease forwards;
}



.mini-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.mini-grid div {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.mini-grid strong {
  display: block;
  color: var(--brand);
  font-size: 1.6rem;
  line-height: 1.2;
}

.mini-grid span {
  color: var(--muted);
  font-weight: 800;
}

.page-main {
  padding-top: 92px;
}

.page-title {
  position: relative;
  overflow: hidden;
  padding: 5rem 0 4.2rem;
  background: linear-gradient(135deg, var(--cream), #eef0dc);
  border-bottom: 1px solid var(--line);
}

.page-title > .container,
.home-hero > .container {
  position: relative;
  z-index: 2;
}

.page-title::after {
  content: "";
  position: absolute;
  left: 6vw;
  top: 50%;
  width: 220px;
  height: 220px;
  background: url("../img/logo-brand-transparent.png") center/contain no-repeat;
  opacity: 0.08;
  transform: translateY(-50%);
}

.banner-petal-rain {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.banner-petal {
  position: absolute;
  top: -80px;
  left: var(--left);
  width: var(--size);
  height: calc(var(--size) * 1.24);
  background:
    radial-gradient(circle at 38% 34%, rgba(221, 181, 210, 0.5) 0 9%, transparent 10%),
    radial-gradient(ellipse at 48% 42%, rgba(183, 131, 166, 0.7) 0 45%, rgba(111, 58, 100, 0.78) 74%, rgba(45, 26, 42, 0.82) 100%);
  border-radius: 72% 28% 70% 30% / 48% 26% 74% 52%;
  filter: blur(0.15px) drop-shadow(0 12px 14px rgba(45, 26, 42, 0.12));
  opacity: 0.48;
  transform-origin: 50% 20%;
  animation: bannerPetalFall var(--duration) ease-in-out var(--delay) infinite;
}

.banner-petal:nth-child(2n) {
  opacity: 0.32;
}

.banner-petal:nth-child(3n) {
  background:
    radial-gradient(circle at 38% 34%, rgba(225, 196, 218, 0.46) 0 9%, transparent 10%),
    radial-gradient(ellipse at 48% 42%, rgba(159, 111, 150, 0.66) 0 44%, rgba(111, 58, 100, 0.74) 78%, rgba(45, 26, 42, 0.8) 100%);
}

.home-hero .banner-petal {
  opacity: 0.38;
  animation-name: heroPetalFall;
}

.home-hero .banner-petal:nth-child(5n) {
  opacity: 0.24;
  filter: blur(0.8px) drop-shadow(0 14px 18px rgba(45, 26, 42, 0.1));
}

.media-placeholder,
.photo-slot,
.portrait-placeholder,
.map-card {
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--brand);
  background:
    linear-gradient(rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.72)),
    repeating-linear-gradient(135deg, var(--rose-soft) 0 12px, var(--cream) 12px 24px);
}

.media-placeholder {
  min-height: 320px;
  border: 1px dashed rgba(97, 113, 49, 0.35);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.media-placeholder.tall {
  min-height: 410px;
}

.media-placeholder i,
.photo-slot i,
.portrait-placeholder i,
.map-card i {
  font-size: 3rem;
}

.media-placeholder span,
.map-card span {
  display: block;
  color: var(--muted);
  font-weight: 800;
}

.video-box {
  aspect-ratio: 16 / 9;
  min-height: auto;
}

.map-card {
  min-height: 330px;
  padding: 2rem;
}

.map-card strong {
  display: block;
  margin-top: 0.75rem;
  color: var(--brand-dark);
  font-size: 1.4rem;
}

.meaning-card {
  height: 100%;
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.86)),
    url("../img/logo-brand-transparent.png") center/72% no-repeat;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.meaning-card:hover {
  box-shadow: 0 24px 54px rgba(39, 51, 28, 0.18);
  transform: translateY(-5px);
}

.meaning-card-art {
  min-height: 0;
  padding: 0;
  overflow: hidden;
  background: #30341f;
}

.meaning-card-art img {
  display: block;
  width: 100%;
  height: auto;
}

.meaning-card blockquote {
  margin: 1rem 0 0;
  color: var(--brand);
  font-family: "Aref Ruqaa", "Cairo", serif;
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.8;
  text-shadow: 0 0 0 rgba(198, 189, 120, 0);
  animation: quoteGlow 3.2s ease-in-out infinite;
}

.quote-line {
  display: block;
  opacity: 0;
  transform: translateY(14px);
}

.meaning-card.is-visible .quote-line {
  animation: quoteLine 0.65s ease forwards;
}

.meaning-card.is-visible .quote-line:nth-child(2) {
  animation-delay: 0.18s;
}

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

.meaning-list li {
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: var(--white);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.meaning-list li:hover {
  border-color: rgba(97, 113, 49, 0.22);
  transform: translateX(-5px);
}

.meaning-list strong {
  color: var(--brand);
}

.rule-lines {
  width: min(420px, 100%);
  height: 96px;
  margin-top: 2rem;
  background: repeating-linear-gradient(to bottom, transparent 0 20px, rgba(97, 113, 49, 0.26) 20px 23px);
}

.verse-panel {
  margin-bottom: 3rem;
  padding: 2rem;
  text-align: center;
}

.verse-panel span {
  display: inline-block;
  margin-bottom: 0.8rem;
  color: var(--rose);
  font-family: "Aref Ruqaa", "Cairo", serif;
  font-size: 2rem;
  font-weight: 700;
}

.person-card {
  height: 100%;
  padding: 1.4rem;
  text-align: center;
}

.portrait-placeholder {
  position: relative;
  overflow: hidden;
  width: 140px;
  height: 170px;
  margin: 0 auto 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
}

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

.gallery-card {
  overflow: hidden;
}

.gallery-thumb {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.gallery-thumb img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.28s ease, filter 0.28s ease;
}

.gallery-card:hover .gallery-thumb img {
  filter: saturate(1.08);
  transform: scale(1.04);
}

.photo-slot {
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease;
}

.photo-slot::after,
.portrait-placeholder::after {
  content: "عرض التفاصيل";
  position: absolute;
  inset: auto 0 0;
  padding: 0.65rem;
  color: var(--white);
  background: linear-gradient(180deg, transparent, rgba(35, 42, 24, 0.86));
  font-weight: 900;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.gallery-card:hover .photo-slot,
.person-card:hover .portrait-placeholder {
  transform: scale(1.03);
}

.gallery-card:hover .photo-slot::after,
.person-card:hover .portrait-placeholder::after {
  opacity: 1;
  transform: translateY(0);
}

.gallery-card h3,
.gallery-card p {
  padding-inline: 1rem;
}

.gallery-card h3 {
  margin-top: 1rem;
}

.gallery-card p {
  padding-bottom: 1rem;
}

.photo-slot {
  aspect-ratio: 4 / 3;
}

.place-map-panel,
.place-facts {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.map-info-stack {
  display: grid;
  gap: 1rem;
}

.place-map-panel {
  position: relative;
  overflow: hidden;
  padding: 1rem;
}

.google-map-panel {
  padding: 0;
  background: var(--cream);
}

.google-map-panel iframe {
  display: block;
  width: 100%;
  height: clamp(420px, 56vh, 620px);
  min-height: 420px;
  border: 0;
  filter: saturate(0.78) sepia(0.18) hue-rotate(18deg) contrast(1.03);
}

.map-toolbar {
  position: absolute;
  top: 1.75rem;
  left: 1.75rem;
  z-index: 3;
  display: flex;
  gap: 0.5rem;
}

.map-toolbar button {
  display: inline-grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: var(--white);
  background: var(--brand);
  border: 0;
  border-radius: 50%;
  box-shadow: 0 12px 24px rgba(39, 51, 28, 0.18);
  transition: transform 0.2s ease, background 0.2s ease;
}

.map-toolbar button:hover {
  background: var(--brand-dark);
  transform: translateY(-2px);
}

.place-map-viewport {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--cream);
}

.place-map-image {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  transform: scale(var(--map-zoom, 1));
  transform-origin: 35% 68%;
  transition: transform 0.35s ease, filter 0.3s ease;
  filter: saturate(0.86) sepia(0.22) hue-rotate(18deg) brightness(0.97) contrast(1.04);
}

.place-map-marker {
  position: absolute;
  top: 69%;
  left: 36%;
  z-index: 2;
  color: var(--brand);
  font-weight: 900;
  transform: translate(-50%, -50%);
}

.place-map-marker span {
  display: block;
  width: 20px;
  height: 20px;
  margin: 0 auto 0.35rem;
  border: 5px solid var(--rose);
  border-radius: 50%;
  background: var(--brand);
  animation: markerPulse 1.8s ease-out infinite;
}

.place-map-marker strong {
  display: block;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: var(--white);
  box-shadow: 0 10px 22px rgba(39, 51, 28, 0.12);
}

.place-facts {
  padding: 1rem;
}

.horizontal-facts {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(0, 3fr);
  gap: 1rem;
  align-items: stretch;
}

.facts-heading {
  display: grid;
  align-content: center;
  padding: 1rem;
  border-radius: 8px;
  background: var(--brand);
}

.facts-heading h3,
.facts-heading p {
  color: var(--white);
}

.facts-heading h3 {
  margin-bottom: 0.35rem;
}

.facts-heading p {
  margin: 0;
  opacity: 0.82;
}

.facts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.8rem;
  margin: 0;
}

.facts-grid div {
  min-height: 92px;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--cream);
}

.facts-grid span {
  display: block;
  color: var(--rose);
  font-weight: 900;
}

.facts-grid strong {
  display: block;
  color: var(--brand-dark);
  line-height: 1.6;
}

.facts-note {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.source-panel {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.source-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.source-links a {
  padding: 0.55rem 0.85rem;
  border: 1px solid rgba(97, 113, 49, 0.18);
  border-radius: 999px;
  color: var(--brand);
  background: var(--cream);
  font-weight: 900;
  transition: transform 0.2s ease, background 0.2s ease;
}

.source-links a:hover {
  background: var(--rose-soft);
  transform: translateY(-2px);
}

.timeline-shell {
  position: relative;
  max-width: 1120px;
  margin-inline: auto;
  padding: 2.8rem 0 1rem;
  --timeline-progress: 0%;
}

.timeline-line {
  position: absolute;
  top: 2.8rem;
  bottom: 1rem;
  right: 50%;
  width: 4px;
  overflow: hidden;
  background: rgba(97, 113, 49, 0.12);
  border-radius: 999px;
  transform: translateX(50%);
}

.timeline-line span {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: var(--timeline-progress);
  background: linear-gradient(180deg, var(--rose), var(--brand));
  border-radius: inherit;
  box-shadow: 0 0 24px rgba(198, 189, 120, 0.28);
}

.timeline-node {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 74px minmax(0, 1fr);
  gap: 1.25rem;
  align-items: center;
  min-height: 250px;
  margin-bottom: 2.8rem;
}

.story-timeline .timeline-node.reveal-on-scroll {
  opacity: 1;
  transform: none;
  transition: none;
}

.timeline-card {
  position: relative;
  grid-row: 1;
  padding: 1.45rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(160deg, var(--white), rgba(251, 250, 242, 0.9));
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateX(-54px);
  transition: opacity 0.7s ease, transform 0.7s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  transition-delay: var(--reveal-delay, 0ms);
}

.timeline-node:nth-of-type(even) .timeline-card {
  transform: translateX(54px);
}

.timeline-node.is-visible .timeline-card {
  opacity: 1;
  transform: translateX(0);
}

.timeline-node:hover .timeline-card {
  border-color: rgba(198, 189, 120, 0.42);
  box-shadow: 0 24px 52px rgba(39, 51, 28, 0.18);
}

.timeline-pin {
  display: inline-grid;
  grid-column: 2;
  grid-row: 1;
  width: 58px;
  height: 58px;
  place-items: center;
  justify-self: center;
  color: var(--rose);
  background: var(--white);
  border: 3px solid rgba(97, 113, 49, 0.16);
  border-radius: 50%;
  box-shadow: 0 0 0 8px var(--cream), 0 18px 35px rgba(39, 51, 28, 0.1);
  opacity: 0.35;
  transform: scale(0.82);
  transition: opacity 0.55s ease, transform 0.55s ease, border-color 0.55s ease, color 0.55s ease;
}

.timeline-node.is-visible .timeline-pin {
  color: var(--brand);
  border-color: rgba(198, 189, 120, 0.58);
  opacity: 1;
  transform: scale(1);
}

.timeline-meta {
  display: grid;
  grid-row: 1;
  align-self: center;
  gap: 0.25rem;
  color: var(--muted);
  opacity: 0;
  transform: translateX(36px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: calc(var(--reveal-delay, 0ms) + 120ms);
}

.timeline-node:nth-of-type(even) .timeline-meta {
  transform: translateX(-36px);
}

.timeline-node.is-visible .timeline-meta {
  opacity: 1;
  transform: translateX(0);
}

.timeline-meta span {
  color: var(--rose);
  font-size: 0.95rem;
  font-weight: 900;
}

.timeline-meta strong {
  color: var(--brand);
  font-size: 1.05rem;
  font-weight: 900;
}

.timeline-node:nth-of-type(odd) .timeline-card {
  grid-column: 1;
  text-align: right;
}

.timeline-node:nth-of-type(odd) .timeline-meta {
  grid-column: 3;
  text-align: right;
}

.timeline-node:nth-of-type(even) .timeline-card {
  grid-column: 3;
  text-align: right;
}

.timeline-node:nth-of-type(even) .timeline-meta {
  grid-column: 1;
  text-align: left;
}

.timeline-card time {
  display: block;
  margin-bottom: 0.65rem;
  color: var(--rose);
  font-weight: 900;
}

.timeline-card h3 {
  margin-bottom: 0.75rem;
}

.timeline-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.95;
}

.timeline-node.is-war .timeline-card {
  background: linear-gradient(160deg, rgba(97, 113, 49, 0.06), var(--white) 58%);
}

.timeline-node.is-war .timeline-pin {
  color: var(--brand);
}

.timeline-node.is-memory .timeline-card {
  background: linear-gradient(160deg, rgba(198, 189, 120, 0.15), var(--white) 60%);
}

.timeline-node.is-memory .timeline-pin {
  color: var(--rose);
}

.intro-landing {
  min-height: 100vh;
  display: grid;
  align-items: center;
  text-align: center;
}

.intro-logo-wrap {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 0.75rem;
  padding-top: 2rem;
}

.intro-logo {
  width: min(340px, 72vw);
  filter: drop-shadow(0 24px 38px rgba(97, 113, 49, 0.18));
  animation: logoFloat 6s ease-in-out infinite;
}

.graphic-dot {
  position: absolute;
  width: 92px;
  height: 92px;
  border: 1px solid rgba(198, 189, 120, 0.28);
  border-radius: 50%;
  background: rgba(231, 232, 211, 0.34);
}

.dot-one {
  top: 18%;
  right: 14%;
}

.dot-two {
  bottom: 4%;
  left: 16%;
}

.designed-verse-placeholder,
.graphics-placeholder {
  position: relative;
  display: grid;
  place-items: center;
  gap: 0.65rem;
  min-height: 220px;
  padding: 2rem;
  border: 1px dashed rgba(97, 113, 49, 0.24);
  border-radius: 8px;
  color: var(--brand);
  background: linear-gradient(155deg, rgba(231, 232, 211, 0.42), var(--white));
  box-shadow: var(--shadow);
  text-align: center;
}

.designed-verse-placeholder i,
.graphics-placeholder i {
  font-size: 2.4rem;
  color: var(--rose);
}

.designed-verse-placeholder strong {
  font-family: "Aref Ruqaa", serif;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  color: var(--brand-dark);
}

.quran-art-panel {
  position: relative;
  overflow: hidden;
  width: var(--quran-intro-width);
  margin: 0 auto 5.5rem;
  border: 1px solid rgba(112, 112, 68, 0.26);
  border-radius: 8px;
  background: #30341f;
  box-shadow: 0 18px 38px rgba(37, 41, 21, 0.14);
}

.quran-art-panel img {
  display: block;
  width: 100%;
  height: var(--quran-intro-height);
  object-fit: cover;
  object-position: center;
}

.martyr-cards-section {
  padding-top: clamp(2.25rem, 5vw, 4.5rem);
}

.martyr-cards-section .section-heading {
  margin-bottom: 2.75rem;
}

.decorative-card::after,
.graphics-placeholder::after {
  content: "";
  position: absolute;
  inset: 1rem;
  border: 1px solid rgba(198, 189, 120, 0.18);
  border-radius: 8px;
  pointer-events: none;
}

.village-photo-carousel {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  gap: 0.75rem;
  align-items: center;
}

.village-photo-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 1.5rem 10%;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.village-photo-track::-webkit-scrollbar {
  height: 9px;
}

.village-photo-track::-webkit-scrollbar-track {
  background: rgba(198, 189, 120, 0.12);
  border-radius: 999px;
}

.village-photo-track::-webkit-scrollbar-thumb {
  background: var(--rose);
  border-radius: 999px;
}

.village-photo-slide {
  flex: 0 0 min(720px, 72vw);
  scroll-snap-align: center;
  text-align: center;
}

.village-photo-slide button,
.scatter-photo {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
}

.village-photo-slide img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.village-photo-slide button:hover img,
.village-photo-slide button:focus-visible img {
  transform: scale(1.04);
  box-shadow: 0 28px 60px rgba(39, 51, 28, 0.22);
}

.village-photo-slide h3 {
  margin-top: 1rem;
}

.carousel-control {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: var(--white);
  background: var(--brand);
  border: 0;
  border-radius: 50%;
  transition: transform 0.2s ease, background 0.2s ease;
}

.carousel-control:hover {
  background: var(--brand-dark);
  transform: translateY(-2px);
}

.memory-video-block {
  display: grid;
  gap: 1.5rem;
}

.wide-video {
  min-height: 420px;
}

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

.martyr-flip-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.2rem;
}

.martyr-verse + .section-heading h2 {
  color: var(--brand);
}

.martyr-flip-card {
  position: relative;
  height: clamp(480px, 33vw, 560px);
  perspective: 1200px;
  cursor: pointer;
}

.martyr-flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.28s ease;
}

.martyr-front,
.martyr-back {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 1rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(160deg, var(--white), #fbfaf2);
  box-shadow: var(--shadow);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
  transition:
    transform 0.72s cubic-bezier(0.2, 0.7, 0.2, 1),
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.martyr-front {
  align-content: stretch;
  gap: 0.85rem;
  padding: 0.75rem;
  transform: rotateY(0);
}

.martyr-back {
  isolation: isolate;
  align-content: center;
  justify-items: stretch;
  gap: 0.7rem;
  color: var(--brand-dark);
  border-color: rgba(111, 58, 100, 0.22);
  background: #f7f5e9;
  transform: rotateY(180deg);
}

.martyr-flip-card.is-flipped .martyr-front {
  transform: rotateY(-180deg);
}

.martyr-flip-card.is-flipped .martyr-back {
  transform: rotateY(0);
}

@media (hover: hover) and (pointer: fine) {
  .martyr-flip-card:hover .martyr-front {
    transform: rotateY(-180deg);
  }

  .martyr-flip-card:hover .martyr-back {
    transform: rotateY(0);
  }
}

.martyr-back::before {
  content: "";
  position: absolute;
  inset: -14px;
  z-index: -2;
  background-image: var(--martyr-back-image);
  background-size: cover;
  background-position: center;
  opacity: 0.58;
  filter: blur(5px) grayscale(0.08) saturate(0.92) contrast(0.95);
  transform: scale(1.06);
}

.martyr-back::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 18% 15%, rgba(255, 255, 255, 0.5), transparent 38%),
    linear-gradient(155deg, rgba(251, 250, 242, 0.58), rgba(237, 240, 220, 0.52) 55%, rgba(207, 213, 162, 0.58));
}

.martyr-front h3,
.martyr-back h3 {
  color: var(--brand-dark);
}

.martyr-back h3 {
  margin: 0;
  font-size: clamp(1.5rem, 1.75vw, 2.15rem);
  line-height: 1.25;
  text-align: right;
}

.martyr-front h3 {
  margin: 0;
  font-size: 1.45rem;
  text-align: center;
}

.martyr-back p {
  margin: 0;
  color: #5e6249;
  font-size: clamp(0.95rem, 1vw, 1.08rem);
  font-weight: 800;
  text-align: right;
  line-height: 1.75;
}

.martyr-back p span {
  color: var(--rihan-flower);
}

.martyr-portrait {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 4 / 5;
  border: 1px solid rgba(97, 113, 49, 0.24);
  border-radius: 8px;
  background: #222918;
}

.martyr-portrait::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 34%;
  background: linear-gradient(180deg, transparent, rgba(32, 41, 20, 0.78));
}

.martyr-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.55s ease, filter 0.55s ease;
}

.martyr-flip-card:hover .martyr-portrait img,
.martyr-flip-card:focus-visible .martyr-portrait img {
  transform: scale(1.045);
  filter: saturate(1.04) contrast(1.03);
}

.martyr-date-badge {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0.28rem 0.85rem;
  border: 1px solid rgba(111, 58, 100, 0.18);
  border-radius: 999px;
  color: var(--rihan-flower);
  background: rgba(251, 250, 242, 0.88);
  font-weight: 900;
  font-size: 0.92rem;
}

.martyr-flip-card .portrait-placeholder {
  color: var(--brand);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(251, 250, 242, 0.86)),
    repeating-linear-gradient(-45deg, rgba(198, 189, 120, 0.08) 0 16px, rgba(255, 255, 255, 0.46) 16px 32px);
  border-color: rgba(198, 189, 120, 0.26);
}

.martyr-flip-card:hover .martyr-front,
.martyr-flip-card:focus-visible .martyr-front,
.martyr-flip-card.is-flipped .martyr-back {
  border-color: rgba(198, 189, 120, 0.45);
}

.martyr-flip-card:hover .martyr-flip-inner,
.martyr-flip-card:focus-visible .martyr-flip-inner {
  transform: translateY(-8px);
}

.martyr-flip-card:hover .martyr-front,
.martyr-flip-card:focus-visible .martyr-front,
.martyr-flip-card:hover .martyr-back,
.martyr-flip-card:focus-visible .martyr-back {
  box-shadow: 0 28px 58px rgba(39, 51, 28, 0.18);
}

.family-frame-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.35rem;
}

.family-frame {
  position: relative;
  padding: 1rem;
  border: 1px solid rgba(97, 113, 49, 0.14);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
  text-align: center;
  transform: rotate(var(--tilt, -1deg));
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.family-frame:nth-child(even) {
  --tilt: 1.2deg;
}

.family-frame:hover {
  transform: rotate(0deg) translateY(-6px);
  box-shadow: 0 26px 58px rgba(39, 51, 28, 0.18);
}

.family-frame img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 6px;
  background: var(--cream);
}

.frame-pin {
  position: absolute;
  top: -10px;
  right: 50%;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--rose);
  box-shadow: inset 0 0 0 6px rgba(255, 255, 255, 0.55), 0 10px 18px rgba(39, 51, 28, 0.2);
  transform: translateX(50%);
}

.gift-intro-section {
  padding-bottom: 4.25rem;
}

.gift-verse {
  margin-bottom: 4rem;
  background:
    radial-gradient(circle at 18% 18%, rgba(184, 177, 119, 0.16), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(242, 240, 223, 0.78));
}

.gift-verse-art {
  position: relative;
  overflow: hidden;
  width: var(--quran-intro-width);
  margin-inline: auto;
  padding: 0;
  border: 1px solid rgba(112, 112, 68, 0.24);
  border-radius: 8px;
  background: #30341f;
  box-shadow: 0 22px 48px rgba(37, 41, 21, 0.14);
}

.gift-verse-art img {
  display: block;
  width: 100%;
  height: var(--quran-intro-height);
  object-fit: cover;
  object-position: center;
}

.gift-heading {
  max-width: 920px;
  margin-inline: auto;
}

.gift-heading h2 {
  font-size: clamp(2rem, 4.2vw, 3.6rem);
}

.gift-counter-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.35rem;
  margin-top: 3rem;
}

.gift-sync-status {
  max-width: 720px;
  margin: 2rem auto 0;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(111, 58, 100, 0.2);
  border-radius: 8px;
  color: var(--brand-dark);
  background: rgba(255, 255, 255, 0.74);
  font-weight: 800;
  text-align: center;
}

.gift-sync-status.is-error {
  border-color: rgba(111, 58, 100, 0.38);
  color: var(--rihan-flower);
}

.gift-counter-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 0.9rem;
  padding: 2rem;
  border: 1px solid rgba(112, 112, 68, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(250, 248, 234, 0.76)),
    var(--paper);
  box-shadow: var(--shadow);
}

.gift-counter-card::after {
  content: "";
  position: absolute;
  inset: auto -3rem -4rem auto;
  width: 11rem;
  height: 11rem;
  border: 1.5rem solid rgba(111, 58, 100, 0.08);
  border-radius: 50%;
}

.gift-counter-card.is-pulsing .gift-count {
  animation: giftPulse 0.42s ease;
}

.gift-counter-icon {
  display: inline-grid;
  width: 54px;
  height: 54px;
  place-items: center;
  color: var(--white);
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 16px 28px rgba(37, 41, 21, 0.16);
}

.gift-counter-card h3 {
  margin: 0;
  color: var(--brand-dark);
  font-size: clamp(1.25rem, 2vw, 1.75rem);
}

.gift-count {
  color: var(--rihan-flower);
  font-family: "Aref Ruqaa", "Cairo", serif;
  font-size: clamp(3.2rem, 7vw, 5.5rem);
  line-height: 1;
}

.gift-meter,
.khatma-progress-bar {
  overflow: hidden;
  height: 10px;
  border-radius: 999px;
  background: rgba(112, 112, 68, 0.16);
}

.gift-meter span,
.khatma-progress-bar span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), var(--rihan-flower));
  transition: width 0.35s ease;
}

.khatma-progress {
  display: grid;
  gap: 0.65rem;
  max-width: 720px;
  margin: 0 auto 2rem;
  color: var(--brand-dark);
  font-weight: 900;
  text-align: center;
}

.khatma-progress strong {
  color: var(--rihan-flower);
  font-size: 1.45rem;
}

.khatma-rounds {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  justify-self: center;
  padding: 0.55rem 1rem;
  border: 1px solid rgba(111, 58, 100, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 12px 26px rgba(37, 41, 21, 0.08);
}

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

.quran-part {
  min-height: 74px;
  padding: 0.85rem;
  color: var(--brand-dark);
  font-weight: 900;
  border: 1px solid rgba(112, 112, 68, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 12px 26px rgba(37, 41, 21, 0.08);
  transition: transform 0.2s ease, color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.quran-part:hover,
.quran-part:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(111, 58, 100, 0.38);
}

.quran-part.is-taken {
  color: var(--white);
  border-color: rgba(111, 58, 100, 0.72);
  background:
    radial-gradient(circle at 20% 15%, rgba(255, 255, 255, 0.16), transparent 30%),
    linear-gradient(135deg, var(--rihan-flower), #3f2039);
  box-shadow: 0 18px 36px rgba(111, 58, 100, 0.22);
}

.khatma-complete {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1rem;
  margin-top: 2rem;
  padding: 1rem 1.25rem;
  color: var(--white);
  border-radius: 8px;
  background: var(--rihan-flower);
  box-shadow: 0 18px 38px rgba(111, 58, 100, 0.22);
}

.khatma-complete .btn {
  color: var(--rihan-flower);
  border: 0;
  font-weight: 900;
  box-shadow: none;
}

@keyframes giftPulse {
  0%,
  100% {
    transform: scale(1);
  }

  45% {
    transform: scale(1.08);
  }
}

.will-list {
  display: grid;
  gap: 1rem;
}

.platform-panel {
  position: sticky;
  top: 120px;
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.platform-links {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.platform-links a {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid rgba(97, 113, 49, 0.16);
  border-radius: 8px;
  color: var(--brand);
  background: var(--cream);
  font-weight: 900;
  transition: transform 0.2s ease, background 0.2s ease;
}

.platform-links a:hover {
  background: var(--rose-soft);
  transform: translateX(-4px);
}

.scattered-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.2rem;
  align-items: center;
}

.scatter-photo {
  padding: 0.55rem;
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
  transform: rotate(var(--scatter-rotate, 0deg));
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.scatter-photo img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 6px;
}

.scatter-photo:hover {
  transform: rotate(0deg) scale(1.04);
  box-shadow: 0 28px 60px rgba(39, 51, 28, 0.22);
}

.rotate-one {
  --scatter-rotate: -4deg;
}

.rotate-two {
  --scatter-rotate: 3deg;
  margin-top: 2rem;
}

.rotate-three {
  --scatter-rotate: -2deg;
  margin-top: -1rem;
}

.rotate-four {
  --scatter-rotate: 4deg;
  margin-top: 1.2rem;
}

.site-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: grid;
  place-items: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.site-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.site-confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.site-confirm-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.confirm-backdrop,
.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(23, 28, 16, 0.74);
  backdrop-filter: blur(8px);
}

.confirm-dialog,
.lightbox-dialog {
  position: relative;
  width: min(980px, 100%);
  overflow: hidden;
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
  transform: translateY(18px) scale(0.98);
  transition: transform 0.25s ease;
}

.site-confirm-modal.is-open .confirm-dialog {
  transform: translateY(0) scale(1);
}

.site-lightbox.is-open .lightbox-dialog {
  transform: translateY(0) scale(1);
}

.confirm-dialog {
  width: min(440px, calc(100% - 2rem));
  padding: 1.5rem 1.25rem 1.1rem;
  border: 1px solid rgba(107, 58, 100, 0.12);
}

.reward-dialog {
  border-color: rgba(97, 113, 49, 0.18);
}

.confirm-dialog h2 {
  margin: 0 0 0.8rem;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--brand-dark);
}

.site-confirm-modal.is-already-taken .confirm-dialog h2 {
  color: #b85757;
}

.confirm-message {
  margin: 0;
  line-height: 1.9;
  color: var(--ink);
}

.confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--white);
  background: var(--brand);
  border: 0;
  border-radius: 50%;
}

.lightbox-image {
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  background: var(--cream);
}

.lightbox-copy {
  padding: 1.25rem 1.5rem;
}

.lightbox-copy h2 {
  margin-bottom: 0.4rem;
  font-size: 1.45rem;
}

.will-card h2 {
  font-size: 1.45rem;
}

.site-footer {
  padding: 1.4rem 0;
  color: var(--white);
  background: var(--brand-dark);
}

.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.site-footer p {
  margin: 0;
  color: var(--white);
}

.stats-section {
  padding-top: 0;
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.stat-item {
  padding: 1.25rem;
  text-align: center;
  border-radius: 8px;
  background: var(--cream);
}

.stat-number {
  display: block;
  color: var(--brand);
  font-family: "Aref Ruqaa", "Cairo", serif;
  font-size: clamp(2.3rem, 5vw, 4rem);
  line-height: 1;
}

.stat-item span {
  color: var(--muted);
  font-weight: 900;
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes heroRise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes gentleFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-14px);
  }
}

@keyframes slowSpin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes markerPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(198, 189, 120, 0.45);
  }

  70% {
    box-shadow: 0 0 0 16px rgba(198, 189, 120, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(198, 189, 120, 0);
  }
}

@keyframes petalFall {
  0% {
    transform: translate3d(0, -10vh, 0) rotate(0deg);
  }

  55% {
    transform: translate3d(calc(var(--drift) * 0.45), 48vh, 0) rotate(calc(var(--rotation) * 0.55));
  }

  100% {
    transform: translate3d(var(--drift), 112vh, 0) rotate(var(--rotation));
  }
}

@keyframes bannerPetalFall {
  0% {
    transform: translate3d(0, -20px, 0) rotate(0deg) scale(0.92);
    opacity: 0;
  }

  12% {
    opacity: 0.48;
  }

  52% {
    transform: translate3d(calc(var(--drift) * 0.44), 185px, 0) rotate(calc(var(--rotation) * 0.55)) scale(1);
  }

  88% {
    opacity: 0.42;
  }

  100% {
    transform: translate3d(var(--drift), 430px, 0) rotate(var(--rotation)) scale(0.96);
    opacity: 0;
  }
}

@keyframes heroPetalFall {
  0% {
    transform: translate3d(0, -14vh, 0) rotate(0deg) scale(0.88);
    opacity: 0;
  }

  10% {
    opacity: 0.42;
  }

  48% {
    transform: translate3d(calc(var(--drift) * 0.42), 48vh, 0) rotate(calc(var(--rotation) * 0.52)) scale(1);
  }

  82% {
    opacity: 0.36;
  }

  100% {
    transform: translate3d(var(--drift), 112vh, 0) rotate(var(--rotation)) scale(0.92);
    opacity: 0;
  }
}

@keyframes loaderBloom {
  from {
    opacity: 0;
    transform: scale(0.86);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes mapFind {
  from {
    transform: scale(1.02) translateY(10px);
  }

  to {
    transform: scale(1.08) translateY(0);
  }
}

@keyframes markerArrive {
  from {
    opacity: 0;
    transform: translate(-50%, -42%) rotate(-8deg) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(-8deg) scale(1);
  }
}

@keyframes quoteGlow {
  0%,
  100% {
    text-shadow: 0 0 0 rgba(198, 189, 120, 0);
  }

  50% {
    text-shadow: 0 0 24px rgba(198, 189, 120, 0.35);
  }
}

@keyframes quoteLine {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes softBounce {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(8px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal-on-scroll {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 991.98px) {
  .navbar {
    min-height: 76px;
    padding-block: 0.35rem;
  }

  .navbar-brand img {
    width: 58px;
    height: 58px;
  }

  .navbar-collapse {
    padding: 1rem 0;
  }

  .home-hero,
  .page-main {
    padding-top: 76px;
  }

  .home-hero {
    min-height: auto;
  }

  .intro-logo-stage {
    min-height: calc(100vh - 8rem);
    gap: 1rem;
  }

  .brand-orbit {
    min-height: 330px;
  }

  .hero-logo-orbit {
    min-height: clamp(230px, 48vw, 315px);
  }

  .hero-logo-orbit img {
    width: min(375px, 74vw);
  }

  .gallery-grid,
  .mini-grid,
  .stats-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .timeline-node {
    grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1fr);
    gap: 0.9rem;
  }

  .timeline-pin {
    width: 52px;
    height: 52px;
  }

  .place-map-viewport,
  .place-map-image {
    min-height: 440px;
  }

  .horizontal-facts {
    grid-template-columns: 1fr;
  }

  .martyr-flip-grid,
  .family-frame-grid,
  .scattered-gallery,
  .quran-parts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gift-counter-grid {
    grid-template-columns: 1fr;
  }

  .future-content-grid {
    grid-template-columns: 1fr;
  }

  .lebanon-map-section {
    min-height: auto;
    padding-block: 5rem;
  }

  .lebanon-map-section > .container {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }

  .lebanon-map-section .map-heading {
    max-width: 720px;
    margin-inline: auto;
    text-align: center;
  }

  .lebanon-map-section h2 {
    max-width: none;
  }

  .lebanon-map-stage {
    min-height: 620px;
  }

  .village-marker {
    top: 77.5%;
    left: 58%;
  }
}

@media (max-width: 575.98px) {
  .section-pad {
    padding: 3.6rem 0;
  }

  .home-hero {
    padding-bottom: 3.5rem;
  }

  .intro-logo-stage {
    min-height: calc(100vh - 7rem);
    gap: 0.8rem;
  }

  .hero-logo-orbit {
    min-height: clamp(210px, 54vw, 260px);
  }

  .hero-logo-orbit img {
    width: min(305px, 74vw);
  }

  .hero-verse {
    margin-top: -0.4rem;
  }

  .intro-scroll-link {
    width: 42px;
    height: 42px;
  }

  .hero-actions .btn,
  .gallery-grid {
    width: 100%;
  }

  .gallery-grid,
  .mini-grid,
  .stats-strip {
    grid-template-columns: 1fr;
  }

  .village-photo-carousel {
    grid-template-columns: 1fr;
  }

  .carousel-control {
    display: none;
  }

  .village-photo-track {
    padding-inline: 5%;
  }

  .village-photo-slide {
    flex-basis: 86vw;
  }

  .martyr-flip-grid,
  .family-frame-grid,
  .scattered-gallery,
  .quran-parts-grid {
    grid-template-columns: 1fr;
  }

  .martyr-flip-card {
    height: clamp(470px, 132vw, 640px);
  }

  .quran-art-panel {
    width: calc(100% - 28px);
    margin-bottom: 3.5rem;
  }

  .quran-art-panel img,
  .gift-verse-art img {
    height: 245px;
  }

  .platform-panel {
    position: static;
  }

  .place-map-panel {
    padding: 0;
  }

  .google-map-panel iframe {
    height: 380px;
    min-height: 380px;
  }

  .place-map-viewport,
  .place-map-image {
    min-height: 360px;
  }

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

  .timeline-shell {
    padding: 1.8rem 0 0;
  }

  .timeline-line {
    right: 27px;
    transform: none;
  }

  .timeline-node {
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 0.85rem;
    min-height: auto;
    margin-bottom: 1.8rem;
  }

  .timeline-node:nth-of-type(odd) .timeline-card,
  .timeline-node:nth-of-type(even) .timeline-card {
    grid-column: 2;
    grid-row: 2;
    transform: translateX(-34px);
  }

  .timeline-node:nth-of-type(odd) .timeline-meta,
  .timeline-node:nth-of-type(even) .timeline-meta {
    grid-column: 2;
    grid-row: 1;
    text-align: right;
    transform: translateX(-24px);
  }

  .timeline-node.is-visible .timeline-card,
  .timeline-node.is-visible .timeline-meta {
    transform: translateX(0);
  }

  .timeline-pin {
    grid-column: 1;
    grid-row: 1 / span 2;
    width: 46px;
    height: 46px;
    box-shadow: 0 0 0 6px var(--cream), 0 14px 28px rgba(39, 51, 28, 0.1);
  }

  .map-toolbar {
    top: 1rem;
    left: 1rem;
  }

  .map-toolbar button {
    width: 34px;
    height: 34px;
  }

  .place-map-marker strong {
    font-size: 0.82rem;
  }

  .lebanon-map-section {
    padding-block: 4rem;
  }

  .lebanon-map-section > .container {
    padding-inline: 0.9rem;
  }

  .lebanon-map-stage {
    min-height: 520px;
  }

  .lebanon-map-image {
    width: min(126vw, 660px);
    max-width: none;
  }

  .village-marker {
    top: 77.5%;
    left: 58%;
    width: clamp(120px, 18vw, 155px);
    height: clamp(48px, 7.2vw, 62px);
    box-shadow: 0 4px 16px rgba(111, 58, 100, 0.2);
  }

  .village-marker:active {
    transform: translate(-50%, -50%) rotate(-8deg) scale(0.98);
  }

  .site-footer .container {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Final responsive and performance polish shared by every page. */
.navbar > .container {
  gap: clamp(0.8rem, 2vw, 2rem);
}

.navbar-nav {
  align-items: center;
  gap: clamp(0.15rem, 0.65vw, 0.65rem);
}

.navbar-brand,
.nav-link,
.social-links a,
.to-top,
.village-marker,
.quran-part,
button,
a {
  touch-action: manipulation;
}

.section-pad,
.page-title,
.home-hero,
.lebanon-map-section {
  max-width: 100%;
}

.section-heading,
.page-title .container,
.tinted-section .container,
.martyr-cards-section .container,
.gift-intro-section .container,
.khatma-section .container {
  max-width: min(100% - 2rem, 1320px);
}

.quran-art-panel,
.gift-verse-art {
  width: min(100% - 2rem, 1180px);
}

.quran-art-panel img,
.gift-verse-art img {
  width: 100%;
  height: clamp(220px, 31vw, 430px);
  object-fit: cover;
}

.martyr-flip-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
}

.family-frame-grid,
.quran-parts-grid,
.scattered-gallery {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
}

.gift-counter-grid,
.future-content-grid,
.horizontal-facts,
.facts-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}

.martyr-front h3,
.martyr-back h3,
.path-card h3,
.will-card h2,
.gallery-card h3 {
  overflow-wrap: anywhere;
}

.martyr-portrait img,
.gallery-thumb img,
.village-photo-slide img {
  content-visibility: auto;
}

.lebanon-map-section > .container {
  max-width: none;
}

.lebanon-map-stage {
  min-width: 0;
}

.lebanon-map-image {
  max-width: min(100%, 980px);
}

@media (min-width: 992px) and (max-width: 1199.98px) {
  .nav-link {
    font-size: 0.86rem;
    padding-inline: 0.36rem !important;
  }

  .navbar-brand img {
    width: 66px;
    height: 66px;
  }

  .social-links a {
    width: 34px;
    height: 34px;
  }
}

@media (max-width: 991.98px) {
  .site-header .navbar > .container {
    align-items: center;
  }

  .navbar-collapse {
    max-height: calc(100vh - 86px);
    overflow-y: auto;
  }

  .navbar-nav {
    align-items: stretch;
    gap: 0.1rem;
    padding-block: 0.35rem;
  }

  .nav-link {
    display: block;
    white-space: normal;
    text-align: center;
    border-radius: 8px;
  }

  .social-links {
    justify-content: center;
    padding-top: 0.5rem;
  }

  .home-hero {
    min-height: 100svh;
  }

  .section-heading,
  .page-title .container,
  .tinted-section .container,
  .martyr-cards-section .container,
  .gift-intro-section .container,
  .khatma-section .container {
    max-width: min(100% - 1.5rem, 920px);
  }

  .page-title h1,
  .section-heading h2,
  .gift-heading h2 {
    font-size: clamp(2rem, 7vw, 3.5rem);
    line-height: 1.25;
  }

  .wide-video,
  .google-map-panel iframe {
    min-height: 360px;
  }
}

@media (max-width: 767.98px) {
  .section-pad {
    padding-block: 3.25rem;
  }

  .home-hero {
    min-height: 100svh;
    padding-bottom: 2rem;
  }

  .intro-logo-stage {
    min-height: calc(100svh - 6.5rem);
    justify-content: center;
  }

  .hero-logo-orbit {
    min-height: clamp(250px, 55svh, 380px);
  }

  .hero-logo-orbit img {
    width: min(540px, 82vw);
  }

  .hero-verse p {
    font-size: clamp(1.6rem, 9vw, 3.3rem);
  }

  .intro-scroll-link {
    flex: 0 0 auto;
  }

  .quran-art-panel,
  .gift-verse-art {
    width: min(100% - 1.25rem, 760px);
    margin-bottom: 2.6rem;
  }

  .quran-art-panel img,
  .gift-verse-art img {
    height: clamp(210px, 56vw, 340px);
  }

  .lebanon-map-section {
    min-height: 100svh;
    padding-block: 4rem;
  }

  .lebanon-map-section > .container {
    min-height: calc(100svh - 8rem);
    padding-inline: 1rem;
  }

  .lebanon-map-stage {
    min-height: clamp(440px, 68svh, 640px);
  }

  .lebanon-map-image {
    width: min(122vw, 680px);
    transform: scale(1.02);
  }

  .lebanon-map-stage:hover .lebanon-map-image {
    transform: scale(1.03);
  }

  .village-marker {
    width: 96px;
    height: 40px;
  }

  .martyr-flip-card {
    height: clamp(470px, 132vw, 640px);
  }

  .martyr-front h3 {
    font-size: 1.25rem;
  }

  .village-photo-track {
    padding-inline: 0.75rem;
  }

  .village-photo-slide {
    flex-basis: min(88vw, 520px);
  }

  .platform-panel {
    margin-top: 0;
  }
}

@media (max-width: 420px) {
  .navbar-brand img {
    width: 52px;
    height: 52px;
  }

  .social-links a,
  .to-top {
    width: 34px;
    height: 34px;
  }

  .page-title h1,
  .section-heading h2,
  .gift-heading h2 {
    font-size: clamp(1.75rem, 9vw, 2.5rem);
  }

  .hero-logo-orbit img {
    width: min(420px, 84vw);
  }

  .quran-art-panel img,
  .gift-verse-art img {
    height: 205px;
  }

  .martyr-flip-card {
    height: clamp(460px, 138vw, 620px);
  }

  .quran-parts-grid {
    gap: 0.65rem;
  }
}

/* Final layout fixes requested after responsive review. */
.quran-art-panel,
.gift-verse-art {
  background: #30341f;
  width: min(100% - 2rem, 1080px);
}

.quran-art-panel img,
.gift-verse-art img {
  height: auto !important;
  width: 100%;
  object-fit: contain !important;
  object-position: center;
}

@media (min-width: 992px) {
  .map-info-stack {
    width: min(100%, 1320px);
    margin-inline: auto;
  }

  .google-map-panel iframe {
    height: clamp(460px, 56vh, 640px);
    min-height: 460px;
  }

  .horizontal-facts {
    grid-template-columns: minmax(240px, 0.9fr) minmax(0, 3fr) !important;
    align-items: stretch;
  }

  .horizontal-facts .facts-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  }

  .horizontal-facts .facts-note {
    grid-column: 1 / -1;
  }
}

@media (max-width: 991.98px) {
  .martyr-flip-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 767.98px) {
  .martyr-flip-grid {
    grid-template-columns: 1fr !important;
    max-width: min(100%, 520px);
    margin-inline: auto;
    gap: 1.15rem;
  }

  .martyr-flip-card {
    height: clamp(560px, 150vw, 760px) !important;
  }

  .martyr-front {
    align-content: start;
    gap: 0.85rem;
    padding: 0.85rem;
  }

  .martyr-front h3 {
    display: block;
    font-size: clamp(1.45rem, 7vw, 2rem);
    line-height: 1.25;
    padding-inline: 0.25rem;
  }

  .martyr-date-badge {
    font-size: 1rem;
  }

  .martyr-portrait {
    aspect-ratio: 4 / 5;
  }
}

@media (max-width: 575.98px) {
  .page-main .quran-art-panel,
  .page-main .gift-verse-art {
    position: relative;
    width: calc(100vw - 18px);
    max-width: none;
    margin-inline: calc(50% - 50vw + 9px);
    margin-bottom: 3.25rem;
    border-radius: 10px;
    overflow: visible;
  }

  .page-main .quran-art-panel img,
  .page-main .gift-verse-art img {
    width: 100%;
    max-width: none;
    height: auto !important;
    min-height: 0;
    object-fit: contain !important;
    border-radius: inherit;
  }

  .page-main .quran-art-panel::after,
  .page-main .gift-verse-art::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -1.45rem;
    width: 108px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, var(--rihan-flower), var(--brand), var(--rose), transparent);
    transform: translateX(-50%);
    opacity: 1;
    box-shadow: 0 6px 16px rgba(107, 115, 55, 0.28);
    pointer-events: none;
    z-index: 2;
  }
}


