:root {
  --ink: #10211f;
  --muted: #5c6966;
  --paper: #f7f5ef;
  --white: #ffffff;
  --teal: #0f766e;
  --teal-dark: #0b4d49;
  --amber: #d99b31;
  --rose: #b84f57;
  --line: rgba(16, 33, 31, 0.14);
  --shadow: 0 18px 60px rgba(16, 33, 31, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px clamp(16px, 4vw, 52px);
  background: rgba(247, 245, 239, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 240px;
}

.brand-logo {
  width: 58px;
  height: 44px;
  object-fit: contain;
  background: var(--white);
  border-radius: 8px;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: #233936;
  font-size: 14px;
  font-weight: 700;
}

.nav-links select {
  height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  font-weight: 800;
}

.is-rtl {
  text-align: right;
}

.is-rtl .brand,
.is-rtl .hero-actions,
.is-rtl .dashboard-top {
  flex-direction: row-reverse;
}

.is-rtl .hero-content {
  margin-right: clamp(16px, 7vw, 92px);
  margin-left: 0;
}

.is-rtl .hero-overlay {
  background:
    linear-gradient(270deg, rgba(10, 25, 23, 0.88) 0%, rgba(10, 25, 23, 0.62) 43%, rgba(10, 25, 23, 0.08) 100%),
    linear-gradient(0deg, rgba(10, 25, 23, 0.58), rgba(10, 25, 23, 0.05) 42%);
}

.nav-toggle {
  display: none;
}

.hero {
  position: relative;
  min-height: 86vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  background: #081312;
}

.hero img,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero img {
  object-fit: cover;
  object-position: 72% center;
  filter: saturate(0.96) contrast(1.05);
  transform: scale(1.02);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(6, 18, 16, 1) 0%, rgba(6, 18, 16, 0.98) 48%, rgba(6, 18, 16, 0.68) 72%, rgba(6, 18, 16, 0.18) 100%),
    linear-gradient(0deg, rgba(6, 18, 16, 0.86), rgba(6, 18, 16, 0.08) 50%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 34%;
  background: linear-gradient(0deg, rgba(6, 18, 16, 0.96), rgba(6, 18, 16, 0));
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100% - 32px));
  margin-left: clamp(16px, 7vw, 92px);
  padding: 86px 0 118px;
  color: var(--white);
}

.hero-content::before {
  content: "";
  display: block;
  width: 86px;
  height: 7px;
  margin-bottom: 22px;
  background: var(--rose);
  border-radius: 999px;
  box-shadow: 0 0 34px rgba(184, 79, 87, 0.5);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--amber);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  max-width: 11ch;
  font-size: clamp(56px, 7.2vw, 98px);
  line-height: 0.9;
  letter-spacing: 0;
  text-shadow: 0 16px 46px rgba(0, 0, 0, 0.45);
}

.hero p:not(.eyebrow) {
  max-width: 610px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.55;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
}

.hero-actions,
.dashboard-top,
.member-benefits,
.payment-logos,
.amounts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.16);
}

.button.primary {
  color: var(--white);
  background: #d6111f;
}

.button.secondary {
  color: var(--ink);
  background: var(--white);
  border-color: var(--line);
}

.section,
.band {
  padding: clamp(54px, 7vw, 92px) clamp(16px, 5vw, 72px);
}

.section {
  scroll-margin-top: 96px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  padding-top: 0;
  padding-bottom: 0;
  background: var(--line);
}

.stats div {
  min-height: 130px;
  display: grid;
  align-content: center;
  padding: 24px;
  background: var(--white);
}

.stats strong {
  color: var(--teal-dark);
  font-size: 34px;
}

.stats span {
  color: var(--muted);
  font-weight: 700;
}

.intro,
.two-col,
.donation,
.qa-layout,
.portal-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.section-copy h2,
.section-heading h2 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(32px, 4.2vw, 58px);
  line-height: 1.04;
  letter-spacing: 0;
}

.section-copy p:not(.eyebrow),
.section-heading p:not(.eyebrow) {
  max-width: 720px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.video-panel {
  min-height: 340px;
  display: grid;
  place-items: center;
  gap: 12px;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.9), rgba(184, 79, 87, 0.68)),
    url("assets/hero-street-dakwah.png") center / cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.play-button {
  width: 72px;
  height: 72px;
  border: 0;
  border-radius: 50%;
  color: var(--teal-dark);
  background: var(--white);
  cursor: pointer;
  font-size: 22px;
}

.principles,
.activity-grid,
.module-grid,
.value-grid,
.program-list,
.domain-grid,
.objective-list,
.booth-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.principles article,
.activity-grid article,
.value-grid article,
.program-list article,
.domain-grid article,
.objective-list article,
.booth-grid article,
.paper-summary,
.module-card,
.member-form,
.member-dashboard,
.donation-panel,
.faq-list details,
.ask-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(16, 33, 31, 0.06);
}

