/* Mawaddah Academy — visual concept, 2026 | Developer may restructure for production */

/* Base styles */
.hero {
  isolation: isolate;
}
.hero:after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/images/bg.webp") center/cover no-repeat;
  opacity: 0.25;
  pointer-events: none;
  z-index: 0;
}
.hero-grid {
  z-index: 1;
}
:root {
  --ink: #173147;
  --muted: #577185;
  --dark: #102a3b;
  --sky: #d7f2ff;
  --blue: #38b6ff;
  --blue-2: #149ee8;
  --soft: #f2faff;
  --warm: #fff8eb;
  --cream: #fbfaf7;
  --mint: #eaf8f2;
  --line: #cceafb;
  --white: #fff;
  --shadow: 0 20px 70px rgba(56, 124, 169, 0.1);
  --radius: 22px;
  --sans: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Lora", Georgia, serif;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
button,
input,
select,
textarea {
  font: inherit;
}
a {
  color: inherit;
}
button {
  cursor: pointer;
}
img,
svg {
  max-width: 100%;
  height: auto;
}
::selection {
  background: #c7edff;
  color: #102a3b;
}
h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}
h1,
h2,
h3 {
  line-height: 1.17;
  letter-spacing: -0.027em;
}
h1,
h2 {
  font-family: var(--serif);
  font-weight: 400;
}
h1 {
  font-size: clamp(2.75rem, 4.8vw, 4.7rem);
}
h2 {
  font-size: clamp(2.1rem, 3.4vw, 3.2rem);
}
h3 {
  font-family: var(--sans);
  font-size: 1.31rem;
  font-weight: 800;
}
p {
  color: var(--muted);
}
:focus-visible {
  outline: 3px solid #248ec1;
  outline-offset: 4px;
}
.container {
  width: min(1160px, calc(100% - 48px));
  margin: auto;
}
.skip-link {
  position: absolute;
  top: -100px;
  left: 20px;
  background: #fff;
  padding: 8px 16px;
  z-index: 999;
}
.skip-link:focus {
  top: 10px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  border-radius: 100px;
  font-weight: 800;
  font-size: 0.95rem;
  line-height: 1.2;
  padding: 16px 25px;
  border: 1px solid transparent;
  transition:
    transform 0.2s,
    box-shadow 0.2s,
    background 0.2s;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn-primary {
  background: var(--blue);
  color: white;
  box-shadow: 0 11px 25px rgba(18, 124, 173, 0.19);
}
.btn-primary:hover {
  background: var(--blue-2);
  box-shadow: 0 15px 30px rgba(18, 124, 173, 0.24);
}
.btn-outline {
  color: var(--ink);
  border-color: #c6dce7;
  background: #fff;
}
.btn-outline:hover {
  border-color: var(--blue);
  background: var(--soft);
}
.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}
.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.11);
}
.text-link {
  font-weight: 800;
  text-decoration: none;
  color: var(--blue);
  display: inline-flex;
  gap: 8px;
  align-items: center;
}
.text-link:hover {
  text-decoration: underline;
}
.text-link svg {
  transition: transform 0.2s;
}
.text-link:hover svg {
  transform: translateX(3px);
}
.section-soft {
  background: var(--soft);
}
.section {
  padding-block: clamp(4.5rem, 7vw, 6.5rem);
}
.section-cream {
  background: var(--cream);
}
.section-warm {
  background: var(--warm);
}
#courses {
  scroll-margin-top: 0;
}
.section-head {
  max-width: 660px;
  margin-bottom: 42px;
}
.section-head h2 {
  margin: 15px 0 18px;
}
.section-head p {
  font-size: 1.07rem;
  line-height: 1.8;
}
.center {
  text-align: center;
  margin-inline: auto;
}
.center p {
  margin-inline: auto;
}
.section-toplink {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
}
.section-toplink .section-head {
  margin-bottom: 38px;
}

/* Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(17px);
  border-bottom: 1px solid rgba(15, 61, 88, 0.15);
}
.nav-inner {
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
  text-decoration: none;
  color: var(--ink);
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 29px;
}
.main-nav > a,
.nav-drop > button {
  font-size: 0.88rem;
  text-decoration: none;
  font-weight: 750;
  color: #254557;
  border: 0;
  background: none;
  padding: 12px 0;
  white-space: nowrap;
}
.main-nav > a:hover,
.nav-drop > button:hover,
.main-nav a[aria-current="page"] {
  color: var(--blue);
}
.nav-drop {
  position: relative;
}
.nav-drop > button {
  display: flex;
  align-items: center;
  gap: 7px;
}
.drop-menu {
  display: none;
  position: absolute;
  left: -20px;
  top: 100%;
  min-width: 240px;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: 14px;
}
.drop-menu a {
  display: block;
  padding: 9px 12px;
  text-decoration: none;
  font-size: 0.9rem;
  border-radius: 8px;
  font-weight: 650;
}
.drop-menu a:hover {
  background: var(--soft);
  color: var(--blue);
}
.nav-drop:hover .drop-menu,
.nav-drop:focus-within .drop-menu {
  display: block;
}
.nav-cta {
  padding: 13px 18px;
  font-size: 0.86rem;
}
.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 9px;
  color: var(--ink);
}
.menu-toggle svg {
  display: block;
  width: 25px;
}

/* Homepage hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 41px 0 0.25rem;
}
.hero:before {
  content: "";
  position: absolute;
  width: 470px;
  height: 470px;
  background: #dbf3ff;
  opacity: 0.55;
  filter: blur(20px);
  border-radius: 50%;
  top: -230px;
  right: -150px;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.01fr 0.99fr;
  align-items: center;
  gap: 45px;
}
.hero-copy h1 {
  margin: 20px 0 24px;
}
.highlight {
  color: var(--blue);
}
.hero-lead {
  font-size: 1.14rem;
  line-height: 1.85;
  max-width: 550px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 30px 0 26px;
}
.lesson-visual {
  position: relative;
  max-width: 545px;
  margin-left: auto;
  padding: 23px 0 0;
}
.lesson-visual:before {
  content: "";
  position: absolute;
  width: 92%;
  height: 88%;
  border-radius: 35% 65% 54% 46%;
  background: linear-gradient(145deg, #c7edff, #e7f8ff);
  z-index: 0;
  top: 3%;
  left: 4%;
  transform: rotate(-7deg);
}
.hero-photo {
  position: relative;
  z-index: 1;
  margin: 0 18px;
  border: 9px solid #fff;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 25px 70px rgba(19, 75, 99, 0.18);
  transform: rotate(1.5deg);
  background: #e2f5ff;
}
.hero-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 1.5;
  object-fit: cover;
}
.hero-photo figcaption {
  position: absolute;
  inset: auto 14px 14px;
  display: grid;
  gap: 2px;
  padding: 13px 15px;
  border-radius: 13px;
  background: rgba(16, 42, 59, 0.86);
  color: #fff;
  backdrop-filter: blur(8px);
}
.hero-photo figcaption span {
  font-size: 0.72rem;
  font-weight: 700;
  color: #d7eff9;
}
.hero-photo figcaption strong {
  font-size: 0.94rem;
  line-height: 1.25;
}

.promise-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 1.4rem 0;
  gap: 16px;
}
.promise {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 3px 18px;
  border-right: 1px solid var(--line);
  font-weight: 800;
  font-size: 0.86rem;
}
.promise:first-child {
  padding-left: 0;
}
.promise:last-child {
  border: 0;
}
.promise svg {
  color: var(--blue);
  flex: none;
  width: 25px;
  height: 25px;
}
.promise span {
  line-height: 1.35;
}

/* Shared content components */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.course-card {
  display: flex;
  flex-direction: column;
  border: 1px solid #e5edf1;
  border-radius: 24px;
  background: #fff;
  padding: 27px;
  min-height: 280px;
  transition:
    transform 0.22s,
    box-shadow 0.22s;
  box-shadow: 0 5px 25px rgba(19, 57, 80, 0.025);
}
.course-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}
.card-icon {
  width: 58px;
  height: 58px;
  border-radius: 17px;
  display: grid;
  place-items: center;
  margin-bottom: 23px;
}
.card-icon svg {
  width: 29px;
  height: 29px;
}
.icon-blue {
  background: #e2f3fc;
  color: #1686b7;
}
.icon-peach {
  background: #fff1dc;
  color: #bd7a29;
}
.icon-mint {
  background: #e7f8f0;
  color: #168e66;
}
.icon-purple {
  background: #f0edff;
  color: #8171c7;
}
.course-card h3 {
  margin: 0 0 10px;
}
.course-card p {
  font-size: 0.94rem;
  line-height: 1.7;
  margin-bottom: 24px;
}
.course-card .text-link {
  margin-top: auto;
  font-size: 0.9rem;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 35px;
}
.step {
  position: relative;
}
.step-num {
  width: 56px;
  height: 56px;
  border: 1px solid #cceafb;
  background: #fff;
  border-radius: 17px;
  font: 400 1.8rem var(--serif);
  display: grid;
  place-items: center;
  color: #149ee8;
  margin-bottom: 22px;
}

.step p {
  font-size: 0.94rem;
}
.step:not(:last-child):after {
  content: "";
  position: absolute;
  top: 27px;
  left: 90px;
  right: -5px;
  height: 1px;
  background: repeating-linear-gradient(
    90deg,
    #aad2e4,
    #aad2e4 5px,
    transparent 5px,
    transparent 11px
  );
}

.care-section {
  background: var(--dark);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.care-section:before {
  content: "";
  position: absolute;
  width: 550px;
  height: 550px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  right: -240px;
  top: -220px;
  box-shadow:
    0 0 0 60px rgba(255, 255, 255, 0.025),
    0 0 0 130px rgba(255, 255, 255, 0.015);
}
.care-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 75px;
  align-items: center;
  position: relative;
}
.care-grid h2 {
  margin: 19px 0 20px;
}
.care-grid p {
  font-size: 1.06rem;
  line-height: 1.85;
}
.care-bullets {
  display: grid;
  gap: 17px;
  margin-top: 28px;
}
.care-bullets div {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: #eff8fe;
  font-size: 0.91rem;
}
.care-bullets svg {
  width: 20px;
  flex-shrink: 0;
  color: #a3e6fd;
}
.journey-panel {
  background: #fff;
  border-radius: 25px;
  padding: 26px;
  color: var(--ink);
  box-shadow: 0 25px 65px rgba(0, 0, 0, 0.15);
}
.journey-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e7eff3;
  padding-bottom: 18px;
  font-weight: 800;
}
.journey-title span {
  font-size: 0.72rem;
  background: #e7f7ef;
  padding: 6px 10px;
  border-radius: 40px;
  color: #187b56;
}
.journey-item {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  align-items: start;
  margin-top: 23px;
}
.journey-dot {
  width: 35px;
  height: 35px;
  background: #e7f4fb;
  border-radius: 50%;
  color: var(--blue);
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 800;
}
.journey-item b {
  font-size: 0.9rem;
}
.journey-item p {
  font-size: 0.79rem;
  margin: 3px 0 0;
  line-height: 1.5;
}

