body {
  direction: inherit;
  background-image:
    radial-gradient(1100px 550px at 88% -8%, rgba(42, 157, 143, .20), transparent),
    radial-gradient(900px 500px at -10% 32%, rgba(233, 196, 106, .22), transparent),
    linear-gradient(180deg, var(--bg-1), var(--bg-2) 45%, var(--bg-3));
  background-size: cover, cover, cover;
  background-repeat: no-repeat, no-repeat, no-repeat;
}
html[data-theme="dark"] body {
  background-image:
    radial-gradient(1100px 550px at 88% -8%, rgba(42, 157, 143, .12), transparent),
    radial-gradient(900px 500px at -10% 32%, rgba(233, 196, 106, .07), transparent),
    linear-gradient(180deg, #0e2329, #0d2830 45%, #0b2026);
  background-size: cover, cover, cover;
  background-repeat: no-repeat, no-repeat, no-repeat;
}
.menu-btn { display: none; }
.registration-box { padding: clamp(24px, 5vw, 42px); }
.registration-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-bottom: 28px; }
.registration-choice { width: 100%; text-align: start; font: inherit; color: var(--ink); cursor: pointer; }
.registration-choice[aria-pressed="true"] { border-color: var(--teal-dark); background: rgba(42, 157, 143, .13); }
.registration-form[hidden] { display: none; }
.success-message { display: none; margin-top: 16px; padding: 14px 16px; border-radius: 12px; color: var(--teal-deep); background: rgba(42, 157, 143, .14); font-weight: 700; }
.success-message.show { display: block; }
.product-media { min-height: 300px; display: grid; place-items: center; padding: 28px; text-align: center; border: 1.5px dashed rgba(31,122,112,.35); border-radius: var(--radius); background: rgba(255,255,255,.35); }
.product-media svg { width: 58px; height: 58px; margin: 0 auto 12px; color: var(--teal-dark); }
.course-panel { padding: clamp(26px, 5vw, 42px); }
.course-panel + .course-panel { margin-top: 24px; }
.course-panel ul { margin: 16px 0 24px; padding-inline-start: 22px; color: var(--muted); }
.course-panel li { margin-bottom: 8px; }
.legal-note { padding: 9px 18px; color: #fff; background: var(--night); text-align: center; font-size: .9rem; }
[dir="ltr"] .main-nav, [dir="ltr"] .hero-actions, [dir="ltr"] .nav-actions { direction: ltr; }
[dir="ltr"] .field input[type="tel"] { direction: ltr; }
@media (max-width: 860px) {
  .nav.has-menu { position: relative; }
  .nav.has-menu .menu-btn { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--glass-border); border-radius: 12px; color: var(--teal-deep); background: var(--glass-strong); cursor: pointer; }
  .nav.has-menu .menu-btn svg { width: 22px; height: 22px; }
  .nav.has-menu .main-nav.open { position: absolute; inset-inline: 16px; top: calc(100% + 8px); z-index: 20; display: flex; flex-direction: column; gap: 4px; padding: 14px; border: 1px solid var(--glass-border); border-radius: 16px; background: var(--glass-strong); box-shadow: 0 18px 45px rgba(17,67,64,.16); backdrop-filter: blur(16px); }
  .nav.has-menu .main-nav.open a { display: block; min-height: 44px; padding: 9px 10px; }
  .registration-options { grid-template-columns: 1fr; }
}
@media (max-width: 640px) { .registration-box, .course-panel { padding: 22px; } }

