/* =========================================================
   BAYT AL FURQAN — GLOBAL STYLES
   Clean consolidated layout. CSS values and selectors retained.
   ========================================================= */

/* =========================================================
   BASE / DESKTOP
   ========================================================= */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

.container {
  width: min(calc(100% - 36px),var(--max));
  margin: auto;
}

.eyebrow {
  font-size: .76rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--blue);
}

h1,h2,h3 {
  font-family: "DM Serif Display",Georgia,serif;
  font-weight: 400;
  line-height: 1.08;
  margin: 0;
}

h1 {
  font-size: clamp(2.45rem,5vw,4.4rem);
  max-width: 900px;
}

h2 {
  font-size: clamp(2rem,4vw,3.6rem);
}

h3 {
  font-size: 1.5rem;
}

p {
  margin: .7rem 0 0;
}

.muted {
  color: var(--ink-soft);
}

.small {
  font-size: .86rem;
}

.section {
  padding: 92px 0;
}

.section-tight {
  padding: 64px 0;
}

.section-head {
  display: flex;
  gap: 24px;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 34px;
}

.section-head p {
  max-width: 560px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 19px;
  border-radius: 999px;
  border: 1px solid var(--blue-deep);
  font-weight: 700;
  transition: .2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--blue-deep);
  color: white;
}

.btn-ghost {
  background: transparent;
}

.btn-soft {
  border-color: var(--line);
  background: var(--white);
  color: var(--blue-deep);
}

.chip {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--silver);
  color: var(--blue-deep);
  font-size: .78rem;
  font-weight: 700;
}

.grid {
  display: grid;
  gap: 20px;
}

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

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

.card {
  background: var(--white);
  border: 1px solid rgba(16,36,61,.08);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 8px 28px rgba(16,36,61,.045);
}

.card p {
  color: var(--ink-soft);
}

/* HEADER */
.topbar {
  background: var(--blue-deep);
  color: #fff;
  font-size: .9rem;
}

.topbar .container {
  padding: 8px 0;
  display: flex;
  justify-content: center;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(238,241,244,.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(16,36,61,.08);
}

.nav-wrap {
  display: flex;
  align-items: center;
  min-height: 78px;
  padding: 8px 0;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--blue-deep);
  font-family: "DM Serif Display",Georgia,serif;
  font-size: 1.42rem;
  flex: 0 0 auto;
}

.brand-logo {
  width: 50px;
  height: 50px;
  object-fit: contain;
  flex: 0 0 auto;
}

.brand-text small {
  display: block;
  font-family: "DM Sans",sans-serif;
  font-size: .56rem;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 1px;
}

.nav {
  display: flex;
  gap: 22px;
  align-items: center;
  margin-left: auto;
}

.nav a {
  font-weight: 700;
  font-size: .9rem;
  color: var(--blue-deep);
  white-space: nowrap;
}

.nav .btn-primary {
  color: #fff;
  margin-left: 4px;
}

.menu-btn {
  display: none;
  background: none;
  border: 0;
  font-size: 1.6rem;
}

/* HERO */
.hero {
  padding: 72px 0 54px;
  background: radial-gradient(circle at 85% 20%,rgba(203,210,217,.42),transparent 28%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0,1.2fr) minmax(0,.8fr);
  gap: 34px;
  align-items: stretch;
}

.hero-copy,.hero-panel {
  min-width: 0;
}

.hero-copy {
  padding: 32px 0;
}

.hero-copy .lede {
  font-size: 1.18rem;
  max-width: 680px;
  color: var(--ink-soft);
  margin-top: 22px;
}

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