.philosophy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 65px;
  align-items: center;
}
.philosophy-graphic {
  background: #e7f6fc;
  border-radius: 30px;
  padding: 0;
  min-height: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.price-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  padding: 26px 24px;
  position: relative;
}
.price-card.featured {
  border: 2px solid var(--blue);
  box-shadow: var(--shadow);
}
.small-label {
  font-weight: 850;
  font-size: 0.71rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
}
.price-name {
  font-size: 1.22rem;
  font-weight: 800;
  margin: 13px 0 5px;
}
.price-amount {
  font-family: var(--serif);
  font-size: 3rem;
  line-height: 1.2;
  color: var(--ink);
  margin: 6px 0;
}
.price-amount small {
  font-family: var(--sans);
  font-size: 0.87rem;
  color: var(--muted);
}
.price-card p {
  font-size: 0.83rem;
  min-height: 52px;
}
.price-card ul {
  padding: 16px 0 14px;
  margin: 0;
  list-style: none;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 7px;
  font-size: 0.82rem;
  color: #446377;
}
.price-card li:before {
  content: "✓";
  color: var(--blue);
  font-weight: 800;
  margin-right: 8px;
}
.price-card .btn {
  width: 100%;
  font-size: 0.83rem;
  padding: 13px 12px;
}

.faq-grid {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 75px;
}
.faq-list details {
  border-bottom: 1px solid #dce8ef;
  padding: 0;
}
.faq-list summary {
  list-style: none;
  font-weight: 800;
  padding: 23px 35px 23px 0;
  position: relative;
  cursor: pointer;
  line-height: 1.4;
}
.faq-list summary::-webkit-details-marker {
  display: none;
}
.faq-list summary:after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 13px;
  color: var(--blue);
  font-size: 1.7rem;
  font-weight: 400;
}
.faq-list details[open] summary:after {
  content: "−";
}
.faq-list details p {
  margin: 0 0 21px;
  font-size: 0.94rem;
  line-height: 1.8;
}