/* Inline CSS masks keep social icons visible on both file previews and hosted pages. */
.socials a { color: var(--teal-deep); }
.socials a svg { display: none; }
.socials a::before {
  content: "";
  width: 20px;
  height: 20px;
  display: block;
  background: currentColor;
  -webkit-mask: center / contain no-repeat;
  mask: center / contain no-repeat;
}
.socials a:nth-child(1)::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M22.5 6.4a2.8 2.8 0 0 0-1.9-2C18.9 4 12 4 12 4s-6.9 0-8.6.5a2.8 2.8 0 0 0-1.9 2A29 29 0 0 0 1 11.8a29 29 0 0 0 .5 5.3A2.8 2.8 0 0 0 3.4 19c1.7.5 8.6.5 8.6.5s6.9 0 8.6-.5a2.8 2.8 0 0 0 1.9-1.9 29 29 0 0 0 .5-5.3 29 29 0 0 0-.5-5.4zM10 9v6l5-3-5-3z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M22.5 6.4a2.8 2.8 0 0 0-1.9-2C18.9 4 12 4 12 4s-6.9 0-8.6.5a2.8 2.8 0 0 0-1.9 2A29 29 0 0 0 1 11.8a29 29 0 0 0 .5 5.3A2.8 2.8 0 0 0 3.4 19c1.7.5 8.6.5 8.6.5s6.9 0 8.6-.5a2.8 2.8 0 0 0 1.9-1.9 29 29 0 0 0 .5-5.3 29 29 0 0 0-.5-5.4zM10 9v6l5-3-5-3z'/%3E%3C/svg%3E"); }
.socials a:nth-child(2)::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M7 2h10a5 5 0 0 1 5 5v10a5 5 0 0 1-5 5H7a5 5 0 0 1-5-5V7a5 5 0 0 1 5-5zm5 5a5 5 0 1 0 0 10 5 5 0 0 0 0-10zm6-1.2a1.2 1.2 0 1 0 0 2.4 1.2 1.2 0 0 0 0-2.4z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M7 2h10a5 5 0 0 1 5 5v10a5 5 0 0 1-5 5H7a5 5 0 0 1-5-5V7a5 5 0 0 1 5-5zm5 5a5 5 0 1 0 0 10 5 5 0 0 0 0-10zm6-1.2a1.2 1.2 0 1 0 0 2.4 1.2 1.2 0 0 0 0-2.4z'/%3E%3C/svg%3E"); }
.socials a:nth-child(3)::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M22.8 2.2 19.5 21c-.3 1.3-1 1.6-2 1l-5-3.7-2.4 2.3c-.3.3-.5.5-1 .5l.4-5.1 9.3-8.4c.4-.4-.1-.6-.6-.2L6.7 14.6l-5-1.6c-1.1-.3-1.1-1.1.2-1.6L21.4 2c.9-.3 1.7.2 1.4.2z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M22.8 2.2 19.5 21c-.3 1.3-1 1.6-2 1l-5-3.7-2.4 2.3c-.3.3-.5.5-1 .5l.4-5.1 9.3-8.4c.4-.4-.1-.6-.6-.2L6.7 14.6l-5-1.6c-1.1-.3-1.1-1.1.2-1.6L21.4 2c.9-.3 1.7.2 1.4.2z'/%3E%3C/svg%3E"); }
.socials a:nth-child(4)::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M14 22v-8h3l1-4h-4V7c0-1.2.4-2 2-2h2V1.4c-.4-.1-1.7-.4-3.2-.4C11.7 1 10 2.9 10 6.3V10H7v4h3v8h4z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M14 22v-8h3l1-4h-4V7c0-1.2.4-2 2-2h2V1.4c-.4-.1-1.7-.4-3.2-.4C11.7 1 10 2.9 10 6.3V10H7v4h3v8h4z'/%3E%3C/svg%3E"); }
.socials a:hover { color: #fff; }

.logo-star {
  width: 72px;
  height: 52px;
  flex: 0 0 72px;
  background: url("../img/logo.png") center / contain no-repeat;
  color: transparent;
  animation: none;
}

.logo-star > * {
  display: none;
}

.footer-grid > div:first-child > h3 {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.footer-grid > div:first-child > h3::before {
  content: "";
  width: 58px;
  height: 44px;
  flex: 0 0 58px;
  background: url("../img/logo.png") center / contain no-repeat;
}

.footer-grid > div:first-child > h3 > svg {
  display: none;
}

@media (max-width: 640px) {
  .logo-star {
    width: 60px;
    height: 44px;
    flex-basis: 60px;
  }
}

.logo-star {
  width: 112px;
  height: 78px;
  flex: 0 0 112px;
}

.footer-grid > div:first-child > h3::before {
  width: 104px;
  height: 76px;
  flex-basis: 104px;
}

@media (max-width: 640px) {
  .logo-star {
    width: 84px;
    height: 60px;
    flex-basis: 84px;
  }

  .logo span { display: none; }

  .footer-grid > div:first-child > h3::before {
    width: 86px;
    height: 62px;
    flex-basis: 86px;
  }
}

/* Keep the YouTube play mark transparent inside the monochrome icon. */
.socials a:nth-child(1)::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' fill-rule='evenodd' d='M22.5 6.4a2.8 2.8 0 0 0-1.9-2C18.9 4 12 4 12 4s-6.9 0-8.6.5a2.8 2.8 0 0 0-1.9 2A29 29 0 0 0 1 11.8a29 29 0 0 0 .5 5.3A2.8 2.8 0 0 0 3.4 19c1.7.5 8.6.5 8.6.5s6.9 0 8.6-.5a2.8 2.8 0 0 0 1.9-1.9 29 29 0 0 0 .5-5.3 29 29 0 0 0-.5-5.4zM10 9v6l5-3-5-3z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' fill-rule='evenodd' d='M22.5 6.4a2.8 2.8 0 0 0-1.9-2C18.9 4 12 4 12 4s-6.9 0-8.6.5a2.8 2.8 0 0 0-1.9 2A29 29 0 0 0 1 11.8a29 29 0 0 0 .5 5.3A2.8 2.8 0 0 0 3.4 19c1.7.5 8.6.5 8.6.5s6.9 0 8.6-.5a2.8 2.8 0 0 0 1.9-1.9 29 29 0 0 0 .5-5.3 29 29 0 0 0-.5-5.4zM10 9v6l5-3-5-3z'/%3E%3C/svg%3E");
}
/* Temporary hero illustration replacement slot. */
.hero-illustration {
  width: min(360px, 84vw);
  height: auto;
  filter: drop-shadow(0 20px 28px rgba(18, 59, 58, .16));
  animation: hero-float 5s ease-in-out infinite;
}
@keyframes hero-float {
  50% { transform: translateY(-12px); }
}

.app-mockup-frame {
  min-height: 0;
  padding: clamp(10px, 2vw, 18px);
  overflow: hidden;
  border-style: solid;
  background: linear-gradient(135deg, rgba(42, 157, 143, .18), rgba(233, 196, 106, .2));
}
.app-mockup {
  width: 90%;
  height: auto;
  border-radius: 18px;
  background: transparent;
  box-shadow: 0 18px 38px rgba(17, 67, 64, .16);
}
.book-mockup-frame {
  min-height: 0;
  padding: clamp(10px, 2vw, 18px);
  overflow: hidden;
  border-style: solid;
  background: linear-gradient(135deg, rgba(233, 196, 106, .18), rgba(42, 157, 143, .12));
}
.book-mockup {
  width: 90%;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 18px 38px rgba(17, 67, 64, .16);
}
/* Customer messages and Quran virtue content */
.reviews-section { overflow: hidden; }
.reviews-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.reviews-heading .section-title { margin: 14px 0 0; text-align: start; }
.reviews-section .section-sub { margin-inline: 0; text-align: start; }
.review-controls { display: flex; gap: 10px; }
.review-controls button { width: 44px; height: 44px; border: 1px solid var(--glass-border); border-radius: 50%; color: var(--teal-deep); background: var(--glass-strong); font: 700 1.6rem/1 Tajawal, sans-serif; cursor: pointer; }
.review-controls button:hover, .review-controls button:focus-visible { color: #fff; background: var(--teal-dark); }
.review-track { display: flex; gap: 18px; overflow-x: auto; padding: 12px 2px 22px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.review-track::-webkit-scrollbar { display: none; }
.review-card { flex: 0 0 min(360px, 82vw); min-height: 240px; padding: 26px; scroll-snap-align: start; border: 1px solid var(--glass-border); border-radius: 22px; background: var(--glass); backdrop-filter: blur(16px); box-shadow: 0 16px 40px rgba(17, 67, 64, .1); text-align: start; }
.gmail-mark { width: 38px; height: 38px; margin-bottom: 22px; }
.review-card h3 { margin-bottom: 12px; color: var(--teal-deep); }
.review-card p { color: var(--muted); line-height: 1.9; }
.virtue-card { max-width: 1000px; margin: auto; padding: clamp(24px, 5vw, 48px); border-radius: 26px; }
.virtue-card > h3 { margin-bottom: 24px; color: var(--teal-deep); text-align: center; }
.quran-hadith { margin: 0 0 28px; padding: 22px; border-inline-start: 4px solid var(--amber); border-radius: 18px; background: rgba(233, 196, 106, .12); font-size: 1.08rem; line-height: 2.15; }
.virtue-points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.virtue-points article { padding: 20px; border: 1px solid var(--glass-border); border-radius: 18px; background: var(--glass-strong); }
.virtue-points h4 { margin-bottom: 8px; color: var(--teal-deep); }
.virtue-points p { color: var(--muted); line-height: 1.85; }
.poem { margin: 28px 0 0; padding: 24px; border-radius: 18px; background: rgba(42, 157, 143, .09); line-height: 2.1; text-align: center; }
.poem cite { display: block; margin-top: 12px; color: var(--teal-deep); font-weight: 700; }
.logo-star { width: 140px; height: 96px; flex: 0 0 140px; }
.price-tag { margin-bottom: 16px; padding: 12px 20px; border-radius: 14px; background: rgba(42,157,143,.1); border: 1px solid rgba(42,157,143,.3); display: inline-flex; align-items: baseline; gap: 8px; }
.price-tag .price { font-size: 1.8rem; font-weight: 900; color: var(--teal-deep); }
.price-tag small { color: var(--muted); font-size: .95rem; }
.coming-soon-badge { display: inline-flex; padding: 6px 18px; border-radius: 999px; background: rgba(233,196,106,.25); border: 1px solid rgba(233,196,106,.6); color: var(--ink); font-weight: 700; font-size: .9rem; margin-bottom: 12px; }
html[data-theme="dark"] .price-tag { background: rgba(42,157,143,.15); border-color: rgba(42,157,143,.4); }
html[data-theme="dark"] .price-tag .price { color: #7fd6cb; }
html[data-theme="dark"] .coming-soon-badge { background: rgba(233,196,106,.12); border-color: rgba(233,196,106,.35); color: var(--ink); }
.footer-grid > div:first-child > h3::before { width: 128px; height: 92px; flex-basis: 128px; }
@media (max-width: 760px) {
  .reviews-heading { align-items: start; flex-direction: column; }
  .virtue-points { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .logo-star { width: 104px; height: 72px; flex-basis: 104px; }
  .footer-grid > div:first-child > h3::before { width: 104px; height: 76px; flex-basis: 104px; }
}
/* Downloaded brand icons from Simple Icons. */
.socials a::before { display: none; }
.socials a img, .socials .social-placeholder img { display: block; width: 21px; height: 21px; object-fit: contain; }
.wa-float img { display: block; width: 30px; height: 30px; }

/* Guidance assistant */
.guide-box { padding: clamp(24px, 5vw, 42px); border-radius: 26px; }
.guide-options { display: flex; flex-wrap: wrap; gap: 12px; }
.guide-option {
  padding: 12px 24px; border-radius: 999px;
  background: rgba(42,157,143,.1); border: 1.5px solid rgba(42,157,143,.35);
  color: var(--ink); font-family: inherit; font-weight: 700; font-size: .95rem;
  cursor: pointer; transition: .3s;
}
.guide-option:hover { background: var(--teal-dark); color: #fff; border-color: var(--teal-dark); transform: translateY(-2px); }
.guide-option:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }

.unit-num {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; height: 44px; padding: 0 10px; border-radius: 999px;
  background: rgba(42,157,143,.12); border: 1.5px solid rgba(42,157,143,.4);
  color: var(--teal-deep); font-weight: 900; font-size: 1.1rem;
}
html[data-theme="dark"] .unit-num { color: #7fd6cb; }

.eval-table { width: 100%; border-collapse: collapse; }
.eval-table td { padding: 12px 14px; border-bottom: 1px solid rgba(128,128,128,.2); }
.eval-table tr:last-child td { border-bottom: none; }
.eval-table .eval-score { text-align: center; font-weight: 900; color: var(--teal-deep); width: 70px; }
html[data-theme="dark"] .eval-table .eval-score { color: #7fd6cb; }
.eval-table .eval-total td { font-weight: 800; border-top: 2px solid rgba(128,128,128,.35); }
.eval-table .eval-total .eval-score { font-size: 1.25rem; }

.courses-table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.courses-table th, .courses-table td { padding: 12px 14px; text-align: start; border-bottom: 1px solid rgba(128,128,128,.22); }
.courses-table th { background: rgba(42,157,143,.08); font-weight: 800; }
@media (max-width: 640px) { .courses-table, .courses-table thead, .courses-table tbody, .courses-table tr, .courses-table td, .courses-table th { display: block; }
  .courses-table thead { display: none; }
  .courses-table tr { margin-bottom: 14px; border: 1px solid rgba(128,128,128,.25); border-radius: 12px; padding: 8px; }
  .courses-table td { border: none; padding: 6px 10px; }
  .courses-table td::before { content: attr(data-label); display: block; font-weight: 700; color: var(--muted); font-size: .8rem; }
}
.reviews-heading { flex-wrap: wrap; }
.review-track { align-items: flex-start; }
.review-card { box-sizing: border-box; overflow-wrap: anywhere; }
.review-card details { margin-top: 12px; }
.review-card summary { cursor: pointer; color: var(--teal-deep); font-weight: 700; padding-block: 8px; }
.review-card details p + p { margin-top: 12px; }
.review-card summary:focus-visible, .review-track:focus-visible { outline: 2px solid var(--teal-deep); outline-offset: 3px; }

.footer-quick-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, auto));
  justify-content: start;
  column-gap: 28px;
  row-gap: 8px;
}
.footer-quick-links li { margin-bottom: 0; }


/* Requested content refinements */
.hero-sub { font-size: clamp(1rem, 2vw, 1.45rem); }
.logo-star { width: 280px; height: 192px; flex-basis: 280px; }
.footer-grid > div:first-child > h3::before { width: 256px; height: 184px; flex-basis: 256px; }
.footer-grid > div:last-child > ul { padding-inline-start: 0; }
.footer-grid > div:last-child > ul li { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
[dir="rtl"] .footer-grid > div:last-child > ul li { direction: rtl; }
[dir="ltr"] .footer-grid > div:last-child > ul li { direction: ltr; }
.poem-lines { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 28px; font-size: clamp(1.15rem, 2vw, 1.45rem); font-weight: 700; }
.poem-lines span { display: block; }
.program-details-link { display: flex; width: fit-content; margin: 0 auto 36px; }
.delivery-options { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; padding: 16px; border: 1px solid var(--glass-border); border-radius: 14px; background: var(--glass); }
.delivery-options[hidden], .other-qualification[hidden] { display: none; }
.student-book-mockup { max-height: 420px; object-fit: contain; }
.founder-hero { padding-top: clamp(40px, 7vw, 84px); }
.founder-hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr); gap: clamp(30px, 6vw, 72px); align-items: center; }
.founder-hero h1 { margin: 30px 0 14px; font-size: clamp(2.2rem, 4vw, 3.6rem); line-height: 1.15; }
.founder-hero h1 span { color: var(--teal-deep); }
.founder-photo-wrap { width: min(410px, 88vw); margin-inline: auto; text-align: center; }
.founder-photo { aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; padding: 0; border: 5px double #c8942e; border-radius: 50%; color: var(--teal-deep); background: linear-gradient(145deg, var(--glass-strong), rgba(42, 157, 143, .12)); box-shadow: 0 0 0 5px rgba(233, 196, 106, .18), 0 24px 65px rgba(17, 67, 64, .14); }
.founder-photo img { width: 100%; height: 100%; object-fit: contain; object-position: center bottom; }
.founder-photo svg { width: 88px; height: 88px; margin-bottom: 12px; }
.founder-photo strong, .founder-photo small { display: block; }
.founder-photo small, .founder-caption { color: var(--muted); }
.founder-caption { margin-top: 14px; font-size: .9rem; }
.founder-bio-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(260px, .8fr); gap: 22px; }
.founder-panel { padding: clamp(24px, 4vw, 38px); }
.founder-facts { display: grid; gap: 12px; }
.founder-fact { padding: 16px 18px; border: 1px solid var(--glass-border); border-radius: 16px; background: var(--glass-strong); }
.founder-fact strong { display: block; color: var(--teal-deep); }
.founder-quote { max-width: 950px; margin: auto; padding: clamp(26px, 5vw, 44px); border-inline-start: 5px solid var(--amber); text-align: center; }
.founder-quote p { margin: 0; font-size: clamp(1.2rem, 2.5vw, 1.7rem); font-weight: 700; }
.founder-quote cite { display: block; margin-top: 14px; color: var(--muted); font-style: normal; }
.certificates-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; max-width: 1040px; margin-inline: auto; }
.certificate-card { flex: 0 1 310px; width: 100%; padding: 14px; border: 1px solid var(--glass-border); border-radius: 20px; color: var(--ink); background: var(--glass); font: inherit; cursor: zoom-in; box-shadow: 0 14px 40px rgba(17, 67, 64, .08); transition: transform .25s, border-color .25s; }
.certificate-card:hover { transform: translateY(-5px); border-color: var(--teal-dark); }
.certificate-card:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
.certificate-preview { aspect-ratio: 1.42 / 1; display: grid; place-items: center; overflow: hidden; padding: 0; border: 7px double var(--amber); border-radius: 8px; color: var(--teal-deep); background: #fffdf6; text-align: center; }
.certificate-preview img { width: 100%; height: 100%; object-fit: cover; }
.certificate-card:nth-child(5) { order: 1; }
.certificate-card:nth-child(5) .certificate-preview { aspect-ratio: 3 / 4; }
.certificate-card:nth-child(5) .certificate-preview img { object-fit: contain; }
.certificate-preview strong, .certificate-preview small { display: block; }
.certificate-dialog { width: min(900px, calc(100% - 28px)); padding: 0; border: 0; border-radius: 24px; background: transparent; }
.certificate-dialog::backdrop { background: rgba(5, 24, 27, .8); backdrop-filter: blur(5px); }
.certificate-dialog[open] { display: grid; place-items: center; inset: 0; margin: auto; }
.certificate-dialog-inner { position: relative; display: grid; place-items: center; width: 100%; max-height: calc(100vh - 28px); padding: 24px; overflow: auto; border-radius: 24px; background: var(--bg-2); }
.certificate-dialog-image { display: block; width: auto; max-width: 100%; max-height: calc(100vh - 76px); margin: auto; border-radius: 12px; object-fit: contain; }
.certificate-dialog-image[hidden], .certificate-dialog-placeholder[hidden] { display: none !important; }
.certificate-dialog-placeholder { min-height: min(520px, 65vh); }
.certificate-dialog-close { position: absolute; inset-block-start: 12px; inset-inline-end: 12px; z-index: 2; width: 44px; height: 44px; border: 0; border-radius: 50%; color: #fff; background: var(--teal-dark); font: 700 1.5rem/1 Tajawal, sans-serif; cursor: pointer; }
@media (max-width: 640px) {
  .logo-star { width: 208px; height: 144px; flex-basis: 208px; }
  .footer-grid > div:first-child > h3::before { width: 208px; height: 152px; flex-basis: 208px; }
  .poem-lines { gap: 12px; font-size: 1.05rem; }
}
@media (max-width: 780px) {
  .founder-hero-grid, .founder-bio-grid { grid-template-columns: 1fr; }
  .founder-photo-wrap { order: -1; width: min(330px, 84vw); }
  .founder-hero h1, .founder-hero .lead { text-align: center; }
  .founder-hero .badge { display: table; margin-inline: auto; }
  .certificate-card { flex-basis: 100%; }
}

/* Balanced brand sizing: keep the academy name visible without enlarging the bar. */
.logo-star { width: 104px; height: 72px; flex-basis: 104px; }
.footer-grid > div:first-child > h3::before { width: 96px; height: 68px; flex-basis: 96px; }
@media (max-width: 640px) {
  .site-header { width: calc(100% - 16px); }
  .nav { padding: 7px 10px; }
  .logo { gap: 5px; font-size: .92rem; white-space: nowrap; }
  .logo span { display: inline; }
  .logo-star { width: 58px; height: 42px; flex-basis: 58px; }
  .footer-grid > div:first-child > h3::before { width: 80px; height: 58px; flex-basis: 80px; }
}

.whatsapp-number { color: inherit; direction: ltr; unicode-bidi: isolate; font-variant-numeric: tabular-nums; }

