:root {
  --ivory: #fbf8f1;
  --white: #ffffff;
  --emerald: #0e5135;
  --evergreen: #083c29;
  --sage: #dce9df;
  --pale-sage: #eef4ee;
  --gold: #c49a55;
  --charcoal: #223129;
  --muted: #5e6a63;
  --hairline: #d9ded8;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino,
    Georgia, serif;
  --sans: Manrope, Inter, ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Free Islamic tools */
.tool-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(14, 81, 53, 0.1);
  background:
    radial-gradient(circle at 82% 12%, rgba(196, 154, 85, 0.2), transparent 26%),
    linear-gradient(135deg, #f3f6ed, #fbf8f1 58%, #edf4ed);
}

.tool-hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background:
    linear-gradient(30deg, transparent 45%, var(--emerald) 46% 52%, transparent 53%) 0 0 / 68px 118px,
    linear-gradient(-30deg, transparent 45%, var(--emerald) 46% 52%, transparent 53%) 0 0 / 68px 118px;
}

.tool-hero-inner {
  position: relative;
  display: grid;
  min-height: 390px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 70px;
  padding-block: 70px;
}

.tool-hero-inner > div {
  max-width: 760px;
}

.tool-hero h1,
.lesson-hero h1 {
  margin: 0;
  color: var(--evergreen);
  font-family: var(--serif);
  font-size: clamp(50px, 5vw, 72px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1;
}

.tool-hero h1 + p,
.lesson-hero h1 + p {
  max-width: 710px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.tool-hero-icon {
  display: grid;
  width: 176px;
  height: 176px;
  place-items: center;
  border: 1px solid rgba(196, 154, 85, 0.55);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.65);
  color: var(--evergreen);
  font-family: var(--serif);
  font-size: 46px;
  box-shadow: 0 20px 60px rgba(8, 60, 41, 0.08);
}

.tool-section {
  padding: 82px 0 100px;
}

.tool-layout {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 26px;
}

.tool-control-card,
.tool-result-card,
.hijri-today-card,
.date-converter-card,
.calendar-card,
.compass-card,
.learning-progress-card,
.learning-next-step,
.library-search {
  border: 1px solid rgba(14, 81, 53, 0.12);
  border-radius: 26px;
  background: var(--white);
  box-shadow: 0 16px 45px rgba(8, 60, 41, 0.07);
}

.tool-control-card {
  display: grid;
  gap: 17px;
  padding: 26px;
}

.tool-card-heading {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  padding-bottom: 6px;
}

.tool-card-heading > span {
  color: var(--gold);
  font-family: var(--serif);
  font-size: 27px;
}

.tool-card-heading h2,
.tool-result-card h2,
.hijri-today-card h2,
.date-converter-card h2,
.calendar-card h2,
.qibla-copy h2,
.duas-toolbar h2,
.library-search h2,
.library-section-heading h2,
.learning-intro h2,
.learning-next-step h2 {
  margin: 0;
  color: var(--evergreen);
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 600;
}

.tool-card-heading p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.tool-control-card label,
.date-converter-card label {
  display: grid;
  gap: 7px;
  color: var(--charcoal);
  font-size: 13px;
  font-weight: 750;
}

.tool-control-card label small {
  color: var(--muted);
  font-weight: 500;
}

.tool-control-card input,
.tool-control-card select,
.date-converter-card input,
.search-field,
.library-search input {
  width: 100%;
  min-height: 48px;
  border: 1px solid #ccd8d0;
  border-radius: 10px;
  background: #fcfdfb;
  padding: 0 13px;
  color: var(--charcoal);
  outline: none;
}

.tool-control-card input:focus,
.tool-control-card select:focus,
.date-converter-card input:focus,
.search-field:focus-within,
.library-search input:focus {
  border-color: var(--emerald);
  box-shadow: 0 0 0 3px rgba(14, 81, 53, 0.09);
}

.tool-primary-button,
.tool-location-button,
.library-search button {
  min-height: 50px;
  border: 0;
  border-radius: 11px;
  cursor: pointer;
  font-weight: 800;
}

.tool-primary-button,
.library-search button {
  background: var(--emerald);
  color: white;
}

.tool-location-button {
  border: 1px solid rgba(14, 81, 53, 0.28);
  background: var(--pale-sage);
  color: var(--evergreen);
}

.tool-primary-button:hover,
.library-search button:hover {
  background: var(--evergreen);
}

.privacy-note {
  margin: -3px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.tool-result-card {
  min-height: 590px;
  padding: 34px;
}

.tool-state {
  display: grid;
  min-height: 360px;
  place-content: center;
  place-items: center;
  padding: 30px;
  color: var(--muted);
  text-align: center;
}

.tool-state h2 {
  margin: 20px 0 5px;
  color: var(--evergreen);
  font-family: var(--serif);
  font-size: 28px;
}

.tool-state p {
  max-width: 480px;
  margin: 6px 0 0;
}

.loader {
  width: 42px;
  height: 42px;
  border: 4px solid var(--sage);
  border-top-color: var(--emerald);
  border-radius: 50%;
  animation: tool-spin 750ms linear infinite;
}

@keyframes tool-spin {
  to { transform: rotate(360deg); }
}

.error-state > b {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  background: #f8e2dc;
  color: #8f3124;
  font-size: 24px;
}

.result-topline,
.result-footnote,
.duas-toolbar,
.library-section-heading,
.library-reader-toolbar,
.learning-progress-card > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.result-topline {
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 26px;
}

.result-topline .eyebrow {
  margin-bottom: 8px;
}

.result-topline > span,
.library-section-heading > span {
  border-radius: 99px;
  background: var(--pale-sage);
  padding: 9px 13px;
  color: var(--emerald);
  font-size: 12px;
  font-weight: 750;
}

.prayer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding-block: 30px;
}

.prayer-grid article {
  position: relative;
  min-height: 150px;
  border: 1px solid rgba(14, 81, 53, 0.1);
  border-radius: 18px;
  background: #fcfdfb;
  padding: 20px;
}

.prayer-grid article.next-prayer {
  border-color: rgba(196, 154, 85, 0.6);
  background: linear-gradient(145deg, #0e5135, #083c29);
  color: white;
}

.prayer-grid span {
  font-size: 11px;
  font-weight: 750;
  opacity: 0.72;
  text-transform: uppercase;
}

.prayer-grid h3 {
  margin: 10px 0 20px;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
}

.prayer-grid strong {
  font-size: 27px;
}

.result-footnote {
  border-top: 1px solid var(--hairline);
  padding-top: 20px;
  color: var(--muted);
  font-size: 12px;
}

.tool-disclaimer {
  max-width: 900px;
  margin: 28px auto 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
  text-align: center;
}

.qibla-section {
  background: linear-gradient(180deg, var(--ivory), var(--pale-sage));
}

.qibla-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(420px, 1.15fr);
  align-items: center;
  gap: 70px;
}

.qibla-copy h2 {
  font-size: clamp(38px, 4vw, 52px);
}

.qibla-copy > p:not(.eyebrow, .inline-error) {
  margin: 18px 0 0;
  color: var(--muted);
  line-height: 1.72;
}

.qibla-copy ol {
  display: grid;
  gap: 13px;
  margin: 28px 0;
  padding: 0;
  list-style: none;
}

.qibla-copy li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 650;
}

.qibla-copy li span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: var(--sage);
  color: var(--emerald);
}

.wide-button {
  width: min(100%, 340px);
}

.inline-error {
  margin: 13px 0 0;
  color: #8f3124;
  font-size: 13px;
}

.compass-card {
  display: grid;
  min-height: 590px;
  place-items: center;
  padding: 48px 30px 30px;
}