/* Call to action and footer */
.cta-band {
  background: linear-gradient(130deg, #d7f2ff, #f2faff);
  padding: clamp(4rem, 6vw, 5rem) 0;
  position: relative;
  overflow: hidden;
}
.cta-band:before,
.cta-band:after {
  content: "";
  position: absolute;
  border: 2px solid rgba(12, 129, 178, 0.13);
  border-radius: 50%;
  width: 280px;
  height: 280px;
  right: -100px;
  top: -100px;
}
.cta-band:after {
  width: 180px;
  height: 180px;
  top: auto;
  right: auto;
  bottom: -115px;
  left: 7%;
}
.cta-flex {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  align-items: center;
  position: relative;
}
.cta-flex h2 {
  margin: 10px 0;
  font-size: clamp(2.15rem, 3vw, 3.1rem);
}
.cta-flex p {
  margin: 0;
}
.cta-flex .btn {
  flex-shrink: 0;
}

.site-footer {
  background: #102a3b;
  color: #d2e7ef;
  padding: 67px 0 20px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr repeat(3, minmax(0, 1fr));
  gap: 28px;
  padding-bottom: 48px;
}
.site-footer .brand {
  color: white;
}
.footer-about p {
  color: #bbd1dd;
  font-size: 0.88rem;
  margin-top: 21px;
  max-width: 310px;
}
.footer-col h4 {
  font-size: 0.89rem;
  margin: 0 0 18px;
  color: #fff;
}
.footer-col a {
  display: block;
  text-decoration: none;
  font-size: 0.86rem;
  color: #c2d8e3;
  margin-bottom: 12px;
}
.footer-col a:hover {
  color: #fff;
  text-decoration: underline;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 21px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #9db9c9;
  font-size: 0.76rem;
}
.footer-bottom p {
  color: inherit;
  margin: 0;
}
.footer-bottom a {
  color: #d3e6ec;
  text-decoration: none;
}

/* Standard page templates */
.page-hero {
  background: linear-gradient(135deg, #c9e4ef 0%, #e8f3f7 100%);
  padding: 80px 0 85px;
  position: relative;
  overflow: hidden;
}
.page-hero .container {
  position: relative;
  z-index: 1;
}
.page-hero h1 {
  font-size: clamp(2.55rem, 4.4vw, 4rem);
  max-width: 780px;
  margin: 18px 0 22px;
}
.page-hero p {
  max-width: 700px;
  font-size: 1.11rem;
}
.breadcrumbs {
  display: flex;
  gap: 11px;
  align-items: center;
  color: #657f90;
  font-size: 1rem;
  font-weight: 750;
}
.breadcrumbs a {
  color: #2a7caa;
  text-decoration: none;
}
.breadcrumbs a:hover {
  text-decoration: underline;
}
.page-hero .hero-actions {
  margin: 28px 0 0;
}
.inside-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.inside-grid h2 {
  margin: 16px 0 20px;
}
.inside-grid p {
  font-size: 1.03rem;
  line-height: 1.85;
}
.bullet-list {
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
  display: grid;
  gap: 14px;
}
.bullet-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: #365569;
  line-height: 1.6;
}
.bullet-list li svg {
  width: 19px;
  color: var(--blue);
  flex-shrink: 0;
  margin-top: 4px;
}
.feature-tile {
  background: #f2faff;
  border-radius: 28px;
  padding: 36px;
}
.feature-tile h3 {
  margin-bottom: 15px;
}
.feature-tile p {
  font-size: 0.94rem;
}
.feature-tile ul {
  padding-left: 20px;
  color: #456276;
  font-size: 0.94rem;
}
.feature-tile li {
  margin-bottom: 9px;
}
.pathway {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.pathway article {
  border: 1px solid var(--line);
  padding: 27px;
  border-radius: 20px;
  background: #fff;
}
.pathway article b {
  font-size: 1.17rem;
}
.pathway article p {
  margin: 12px 0 0;
  font-size: 0.94rem;
}
.content-prose {
  max-width: 810px;
  margin: auto;
}
.content-prose h2 {
  font-size: 2.4rem;
  margin: 42px 0 16px;
}
.content-prose p,
.content-prose li {
  line-height: 1.95;
}
.content-prose ul {
  padding-left: 25px;
}
.inline-notice {
  padding: 18px 22px;
  background: #e6f6ff;
  color: #36586d;
  border-radius: 14px;
  font-size: 0.89rem;
  border-left: 4px solid #38b6ff;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.field.full {
  grid-column: 1/-1;
}
.field label {
  font-size: 0.86rem;
  font-weight: 800;
  color: #345368;
}
.field input:not([type="checkbox"]),
.field select,
.field textarea {
  width: 100%;
  background: #fff;
  border: 1px solid #bed5e1;
  border-radius: 10px;
  padding: 13px 14px;
  color: var(--ink);
  min-height: 52px;
}
.field textarea {
  min-height: 118px;
  resize: vertical;
}
.form-feedback {
  display: none;
  border-left: 4px solid #bd8543;
  background: #fff6e7;
  color: #684d24;
  padding: 15px 17px;
  border-radius: 8px;
  grid-column: 1/-1;
  font-size: 0.89rem;
}
.form-feedback.show {
  display: block;
}

.mobile-action {
  display: none;
}
.reveal {
  transition:
    opacity 0.4s,
    transform 0.4s;
}
.reveal.will-reveal {
  opacity: 0;
  transform: translateY(14px);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* Responsive layout */
@media (max-width: 1060px) {
  .main-nav {
    gap: 17px;
  }
  .nav-inner {
    gap: 14px;
  }
  .nav-cta {
    padding: 12px 14px;
  }
  .hero-grid {
    gap: 24px;
  }
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .cards-3 {
    gap: 16px;
  }
  .care-grid {
    gap: 40px;
  }
}

@media (max-width: 860px) {
  .site-header .container {
    width: min(1160px, calc(100% - 32px));
  }
  .nav-inner {
    min-height: 71px;
  }
  .menu-toggle {
    display: block;
  }
  .main-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #fff;
    box-shadow: 0 22px 35px rgba(30, 63, 82, 0.1);
    padding: 16px 24px 25px;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    max-height: calc(100vh - 110px);
    overflow: auto;
  }
  .main-nav.open {
    display: flex;
  }
  .main-nav > a,
  .nav-drop > button {
    padding: 12px 0;
    display: block;
    width: 100%;
    text-align: left;
  }
  .drop-menu {
    display: block;
    position: static;
    box-shadow: none;
    border: 0;
    background: #f3f9fc;
    padding: 7px 12px;
    margin: 3px 0 10px;
    min-width: auto;
  }
  .nav-inner > .nav-cta {
    margin-left: auto;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .hero-copy {
    max-width: 660px;
  }
  .lesson-visual {
    margin: auto;
    width: min(100%, 550px);
  }
  .promise-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
  }
  .promise {
    padding: 15px !important;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .promise:nth-child(odd) {
    border-right: 1px solid var(--line);
  }
  .promise:nth-child(n + 3) {
    border-bottom: 0;
  }
  .cards-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .care-grid,
  .philosophy-grid,
  .faq-grid,
  .inside-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .cta-flex {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 620px) {
  .container {
    width: calc(100% - 36px);
  }
  body {
    font-size: 15px;
  }
  .nav-inner > .nav-cta {
    display: none;
  }
  h1 {
    font-size: 3.05rem;
  }
  h2 {
    font-size: 2.32rem;
  }
  .hero-copy h1 {
    font-size: clamp(2.55rem, 11vw, 3.55rem);
  }
  .hero-lead {
    font-size: 1.02rem;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .lesson-visual {
    padding-top: 15px;
  }
  .promise {
    font-size: 0.77rem;
    padding: 14px 8px !important;
    gap: 8px;
  }
  .promise svg {
    width: 19px;
  }
  .cards-3,
  .steps-grid,
  .pricing-grid,
  .pathway {
    grid-template-columns: 1fr;
  }
  .course-card {
    min-height: unset;
  }
  .section-toplink {
    display: block;
  }
  .section-toplink .section-head {
    margin-bottom: 18px;
  }
  .section-toplink > .text-link {
    margin-bottom: 28px;
  }

  .step:not(:last-child):after {
    display: none;
  }
  .steps-grid {
    gap: 28px;
  }
  .care-grid {
    gap: 37px;
  }
  .journey-panel {
    padding: 20px;
  }
  .pricing-grid {
    gap: 13px;
  }
  .faq-grid {
    gap: 10px;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 18px;
  }
  .footer-about {
    grid-column: 1/-1;
  }
  .footer-bottom {
    flex-direction: column;
  }
  .page-hero {
    padding: 56px 0 65px;
  }
  .page-hero h1 {
    font-size: clamp(2.6rem, 10vw, 3.5rem);
  }
  .mobile-action {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 30;
    background: #fff;
    padding: 11px 18px max(11px, env(safe-area-inset-bottom));
    box-shadow: 0 -8px 25px rgba(16, 59, 80, 0.13);
    justify-content: center;
  }
  .mobile-action .btn {
    width: 100%;
    max-width: 430px;
    padding: 13px;
  }
  .site-footer {
    padding-bottom: 100px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    scroll-behavior: auto !important;
    transition: none !important;
  }
  .reveal.will-reveal {
    opacity: 1;
    transform: none;
  }
}

/* Page-specific components */

.feature-split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 64px;
}

.feature-copy h2 {
  margin: 16px 0;
}

.media-placeholder,
.story-video {
  min-height: 300px;
  border-radius: 27px;
  position: relative;
  background: linear-gradient(135deg, #d7effd, #f4faff 60%, #d8efe9);
  border: 1px dashed #9bcadd;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  text-align: center;
  overflow: hidden;
}

.media-placeholder:before,
.story-video:before {
  content: "";
  width: 210px;
  height: 210px;
  position: absolute;
  border: 1px solid #98d2ea;
  border-radius: 50%;
  opacity: 0.5;
  left: -70px;
  bottom: -105px;
}

.media-placeholder p,
.story-video p {
  font-weight: 800;
  color: #214259;
  margin: 12px 0 3px;
  position: relative;
}
.media-placeholder small {
  max-width: 350px;
  line-height: 1.55;
  position: relative;
  color: #577185;
}

.media-pill {
  position: absolute;
  top: 20px;
  left: 22px;
  background: #fff;
  border-radius: 100px;
  padding: 7px 12px;
  color: #23749d;
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.large-play {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 25px;
  color: white;
  background: #167fb1;
  box-shadow: 0 14px 30px rgba(18, 124, 173, 0.2);
  padding-left: 4px;
  position: relative;
}

.mini-list > div {
  margin: 12px 0;
  font-weight: 650;
  color: #264960;
}

.soft-note {
  background: #eaf4f9;
  color: #466477;
  border-left: 4px solid #83c7e5;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 0.88rem;
  line-height: 1.5;
  margin: 21px 0;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 17px;
}
.why-card {
  background: white;
  border: 1px solid #dae9f0;
  border-radius: 20px;
  padding: 26px;
  box-shadow: 0 8px 25px rgba(15, 58, 84, 0.04);
}

.why-card p {
  font-size: 0.95rem;
}
.why-symbol {
  font-size: 1.05rem;
  color: #167fb1;
  font-weight: 800;
  background: #e7f6fc;
  border-radius: 12px;
  width: 47px;
  height: 47px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
}

.two-paths,
.age-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 23px;
}
.age-card {
  border: 1px solid #cfe1ea;
  border-radius: 24px;
  background: #f9fcfe;
  padding: 35px;
  box-shadow: 0 8px 24px rgba(15, 55, 81, 0.04);
}

.age-card.kids {
  background: #f6fbff;
}
.age-card.adults {
  background: #f9f6ef;
}

.portal-visual {
  padding: 22px;
  background: #fff;
  border: 1px solid #cfdfeb;
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(16, 63, 88, 0.11);
  transform: rotate(-1deg);
}
.portal-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 15px 20px;
}
.portal-top span {
  font-size: 0.66rem;
  color: #7e8da0;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.portal-stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 9px;
  padding: 16px;
  background: #edf8fe;
  border-radius: 12px;
  gap: 14px;
  color: #2e647d;
}
.portal-stat b {
  color: #164f72;
  font-size: 0.95rem;
}

.story-video {
  min-height: 270px;
  background: linear-gradient(135deg, #dff4fc, #e8f7f4);
}
.story-layout {
  display: grid;
  grid-template-columns: 1fr 1fr 0.95fr;
  gap: 18px;
}
.story-video .large-play {
  width: 60px;
  height: 60px;
  font-size: 19px;
}
.story-aside {
  padding: 20px 12px;
}

.assessment-wrap {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(220px, 0.72fr);
  column-gap: 40px;
  align-items: start;
}
.assessment-heading {
  grid-column: 1/-1;
  max-width: 750px;
  margin-bottom: 30px;
}
.assessment-heading h2 {
  margin: 15px 0;
}
.wizard-shell {
  border: 1px solid #d7e8ef;
  border-radius: 26px;
  box-shadow: 0 18px 40px rgba(10, 56, 80, 0.07);
  padding: 30px;
  background: #fff;
}
.wizard-progress {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 33px;
  padding-bottom: 22px;
  border-bottom: 1px solid #e0edf2;
}
.wizard-step {
  font-size: 0.8rem;
  font-weight: 750;
  color: #7892a3;
  display: flex;
  align-items: center;
  gap: 9px;
}
.wizard-step i {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid #bbd5e2;
  font-style: normal;
  color: #678599;
}
.wizard-step.is-current {
  color: #117eac;
}
.wizard-step.is-current i,
.wizard-step.is-done i {
  background: #147db0;
  color: #fff;
  border-color: #147db0;
}

.smart-form {
  display: block;
}
.wizard-pane {
  border: 0;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.wizard-pane legend {
  font-family: var(--serif);
  color: #163e56;
  font-size: 1.85rem;
  margin-bottom: 7px;
}
.wizard-pane .field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}
.wizard-pane .field.full,
.wizard-pane > .field-help,
.child-preferences {
  grid-column: 1/-1;
}
.wizard-pane .field label,
.field-label {
  font-weight: 750;
  font-size: 0.9rem;
  color: #2b526a;
}
.wizard-pane input:not([type="checkbox"]),
.wizard-pane select,
.wizard-pane textarea {
  width: 100%;
  border: 1px solid #b7cfdb;
  border-radius: 11px;
  padding: 12px 13px;
  background: white;
  color: #173147;
}
.wizard-pane textarea {
  resize: vertical;
  min-height: 74px;
}
.wizard-pane input:focus,
.wizard-pane textarea:focus {
  border-color: #1786b9;
}
.field-help {
  color: #657d8e;
  font-size: 0.87rem;
  line-height: 1.55;
  margin: 0 0 13px;
}
.child-preferences {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding: 15px 18px;
  border-radius: 15px;
  background: #f0f9fd;
}
.child-preferences > .field-help,
.child-preferences > .full {
  grid-column: 1/-1;
}
.check-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.check-grid label {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 12px;
  background: #eff8fc;
  border: 1px solid #d7e9f2;
  border-radius: 11px;
  font-size: 0.86rem !important;
  font-weight: 600 !important;
  line-height: 1.45;
  cursor: pointer;
}
.check-grid input {
  width: 1.1rem;
  height: 1.1rem;
  margin: 0.15rem 0 0;
  accent-color: #147fb1;
  flex: 0 0 auto;
}
.consent-label {
  display: flex !important;
  flex-direction: row !important;
  gap: 10px;
  align-items: start;
  font-weight: 500 !important;
}
.consent-label input {
  margin-top: 5px;
  accent-color: #147fb1;
}
.wizard-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 30px;
  border-top: 1px solid #e2eaf0;
  padding-top: 22px;
}
.wizard-counter {
  color: #6e899c;
  font-size: 0.9rem;
  margin-inline: auto;
}
.wizard-info {
  position: sticky;
  top: 125px;
  background: #eff8fc;
  padding: 27px;
  border-radius: 19px;
}
.wizard-info > b {
  font-family: var(--serif);
  font-size: 1.45rem;
}
.wizard-info p {
  font-size: 0.93rem;
}
.smart-form .form-feedback {
  padding: 16px;
  border-radius: 12px;
  background: #eff7fb;
  color: #235777;
  margin: 18px 0 0;
}

.filter-row {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-bottom: 25px;
}
.filter-row.centered {
  justify-content: center;
  margin-bottom: 35px;
}
.filter-btn {
  padding: 10px 18px;
  border: 1px solid #c5deeb;
  border-radius: 100px;
  background: white;
  color: #2d5870;
  font-weight: 700;
}
.filter-btn.selected {
  background: var(--blue);
  color: white;
  border-color: #177eac;
}
.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 19px;
}
.review-explainer {
  background: #f4fafc;
}
.text-narrow {
  max-width: 850px;
}
.text-narrow h2:not(:first-child) {
  margin-top: 40px;
}

@media (max-width: 1080px) {
  .why-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .story-layout {
    grid-template-columns: 1fr 1fr;
  }
  .story-aside {
    grid-column: 1/-1;
  }
  .assessment-wrap {
    grid-template-columns: 1fr;
  }
  .wizard-info {
    position: static;
    margin-top: 25px;
  }
}

@media (max-width: 740px) {
  .feature-split,
  .two-paths,
  .age-grid,
  .review-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .why-grid {
    grid-template-columns: 1fr 1fr;
  }
  .story-layout {
    grid-template-columns: 1fr;
  }
  .story-aside {
    grid-column: auto;
  }
  .feature-split .media-placeholder {
    order: 0;
  }
  .wizard-shell {
    padding: 20px 15px;
  }
  .wizard-progress {
    gap: 6px;
  }
  .wizard-step {
    font-size: 0.66rem;
    flex-direction: column;
    text-align: center;
    gap: 6px;
  }
  .wizard-pane,
  .child-preferences {
    grid-template-columns: 1fr;
  }
  .wizard-pane .field,
  .child-preferences > .field,
  .child-preferences > .field-help {
    grid-column: 1/-1;
  }
  .check-grid {
    grid-template-columns: 1fr;
  }
  .wizard-actions > .btn {
    padding: 14px 18px;
  }
  .portal-visual {
    transform: none;
  }
}

@media (max-width: 480px) {
  .why-grid {
    grid-template-columns: 1fr;
  }
  .path-choice,
  .age-card {
    padding: 25px;
  }
  .media-placeholder {
    min-height: 260px;
  }
}

/* V3 FIX: HTML hidden must outrank grid/flex display declarations. */
[hidden] {
  display: none !important;
}
.wizard-pane:focus {
  outline: none;
}
.wizard-step.is-done {
  color: #175b7c;
}
@media (max-width: 740px) {
  .wizard-shell {
    scroll-margin-top: 94px;
  }
  .wizard-actions {
    position: relative;
  }
  .wizard-progress {
    overflow: visible;
  }
}

@media (max-width: 860px) {
  .main-nav .nav-drop .drop-menu {
    display: none !important;
  }
  .main-nav .nav-drop.is-open .drop-menu {
    display: block !important;
  }
}

/* Home-page age cards share the same surface and interaction language as the other cards. */
#all-ages .age-grid {
  gap: 24px;
}
#all-ages .age-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 280px;
  padding: 36px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: none;
  transition:
    border-color 0.22s,
    box-shadow 0.22s,
    transform 0.22s;
}
#all-ages .age-card:hover {
  border-color: #9bdcfb;
  box-shadow: 0 16px 34px rgba(19, 57, 80, 0.08);
  transform: translateY(-3px);
}
#all-ages .age-card::before {
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  content: "";
  background: var(--blue);
}
#all-ages .age-card h3 {
  margin: 0 0 10px;
}
#all-ages .age-card p {
  margin: 0 0 24px;
  font-size: 0.94rem;
  line-height: 1.7;
}
#all-ages .age-card .text-link {
  margin-top: auto;
  font-size: 0.9rem;
}
@media (max-width: 480px) {
  #all-ages .age-card {
    padding: 25px;
  }
}