.principles article,
.activity-grid article,
.value-grid article,
.program-list article,
.domain-grid article,
.objective-list article,
.booth-grid article,
.paper-summary,
.module-card,
.member-form,
.member-dashboard,
.donation-panel,
.ask-panel {
  padding: 24px;
}

.activity-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 28px;
}

.activity-grid span,
.value-grid span,
.objective-list span,
.booth-grid span,
.module-card .module-index {
  color: var(--rose);
  font-weight: 800;
}

.activity-grid p,
.principles p,
.value-grid p,
.program-list p,
.domain-grid p,
.objective-list p,
.booth-grid p,
.paper-summary p,
.module-card p {
  color: var(--muted);
  line-height: 1.65;
}

.values,
.domain,
.paper,
.contact,
.committee {
  background: var(--white);
}

.value-grid,
.program-list,
.domain-grid,
.booth-grid {
  margin-top: 28px;
}

.programs,
.booth {
  background: #ece9df;
}

.latest {
  color: var(--white);
  background:
    linear-gradient(180deg, rgba(8, 19, 18, 0.96), rgba(8, 19, 18, 0.92)),
    url("assets/bbb/photo_25_2026-06-09_12-35-18.jpg") center / cover;
}

.latest .section-heading p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.76);
}

.latest-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 18px;
  margin-top: 30px;
}

.latest-feature,
.nasheed-card {
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(14px);
}

.latest-feature video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  object-fit: cover;
}

.latest-feature-copy,
.nasheed-card > div {
  padding: 22px;
}

.latest-feature-copy span {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 7px 10px;
  color: var(--white);
  background: #d6111f;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.latest-feature-copy h3,
.nasheed-card h3 {
  margin: 0;
  font-size: clamp(24px, 2.6vw, 38px);
  line-height: 1.08;
}

.latest-feature-copy p,
.nasheed-card p {
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.7;
}

.nasheed-card {
  display: grid;
  grid-template-rows: auto 1fr;
}

.nasheed-card iframe {
  display: block;
  width: 100%;
  min-height: 260px;
  border: 0;
}

.bbb-gallery {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 1.2fr;
  grid-auto-rows: 190px;
  gap: 12px;
  margin-top: 18px;
}

.bbb-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.bbb-gallery img:first-child,
.bbb-gallery img:last-child {
  grid-row: span 2;
}

.gallery-more {
  margin-top: 22px;
  text-align: center;
}

.gallery-more summary {
  width: max-content;
  margin: 0 auto;
  list-style: none;
}

.gallery-more summary::-webkit-details-marker {
  display: none;
}

.gallery-video-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
  text-align: left;
}

.gallery-video-grid figure {
  margin: 0;
}

.gallery-video-grid video {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  background: #000;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.gallery-video-grid figcaption {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.gallery-photo-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.gallery-photo-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.paper-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: start;
  margin-top: 28px;
}

.paper-summary {
  position: sticky;
  top: 94px;
}

.paper-summary h3 {
  margin-top: 0;
}

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

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

.booth-grid article {
  min-height: 190px;
}

.committee-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.committee-grid span {
  padding: 10px 12px;
  color: var(--teal-dark);
  background: #e3f2ee;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 800;
}

.contact {
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(8, 19, 18, 0.98), rgba(8, 19, 18, 0.92)),
    url("assets/official/poster-mo4.jpg") center / cover;
}

.contact .section-heading p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.74);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 18px;
  margin-top: 28px;
}

.contact-card,
.social-card {
  padding: 26px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(14px);
}

.contact-card img {
  display: block;
  width: 150px;
  height: 86px;
  object-fit: contain;
  padding: 10px;
  background: var(--white);
  border-radius: 8px;
}

.contact-card h3,
.social-card h3 {
  margin-bottom: 10px;
}

.contact-card p,
.social-card p,
.latest-post p {
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.7;
}