.compass {
  position: relative;
  width: min(390px, 76vw);
  aspect-ratio: 1;
  border: 9px solid white;
  border-radius: 50%;
  background:
    repeating-conic-gradient(from -1deg, #0e5135 0deg 2deg, transparent 2deg 10deg),
    radial-gradient(circle, #fbf8f1 0 58%, #dce9df 59% 75%, #fbf8f1 76%);
  box-shadow: inset 0 0 0 1px rgba(14, 81, 53, 0.15), 0 20px 50px rgba(8, 60, 41, 0.12);
}

.compass .north,
.compass .east,
.compass .south,
.compass .west {
  position: absolute;
  z-index: 3;
  color: var(--evergreen);
  font-weight: 900;
}

.compass .north { top: 22px; left: 50%; transform: translateX(-50%); color: var(--gold); }
.compass .south { bottom: 22px; left: 50%; transform: translateX(-50%); }
.compass .east { top: 50%; right: 26px; transform: translateY(-50%); }
.compass .west { top: 50%; left: 26px; transform: translateY(-50%); }

.compass-rings {
  position: absolute;
  inset: 24%;
  border: 1px solid rgba(14, 81, 53, 0.18);
  border-radius: 50%;
  background: white;
}

.qibla-arrow {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  display: grid;
  width: 58px;
  height: 166px;
  place-items: start center;
  transform-origin: 50% 84%;
  transition: transform 600ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.qibla-arrow span {
  color: var(--gold);
  font-size: 60px;
  line-height: 0.7;
}

.qibla-arrow i {
  width: 7px;
  height: 115px;
  border-radius: 99px;
  background: var(--emerald);
}

.compass > b {
  position: absolute;
  z-index: 4;
  top: 50%;
  left: 50%;
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  border-radius: 50%;
  background: var(--evergreen);
  color: white;
  font-family: "Amiri Quran", serif;
  transform: translate(-50%, -50%);
}

.compass-reading {
  display: grid;
  gap: 6px;
  text-align: center;
}

.compass-reading strong {
  color: var(--evergreen);
  font-family: var(--serif);
  font-size: 27px;
}

.compass-reading span {
  color: var(--muted);
  font-size: 12px;
}

.hijri-summary-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
}

.hijri-today-card {
  display: grid;
  min-height: 310px;
  place-content: center;
  place-items: center;
  background: linear-gradient(145deg, var(--evergreen), var(--emerald));
  color: white;
  padding: 35px;
  text-align: center;
}

.hijri-today-card > span {
  color: #e6c98e;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hijri-today-card > strong {
  margin: 6px 0;
  font-family: var(--serif);
  font-size: 76px;
  line-height: 1;
}

.hijri-today-card h2 {
  color: white;
}

.hijri-today-card p {
  margin: 13px 0 0;
  opacity: 0.75;
}

.date-converter-card {
  display: grid;
  align-content: center;
  padding: 42px;
}

.date-converter-card label {
  margin-top: 22px;
}

.converted-date {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 18px;
  border-radius: 14px;
  background: var(--pale-sage);
  padding: 15px;
  color: var(--evergreen);
}

.converted-date span {
  font-family: var(--serif);
  font-size: 34px;
}

.calendar-card {
  margin-top: 24px;
  padding: 30px;
}

.calendar-toolbar {
  display: grid;
  grid-template-columns: 46px 1fr 46px;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
  text-align: center;
}

.calendar-toolbar .eyebrow {
  margin-bottom: 5px;
}

.calendar-toolbar button {
  height: 46px;
  border: 1px solid rgba(14, 81, 53, 0.16);
  border-radius: 50%;
  background: var(--pale-sage);
  color: var(--evergreen);
  cursor: pointer;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}

.calendar-grid.weekdays {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
  text-transform: uppercase;
}

.calendar-grid.days > button,
.calendar-grid.days .empty-day {
  min-height: 92px;
  border: 1px solid rgba(14, 81, 53, 0.1);
  border-radius: 13px;
  background: #fcfdfb;
}

.calendar-grid.days > button {
  display: grid;
  place-content: center;
  gap: 5px;
  color: var(--charcoal);
  cursor: pointer;
}

.calendar-grid.days > button:hover {
  border-color: var(--gold);
  background: var(--pale-sage);
}

.calendar-grid.days > button.today {
  background: var(--emerald);
  color: white;
}

.calendar-grid.days strong { font-size: 19px; }
.calendar-grid.days small { font-size: 10px; opacity: 0.68; }

.shortcut-tabs,
.collection-tabs {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
}

.shortcut-tabs button {
  min-height: 42px;
  flex-shrink: 0;
  border: 1px solid rgba(14, 81, 53, 0.17);
  border-radius: 99px;
  background: white;
  padding: 0 16px;
  color: var(--charcoal);
  cursor: pointer;
  font-size: 12px;
  font-weight: 750;
}

.shortcut-tabs button.active,
.collection-tabs button.active {
  border-color: var(--emerald);
  background: var(--emerald);
  color: white;
}

.duas-toolbar {
  margin: 30px 0 24px;
}

.duas-toolbar .eyebrow,
.library-section-heading .eyebrow {
  margin-bottom: 5px;
}

.search-field {
  display: flex;
  max-width: 360px;
  align-items: center;
  gap: 8px;
}

.search-field input {
  width: 100%;
  border: 0;
  background: transparent;
  outline: 0;
}

.dua-list,
.hadith-list {
  display: grid;
  gap: 18px;
}

.dua-card,
.hadith-list article {
  border: 1px solid rgba(14, 81, 53, 0.11);
  border-radius: 24px;
  background: white;
  padding: 30px;
  box-shadow: 0 12px 34px rgba(8, 60, 41, 0.05);
}

.dua-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--emerald);
  font-size: 12px;
  font-weight: 750;
}

.dua-meta button,
.dua-actions button,
.library-reader-toolbar > button {
  border: 0;
  background: transparent;
  color: var(--emerald);
  cursor: pointer;
  font-weight: 750;
}

.dua-arabic,
.hadith-arabic {
  margin: 28px 0 20px;
  color: #15281e;
  font-family: "Amiri Quran", serif;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 2;
}

.dua-transliteration {
  color: var(--emerald);
  font-style: italic;
  line-height: 1.7;
}

.dua-meaning,
.hadith-english {
  color: var(--charcoal);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.72;
}

.dua-reference,
.hadith-grades {
  display: grid;
  gap: 5px;
  margin-top: 18px;
  border-left: 3px solid var(--gold);
  padding-left: 13px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.dua-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 24px;
  border-top: 1px solid var(--hairline);
  padding-top: 18px;
}

.tasbih-counter {
  display: flex;
  align-items: center;
  gap: 9px;
}

.tasbih-counter span {
  color: var(--muted);
  font-size: 11px;
}

.tasbih-counter button {
  min-height: 36px;
  border-radius: 99px;
  background: var(--pale-sage);
  padding: 0 13px;
}

.tasbih-counter .counter-reset {
  color: var(--muted);
}

.library-search {
  display: grid;
  grid-template-columns: 1fr minmax(330px, 0.7fr);
  align-items: center;
  gap: 38px;
  padding: 30px;
}

.library-search .eyebrow {
  margin-bottom: 6px;
}

.library-search > div:last-child {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.library-search button {
  padding-inline: 20px;
}

.collection-tabs {
  margin-top: 22px;
}

.collection-tabs button {
  display: grid;
  min-width: 180px;
  min-height: 125px;
  align-content: center;
  border: 1px solid rgba(14, 81, 53, 0.13);
  border-radius: 16px;
  background: white;
  padding: 15px;
  color: var(--charcoal);
  cursor: pointer;
  text-align: left;
}

.collection-tabs button > span {
  font-family: "Amiri Quran", serif;
  font-size: 20px;
}

.collection-tabs button strong {
  margin-top: 5px;
  font-family: var(--serif);
}

.collection-tabs button small {
  margin-top: 7px;
  opacity: 0.68;
}

.library-section-heading {
  margin: 36px 0 22px;
}

.book-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.book-grid button {
  display: grid;
  min-height: 210px;
  align-content: start;
  border: 1px solid rgba(14, 81, 53, 0.11);
  border-radius: 20px;
  background: white;
  padding: 23px;
  color: var(--charcoal);
  cursor: pointer;
  text-align: left;
}

.book-grid button:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}

.book-grid button > span {
  color: var(--gold);
  font-family: var(--serif);
  font-size: 28px;
}

.book-grid button strong {
  margin-top: 15px;
  color: var(--evergreen);
  font-family: var(--serif);
  font-size: 21px;
}

.book-grid button small {
  margin-top: 8px;
  color: var(--muted);
  font-family: "Amiri Quran", serif;
  font-size: 15px;
}

.book-grid button b {
  margin-top: auto;
  padding-top: 18px;
  color: var(--emerald);
  font-size: 12px;
}

.library-reader-toolbar {
  margin: 34px 0 22px;
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 18px;
}

.library-reader-toolbar h2 {
  margin: 0;
  color: var(--evergreen);
  font-family: var(--serif);
  font-size: 30px;
}

.library-reader-toolbar .eyebrow {
  margin-bottom: 3px;
}

.hadith-label {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--emerald);
  font-size: 11px;
  font-weight: 750;
  text-transform: capitalize;
}

.hadith-label small {
  color: var(--muted);
  font-weight: 500;
}

.learning-intro {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  align-items: end;
  gap: 60px;
  margin-bottom: 35px;
}

.learning-intro h2 {
  max-width: 650px;
  font-size: clamp(37px, 4vw, 52px);
}

.learning-intro > p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.tajweed-rule-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.tajweed-rule-grid > a {
  display: grid;
  min-height: 300px;
  grid-template-columns: 1fr auto;
  align-content: start;
  border: 1px solid rgba(14, 81, 53, 0.11);
  border-radius: 24px;
  background: white;
  padding: 28px;
  box-shadow: 0 12px 34px rgba(8, 60, 41, 0.05);
  transition: transform 180ms ease, border-color 180ms ease;
}

.tajweed-rule-grid > a:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
}

.tajweed-rule-grid > a > span {
  color: var(--gold);
  font-family: var(--serif);
  font-size: 32px;
}

.tajweed-rule-grid > a > b {
  color: var(--emerald);
  font-family: "Amiri Quran", serif;
  font-size: 25px;
  font-weight: 400;
}

.tajweed-rule-grid h2 {
  grid-column: 1 / -1;
  margin: 30px 0 10px;
  color: var(--evergreen);
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 600;
}

.tajweed-rule-grid p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.tajweed-rule-grid > a > strong {
  grid-column: 1 / -1;
  margin-top: auto;
  padding-top: 24px;
  color: var(--emerald);
  font-size: 12px;
}

.lesson-hero {
  background: linear-gradient(135deg, var(--evergreen), var(--emerald));
  padding: 72px 0 78px;
  color: white;
  text-align: center;
}

.lesson-hero .breadcrumbs,
.lesson-hero .breadcrumbs a {
  color: rgba(255, 255, 255, 0.66);
}

.lesson-number {
  display: inline-flex;
  margin-top: 32px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 99px;
  padding: 8px 14px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lesson-arabic {
  margin: 24px 0 8px;
  color: #e7ca91;
  font-family: "Amiri Quran", serif;
  font-size: 36px;
}

.lesson-hero h1,
.lesson-hero h1 + p {
  color: white;
  margin-inline: auto;
}

.lesson-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  align-items: start;
  gap: 55px;
}

.lesson-content h2,
.practice-card h2 {
  margin: 0 0 13px;
  color: var(--evergreen);
  font-family: var(--serif);
  font-size: 31px;
  font-weight: 600;
}

.lesson-content > p:not(.eyebrow) {
  margin: 0 0 35px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.tajweed-examples {
  display: grid;
  gap: 10px;
  margin-bottom: 35px;
}

.tajweed-examples p {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  border-radius: 12px;
  background: white;
  padding: 17px;
  font-family: "Amiri Quran", var(--sans);
  font-size: 18px;
}

.tajweed-examples span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: var(--pale-sage);
  color: var(--emerald);
  font-family: var(--sans);
  font-size: 11px;
}

.practice-card {
  position: sticky;
  top: 25px;
  border: 1px solid rgba(196, 154, 85, 0.46);
  border-radius: 24px;
  background: white;
  padding: 28px;
  box-shadow: 0 15px 40px rgba(8, 60, 41, 0.07);
}

.practice-card ol {
  display: grid;
  gap: 10px;
  padding-left: 22px;
  color: var(--muted);
  line-height: 1.65;
}

.practice-card > div {
  display: grid;
  gap: 5px;
  margin-top: 25px;
  border-top: 1px solid var(--hairline);
  padding-top: 20px;
}