/* Layout refinements */

.section-head {
  margin-bottom: clamp(2rem, 3vw, 2.625rem);
}

@media (max-width: 860px) {
  .hero {
    padding-block: 3.5rem 4rem;
  }
  .section {
    padding-block: 4.75rem;
  }
  .cta-band {
    padding-block: 4rem;
  }
}

@media (max-width: 620px) {
  .hero {
    padding-block: 3rem 3.75rem;
  }
  .hero-grid {
    gap: 2rem;
  }
  .section {
    padding-block: 4rem;
  }
  .section-head {
    margin-bottom: 2rem;
  }
  .promise-grid {
    padding-block: 0;
  }
  .cta-band {
    padding-block: 3.5rem;
  }
}

/* Hero and promise strip share one visual surface. */

.promise-grid {
  position: relative;
  z-index: 1;
}

/* Closely related programme content needs a shorter transition. */
.courses-section {
  padding-bottom: clamp(3rem, 4vw, 4.5rem);
}

#arabic-paths {
  padding-top: clamp(3rem, 4vw, 4.5rem);
}

@media (max-width: 620px) {
  .promise-grid {
    padding-block: 0;
  }
}

/* Visual refinements */

.icon-blue {
  background: #e0f4ff;
  color: #149ee8;
}

/* Course cards are text-led; the blue accent replaces decorative icons. */
.course-card {
  border-top: 3px solid var(--blue);
}