.contact-card a {
  color: var(--white);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.social-links {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.social-links a {
  display: grid;
  min-height: 92px;
  place-items: center;
  gap: 8px;
  padding: 12px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  text-align: center;
  font-weight: 800;
}

.social-links a[aria-disabled="true"] {
  opacity: 0.72;
}

.social-links span {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: var(--white);
  background: #d6111f;
  border-radius: 50%;
  font-weight: 800;
}

.latest-post {
  margin-top: 18px;
  padding: 18px;
  background: rgba(214, 17, 31, 0.14);
  border: 1px solid rgba(214, 17, 31, 0.32);
  border-radius: 8px;
}

.latest-post span {
  color: var(--amber);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.quote-panel {
  padding: 28px;
  color: var(--white);
  background: var(--teal-dark);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.quote-panel p {
  margin: 0 0 16px;
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 800;
  line-height: 1.16;
}

.quote-panel span {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 800;
}

.training {
  background: var(--ink);
  color: var(--white);
}

.training-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
}

.training-poster {
  display: block;
  width: min(560px, 100%);
  margin: 38px auto 0;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.training-card h2 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(32px, 4.2vw, 58px);
  line-height: 1.04;
}

.training-card p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 17px;
  line-height: 1.8;
}

.training-card ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.training-card li {
  padding: 16px;
  color: var(--ink);
  background: var(--white);
  border-radius: 8px;
  font-weight: 800;
}

.media {
  background: var(--white);
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.media-grid figure {
  margin: 0;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(16, 33, 31, 0.06);
}

.media-grid .wide {
  grid-column: span 2;
  grid-row: span 2;
}

.media-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.media-grid .wide img {
  aspect-ratio: 16 / 10;
}

.media-grid figcaption {
  padding: 14px;
  color: var(--ink);
  font-weight: 800;
}

.learning {
  color: var(--white);
  background: var(--teal-dark);
}

.learning .section-heading p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.76);
}

.module-grid {
  margin-top: 28px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.module-card {
  min-height: 236px;
  display: flex;
  flex-direction: column;
  color: var(--ink);
}

.module-card button {
  margin-top: auto;
}

.portal {
  background: #ece9df;
}

.member-form,
.member-dashboard {
  min-height: 100%;
}

.member-form h3,
.member-dashboard h3,
.ask-panel h3 {
  margin-top: 0;
}

label {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
}

input,
select {
  height: 46px;
  padding: 0 12px;
}

textarea {
  min-height: 170px;
  resize: vertical;
  padding: 12px;
}

.dashboard-top {
  align-items: center;
  justify-content: space-between;
}

.progress-shell {
  margin: 18px 0;
}

.progress-shell span {
  display: block;
  margin-bottom: 8px;
  font-weight: 800;
}

.progress-track {
  height: 12px;
  overflow: hidden;
  background: #d8d5cb;
  border-radius: 999px;
}

.progress-track div {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--teal), var(--amber));
  transition: width 0.25s ease;
}

.member-benefits span,
.payment-logos span {
  padding: 8px 10px;
  color: var(--teal-dark);
  background: #e3f2ee;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.quiz-box {
  margin-top: 22px;
  padding: 18px;
  background: #f7f5ef;
  border-radius: 8px;
}

#quizOptions {
  display: grid;
  gap: 10px;
}

#quizOptions button,
.amounts button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  cursor: pointer;
  font-weight: 800;
}

.quiz-feedback {
  min-height: 24px;
  color: var(--teal-dark);
  font-weight: 800;
}

.certificate {
  display: none;
  margin-top: 22px;
  padding: 28px;
  text-align: center;
  border: 2px solid var(--amber);
  border-radius: 8px;
  background: #fffaf0;
}

.certificate.is-visible {
  display: block;
}

.certificate p,
.certificate span {
  margin: 0;
  color: var(--muted);
}

.certificate strong {
  display: block;
  margin: 8px 0;
  color: var(--teal-dark);
  font-family: "Noto Naskh Arabic", Inter, sans-serif;
  font-size: 30px;
}

.donation-panel {
  display: grid;
  gap: 18px;
}

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

.payment-logos span {
  color: var(--ink);
  background: #f3eee1;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  padding: 18px;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 800;
}

.faq-list p,
.assistant-note {
  color: var(--muted);
  line-height: 1.7;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(16px, 5vw, 72px);
  color: var(--white);
  background: #10211f;
}

@media (max-width: 1100px) {
  .module-grid,
  .activity-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .value-grid,
  .program-list,
  .domain-grid,
  .objective-list,
  .booth-grid,
  .media-grid {
    grid-template-columns: 1fr;
  }

  .media-grid .wide {
    grid-column: span 1;
    grid-row: span 1;
  }
}

@media (max-width: 980px) {
  .nav-toggle {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
  }

  .nav-links {
    position: absolute;
    top: 73px;
    right: 16px;
    left: 16px;
    display: none;
    padding: 18px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .nav-links.is-open {
    display: grid;
  }

  .hero {
    min-height: calc(100vh - 72px);
  }

  .hero-overlay {
    background:
      linear-gradient(0deg, rgba(6, 18, 16, 1) 0%, rgba(6, 18, 16, 0.97) 68%, rgba(6, 18, 16, 0.5) 100%),
      linear-gradient(90deg, rgba(6, 18, 16, 0.86), rgba(6, 18, 16, 0.2));
  }

  .hero-content {
    align-self: end;
    margin: 0;
    padding: 72px 16px 52px;
    width: 100%;
  }

  .is-rtl .hero-content {
    margin: 0;
  }

  .intro,
  .two-col,
  .donation,
  .qa-layout,
  .portal-layout,
  .latest-layout,
  .contact-layout,
  .paper-layout,
  .training-card,
  .stats {
    grid-template-columns: 1fr;
  }

  .bbb-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 160px;
  }

  .gallery-video-grid,
  .gallery-photo-grid,
  .social-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bbb-gallery img:first-child,
  .bbb-gallery img:last-child {
    grid-row: span 1;
  }

  .paper-summary {
    position: static;
  }

  .activity-grid,
  .module-grid,
  .amounts {
    grid-template-columns: 1fr;
  }

  .site-footer {
    display: grid;
  }
}