.practice-card > div span {
  color: var(--gold);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.practice-card > div a {
  color: var(--emerald);
  font-weight: 750;
}

.learning-progress-card {
  padding: 28px;
}

.learning-progress-card > div:first-child span {
  color: var(--emerald);
  font-weight: 750;
}

.learning-progress-card > div:first-child strong {
  color: var(--evergreen);
  font-family: var(--serif);
  font-size: 25px;
}

.learning-progress-track {
  height: 10px;
  margin-top: 20px;
  overflow: hidden;
  border-radius: 99px;
  background: var(--pale-sage);
}

.learning-progress-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--emerald), var(--gold));
  transition: width 280ms ease;
}

.learning-progress-card p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.learning-module-list {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.learning-module-list article {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  align-items: center;
  gap: 22px;
  border: 1px solid rgba(14, 81, 53, 0.11);
  border-radius: 20px;
  background: white;
  padding: 24px;
}

.learning-module-list article.complete {
  border-color: rgba(14, 81, 53, 0.35);
  background: #f5faf5;
}

.learning-module-list article > span {
  color: var(--gold);
  font-family: var(--serif);
  font-size: 30px;
}

.learning-module-list h2 {
  margin: 0;
  color: var(--evergreen);
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 600;
}

.learning-module-list p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.learning-module-list a {
  display: inline-block;
  margin-top: 10px;
  color: var(--emerald);
  font-size: 12px;
  font-weight: 750;
}

.learning-module-list button {
  min-width: 124px;
  min-height: 42px;
  border: 1px solid rgba(14, 81, 53, 0.2);
  border-radius: 99px;
  background: var(--pale-sage);
  color: var(--emerald);
  cursor: pointer;
  font-size: 11px;
  font-weight: 750;
}

.learning-module-list article.complete button {
  background: var(--emerald);
  color: white;
}

.learning-next-step {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 40px;
  margin-top: 26px;
  padding: 34px;
}

.learning-next-step p {
  margin: 10px 0 0;
  color: var(--muted);
}

.learning-next-step > div:last-child {
  display: flex;
  gap: 10px;
}

@media (max-width: 980px) {
  .tool-hero-inner {
    min-height: 330px;
  }

  .tool-hero-icon {
    width: 125px;
    height: 125px;
    font-size: 35px;
  }

  .tool-layout,
  .qibla-layout,
  .lesson-layout {
    grid-template-columns: 1fr;
  }

  .tool-control-card {
    grid-template-columns: 1fr 1fr;
  }

  .tool-card-heading,
  .privacy-note {
    grid-column: 1 / -1;
  }

  .qibla-layout {
    gap: 40px;
  }

  .practice-card {
    position: relative;
    top: auto;
  }

  .book-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .tool-hero-inner {
    min-height: 300px;
    grid-template-columns: 1fr;
    gap: 0;
    padding-block: 48px;
  }

  .tool-hero-icon {
    display: none;
  }

  .tool-hero h1,
  .lesson-hero h1 {
    font-size: 44px;
  }

  .tool-hero h1 + p,
  .lesson-hero h1 + p {
    font-size: 15px;
  }

  .tool-section {
    padding: 55px 0 70px;
  }

  .tool-control-card {
    grid-template-columns: 1fr;
  }

  .tool-control-card > * {
    grid-column: 1;
  }

  .tool-result-card {
    min-height: 0;
    padding: 20px;
  }

  .prayer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .result-topline,
  .result-footnote,
  .duas-toolbar,
  .library-section-heading,
  .library-reader-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .search-field {
    max-width: none;
  }

  .qibla-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .compass-card {
    min-height: 480px;
    padding: 26px 12px;
  }

  .hijri-summary-grid,
  .library-search,
  .learning-intro,
  .tajweed-rule-grid,
  .learning-next-step {
    grid-template-columns: 1fr;
  }

  .calendar-card {
    padding: 16px 8px;
  }

  .calendar-grid {
    gap: 3px;
  }

  .calendar-grid.days > button,
  .calendar-grid.days .empty-day {
    min-height: 63px;
    border-radius: 7px;
  }

  .calendar-grid.days strong { font-size: 15px; }
  .calendar-grid.days small { font-size: 8px; }

  .dua-card,
  .hadith-list article {
    padding: 20px;
  }

  .dua-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .tasbih-counter {
    flex-wrap: wrap;
  }

  .library-search > div:last-child {
    grid-template-columns: 1fr;
  }

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

  .learning-module-list article {
    grid-template-columns: 45px 1fr;
  }

  .learning-module-list article > button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .learning-next-step > div:last-child {
    flex-direction: column;
  }
}

@media (max-width: 430px) {
  .prayer-grid {
    grid-template-columns: 1fr;
  }

  .calendar-grid.days > button,
  .calendar-grid.days .empty-day {
    min-height: 54px;
  }

  .calendar-grid.days small {
    display: none;
  }

  .compass {
    width: 300px;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--charcoal);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

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

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

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  transform: translateY(-160%);
  border-radius: 8px;
  background: var(--white);
  padding: 12px 18px;
  color: var(--evergreen);
  font-weight: 700;
  box-shadow: 0 8px 30px rgba(8, 60, 41, 0.2);
}

.skip-link:focus {
  transform: translateY(0);
}

.shell {
  width: min(1200px, calc(100% - 64px));
  margin-inline: auto;
}

.trust-strip {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: var(--evergreen);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.trust-strip svg {
  width: 17px;
  color: #e0b96f;
}

.trust-strip i {
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: var(--gold);
}

.site-header {
  position: relative;
  z-index: 30;
  background: rgba(251, 248, 241, 0.94);
  border-bottom: 1px solid rgba(14, 81, 53, 0.07);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  min-height: 92px;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 12px;
  color: var(--evergreen);
  font-family: var(--serif);
  font-size: clamp(25px, 2.3vw, 34px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.025em;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 52px;
  height: 54px;
  place-items: end center;
  color: var(--emerald);
}

.brand-mark::before {
  position: absolute;
  inset: 0 5px 4px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 50% 50% 8px 8px;
  content: "";
  clip-path: polygon(0 0, 100% 0, 100% 74%, 50% 100%, 0 74%);
}

.brand-mark svg {
  position: relative;
  z-index: 1;
  width: 42px;
  height: 30px;
}

.brand-star {
  position: absolute;
  z-index: 2;
  top: 6px;
  left: 50%;
  color: var(--gold);
  font-size: 15px;
  transform: translateX(-50%);
}

.desktop-nav {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(19px, 2vw, 33px);
  color: #26322b;
  font-size: 15px;
  font-weight: 600;
}

.mobile-menu {
  display: none;
  position: relative;
}

.mobile-menu > summary {
  display: grid;
  width: 46px;
  height: 46px;
  place-content: center;
  gap: 5px;
  border: 1px solid rgba(14, 81, 53, 0.24);
  border-radius: 11px;
  background: var(--white);
  cursor: pointer;
  list-style: none;
}

.mobile-menu > summary::-webkit-details-marker {
  display: none;
}

.mobile-menu > summary span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 99px;
  background: var(--evergreen);
}

.mobile-menu-panel {
  position: absolute;
  z-index: 40;
  top: 58px;
  right: 0;
  display: grid;
  width: min(350px, calc(100vw - 40px));
  max-height: calc(100vh - 130px);
  overflow-y: auto;
  border: 1px solid rgba(14, 81, 53, 0.12);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.99);
  padding: 16px;
  box-shadow: 0 24px 70px rgba(8, 60, 41, 0.2);
}

.mobile-menu-panel p {
  margin: 13px 10px 4px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mobile-menu-panel a {
  border-radius: 10px;
  padding: 10px;
  color: var(--charcoal);
  font-size: 14px;
  font-weight: 650;
}

.mobile-menu-panel a:hover,
.mobile-menu-panel a:focus-visible {
  background: var(--pale-sage);
  color: var(--evergreen);
}

.mobile-menu-panel .mobile-assessment-link {
  margin-top: 12px;
  background: var(--emerald);
  color: var(--white);
  text-align: center;
}

.desktop-nav > a,
.nav-dropdown > summary {
  position: relative;
  padding-block: 33px;
  cursor: pointer;
  list-style: none;
  white-space: nowrap;
}

.nav-dropdown > summary::-webkit-details-marker {
  display: none;
}

.desktop-nav > a::after,
.nav-dropdown > summary::after {
  position: absolute;
  right: 50%;
  bottom: 25px;
  left: 50%;
  height: 2px;
  background: var(--gold);
  content: "";
  transition: inset 180ms ease;
}

.desktop-nav > a:hover::after,
.desktop-nav > a:focus-visible::after,
.nav-dropdown > summary:hover::after,
.nav-dropdown[open] > summary::after {
  right: 0;
  left: 0;
}

.nav-dropdown {
  position: relative;
}

.dropdown-panel {
  position: absolute;
  top: 78px;
  left: 50%;
  display: grid;
  width: 260px;
  padding: 12px;
  transform: translateX(-50%);
  border: 1px solid rgba(14, 81, 53, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 22px 54px rgba(8, 60, 41, 0.14);
}

.dropdown-panel a {
  padding: 11px 13px;
  border-radius: 10px;
  color: var(--charcoal);
  font-size: 14px;
}

.dropdown-panel a:hover,
.dropdown-panel a:focus-visible {
  background: var(--pale-sage);
  color: var(--evergreen);
}

.resources-panel {
  width: 250px;
}

.header-cta {
  display: inline-flex;
  min-height: 44px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gold);
  border-radius: 10px;
  background: var(--emerald);
  padding: 0 17px;
  color: #fff;
  font-size: 14px;
  font-weight: 750;
  transition:
    transform 180ms ease,
    background 180ms ease;
}

.header-cta:hover {
  transform: translateY(-2px);
  background: var(--evergreen);
}

.hero {
  position: relative;
  min-height: 765px;
  overflow: hidden;
  padding: 72px 0 92px;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  align-items: center;
  gap: 44px;
}

.hero-copy {
  padding: 12px 0 42px;
  animation: hero-copy-in 420ms cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

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

.hero h1 {
  max-width: 640px;
  margin: 0;
  color: var(--evergreen);
  font-family: var(--serif);
  font-size: clamp(50px, 5.1vw, 70px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.99;
  text-wrap: balance;
}

.hero-lede {
  max-width: 590px;
  margin: 24px 0 0;
  color: #39473f;
  font-size: 18px;
  line-height: 1.66;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  min-height: 60px;
  align-items: center;
  justify-content: center;
  gap: 11px;
  border-radius: 12px;
  padding: 0 24px;
  font-size: 16px;
  font-weight: 780;
  line-height: 1;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.button svg {
  width: 24px;
  height: 24px;
}

.button-primary {
  border: 1px solid var(--gold);
  background: var(--emerald);
  color: white;
  box-shadow: 0 8px 18px rgba(8, 60, 41, 0.11);
}

.button-primary:hover {
  transform: translateY(-2px);
  background: var(--evergreen);
  box-shadow: 0 12px 26px rgba(8, 60, 41, 0.18);
}

.button-secondary {
  border: 1.5px solid var(--emerald);
  background: rgba(255, 255, 255, 0.5);
  color: var(--evergreen);
}

.button-secondary:hover {
  transform: translateY(-2px);
  background: var(--pale-sage);
}

.reassurance {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 20px 0 0;
  color: #45534b;
  font-size: 14px;
}

.reassurance svg {
  width: 25px;
  color: var(--emerald);
}

.reassurance span {
  color: var(--gold);
  font-weight: 900;
}

.hero-visual {
  position: relative;
  min-height: 585px;
  animation: hero-image-in 520ms 80ms cubic-bezier(0.22, 0.61, 0.36, 1)
    both;
}

.hero-image-frame {
  position: absolute;
  inset: 0 0 38px;
  overflow: hidden;
  border: 1.5px solid var(--gold);
  border-radius: 130px 28px 86px 28px;
  background: var(--sage);
  box-shadow: 0 20px 50px rgba(8, 60, 41, 0.09);
}

.hero-image-frame img {
  object-fit: cover;
  object-position: 60% 50%;
}

.progress-card,
.teacher-card {
  position: absolute;
  z-index: 3;
  bottom: 0;
  border: 1px solid rgba(14, 81, 53, 0.09);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 45px rgba(8, 60, 41, 0.13);
  backdrop-filter: blur(16px);
}

.progress-card {
  left: 20px;
  width: 53%;
  padding: 20px 22px;
}

.progress-card h2,
.teacher-card h2 {
  margin: 0;
  color: var(--evergreen);
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
}

.progress-content {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 13px;
}

.progress-ring {
  display: grid;
  width: 76px;
  height: 76px;
  flex-shrink: 0;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--emerald) 0 75%, #e8eee9 75% 100%);
}

.progress-ring::before {
  position: absolute;
  width: 57px;
  height: 57px;
  border-radius: 50%;
  background: white;
  content: "";
}

.progress-ring strong {
  position: relative;
  z-index: 1;
  color: var(--evergreen);
  font-family: var(--serif);
  font-size: 22px;
}

.progress-list {
  display: grid;
  flex: 1;
  gap: 8px;
}

.progress-list p {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3px;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}

.progress-list i {
  position: relative;
  display: block;
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8eee9;
}

.progress-list i::after {
  display: block;
  width: var(--progress);
  height: 100%;
  border-radius: inherit;
  background: var(--emerald);
  content: "";
}

.teacher-card {
  right: -18px;
  display: flex;
  width: 43%;
  min-height: 116px;
  align-items: center;
  gap: 14px;
  padding: 20px;
}

.teacher-icon {
  display: grid;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  place-items: center;
  border-radius: 50%;
  background: var(--pale-sage);
  color: var(--emerald);
  font-size: 23px;
  font-weight: 900;
}

.teacher-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.hero-sage-curve {
  position: absolute;
  z-index: 0;
  right: -10%;
  bottom: -150px;
  left: -10%;
  height: 300px;
  border-radius: 50% 50% 0 0;
  background: var(--pale-sage);
}

.hero-pattern {
  position: absolute;
  top: 112px;
  left: -54px;
  width: 250px;
  height: 250px;
  opacity: 0.07;
  background:
    linear-gradient(30deg, transparent 45%, var(--gold) 46% 52%, transparent 53%)
      0 0 / 54px 94px,
    linear-gradient(-30deg, transparent 45%, var(--gold) 46% 52%, transparent 53%)
      0 0 / 54px 94px;
  transform: rotate(15deg);
}

.section {
  padding: 104px 0;
}

.course-intro {
  background: var(--white);
  text-align: center;
}

.section-title {
  max-width: 760px;
  margin: 0 auto;
  color: var(--evergreen);
  font-family: var(--serif);
  font-size: clamp(40px, 4vw, 58px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.section-lede {
  max-width: 700px;
  margin: 20px auto 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.section-heading-row {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.7fr);
  align-items: end;
  gap: 60px;
  margin-bottom: 48px;
}

.align-left {
  margin-right: 0;
  margin-left: 0;
  text-align: left;
}

.center {
  text-align: center;
}

.course-section {
  background: var(--white);
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.course-card {
  display: flex;
  min-height: 315px;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid rgba(14, 81, 53, 0.1);
  border-radius: 24px;
  background: #fff;
  padding: 28px;
  box-shadow: 0 12px 34px rgba(8, 60, 41, 0.06);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.course-card:hover {
  transform: translateY(-4px);
  border-color: rgba(196, 154, 85, 0.55);
  box-shadow: 0 18px 44px rgba(8, 60, 41, 0.1);
}

.course-icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 18px;
  background: var(--pale-sage);
  color: var(--emerald);
  font-family: var(--serif);
  font-size: 29px;
  font-weight: 700;
}

.course-icon.large {
  width: 76px;
  height: 76px;
  border-radius: 22px;
  font-size: 38px;
}

.course-card h3 {
  margin: 23px 0 11px;
  color: var(--evergreen);
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.1;
}

.course-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.course-card a {
  margin-top: auto;
  padding-top: 22px;
  color: var(--emerald);
  font-size: 14px;
  font-weight: 800;
}

.process-section {
  background: var(--pale-sage);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 50px;
}

.process-grid article {
  position: relative;
  border: 1px solid rgba(14, 81, 53, 0.1);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  padding: 32px;
}

.process-grid article > span {
  display: block;
  margin-bottom: 24px;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 600;
}

.process-grid h3,
.audience-grid h3,
.standard-list h3 {
  margin: 0;
  color: var(--evergreen);
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.12;
}

.process-grid p,
.audience-grid p,
.standard-list p {
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.72;
}

.center-action {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.standards-section {
  background: var(--white);
}

.standards-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: 76px;
}

.standards-copy {
  position: sticky;
  top: 36px;
  align-self: start;
}

.text-link {
  display: inline-block;
  margin-top: 26px;
  color: var(--emerald);
  font-weight: 800;
}

.standard-list {
  display: grid;
}

.standard-list article {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 20px;
  border-bottom: 1px solid var(--hairline);
  padding: 27px 0;
}

.standard-list article:first-child {
  padding-top: 0;
}

.standard-list article > span {
  color: var(--gold);
  font-family: var(--serif);
  font-size: 31px;
  font-weight: 600;
}

.audience-section {
  background: var(--ivory);
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 48px;
}

.audience-grid article {
  border-top: 3px solid var(--gold);
  border-radius: 0 0 20px 20px;
  background: white;
  padding: 32px;
  box-shadow: 0 14px 36px rgba(8, 60, 41, 0.06);
}

.audience-grid article > span {
  display: block;
  margin-bottom: 16px;
  color: var(--emerald);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.pricing-preview {
  background: var(--white);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
  gap: 18px;
}

.pricing-card {
  position: relative;
  display: flex;
  min-height: 370px;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid rgba(14, 81, 53, 0.12);
  border-radius: 24px;
  background: var(--ivory);
  padding: 32px;
}

.pricing-card.featured {
  border-color: var(--gold);
  background: var(--evergreen);
  color: white;
  box-shadow: 0 18px 46px rgba(8, 60, 41, 0.18);
}

.pricing-card > p {
  margin: 0;
  color: var(--gold);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.pricing-card h3,
.pricing-card h2 {
  margin: 19px 0 14px;
  color: var(--evergreen);
  font-family: var(--serif);
  font-size: 52px;
  font-weight: 600;
  line-height: 1;
}

.pricing-card.featured h3,
.pricing-card.featured h2 {
  color: white;
}

.pricing-card small {
  margin-left: 4px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
}

.pricing-card.featured small,
.pricing-card.featured > span {
  color: rgba(255, 255, 255, 0.74);
}

.pricing-card strong {
  margin-bottom: 8px;
  font-size: 15px;
}

.pricing-card > span:not(.plan-badge) {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.pricing-card > a {
  display: block;
  width: 100%;
  margin-top: auto;
  border-radius: 10px;
  background: var(--emerald);
  padding: 14px;
  color: white;
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}

.pricing-card.featured > a {
  background: var(--gold);
  color: var(--evergreen);
}

.plan-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  border-radius: 999px;
  background: var(--gold);
  padding: 7px 10px;
  color: var(--evergreen);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.pricing-note {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.faq-section {
  background: var(--pale-sage);
}

.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: 70px;
}

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

.faq-list details {
  border: 1px solid rgba(14, 81, 53, 0.1);
  border-radius: 16px;
  background: white;
  padding: 0 22px;
}

.faq-list summary {
  position: relative;
  cursor: pointer;
  list-style: none;
  padding: 21px 42px 21px 0;
  color: var(--evergreen);
  font-weight: 760;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  position: absolute;
  top: 17px;
  right: 0;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: var(--pale-sage);
  color: var(--emerald);
  content: "+";
  font-size: 20px;
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list details p {
  margin: -2px 0 22px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.final-cta {
  background: var(--evergreen);
  color: white;
  padding: 76px 0;
}

.final-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 44px;
}

.final-cta .eyebrow {
  color: var(--gold);
}

.final-cta h2 {
  max-width: 760px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(38px, 4vw, 54px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.04;
}

.final-cta p:not(.eyebrow) {
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.75);
}

.button-gold {
  flex-shrink: 0;
  background: var(--gold);
  color: var(--evergreen);
}

.button-gold:hover {
  transform: translateY(-2px);
  background: #d8b775;
}

.site-footer {
  background: #062f21;
  color: rgba(255, 255, 255, 0.76);
  padding: 76px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr 0.8fr 0.8fr 1fr;
  gap: 52px;
}

.site-footer .brand {
  color: white;
}

.footer-about p {
  max-width: 390px;
  margin: 24px 0 12px;
  font-size: 14px;
  line-height: 1.75;
}

.footer-about > span {
  color: var(--gold);
  font-size: 12px;
}

.site-footer h2 {
  margin: 8px 0 20px;
  color: white;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.site-footer > .footer-grid > div:not(.footer-about) {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
}

.site-footer a:hover {
  color: white;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 60px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 22px;
  font-size: 12px;
}

.footer-bottom nav {
  display: flex;
  gap: 22px;
}

.inner-hero {
  background:
    radial-gradient(circle at 84% 20%, rgba(220, 233, 223, 0.9), transparent 32%),
    var(--ivory);
  padding: 78px 0 88px;
}

.inner-hero.compact .narrow {
  max-width: 900px;
  margin-left: max(32px, calc((100vw - 1200px) / 2));
}

.inner-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(330px, 0.55fr);
  align-items: center;
  gap: 70px;
}

.inner-hero h1 {
  max-width: 880px;
  margin: 0;
  color: var(--evergreen);
  font-family: var(--serif);
  font-size: clamp(49px, 5vw, 70px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1;
}

.inner-hero p:not(.eyebrow):not(.breadcrumbs) {
  max-width: 760px;
  margin: 23px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.breadcrumbs {
  margin: 0 0 36px;
  color: var(--muted);
  font-size: 12px;
}

.breadcrumbs span {
  margin: 0 6px;
  color: var(--gold);
}

.course-summary-card {
  border: 1px solid rgba(14, 81, 53, 0.12);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.9);
  padding: 32px;
  box-shadow: 0 18px 48px rgba(8, 60, 41, 0.09);
}

.course-summary-card h2 {
  margin: 22px 0 16px;
  color: var(--evergreen);
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 600;
}

.course-summary-card ul,
.check-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.course-summary-card li,
.check-list li {
  position: relative;
  padding-left: 28px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.course-summary-card li::before,
.check-list li::before {
  position: absolute;
  top: 0;
  left: 0;
  color: var(--emerald);
  content: "✓";
  font-weight: 900;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 70px;
}

.subpage-heading {
  margin: 0 0 25px;
  color: var(--evergreen);
  font-family: var(--serif);
  font-size: clamp(34px, 3.5vw, 48px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.06;
}

.module-section {
  background: var(--pale-sage);
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-top: 48px;
}

.module-grid article {
  min-height: 168px;
  border: 1px solid rgba(14, 81, 53, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.85);
  padding: 23px;
}

.module-grid span {
  color: var(--gold);
  font-family: var(--serif);
  font-size: 28px;
}

.module-grid h3 {
  margin: 32px 0 0;
  color: var(--evergreen);
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
}

.module-note {
  max-width: 850px;
  margin: 28px auto 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
  text-align: center;
}

.teacher-role-grid,
.resource-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.teacher-role-grid article,
.resource-grid article {
  border: 1px solid rgba(14, 81, 53, 0.1);
  border-radius: 23px;
  background: white;
  padding: 32px;
  box-shadow: 0 12px 32px rgba(8, 60, 41, 0.05);
}

.teacher-role-grid article > span {
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  border-radius: 50%;
  background: var(--pale-sage);
  color: var(--emerald);
  font-weight: 850;
}

.teacher-role-grid h2,
.resource-grid h2 {
  margin: 23px 0 10px;
  color: var(--evergreen);
  font-family: var(--serif);
  font-size: 29px;
  font-weight: 600;
}

.teacher-role-grid p,
.resource-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.full-pricing .pricing-card {
  min-height: 470px;
}

.policy-callout {
  max-width: 850px;
  margin: 48px auto 0;
  border: 1px solid rgba(14, 81, 53, 0.12);
  border-radius: 24px;
  background: var(--pale-sage);
  padding: 32px;
}

.policy-callout h2 {
  margin: 0 0 22px;
  color: var(--evergreen);
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 600;
}

.uk-fees {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.uk-fees p {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin: 0;
  border-radius: 10px;
  background: white;
  padding: 14px;
  font-size: 13px;
}

.policy-callout > p {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.assessment-section {
  background: white;
}

.assessment-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.56fr) minmax(0, 1.44fr);
  gap: 72px;
}

.assessment-steps {
  display: grid;
  gap: 24px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}

.assessment-steps li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 15px;
}

.assessment-steps li > span {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 50%;
  background: var(--pale-sage);
  color: var(--emerald);
  font-weight: 850;
}

.assessment-steps strong {
  color: var(--evergreen);
}

.assessment-steps p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.assessment-form {
  border: 1px solid rgba(14, 81, 53, 0.1);
  border-radius: 24px;
  background: var(--ivory);
  padding: 34px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 19px;
}

.assessment-form label {
  display: grid;
  gap: 8px;
  color: var(--charcoal);
  font-size: 13px;
  font-weight: 750;
}

.assessment-form input,
.assessment-form select,
.assessment-form textarea {
  width: 100%;
  border: 1px solid #cbd6cf;
  border-radius: 10px;
  background: white;
  padding: 13px 14px;
  color: var(--charcoal);
  font-size: 14px;
}

.assessment-form textarea {
  resize: vertical;
}

.full-field {
  grid-column: 1 / -1;
}

.form-submit {
  margin-top: 24px;
  border: 1px solid var(--gold);
}

.form-helper {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.form-helper a {
  color: var(--emerald);
  font-weight: 800;
}

.form-notice {
  margin: 16px 0 0;
  border-radius: 10px;
  background: var(--pale-sage);
  padding: 13px;
  color: var(--evergreen);
  font-size: 13px;
}

.about-story-grid,
.resource-promise {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}

.prose p,
.resource-promise > p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.85;
}

.stats-section {
  background: var(--evergreen);
  color: white;
}

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

.stats-grid article {
  display: grid;
  gap: 8px;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
  padding: 20px 36px;
  text-align: center;
}

.stats-grid article:last-child {
  border-right: 0;
}

.stats-grid strong {
  color: var(--gold);
  font-family: var(--serif);
  font-size: 50px;
  font-weight: 600;
}

.stats-grid span {
  font-size: 13px;
}

.resource-grid article > span {
  color: var(--gold);
  font-size: 23px;
}

.resource-grid a {
  display: inline-block;
  margin-top: 22px;
  color: var(--emerald);
  font-size: 13px;
  font-weight: 800;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

.contact-grid > a {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(14, 81, 53, 0.1);
  border-radius: 20px;
  background: white;
  padding: 28px;
  box-shadow: 0 12px 30px rgba(8, 60, 41, 0.05);
}

.contact-grid span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.contact-grid strong {
  color: var(--evergreen);
  font-family: var(--serif);
  font-size: 23px;
}

.contact-grid small {
  color: var(--muted);
}

.contact-actions {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 40px;
}

.policy-content {
  max-width: 850px;
}

.policy-content section {
  border-bottom: 1px solid var(--hairline);
  padding: 25px 0;
}

.policy-content section:first-child {
  padding-top: 0;
}

.policy-content h2 {
  margin: 0;
  color: var(--evergreen);
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 600;
}

.policy-content section p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.policy-date {
  margin-top: 25px;
  color: var(--muted);
  font-size: 12px;
}

:focus-visible {
  outline: 2px solid var(--emerald);
  outline-offset: 3px;
}

@keyframes hero-copy-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}

@keyframes hero-image-in {
  from {
    opacity: 0;
  }
}

@media (max-width: 1120px) {
  .desktop-nav {
    gap: 18px;
  }

  .header-cta {
    display: none;
  }

  .hero {
    padding-top: 56px;
  }

  .hero-grid {
    gap: 28px;
  }

  .hero h1 {
    font-size: 56px;
  }
}

@media (max-width: 900px) {
  .shell {
    width: min(100% - 40px, 720px);
  }

  .header-inner {
    min-height: 78px;
  }

  .desktop-nav {
    display: none;
  }

  .brand {
    margin-right: auto;
  }

  .header-cta {
    display: none;
  }

  .mobile-menu {
    display: block;
  }

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

  .hero-copy {
    padding-bottom: 0;
  }

  .hero-visual {
    min-height: 630px;
  }

  .hero-image-frame {
    inset: 0 0 85px;
  }

  .teacher-card {
    right: 20px;
  }

  .section-heading-row,
  .standards-grid,
  .faq-grid,
  .assessment-grid,
  .about-story-grid,
  .resource-promise,
  .inner-hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .course-grid,
  .process-grid,
  .audience-grid,
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .standards-copy {
    position: static;
  }

  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
  }

  .footer-grid > div:last-child {
    grid-column: 1 / -1;
  }

  .module-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .contact-grid,
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid article:nth-child(2) {
    border-right: 0;
  }

  .inner-hero.compact .narrow {
    margin-inline: auto;
  }
}

@media (max-width: 640px) {
  .shell {
    width: calc(100% - 40px);
  }

  .trust-strip {
    min-height: 52px;
    flex-wrap: wrap;
    gap: 5px 10px;
    padding: 8px 20px;
    font-size: 11px;
    text-align: center;
  }

  .trust-strip svg {
    display: none;
  }

  .site-header {
    position: sticky;
    top: 0;
  }

  .header-inner {
    min-height: 72px;
  }

  .brand {
    gap: 8px;
    font-size: 24px;
  }

  .brand-mark {
    width: 42px;
    height: 44px;
  }

  .brand-mark svg {
    width: 34px;
  }

  .hero {
    min-height: 0;
    padding: 50px 0 70px;
  }

  .hero h1 {
    font-size: clamp(43px, 12.2vw, 52px);
    line-height: 1.01;
  }

  .hero-lede {
    font-size: 16px;
    line-height: 1.65;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
    min-height: 58px;
  }

  .reassurance {
    align-items: flex-start;
    font-size: 12px;
    line-height: 1.5;
  }

  .reassurance span {
    display: none;
  }

  .hero-visual {
    min-height: auto;
    padding-bottom: 0;
  }

  .hero-image-frame {
    position: relative;
    inset: auto;
    height: 440px;
    border-radius: 72px 18px 52px 18px;
  }

  .hero-image-frame img {
    object-position: 66% 50%;
  }

  .progress-card,
  .teacher-card {
    position: relative;
    right: auto;
    bottom: auto;
    left: auto;
    width: 100%;
    margin-top: 14px;
  }

  .teacher-card {
    min-height: 100px;
  }

  .hero-pattern {
    display: none;
  }

  .section {
    padding: 76px 0;
  }

  .section-heading-row {
    margin-bottom: 34px;
  }

  .course-grid,
  .process-grid,
  .audience-grid,
  .pricing-grid,
  .teacher-role-grid,
  .resource-grid,
  .detail-grid,
  .form-grid,
  .uk-fees,
  .module-grid,
  .contact-grid,
  .stats-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .course-card {
    min-height: 270px;
  }

  .final-cta-inner,
  .footer-bottom,
  .contact-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .final-cta .button {
    width: 100%;
  }

  .site-footer {
    padding-top: 60px;
  }

  .footer-grid > div:last-child {
    grid-column: auto;
  }

  .footer-bottom nav {
    flex-wrap: wrap;
  }

  .inner-hero {
    padding: 58px 0 66px;
  }

  .inner-hero h1 {
    font-size: 45px;
  }

  .inner-hero p:not(.eyebrow):not(.breadcrumbs) {
    font-size: 16px;
  }

  .course-summary-card {
    padding: 26px;
  }

  .standard-list article {
    grid-template-columns: 45px 1fr;
  }

  .assessment-form {
    padding: 22px;
  }

  .full-field {
    grid-column: auto;
  }

  .stats-grid article,
  .stats-grid article:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  }

  .stats-grid article:last-child {
    border-bottom: 0;
  }
}

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

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

/* Platform direction */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.platform-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 22%, rgba(196, 154, 85, 0.16), transparent 28%),
    linear-gradient(135deg, #073a28 0%, #0a4932 58%, #0e5135 100%);
  color: #fff;
}

.platform-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.08;
  background-image:
    linear-gradient(30deg, transparent 47%, #fff 48%, #fff 50%, transparent 51%),
    linear-gradient(150deg, transparent 47%, #fff 48%, #fff 50%, transparent 51%);
  background-size: 44px 76px;
  mask-image: linear-gradient(to right, transparent, #000);
}

.platform-hero-grid {
  position: relative;
  display: grid;
  min-height: 700px;
  align-items: center;
  grid-template-columns: minmax(0, 0.94fr) minmax(440px, 0.86fr);
  gap: clamp(54px, 7vw, 100px);
  padding-block: 78px 92px;
}

.platform-hero-copy {
  max-width: 670px;
}

.platform-hero .eyebrow {
  color: #e4bd76;
}

.platform-hero h1 {
  max-width: 660px;
  margin: 0;
  color: #fff;
  font-family: var(--serif);
  font-size: clamp(52px, 5.6vw, 80px);
  font-weight: 500;
  letter-spacing: -0.047em;
  line-height: 0.99;
}

.platform-hero-copy > p:not(.eyebrow) {
  max-width: 610px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.77);
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.75;
}

.platform-hero .button-secondary {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.platform-hero .button-secondary:hover {
  background: rgba(255, 255, 255, 0.13);
}

.platform-promises {
  display: flex;
  flex-wrap: wrap;
  gap: 11px 22px;
  margin-top: 28px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
  font-weight: 700;
}

.platform-promises span::first-letter {
  color: #e4bd76;
}

.quran-preview-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 34px;
  background: #fffdf8;
  color: var(--charcoal);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.26);
  transform: rotate(1.25deg);
}

.quran-preview-card::before {
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(196, 154, 85, 0.26);
  border-radius: 25px;
  content: "";
  pointer-events: none;
}

.preview-topbar {
  position: relative;
  z-index: 1;
  display: grid;
  align-items: center;
  grid-template-columns: 1fr auto 1fr;
  padding: 25px 30px 18px;
  border-bottom: 1px solid #e9e0d0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.preview-topbar strong {
  color: var(--evergreen);
  font-family: "Noto Nastaliq Urdu", var(--serif);
  font-size: 21px;
  font-weight: 400;
}

.preview-topbar small {
  justify-self: end;
  border-radius: 999px;
  background: var(--pale-sage);
  padding: 6px 10px;
  color: var(--emerald);
}

.preview-mushaf {
  position: relative;
  z-index: 1;
  padding: 34px 46px 22px;
  color: #17291f;
  font-family: "Noto Nastaliq Urdu", "Amiri Quran", serif;
  font-size: clamp(25px, 2.5vw, 37px);
  line-height: 1.9;
  text-align: center;
}

.preview-mushaf p {
  margin: 0;
}

.preview-mushaf b {
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  margin-inline: 5px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--emerald);
  font-family: var(--serif);
  font-size: 13px;
}

.preview-translation {
  position: relative;
  z-index: 1;
  margin: 0 30px 22px;
  border-top: 1px solid #ece3d5;
  padding: 18px 12px 0;
  color: #526059;
  font-family: "Noto Nastaliq Urdu", serif;
  font-size: 17px;
  line-height: 2;
  text-align: center;
}

.preview-player {
  position: relative;
  z-index: 1;
  display: grid;
  align-items: center;
  grid-template-columns: auto 1fr 70px;
  gap: 14px;
  margin: 0 18px 18px;
  border-radius: 18px;
  background: var(--evergreen);
  padding: 15px 18px;
  color: #fff;
}

.preview-player button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--gold);
  color: #fff;
}

.preview-player span {
  display: grid;
  gap: 2px;
}

.preview-player strong {
  font-size: 13px;
}

.preview-player small {
  color: rgba(255, 255, 255, 0.65);
  font-size: 10px;
}

.preview-player i {
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(to right, var(--gold) 42%, rgba(255,255,255,.18) 42%);
}

.service-band {
  background: #fff;
  border-bottom: 1px solid var(--hairline);
}

.service-band .shell {
  display: flex;
  min-height: 65px;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: #4e5b54;
  font-size: 13px;
  font-weight: 750;
}

.service-band i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
}

.platform-services {
  background: #f8f5ee;
}

.platform-service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 48px;
}

.platform-service-grid > a {
  position: relative;
  display: flex;
  min-height: 286px;
  flex-direction: column;
  align-items: flex-start;
  overflow: hidden;
  border: 1px solid rgba(14, 81, 53, 0.11);
  border-radius: 23px;
  background: #fff;
  padding: 27px;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.platform-service-grid > a:hover,
.platform-service-grid > a:focus-visible {
  border-color: rgba(14, 81, 53, 0.32);
  box-shadow: 0 20px 46px rgba(8, 60, 41, 0.09);
  transform: translateY(-4px);
}

.platform-service-grid > a.featured {
  background:
    radial-gradient(circle at 100% 0, rgba(196,154,85,.25), transparent 35%),
    var(--evergreen);
  color: #fff;
}

.platform-service-icon {
  display: grid;
  min-width: 50px;
  height: 50px;
  place-items: center;
  border-radius: 15px;
  background: var(--pale-sage);
  padding-inline: 10px;
  color: var(--emerald);
  font-family: "Noto Nastaliq Urdu", var(--serif);
  font-size: 19px;
  font-weight: 700;
}

.featured .platform-service-icon {
  background: rgba(255, 255, 255, 0.12);
  color: #e5bd75;
}

.platform-service-grid small {
  position: absolute;
  top: 31px;
  right: 24px;
  color: var(--gold);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.platform-service-grid h3 {
  margin: 25px 0 10px;
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.platform-service-grid p {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.platform-service-grid .featured p {
  color: rgba(255, 255, 255, 0.7);
}

.platform-service-grid b {
  margin-top: auto;
  color: var(--emerald);
  font-size: 13px;
}

.platform-service-grid .featured b {
  color: #e5bd75;
}

.popular-surahs {
  background: #fff;
}

.popular-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
}

.popular-surah-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 40px;
}

.popular-surah-grid a {
  display: grid;
  min-height: 92px;
  align-items: center;
  grid-template-columns: 42px 1fr auto;
  gap: 14px;
  border: 1px solid var(--hairline);
  border-radius: 17px;
  padding: 18px;
  transition: background 160ms ease, border-color 160ms ease;
}

.popular-surah-grid a:hover {
  border-color: rgba(14,81,53,.3);
  background: var(--pale-sage);
}

.popular-surah-grid > a > span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(14,81,53,.2);
  border-radius: 12px;
  color: var(--emerald);
  font-size: 12px;
  font-weight: 800;
  transform: rotate(45deg);
}

.popular-surah-grid > a > span::first-line {
  transform: rotate(-45deg);
}

.popular-surah-grid div {
  display: grid;
  gap: 4px;
}

.popular-surah-grid strong {
  font-family: var(--serif);
  font-size: 19px;
}

.popular-surah-grid small {
  color: var(--muted);
  font-size: 11px;
}

.popular-surah-grid b {
  color: var(--evergreen);
  font-family: "Noto Nastaliq Urdu", var(--serif);
  font-size: 22px;
  font-weight: 400;
}

.platform-principles {
  background: var(--pale-sage);
}

.principles-grid {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: clamp(60px, 9vw, 135px);
}

.principle-list {
  display: grid;
  gap: 1px;
}

.principle-list article {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 20px;
  border-bottom: 1px solid rgba(14,81,53,.15);
  padding: 27px 0;
}

.principle-list article:first-child {
  padding-top: 0;
}

.principle-list > article > span {
  color: var(--gold);
  font-family: var(--serif);
  font-size: 19px;
}

.principle-list h3 {
  margin: 0 0 7px;
  font-family: var(--serif);
  font-size: 23px;
}

.principle-list p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.academy-support-section {
  background: var(--evergreen);
  padding-block: 90px;
  color: #fff;
}

.academy-support-grid {
  display: grid;
  align-items: center;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(60px, 9vw, 130px);
}

.academy-support-section .eyebrow {
  color: #e1b96e;
}

.academy-support-section h2 {
  max-width: 700px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(38px, 4.4vw, 58px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.academy-support-section p:not(.eyebrow) {
  max-width: 650px;
  margin: 23px 0 0;
  color: rgba(255,255,255,.7);
  line-height: 1.75;
}

.academy-text-link {
  align-self: center;
  color: #fff;
  font-size: 14px;
  font-weight: 750;
}

.academy-proof-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 25px;
  background: rgba(255,255,255,.13);
}

.academy-proof-grid article {
  display: grid;
  min-height: 138px;
  align-content: center;
  gap: 7px;
  background: rgba(255,255,255,.04);
  padding: 24px;
}

.academy-proof-grid strong {
  color: #e5bd75;
  font-family: var(--serif);
  font-size: 28px;
}

.academy-proof-grid span {
  color: rgba(255,255,255,.66);
  font-size: 12px;
}

/* Quran reader */

.quran-page {
  min-height: 100vh;
  background: #f3f0e8;
}

.quran-page-intro {
  display: flex;
  width: min(1480px, calc(100% - 40px));
  align-items: end;
  justify-content: space-between;
  gap: 35px;
  margin-inline: auto;
  padding-block: 44px 34px;
}

.quran-page-intro h1 {
  margin: 0;
  color: var(--evergreen);
  font-family: var(--serif);
  font-size: clamp(38px, 4.5vw, 62px);
  font-weight: 550;
  letter-spacing: -0.04em;
}

.quran-page-intro > div > p:not(.eyebrow) {
  max-width: 750px;
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.quran-intro-notes {
  display: flex;
  max-width: 490px;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.quran-intro-notes span {
  border: 1px solid rgba(14,81,53,.14);
  border-radius: 999px;
  background: #fff;
  padding: 8px 12px;
  color: var(--emerald);
  font-size: 11px;
  font-weight: 750;
}

.quran-app {
  display: grid;
  width: min(1500px, calc(100% - 32px));
  min-height: 820px;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 16px;
  margin-inline: auto;
  padding-bottom: 40px;
}

.quran-sidebar {
  position: sticky;
  top: 14px;
  height: calc(100vh - 28px);
  min-height: 690px;
  overflow: hidden;
  border: 1px solid rgba(14,81,53,.12);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 16px 44px rgba(8,60,41,.06);
}

.quran-sidebar-heading {
  display: grid;
  gap: 5px;
  padding: 25px 22px 16px;
}

.quran-kicker {
  color: var(--gold);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.quran-sidebar-heading strong {
  color: var(--evergreen);
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
}

.quran-nav-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  margin: 0 16px 14px;
  border-radius: 13px;
  background: var(--pale-sage);
  padding: 4px;
}

.quran-nav-tabs button {
  border: 0;
  border-radius: 10px;
  background: transparent;
  padding: 9px;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 750;
}

.quran-nav-tabs button.active {
  background: #fff;
  color: var(--emerald);
  box-shadow: 0 4px 14px rgba(8,60,41,.08);
}

.quran-search {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 16px 10px;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  background: #fbfcfa;
  padding: 0 12px;
  color: var(--muted);
}

.quran-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 11px 0;
  color: var(--charcoal);
  font-size: 12px;
}

.surah-list,
.juz-grid {
  height: calc(100% - 154px);
  overflow-y: auto;
  padding: 0 10px 18px;
  scrollbar-color: #cbd8ce transparent;
  scrollbar-width: thin;
}

.surah-list > button {
  display: grid;
  width: 100%;
  align-items: center;
  grid-template-columns: 35px 1fr auto;
  gap: 10px;
  border: 0;
  border-radius: 13px;
  background: transparent;
  padding: 11px 9px;
  color: var(--charcoal);
  cursor: pointer;
  text-align: left;
}

.surah-list > button:hover,
.surah-list > button.active {
  background: var(--pale-sage);
}

.surah-list > button.active {
  color: var(--evergreen);
}

.surah-number {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border: 1px solid rgba(14,81,53,.17);
  border-radius: 9px;
  font-size: 10px;
  font-weight: 800;
}

.surah-list > button > span:nth-child(2) {
  display: grid;
  gap: 2px;
}

.surah-list strong {
  font-size: 12px;
}

.surah-list small {
  color: #79837d;
  font-size: 9px;
}

.surah-list b {
  color: var(--emerald);
  font-family: "Noto Nastaliq Urdu", var(--serif);
  font-size: 15px;
  font-weight: 400;
}

.juz-grid {
  display: grid;
  align-content: start;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.juz-grid button {
  position: relative;
  display: grid;
  gap: 3px;
  border: 1px solid var(--hairline);
  border-radius: 13px;
  background: #fff;
  padding: 13px 10px;
  color: var(--charcoal);
  cursor: pointer;
  text-align: left;
}

.juz-grid button:hover {
  border-color: rgba(14,81,53,.3);
  background: var(--pale-sage);
}

.juz-grid button > span {
  color: var(--gold);
  font-family: var(--serif);
  font-size: 18px;
}

.juz-grid strong {
  font-size: 11px;
}

.juz-grid small {
  color: var(--muted);
  font-size: 8px;
}

.saved-places {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: 12px;
  border-radius: 13px;
  background: var(--evergreen);
  padding: 12px;
  color: #fff;
}

.saved-places strong {
  font-size: 10px;
}

.saved-places p {
  margin: 4px 0 0;
  color: rgba(255,255,255,.62);
  font-size: 9px;
}

.quran-reader-panel {
  position: relative;
  min-width: 0;
  overflow: visible;
  border: 1px solid rgba(14,81,53,.12);
  border-radius: 24px;
  background: #fdfcf8;
  box-shadow: 0 16px 44px rgba(8,60,41,.06);
}

.reader-toolbar {
  position: sticky;
  z-index: 12;
  top: 8px;
  display: grid;
  min-height: 76px;
  align-items: center;
  grid-template-columns: 1fr auto auto;
  gap: 16px;
  margin: 8px;
  border: 1px solid rgba(14,81,53,.1);
  border-radius: 18px;
  background: rgba(255,255,255,.94);
  padding: 10px 14px;
  box-shadow: 0 9px 28px rgba(8,60,41,.08);
  backdrop-filter: blur(18px);
}

.reader-title {
  display: grid;
  width: min(330px, 100%);
  align-items: center;
  grid-template-columns: 38px 1fr 38px;
  gap: 8px;
}

.reader-title button,
.reader-view-switch button,
.reader-settings summary {
  border: 1px solid var(--hairline);
  background: #fff;
  color: var(--emerald);
  cursor: pointer;
}

.reader-title button {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 10px;
}

.reader-title button:disabled {
  opacity: .35;
}

.reader-title div {
  display: grid;
  gap: 2px;
  text-align: center;
}

.reader-title span {
  color: var(--gold);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.reader-title strong {
  color: var(--evergreen);
  font-family: var(--serif);
  font-size: 18px;
}

.reader-view-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: 12px;
  background: var(--pale-sage);
  padding: 4px;
}

.reader-view-switch button {
  border: 0;
  border-radius: 9px;
  background: transparent;
  padding: 8px 13px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.reader-view-switch button.active {
  background: #fff;
  color: var(--emerald);
  box-shadow: 0 3px 10px rgba(8,60,41,.08);
}

.reader-settings {
  position: relative;
}

.reader-settings summary {
  border-radius: 11px;
  padding: 10px 13px;
  list-style: none;
  font-size: 11px;
  font-weight: 750;
}

.reader-settings summary::-webkit-details-marker {
  display: none;
}

.settings-panel {
  position: absolute;
  z-index: 20;
  top: 48px;
  right: 0;
  display: grid;
  width: min(330px, calc(100vw - 48px));
  gap: 13px;
  border: 1px solid rgba(14,81,53,.14);
  border-radius: 17px;
  background: #fff;
  padding: 18px;
  box-shadow: 0 24px 60px rgba(8,60,41,.18);
}

.settings-panel label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
}

.settings-panel select {
  width: 100%;
  border: 1px solid var(--hairline);
  border-radius: 10px;
  background: #fff;
  padding: 9px;
  color: var(--charcoal);
  font-size: 11px;
}

.settings-panel .check-setting {
  display: flex;
  align-items: center;
  gap: 8px;
}

.reader-loading,
.reader-error {
  display: grid;
  min-height: 520px;
  place-content: center;
  justify-items: center;
  color: var(--muted);
}

.reader-loading span {
  width: 42px;
  height: 42px;
  border: 3px solid var(--sage);
  border-top-color: var(--emerald);
  border-radius: 50%;
  animation: quran-spin .8s linear infinite;
}

@keyframes quran-spin {
  to { transform: rotate(360deg); }
}

.reader-error {
  color: #923f33;
}

.quran-reading-area {
  min-height: 680px;
  padding: 24px clamp(16px, 4vw, 58px) 125px;
}

.surah-heading-card {
  position: relative;
  max-width: 860px;
  overflow: hidden;
  margin: 6px auto 28px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 0 0, rgba(196,154,85,.2), transparent 35%),
    linear-gradient(135deg, var(--evergreen), #0e5a3b);
  padding: 26px;
  color: #fff;
  text-align: center;
}

.surah-heading-card p {
  margin: 0;
  color: rgba(255,255,255,.62);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.surah-heading-card h1 {
  margin: 13px 0 4px;
  color: #fff;
  font-family: "Noto Nastaliq Urdu", "Amiri Quran", serif;
  font-size: 31px;
  font-weight: 400;
}

.surah-heading-card span {
  color: #e7c17c;
  font-size: 11px;
}

.bismillah {
  margin: 26px auto;
  color: var(--evergreen);
  font-family: "Noto Nastaliq Urdu", "Amiri Quran", serif;
  font-size: calc(var(--quran-size) * .8);
  line-height: 2;
  text-align: center;
}

.mushaf-page {
  max-width: 930px;
  margin-inline: auto;
  border: 1px solid #ded5c5;
  border-radius: 5px 5px 28px 28px;
  background:
    linear-gradient(rgba(196,154,85,.035), rgba(196,154,85,.035)),
    #fffdf7;
  padding: clamp(28px, 5vw, 66px);
  box-shadow: 0 18px 50px rgba(91,73,43,.09);
  color: #1c2f24;
  font-family: "Noto Nastaliq Urdu", "Amiri Quran", serif;
  font-size: var(--quran-size);
  line-height: 2.25;
  text-align: justify;
  text-align-last: center;
}

.mushaf-page.uthmani,
.mushaf-page.tajweed,
.ayah-arabic.uthmani,
.ayah-arabic.tajweed {
  font-family: "Amiri Quran", serif;
  line-height: 2;
}

.mushaf-page button {
  display: inline;
  border: 0;
  border-radius: 8px;
  background: transparent;
  padding: 2px 4px;
  color: inherit;
  cursor: pointer;
  font: inherit;
  line-height: inherit;
  transition: background 140ms ease;
}

.mushaf-page button:hover,
.mushaf-page button.playing {
  background: #e5efe6;
}

.mushaf-page button b {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  margin-inline: 5px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--emerald);
  font-family: var(--serif);
  font-size: 12px;
}

.mushaf-translation-list {
  max-width: 930px;
  margin: 24px auto 0;
  overflow: hidden;
  border: 1px solid var(--hairline);
  border-radius: 20px;
  background: #fff;
}

.mushaf-translation-list article {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 16px;
  border-bottom: 1px solid #edf0ec;
  padding: 17px 21px;
}

.mushaf-translation-list article:last-child {
  border-bottom: 0;
}

.mushaf-translation-list article > span {
  color: var(--gold);
  font-size: 10px;
  font-weight: 800;
}

.mushaf-translation-list p {
  margin: 0;
  color: #45524a;
  font-size: 14px;
  line-height: 1.7;
}

.mushaf-translation-list .urdu-text {
  font-family: "Noto Nastaliq Urdu", serif;
  font-size: 17px;
  line-height: 2.1;
}

.mushaf-translation-list small {
  grid-column: 2;
  color: #78827c;
  font-style: italic;
  line-height: 1.6;
}

.ayah-study-list {
  display: grid;
  max-width: 930px;
  gap: 13px;
  margin-inline: auto;
}

.ayah-study-list article {
  position: relative;
  border: 1px solid var(--hairline);
  border-radius: 20px;
  background: #fff;
  padding: 22px 26px 25px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.ayah-study-list article.playing {
  border-color: rgba(14,81,53,.42);
  box-shadow: 0 13px 34px rgba(8,60,41,.09);
}

.ayah-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  border-bottom: 1px solid #edf0ec;
  padding-bottom: 10px;
}

.ayah-actions > span {
  margin-right: auto;
  color: var(--gold);
  font-size: 10px;
  font-weight: 850;
}

.ayah-actions button {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border: 1px solid var(--hairline);
  border-radius: 9px;
  background: #fff;
  color: var(--emerald);
  cursor: pointer;
}

.ayah-actions button.active {
  border-color: var(--gold);
  color: var(--gold);
}

.ayah-arabic {
  margin: 22px 0 16px;
  color: #1b2e23;
  font-family: "Noto Nastaliq Urdu", "Amiri Quran", serif;
  font-size: var(--quran-size);
  line-height: 2.15;
  text-align: right;
}

.transliteration {
  margin: 0 0 12px;
  color: #76817a;
  font-size: 13px;
  font-style: italic;
  line-height: 1.65;
}

.ayah-translation {
  margin: 0;
  border-top: 1px solid #edf0ec;
  padding-top: 15px;
  color: #49574f;
  font-size: 14px;
  line-height: 1.75;
}

.ayah-translation.urdu-text {
  font-family: "Noto Nastaliq Urdu", serif;
  font-size: 18px;
  line-height: 2.2;
}

.quran-player {
  position: sticky;
  z-index: 15;
  right: 16px;
  bottom: 12px;
  left: 16px;
  display: grid;
  width: calc(100% - 32px);
  min-height: 78px;
  align-items: center;
  grid-template-columns: minmax(180px, 1fr) auto minmax(170px, .8fr) auto;
  gap: 20px;
  margin: -100px 16px 16px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 20px;
  background: rgba(8,60,41,.96);
  padding: 12px 18px;
  color: #fff;
  box-shadow: 0 20px 55px rgba(8,60,41,.28);
  backdrop-filter: blur(18px);
}

.player-now {
  display: grid;
  gap: 2px;
}

.player-now > span,
.player-reciter > span {
  color: #dfb66b;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: .1em;
}

.player-now strong {
  font-size: 12px;
}

.player-now small {
  color: rgba(255,255,255,.57);
  font-size: 9px;
}

.player-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.player-controls button,
.repeat-button {
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  color: #fff;
  cursor: pointer;
}

.player-controls button {
  width: 34px;
  height: 34px;
}

.player-controls .main-play {
  width: 46px;
  height: 46px;
  border: 0;
  background: var(--gold);
}

.player-controls button:disabled {
  cursor: default;
  opacity: .32;
}

.player-reciter {
  display: grid;
  gap: 4px;
}

.player-reciter select {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
}

.player-reciter option {
  color: #1f3127;
}

.repeat-button {
  width: auto;
  height: 38px;
  grid-auto-flow: column;
  gap: 6px;
  border-radius: 10px;
  padding: 0 11px;
  font-size: 10px;
}

.repeat-button.active {
  border-color: var(--gold);
  color: #e5bd75;
}

.quran-source-note {
  width: min(1100px, calc(100% - 40px));
  margin-inline: auto;
  padding: 0 0 55px;
  color: #78827c;
  font-size: 11px;
  line-height: 1.7;
  text-align: center;
}

.quran-source-note a {
  color: var(--emerald);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ham_wasl { color: #8b8b8b; }
.laam_shamsiyah { color: #b34d41; }
.madda_normal { color: #3476a7; }
.madda_permissible { color: #8562a8; }
.madda_necessary { color: #8c3d9a; }
.ghunnah { color: #15986d; }
.ikhafa { color: #c76b2c; }
.idgham_ghunnah { color: #158f7d; }
.idgham_wo_ghunnah { color: #31705d; }
.iqlab { color: #9a6a27; }
.qalqalah { color: #bd3f5b; }
.ikhafa_shafawi { color: #d27a35; }
.idgham_shafawi { color: #238a72; }

@media (max-width: 1180px) {
  .platform-hero-grid {
    min-height: 640px;
    grid-template-columns: minmax(0, 1fr) minmax(390px, .82fr);
    gap: 42px;
  }

  .platform-service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .quran-app {
    grid-template-columns: 270px minmax(0, 1fr);
  }

  .quran-player {
    grid-template-columns: 1fr auto 170px;
  }

  .repeat-button {
    display: none;
  }
}

@media (max-width: 900px) {
  .platform-hero-grid {
    grid-template-columns: 1fr;
    padding-block: 64px 74px;
  }

  .platform-hero-copy {
    max-width: 760px;
  }

  .quran-preview-card {
    max-width: 660px;
    margin-inline: auto;
    transform: none;
  }

  .popular-surah-grid {
    grid-template-columns: 1fr 1fr;
  }

  .principles-grid,
  .academy-support-grid {
    grid-template-columns: 1fr;
    gap: 55px;
  }

  .quran-page-intro {
    align-items: flex-start;
    flex-direction: column;
  }

  .quran-intro-notes {
    justify-content: flex-start;
  }

  .quran-app {
    display: block;
  }

  .quran-sidebar {
    position: relative;
    top: auto;
    height: 420px;
    min-height: 0;
    margin-bottom: 14px;
  }

  .quran-reader-panel {
    min-height: 700px;
  }

  .reader-toolbar {
    top: 6px;
  }
}

@media (max-width: 640px) {
  .platform-hero-grid {
    padding-block: 52px 58px;
  }

  .platform-hero h1 {
    font-size: clamp(44px, 14vw, 58px);
  }

  .platform-promises {
    gap: 9px 14px;
  }

  .preview-topbar {
    grid-template-columns: 1fr auto;
    padding: 21px 22px 15px;
  }

  .preview-topbar > span {
    display: none;
  }

  .preview-mushaf {
    padding: 25px 25px 14px;
    font-size: 24px;
    line-height: 1.9;
  }

  .preview-translation {
    font-size: 15px;
  }

  .service-band .shell {
    min-height: 58px;
    flex-wrap: wrap;
    gap: 4px 9px;
    padding-block: 10px;
    text-align: center;
  }

  .service-band span {
    font-size: 9px;
  }

  .platform-service-grid,
  .popular-surah-grid {
    grid-template-columns: 1fr;
  }

  .platform-service-grid > a {
    min-height: 240px;
  }

  .popular-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .academy-proof-grid {
    grid-template-columns: 1fr;
  }

  .academy-proof-grid article {
    min-height: 105px;
  }

  .quran-page-intro {
    width: min(100% - 28px, 1480px);
    padding-block: 32px 24px;
  }

  .quran-app {
    width: min(100% - 16px, 1500px);
  }

  .quran-sidebar {
    height: 370px;
    border-radius: 18px;
  }

  .quran-reader-panel {
    border-radius: 18px;
  }

  .reader-toolbar {
    position: relative;
    top: auto;
    grid-template-columns: 1fr auto;
    gap: 8px;
    border-radius: 14px;
    padding: 9px;
  }

  .reader-title {
    grid-column: 1 / -1;
    justify-self: center;
  }

  .reader-view-switch button {
    padding-inline: 10px;
  }

  .reader-settings summary {
    padding-inline: 10px;
  }

  .quran-reading-area {
    padding: 14px 9px 136px;
  }

  .surah-heading-card {
    border-radius: 16px;
    padding: 21px 15px;
  }

  .mushaf-page {
    border-radius: 4px 4px 20px 20px;
    padding: 26px 18px;
    font-size: min(var(--quran-size), 38px);
    line-height: 2.1;
    text-align: center;
  }

  .mushaf-page button {
    padding-inline: 1px;
  }

  .mushaf-page button b {
    width: 29px;
    height: 29px;
  }

  .mushaf-translation-list article {
    grid-template-columns: 38px 1fr;
    gap: 8px;
    padding: 14px 13px;
  }

  .mushaf-translation-list p {
    font-size: 12px;
  }

  .mushaf-translation-list .urdu-text {
    font-size: 15px;
  }

  .ayah-study-list article {
    border-radius: 16px;
    padding: 17px 16px 20px;
  }

  .ayah-arabic {
    font-size: min(var(--quran-size), 40px);
  }

  .quran-player {
    right: 7px;
    bottom: 6px;
    left: 7px;
    width: calc(100% - 14px);
    grid-template-columns: 1fr auto;
    gap: 9px;
    margin: -118px 7px 7px;
    border-radius: 16px;
    padding: 10px 12px;
  }

  .player-reciter {
    grid-column: 1 / -1;
  }

  .player-reciter select {
    font-size: 9px;
  }
}