.course-card .card-icon {
  display: none;
}

/* Subject-specific course imagery remains secondary to clear card copy. */
.course-card {
  background-color: #fff;
  background-position: right center;
  background-repeat: no-repeat;
  background-size: cover;
}

.course-card--quran-reading {
  background-image:
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.98) 0%,
      rgba(255, 255, 255, 0.91) 49%,
      rgba(255, 255, 255, 0.43) 100%
    ),
    url("/images/courses/quran-reading.webp");
}

.course-card--tajweed {
  background-image:
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.98) 0%,
      rgba(255, 255, 255, 0.91) 49%,
      rgba(255, 255, 255, 0.43) 100%
    ),
    url("/images/courses/tajweed.webp");
}

.course-card--memorisation {
  background-image:
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.98) 0%,
      rgba(255, 255, 255, 0.91) 49%,
      rgba(255, 255, 255, 0.43) 100%
    ),
    url("/images/courses/quran-memorisation.webp");
}

.course-card--arabic {
  background-image:
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.98) 0%,
      rgba(255, 255, 255, 0.91) 49%,
      rgba(255, 255, 255, 0.43) 100%
    ),
    url("/images/courses/arabic.webp");
}

.course-card--islamic-studies {
  background-image:
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.98) 0%,
      rgba(255, 255, 255, 0.91) 49%,
      rgba(255, 255, 255, 0.43) 100%
    ),
    url("/images/courses/islamic-studies.webp");
}