.hero-panel {
  background: linear-gradient(145deg,#dce2e8,#b9c4cf);
  border-radius: 34px;
  padding: 34px;
  min-height: 430px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-panel:before {
  content: "";
  position: absolute;
  width: 340px;
  height: 340px;
  border: 1px solid rgba(16,47,82,.12);
  border-radius: 50%;
  right: -120px;
  top: -80px;
}

.hero-panel:after {
  content: "";
  position: absolute;
  width: 230px;
  height: 230px;
  border: 1px solid rgba(16,47,82,.09);
  border-radius: 50%;
  left: -90px;
  bottom: -60px;
}

.hero-logo {
  width: min(330px,82%);
  filter: drop-shadow(0 14px 30px rgba(16,36,61,.14));
  position: relative;
  z-index: 1;
}

.hero-kicker {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-top: 18px;
  color: var(--blue-deep);
  font-weight: 700;
}

.hero-kicker:before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--blue);
}

/* GENERAL */
.pathway {
  background: linear-gradient(145deg,var(--blue-deep),#14283f);
  color: white;
}

.pathway .muted {
  color: #cbd5df;
}

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

.step {
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 22px;
  padding: 24px;
  min-height: 210px;
  background: rgba(255,255,255,.025);
}

.step-num {
  font-size: .8rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: #c1ced9;
}

.step h3 {
  margin-top: 28px;
}

.program-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.program-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.program-card .program-footer {
  margin-top: auto;
  padding-top: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.program-card[data-hidden="true"] {
  display: none;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 28px;
}

.filter-btn {
  border: 1px solid var(--line);
  background: var(--white);
  padding: 9px 13px;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.filter-btn.active {
  background: var(--blue-deep);
  color: white;
  border-color: var(--blue-deep);
}

/* TEACHER */
.teacher {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: 28px;
  align-items: stretch;
}

.teacher-photo {
  border-radius: 30px;
  overflow: hidden;
  min-height: 510px;
  background: #cfd7df;
  box-shadow: var(--shadow);
}

.teacher-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}

.teacher-copy {
  padding: 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* BOOKS */
.books-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 22px;
}

.book-card {
  background: var(--white);
  border: 1px solid rgba(16,36,61,.08);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 10px 32px rgba(16,36,61,.06);
  display: flex;
  flex-direction: column;
}

.book-cover {
  aspect-ratio: 4/3;
  background: var(--silver);
  overflow: hidden;
}

.book-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.book-cover.portrait img {
  object-fit: contain;
  background: #dce2e8;
}

.book-body {
  padding: 24px;
}

.book-body p {
  color: var(--ink-soft);
}

.featured-book {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 30px;
  align-items: center;
}

.featured-book-media {
  background: linear-gradient(145deg,#dfe4e9,#c4ccd4);
  border-radius: 32px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.featured-book-media img {
  width: 100%;
  border-radius: 20px;
}

.featured-book-copy {
  padding: 20px 0;
}

/* CTA / FOOTER */
.cta {
  background: linear-gradient(145deg,var(--blue-deep),#183b63);
  color: white;
  border-radius: 34px;
  padding: 54px;
}

.cta p {
  color: #dbe5ec;
  max-width: 700px;
}

.footer {
  padding: 54px 0 34px;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr .8fr;
  gap: 24px;
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-brand {
  display: flex;
  gap: 12px;
  align-items: center;
}

.footer-brand img {
  width: 52px;
}

.page-hero {
  padding: 74px 0 36px;
}

.page-hero p {
  max-width: 720px;
  font-size: 1.08rem;
  color: var(--ink-soft);
}

.notice {
  border: 1px dashed var(--silver-deep);
  background: #f5f7f9;
  border-radius: 18px;
  padding: 18px 20px;
}

.empty-state {
  text-align: center;
  padding: 54px 24px;
  border: 1px dashed var(--line);
  border-radius: 24px;
  color: var(--ink-soft);
}

/* HERO VISUAL — BAYT AL FURQAN WORD CLOUD */
.hero-wordcloud-panel {
  padding: 0;
  background: linear-gradient(145deg,#dce2e8,#c7d1db);
  height: 430px;
  min-height: 0;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
}

.hero-wordcloud-panel:before,.hero-wordcloud-panel:after {
  display: none;
}

.hero-wordcloud {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  border-radius: 34px;
  background: transparent;
}

/* CONTENT SECTIONS */
.info-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 18px;
}

.info-card {
  background: var(--white);
  border: 1px solid rgba(16,36,61,.08);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 8px 28px rgba(16,36,61,.04);
}

.info-card .num {
  font-size: .76rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--blue);
}

.info-card h3 {
  margin-top: 16px;
}

.story-grid {
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: 34px;
  align-items: center;
}

.story-panel {
  background: linear-gradient(145deg,var(--blue-deep),#183b63);
  color: #fff;
  border-radius: 32px;
  padding: 44px;
}

.story-panel p {
  color: #dbe5ec;
}

.timeline {
  display: grid;
  gap: 16px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.timeline-item:last-child {
  border-bottom: 0;
}

.timeline-year {
  font-family: "DM Serif Display",Georgia,serif;
  font-size: 2rem;
  color: var(--blue-deep);
}

.content-stack {
  display: grid;
  gap: 18px;
}

.content-block {
  background: var(--white);
  border: 1px solid rgba(16,36,61,.08);
  border-radius: 26px;
  padding: 28px;
}

.content-block h3 {
  margin-bottom: 8px;
}

.book-detail {
  display: grid;
  grid-template-columns: .72fr 1.28fr;
  gap: 30px;
  align-items: center;
  background: var(--white);
  border: 1px solid rgba(16,36,61,.08);
  border-radius: 30px;
  padding: 28px;
  box-shadow: 0 8px 28px rgba(16,36,61,.045);
}

.book-detail+.book-detail {
  margin-top: 24px;
}

.book-detail-media {
  background: var(--silver);
  border-radius: 22px;
  overflow: hidden;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.book-detail-media img {
  width: 100%;
  height: 100%;
  max-height: 440px;
  object-fit: contain;
}

.book-detail-media-large {
  min-height: 390px;
}

.book-detail-media-large img {
  width: 128%;
  max-width: none;
  max-height: 540px;
}

.book-detail-copy ul {
  margin: 16px 0 0;
  padding-left: 20px;
  color: var(--ink-soft);
}

.book-detail-copy li+li {
  margin-top: 8px;
}

.inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.quote-strip {
  padding: 28px;
  border-left: 4px solid var(--blue);
  background: #f6f8fa;
  border-radius: 0 20px 20px 0;
}

.quote-strip p {
  margin: 0;
  font-family: "DM Serif Display",Georgia,serif;
  font-size: 1.45rem;
  color: var(--blue-deep);
}

/* SECOND-LAYER PAGES */
.page-intro-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 28px;
  align-items: start;
}

.page-aside {
  background: linear-gradient(145deg,var(--blue-deep),#183b63);
  color: #fff;
  border-radius: 28px;
  padding: 32px;
  position: sticky;
  top: 150px;
}

.page-aside p {
  color: #dbe5ec;
}

.page-aside .eyebrow {
  color: #c8d8e5;
}

.detail-list {
  display: grid;
  gap: 18px;
}

.detail-row {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.detail-row:last-child {
  border-bottom: 0;
}

.detail-label {
  font-weight: 700;
  color: var(--blue-deep);
}

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

.level-card {
  background: var(--white);
  border: 1px solid rgba(16,36,61,.08);
  border-radius: 26px;
  padding: 28px;
}

.level-card .level-no {
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--blue);
}

.level-card h3 {
  margin-top: 14px;
}

.recording-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.recording-card .program-footer {
  margin-top: auto;
  padding-top: 8px;
}

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

.social-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 210px;
}

.social-card .btn {
  margin-top: auto;
  align-self: flex-start;
}

.program-guide {
  background: #f5f7f9;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px;
}

.anchor-nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.anchor-nav a {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  font-weight: 700;
  font-size: .9rem;
}

.prose {
  max-width: 820px;
}

.prose h2 {
  margin-top: 42px;
}

.prose h3 {
  margin-top: 30px;
}

.prose ul {
  color: var(--ink-soft);
  padding-left: 20px;
}

.prose li+li {
  margin-top: 8px;
}

/* PROGRAM UPCOMING ANNOUNCEMENT */
.page-aside .upcoming-schedule {
  margin-top: 18px;
  font-weight: 700;
  color: #fff;
}

.page-aside .hero-actions {
  margin-top: 22px;
}

.page-aside .btn-soft {
  background: #fff;
  color: var(--blue-deep);
  border-color: #fff;
}

/* LANDING PAGE */
.homepage-section-note {
  margin: -18px 0 26px;
  max-width: 640px;
}

.program-tetap-home {
  background: rgba(203,210,217,.20);
}

.program-tetap-home .program-card {
  min-height: 100%;
}

/* KITAB PAGE — PROMINENT BOOK IMAGES */
.book-detail:has(.book-detail-media-prominent) {
  grid-template-columns: .95fr 1.05fr;
}

.book-detail-media-prominent {
  min-height: 430px;
  padding: 0;
  background: #dce2e8;
}

.book-detail-media-prominent img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
  transform: scale(1.08);
}

/* KITAB PAGE — TAJWID AMALI */
.book-detail-media-tajwid {
  padding: 18px;
  background: #dce2e8;
}

.book-detail-media-tajwid img {
  transform: scale(.94);
}

/* INFAQ */
.ref-box {
  margin-top: 20px;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--silver);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.ref-box span {
  font-size: .82rem;
  color: var(--ink-soft);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.ref-box strong {
  color: var(--blue-deep);
  font-size: 1.05rem;
}

.bank-block {
  height: 100%;
}

/* INFAQ PAGE — COMPACT LAYOUT */
.infaq-purpose-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 16px;
  width: 100%;
  max-width: 100%;
}

.infaq-card {
  min-width: 0;
  padding: 22px;
  display: flex;
  flex-direction: column;
}

.infaq-card h3 {
  font-size: 1.28rem;
}

.infaq-card p {
  font-size: .94rem;
}

.ref-simple {
  margin-top: auto;
  padding-top: 18px;
  color: var(--blue-deep);
  font-size: .92rem;
}

.ref-simple strong {
  font-weight: 700;
}

.bank-cards-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 20px;
  width: 100%;
  max-width: 100%;
}

.bank-card-simple {
  min-width: 0;
  padding: 30px;
}

.bank-card-simple h2 {
  font-size: clamp(1.9rem,3vw,2.7rem);
  margin-top: 8px;
}

.bank-details-simple {
  margin-top: 22px;
  display: grid;
  gap: 8px;
}

.bank-details-simple p {
  margin: 0;
  overflow-wrap: anywhere;
}

/* REGISTRATION HIGHLIGHT + ANNOUNCEMENT CAROUSEL */
.program-card.registration-open {
  background: linear-gradient(145deg,#fffaf0,#f7edd7);
  border-color: #c7a45a;
  box-shadow: 0 12px 34px rgba(137,104,36,.12);
}

.program-card.registration-open .chip-registration-open {
  background: #d8bd7a;
  color: #10243d;
}

.program-card.registration-open .btn-soft {
  background: var(--blue-deep);
  color: #fff;
  border-color: var(--blue-deep);
}

.announcement-slide {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.announcement-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.16);
}

.announcement-arrow {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.28);
  background: transparent;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.announcement-arrow:hover {
  background: rgba(255,255,255,.08);
}

.announcement-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  flex: 1;
}

.announcement-dot {
  width: 8px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.34);
  padding: 0;
  cursor: pointer;
}

.announcement-dot.active {
  width: 22px;
  background: #fff;
}


/* =========================================================
   DESKTOP ALIGNMENT — MIN 901PX
   ========================================================= */
@media (min-width:901px) {

  /* MAIN CONTENT ALIGNMENT    Align main page content with the Bayt Al Furqan brand text in the header. */
  .hero > .container,   .page-hero > .container,   .section > .container,   .section-tight > .container {
    padding-left: 70px;
    padding-right: 70px;
  }
}

/* =========================================================
   RESPONSIVE — MAX 1050PX
   ========================================================= */
@media (max-width:1050px) {
  .infaq-purpose-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
}

/* =========================================================
   TABLET — MAX 900PX
   ========================================================= */
@media (max-width:900px) {
  .nav-wrap {
    min-height: 72px;
    padding: 7px 0;
  }

  .brand-logo {
    width: 46px;
    height: 46px;
  }

  .nav {
    display: none;
    position: absolute;
    left: 18px;
    right: 18px;
    top: 72px;
    background: var(--white);
    padding: 18px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: flex-start;
    margin-left: 0;
  }

  .nav.open {
    display: flex;
  }

  .nav .btn-primary {
    margin-left: 0;
  }

  .menu-btn {
    display: block;
    margin-left: auto;
  }

  .hero-grid,.teacher,.featured-book {
    grid-template-columns: 1fr;
  }

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

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

  .hero-panel {
    min-height: 0;
  }

  .teacher-photo {
    min-height: 440px;
  }

  .hero-wordcloud-panel {
    height: 360px;
    width: 100%;
  }

  .hero-wordcloud {
    height: 100%;
    width: 100%;
  }

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

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

  .book-detail-media {
    min-height: 260px;
  }

  .page-intro-grid {
    grid-template-columns: 1fr;
  }

  .page-aside {
    position: static;
  }

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

  .hero-wordcloud-panel {
    aspect-ratio: 1/1;
  }

  .hero-wordcloud {
    height: 100%;
    min-height: 0;
  }

  .book-detail:has(.book-detail-media-prominent) {
    grid-template-columns: 1fr;
  }

  .book-detail-media-prominent {
    min-height: 380px;
  }
}

/* =========================================================
   RESPONSIVE — MAX 700PX
   ========================================================= */
@media (max-width:700px) {
  .infaq-purpose-grid,.bank-cards-grid {
    grid-template-columns: 1fr;
  }

  .infaq-card,.bank-card-simple {
    padding: 22px;
  }
}

/* =========================================================
   MOBILE — MAX 620PX
   ========================================================= */
@media (max-width:620px) {
  .section {
    padding: 68px 0;
  }

  .section-head {
    display: block;
  }

  .section-head p {
    margin-top: 12px;
  }

  .grid-3,.grid-2,.steps,.books-grid,.footer-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 2.6rem;
  }

  .hero {
    padding-top: 42px;
  }

  .hero-panel {
    padding: 26px;
    min-height: 300px;
  }

  .teacher-copy {
    padding: 30px;
  }

  .teacher-photo {
    min-height: 390px;
  }

  .cta {
    padding: 34px 26px;
  }

  .program-card .program-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .brand-text {
    font-size: 1.3rem;
  }

  .brand-text small {
    font-size: .55rem;
  }

  .hero-wordcloud-panel {
    height: 300px;
    width: 100%;
  }

  .hero-wordcloud {
    height: 100%;
    width: 100%;
    object-position: center;
  }

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

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .story-panel {
    padding: 30px 26px;
  }

  .book-detail {
    padding: 20px;
  }

  .detail-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .level-grid,.social-grid {
    grid-template-columns: 1fr;
  }

  .hero-wordcloud-panel {
    aspect-ratio: 1/1;
  }

  .hero-wordcloud {
    height: 100%;
    min-height: 0;
  }

  .book-detail-media-prominent {
    min-height: 320px;
  }

  .book-detail-media-prominent img {
    transform: scale(1.04);
  }

  .book-detail-media-tajwid {
    padding: 14px;
  }

  .book-detail-media-tajwid img {
    transform: scale(.96);
  }

  .announcement-slide {
    min-height: 230px;
  }

  .announcement-controls {
    margin-top: 20px;
  }
   
  /* FOOTER COPYRIGHT — MOBILE */
  .footer-copyright {
    font-size: 0.62rem;
  }

}