/* Keep an incomplete final course row balanced on wider screens. */
@media (min-width: 861px) {
  .cards-3 > :nth-child(4):nth-last-child(2) {
    grid-column: 1 / span 1;
    transform: translateX(calc(50% + 11px));
  }

  .cards-3 > :nth-child(5):last-child {
    grid-column: 3 / span 1;
    transform: translateX(calc(-50% - 11px));
  }

  .cards-3 > :nth-child(4):nth-last-child(2):hover {
    transform: translate(calc(50% + 11px), -5px);
  }

  .cards-3 > :nth-child(5):last-child:hover {
    transform: translate(calc(-50% - 11px), -5px);
  }
}

/* Arabic learning paths use a more focused, editorial card treatment. */
.two-paths {
  gap: 24px;
}

.path-choice {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 280px;
  padding: 36px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: none;
  transition:
    border-color 0.22s,
    box-shadow 0.22s,
    transform 0.22s;
}

.path-choice::before {
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  content: "";
  background: var(--blue);
}

.path-choice h3 {
  margin: 0 0 14px;
}

.path-choice p {
  max-width: 38ch;
  margin-bottom: 26px;
}

.path-choice .text-link {
  margin-top: auto;
}

.path-choice:hover {
  border-color: #9bdcfb;
  box-shadow: 0 16px 34px rgba(19, 57, 80, 0.08);
  transform: translateY(-3px);
}

/* Keep hover movement after reveal animations have completed. */
.course-card.reveal.visible:hover {
  transform: translateY(-5px);
}

@media (min-width: 861px) {
  .cards-3 > .course-card.reveal.visible:nth-child(4):nth-last-child(2):hover {
    transform: translate(calc(50% + 11px), -5px);
  }

  .cards-3 > .course-card.reveal.visible:nth-child(5):last-child:hover {
    transform: translate(calc(-50% - 11px), -5px);
  }
}

/* Center the guided first-step cards beneath their shared heading. */
.steps-grid .step {
  text-align: center;
}

.steps-grid .step-num {
  margin-inline: auto;
}

@media (min-width: 621px) {
  .steps-grid .step:not(:last-child)::after {
    left: calc(50% + 28px);
    right: calc(-50% - 7px);
  }
}

/* Photography for the personal-progress section. */
.philosophy-graphic {
  min-height: 0;
  padding: 0;
  overflow: hidden;
  background: #e7f6fc;
}

.philosophy-graphic img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* Homepage pricing slider. */
#pricing .pricing-slider {
  position: relative;
}

#pricing .pricing-slider .pricing-grid {
  display: grid;
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 36px) / 3);
  gap: 18px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 4px 2px 18px;
}

#pricing .pricing-slider .pricing-grid::-webkit-scrollbar {
  display: none;
}

#pricing .pricing-slider .price-card {
  min-width: 0;
  scroll-snap-align: start;
}
#pricing .pricing-slider-controls {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
#pricing .pricing-slider-button {
  border: 1px solid #b9dce9;
  border-radius: 100px;
  background: #fff;
  color: var(--ink);
  padding: 9px 15px;
  font: 800 0.82rem var(--sans);
  transition:
    border-color 0.2s,
    background 0.2s,
    color 0.2s;
}
#pricing .pricing-slider-button:hover:not(:disabled) {
  border-color: var(--blue);
  background: var(--soft);
}
#pricing .pricing-slider-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

[data-price-length="30"] .pricing-grid {
  grid-template-columns: repeat(auto-fit, minmax(205px, 1fr));
}

@media (max-width: 1060px) {
  #pricing .pricing-slider .pricing-grid {
    grid-auto-columns: calc((100% - 18px) / 2);
  }
}

@media (max-width: 620px) {
  #pricing .pricing-slider .pricing-grid {
    grid-auto-columns: 85%;
  }
  [data-price-length="30"] .pricing-grid {
    grid-template-columns: 1fr;
  }
}

.footer-contact {
  margin-top: 24px;
  text-align: center;
}
.footer-contact p {
  margin: 0 0 12px;
  color: #bbd1dd;
  font-size: 0.82rem;
  line-height: 1.5;
}
.footer-contact h4 {
  align-self: stretch;
  margin: 0 0 12px;
  color: #fff;
  font-size: 0.89rem;
  text-align: left;
}
.footer-contact-actions {
  display: flex;
  justify-content: flex-start;
  gap: 10px;
}
.footer-email,
.footer-whatsapp {
  position: relative;
  display: block;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(174, 229, 252, 0.48);
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
  transition:
    background 0.2s,
    border-color 0.2s,
    transform 0.2s;
}
.footer-email:hover,
.footer-whatsapp:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #aee5fc;
  transform: translateY(-2px);
}
.footer-email svg,
.footer-whatsapp svg {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  transform: translate(-50%, -50%);
}
.footer-email svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: #aee5fc;
  stroke-width: 1.7;
}
.footer-whatsapp svg {
  width: 20px;
  height: 20px;
  fill: #aee5fc;
}

@media (max-width: 620px) {
}

#contact-us {
  position: relative;
  scroll-margin-top: 110px;
}
#contact-us::before {
  position: absolute;
  inset: -12px;
  z-index: 0;
  content: "";
  border: 1px solid #aee5fc;
  border-radius: 14px;
  box-shadow: 0 0 0 7px rgba(174, 229, 252, 0.1);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
#contact-us.contact-highlight::before {
  opacity: 1;
}
#contact-us > * {
  position: relative;
  z-index: 1;
}

/* Course pages reuse the homepage subject imagery at a clearer hero scale. */
.course-hero {
  background-color: var(--dark);
  background-position: right center;
  background-repeat: no-repeat;
  background-size: cover;
}
.course-hero::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  content: "";
  background: linear-gradient(
    90deg,
    rgba(16, 42, 59, 0.94) 0%,
    rgba(16, 42, 59, 0.82) 47%,
    rgba(16, 42, 59, 0.2) 100%
  );
}
.course-hero::after {
  display: none;
}
.course-hero h1 {
  color: #fff;
}
.course-hero p {
  color: #dceef6;
}
.course-hero .breadcrumbs {
  color: #cde6f2;
}
.course-hero .breadcrumbs a {
  color: #aee5fc;
}
.course-hero .btn-outline {
  border-color: rgba(255, 255, 255, 0.52);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.course-hero .btn-outline:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.17);
}
.course-hero--quran {
  background-image: url("/images/courses/quran-reading.webp");
}
.course-hero--tajweed {
  background-image: url("/images/courses/tajweed.webp");
}
.course-hero--hifz {
  background-image: url("/images/courses/quran-memorisation.webp");
}
.course-hero--arabic {
  background-image: url("/images/courses/arabic.webp");
}
.course-hero--islamic-studies {
  background-image: url("/images/courses/islamic-studies.webp");
}
@media (max-width: 620px) {
  .course-hero {
    background-position: 65% center;
  }
  .course-hero::before {
    background: linear-gradient(
      90deg,
      rgba(16, 42, 59, 0.92),
      rgba(16, 42, 59, 0.61)
    );
  }
}

/* Detailed pricing slider: homepage cards with a visible scroll bar. */
.pricing-slider--bar .pricing-grid {
  display: grid;
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 36px) / 3);
  gap: 18px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: #38b6ff #dceef6;
  padding: 4px 2px 18px;
}
.pricing-slider--bar .pricing-grid::-webkit-scrollbar {
  height: 10px;
}
.pricing-slider--bar .pricing-grid::-webkit-scrollbar-track {
  background: #dceef6;
  border-radius: 100px;
}
.pricing-slider--bar .pricing-grid::-webkit-scrollbar-thumb {
  background: #38b6ff;
  border-radius: 100px;
}
.pricing-slider--bar .price-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  scroll-snap-align: start;
}
.pricing-slider--bar .price-card .btn {
  margin-top: auto;
}
@media (max-width: 720px) {
  .pricing-slider--bar .pricing-grid {
    grid-auto-columns: 88%;
  }
}
/* Grouped navigation: courses are organised by subject, then programme. */
.nav-drop.is-open .drop-menu {
  display: block;
}
.nav-drop--courses .course-menu {
  width: min(690px, calc(100vw - 48px));
  padding: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.nav-drop--courses:hover .course-menu,
.nav-drop--courses:focus-within .course-menu,
.nav-drop--courses.is-open .course-menu {
  display: grid;
}
.course-menu__group {
  min-width: 0;
  padding: 5px 7px;
}
.course-menu__group:not(:last-child) {
  border-right: 1px solid var(--line);
}
.course-menu__group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 7px;
}
.course-menu a.course-menu__heading {
  display: inline-block;
  padding: 5px;
  font-size: 0.92rem;
  font-weight: 850;
  color: var(--ink);
}
.course-menu a.course-menu__heading:hover {
  background: transparent;
  color: var(--blue);
}
.course-menu__links a {
  padding: 7px 5px;
  font-size: 0.84rem;
  line-height: 1.35;
}
.course-menu__group-toggle {
  display: none;
}
.nav-drop--support .support-menu {
  min-width: 260px;
}
.support-menu__policy {
  margin-top: 7px;
  padding-top: 15px !important;
  border-top: 1px solid var(--line);
}

@media (max-width: 860px) {
  .main-nav .nav-drop.is-open .course-menu {
    display: block !important;
    width: auto;
    padding: 7px 0;
    margin: 3px 0 10px;
    background: #f3f9fc;
  }
  .course-menu__group {
    padding: 0 12px;
  }
  .course-menu__group:not(:last-child) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .course-menu__group-head {
    margin: 0;
  }
  .course-menu a.course-menu__heading {
    padding: 12px 0;
    font-size: 0.9rem;
  }
  .course-menu__group-toggle {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--ink);
  }
  .course-menu__group-toggle svg {
    transition: transform 0.2s;
  }
  .course-menu__group.is-open .course-menu__group-toggle svg {
    transform: rotate(180deg);
  }
  .course-menu__links {
    padding: 0 0 10px;
  }
  .course-menu__group:not(.is-open) .course-menu__links {
    display: none;
  }
  .course-menu__links a {
    padding: 8px 10px;
    font-size: 0.86rem;
  }
  .support-menu__policy {
    margin-top: 4px;
    padding-top: 12px !important;
  }
}
