/* Homepage editorial sections. The public templates supply the content and links. */
.academy-hero h1 { max-width: 660px; }
.academy-hero-description { max-width: 560px; }
.home-proof { background: var(--brand-navy); color: #fff; }
.home-proof-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding-top: 26px; padding-bottom: 26px; }
.home-proof-grid > div { display: grid; align-content: center; gap: 5px; min-height: 70px; padding: 0 27px; border-left: 1px solid #ffffff38; }
.home-proof-grid > div:first-child { padding-left: 0; border-left: 0; }
.home-proof-grid strong { color: #fff; font-family: var(--serif); font-size: 25px; font-weight: 400; line-height: 1.2; }
.home-proof-grid span { color: #d2dfed; font-size: 12px; line-height: 1.45; }
.home-discover { background: #fff; border-bottom: 1px solid var(--brand-line); }
.home-discover-inner { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding-top: 19px; padding-bottom: 19px; }
.home-discover-inner > span { margin-right: 12px; color: var(--brand-navy); font-size: 13px; font-weight: 800; }
.home-discover a { display: inline-flex; align-items: center; min-height: 37px; padding: 7px 12px; border: 1px solid var(--brand-line); border-radius: 5px; color: var(--brand-blue-hover); background: var(--brand-canvas); font-size: 12px; font-weight: 700; line-height: 1.35; text-decoration: none; }
.home-discover a:hover, .home-discover a:focus-visible { background: var(--brand-tint-strong); border-color: #aac7e5; }
.home-section { padding: 92px 0; }
.home-section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 385px); align-items: end; gap: 40px; margin-bottom: 34px; }
.home-section-head h2, .home-founder h2, .home-faq h2 { margin: 12px 0 0; color: var(--brand-navy); font-size: clamp(38px, 4.1vw, 57px); line-height: 1.1; }
.home-section-head h2 em, .home-founder h2 em, .home-faq h2 em { color: var(--brand-blue); }
.home-section-head > p { margin: 0 0 5px; color: var(--brand-muted); font-size: 15px; line-height: 1.75; }
.home-start { background: #fff; }
.home-start-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; }
.home-start-grid > a { display: flex; flex-direction: column; min-height: 265px; padding: 27px 25px 25px; border: 1px solid var(--brand-line); border-radius: 8px; background: #fff; text-decoration: none; transition: transform .2s, box-shadow .2s, border-color .2s; }
.home-start-grid > a:hover { transform: translateY(-4px); border-color: #b7cde3; box-shadow: 0 16px 35px #0b244315; }
.home-start-grid > a > span { display: flex; justify-content: space-between; align-items: center; gap: 10px; color: var(--brand-gold-ink); font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.home-start-grid b { color: #b6cadc; font-family: var(--serif); font-size: 25px; font-weight: 400; letter-spacing: 0; }
.home-start-grid h3 { margin: 19px 0 10px; color: var(--brand-navy); font-family: var(--serif); font-size: 27px; font-weight: 400; line-height: 1.17; }
.home-start-grid p { margin: 0 0 20px; color: var(--brand-muted); font-size: 13px; line-height: 1.65; }
.home-start-grid strong { display: flex; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 13px; border-top: 1px solid var(--brand-line); color: var(--brand-blue); font-size: 12px; }
.home-paths { background: var(--brand-tint); }
.home-path-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.home-path-card { overflow: hidden; border: 1px solid var(--brand-line); border-radius: 9px; background: #fff; }
.home-path-image { display: block; height: 245px; overflow: hidden; background: #dce8f2; }
.home-path-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.home-path-image:hover img { transform: scale(1.04); }
.home-path-body { padding: 25px 27px 27px; }
.home-path-body > span { color: var(--brand-gold-ink); font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.home-path-body h3 { margin: 11px 0 10px; color: var(--brand-navy); font-family: var(--serif); font-size: 30px; font-weight: 400; line-height: 1.2; }
.home-path-body h3 a { text-decoration: none; }
.home-path-body h3 a:hover { color: var(--brand-blue); }
.home-path-body p { min-height: 93px; margin: 0 0 19px; color: var(--brand-muted); font-size: 14px; line-height: 1.65; }
.home-path-body > div { display: flex; flex-wrap: wrap; gap: 8px; }
.home-path-body > div a { padding: 8px 10px; border-radius: 4px; background: var(--brand-tint); color: var(--brand-blue-hover); font-size: 11px; font-weight: 750; text-decoration: none; }
.home-path-body > div a:hover { background: var(--brand-tint-strong); }
.home-curriculum { background: #fff; }
.home-curriculum-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.home-curriculum-card { display: flex; flex-direction: column; min-width: 0; min-height: 560px; padding: clamp(27px, 3.2vw, 44px); border: 1px solid var(--brand-line); border-radius: 10px; }
.home-curriculum-quran { background: linear-gradient(145deg, #0b2443, #16446e); color: #fff; border-color: #0b2443; }
.home-curriculum-arabic { background: #eaf2fa; color: var(--brand-navy); }
.home-curriculum-intro > span { color: var(--brand-gold-light); font-size: 11px; font-weight: 800; letter-spacing: .14em; }
.home-curriculum-arabic .home-curriculum-intro > span { color: var(--brand-gold-ink); }
.home-curriculum-card h3 { max-width: 510px; margin: 14px 0 14px; color: inherit; font-family: var(--serif); font-size: clamp(30px, 3.2vw, 43px); font-weight: 400; line-height: 1.1; }
.home-curriculum-card p { max-width: 520px; margin: 0 0 24px; color: #d4e2f0; font-size: 14px; line-height: 1.75; }
.home-curriculum-arabic p { color: var(--brand-muted); }
.home-curriculum-card ol { margin: auto 0 25px; padding: 0; list-style: none; border-top: 1px solid #ffffff3a; }
.home-curriculum-arabic ol { border-top-color: #c4d8eb; }
.home-curriculum-card li { display: flex; align-items: baseline; gap: 16px; padding: 11px 0; border-bottom: 1px solid #ffffff3a; }
.home-curriculum-arabic li { border-bottom-color: #c4d8eb; }
.home-curriculum-card li span { color: var(--brand-gold-light); font-size: 12px; font-weight: 800; }
.home-curriculum-arabic li span { color: var(--brand-gold-ink); }
.home-curriculum-card li a { color: inherit; font-size: 14px; font-weight: 650; text-decoration: none; }
.home-curriculum-card li a:hover { text-decoration: underline; text-underline-offset: 4px; }
.home-curriculum-action { display: inline-flex; justify-content: center; align-items: center; align-self: flex-start; min-height: 44px; padding: 11px 17px; border-radius: 5px; color: var(--brand-navy); background: var(--brand-gold-light); font-size: 13px; font-weight: 800; text-decoration: none; }
.home-curriculum-action:hover { background: #f3e3c2; }
.home-curriculum-arabic .home-curriculum-action { color: #fff; background: var(--brand-blue); }
.home-curriculum-arabic .home-curriculum-action:hover { background: var(--brand-blue-hover); }
.home-courses { background: var(--brand-tint); }
.home-course-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; }
.home-course-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid var(--brand-line); border-radius: 9px; background: #fff; transition: transform .2s, box-shadow .2s; }
.home-course-card:hover { transform: translateY(-3px); box-shadow: 0 16px 32px #0b24431c; }
.home-course-image { display: block; height: 186px; overflow: hidden; background: #dce8f2; }
.home-course-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.home-course-card:hover img { transform: scale(1.04); }
.home-course-content { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 21px 24px 24px; }
.home-course-track { display: inline-flex; padding: 6px 9px; border-radius: 3px; background: var(--brand-tint); color: var(--brand-blue-hover); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.home-course-card h3 { margin: 15px 0 9px; color: var(--brand-navy); font-family: var(--serif); font-size: 27px; font-weight: 400; line-height: 1.18; }
.home-course-card h3 a { color: inherit; text-decoration: none; }
.home-course-card h3 a:hover { color: var(--brand-blue); }
.home-course-card p { margin: 0 0 20px; color: var(--brand-muted); font-size: 14px; line-height: 1.65; }
.home-course-link { display: inline-flex; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--brand-line); width: 100%; color: var(--brand-blue); font-size: 13px; font-weight: 800; text-decoration: none; }
.home-course-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.home-section-end { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 29px; padding: 22px 155px 0 0; border-top: 1px solid var(--brand-line); }
.home-section-end > span { color: var(--brand-muted); font-size: 13px; }
.home-section-end .text-arrow { color: var(--brand-blue); font-size: 13px; }
.home-method { padding: 95px 0; background: var(--brand-navy); color: #fff; }
.home-method-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); align-items: center; gap: clamp(50px, 9vw, 135px); }
.home-method h2 { margin: 15px 0 19px; color: #fff; font-size: clamp(40px, 4.4vw, 62px); line-height: 1.09; }
.home-method h2 em { color: var(--brand-gold-light); }
.home-method-grid > div > p { max-width: 495px; margin-bottom: 26px; color: #d3e1f0; font-size: 15px; line-height: 1.8; }
.home-method .button-gold { background: var(--brand-gold-light); color: var(--brand-navy); }
.home-method-steps { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.home-method-steps li { display: grid; grid-template-columns: 56px 1fr; gap: 17px; padding: 19px 0; border-top: 1px solid #ffffff45; }
.home-method-steps li:last-child { border-bottom: 1px solid #ffffff45; }
.home-method-steps li > span { color: var(--brand-gold-light); font-family: var(--serif); font-size: 26px; }
.home-method-steps h3 { margin: 0 0 4px; color: #fff; font-family: var(--serif); font-size: 23px; font-weight: 400; }
.home-method-steps p { margin: 0; color: #cfdeed; font-size: 13px; line-height: 1.55; }
.home-founder { background: #fff; }
.home-founder-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); align-items: center; gap: clamp(45px, 7vw, 105px); }
.home-founder-image { display: block; height: 470px; overflow: hidden; border-radius: 8px 80px 8px 8px; background: var(--brand-tint-strong); }
.home-founder-image img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.home-founder-copy > p { max-width: 575px; margin: 22px 0 23px; color: var(--brand-muted); font-size: 15px; line-height: 1.85; }
.home-founder-name { display: grid; gap: 3px; margin: 0 0 22px; padding-left: 14px; border-left: 3px solid var(--brand-gold); }
.home-founder-name strong { color: var(--brand-navy); font-size: 14px; }
.home-founder-name span { color: var(--brand-muted); font-size: 12px; }
.home-teachers { background: var(--brand-tint); }
.home-teacher-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.home-teacher-grid .teacher-card { overflow: hidden; border-radius: 8px; }
.home-teacher-grid .teacher-image { height: 285px; }
.home-teacher-grid .teacher-card > div { padding: 22px 24px 27px; }
.home-voices { background: var(--brand-navy); }
.home-voices .home-section-head h2 { color: #fff; }
.home-voices .home-section-head h2 em { color: var(--brand-gold-light); }
.home-voices .home-section-head > p { color: #d3e1f0; }
.home-voices .eyebrow { color: var(--brand-gold-light); }
.home-voice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.home-voice-card { display: grid; grid-template-columns: minmax(0, 1fr) 132px; min-height: 234px; overflow: hidden; border-radius: 9px; background: #fff; }
.home-voice-card > div { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; padding: 26px 21px 25px 27px; }
.home-voice-card > div > span { color: var(--brand-gold-ink); font-size: 10px; font-weight: 800; letter-spacing: .09em; }
.home-voice-card h3 { margin: 12px 0 8px; color: var(--brand-navy); font-family: var(--serif); font-size: 25px; font-weight: 400; line-height: 1.18; }
.home-voice-card p { margin: 0 0 17px; color: var(--brand-muted); font-size: 13px; line-height: 1.55; }
.home-voice-card strong { margin-top: auto; color: var(--brand-blue-hover); font-size: 12px; }
.home-voice-card > a { display: block; overflow: hidden; background: #e9f1ef; }
.home-voice-card > a img { width: 100%; height: 100%; object-fit: cover; object-position: center 14%; transition: transform .2s; }
.home-voice-card > a:hover img { transform: scale(1.05); }
.home-library { background: #fff; }
.home-library-topics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; margin-bottom: 30px; }
.home-library-topics a { display: flex; align-items: center; min-height: 53px; padding: 11px 14px; border: 1px solid var(--brand-line); border-radius: 6px; background: var(--brand-tint); color: var(--brand-navy); font-size: 13px; font-weight: 750; line-height: 1.35; text-decoration: none; }
.home-library-topics a:hover { background: var(--brand-tint-strong); border-color: #aec9e3; }
.home-library-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.home-library-grid .article-card { overflow: hidden; border-radius: 8px; }
.home-library-grid .article-image { height: 215px; }
.home-faq { background: var(--brand-tint); }
.home-faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(45px, 8vw, 120px); }
.home-faq-grid > div:first-child > p { max-width: 400px; margin: 21px 0 20px; color: var(--brand-muted); font-size: 15px; }
.home-faq-list { border-top: 1px solid var(--brand-line); }
.home-faq-list details { border-bottom: 1px solid var(--brand-line); }
.home-faq-list summary { position: relative; padding: 20px 35px 20px 0; color: var(--brand-navy); font-size: 15px; font-weight: 750; line-height: 1.5; cursor: pointer; list-style: none; }
.home-faq-list summary::-webkit-details-marker { display: none; }
.home-faq-list summary::after { content: '+'; position: absolute; top: 18px; right: 0; color: var(--brand-blue); font-size: 23px; font-weight: 400; line-height: 1; }
.home-faq-list details[open] summary::after { content: '−'; }
.home-faq-list details p { margin: -3px 0 20px; color: var(--brand-muted); font-size: 14px; line-height: 1.75; }
.home-faq-list details a { color: var(--brand-blue); text-underline-offset: 3px; }
@media (max-width: 1050px) {
  .home-proof-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-proof-grid > div { padding: 15px 22px; }
  .home-proof-grid > div:nth-child(3) { border-left: 0; }
  .home-start-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-path-body p { min-height: 140px; }
  .home-voice-card { grid-template-columns: minmax(0, 1fr) 110px; }
  .home-library-topics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .home-section { padding: 70px 0; }
  .home-section-head, .home-method-grid, .home-founder-grid, .home-faq-grid { grid-template-columns: 1fr; gap: 24px; }
  .home-section-head { margin-bottom: 28px; }
  .home-section-head h2, .home-founder h2, .home-faq h2 { font-size: clamp(37px, 8vw, 48px); }
  .home-path-grid, .home-course-grid, .home-teacher-grid, .home-library-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-path-body p { min-height: 0; }
  .home-curriculum-grid, .home-voice-grid { grid-template-columns: 1fr; }
  .home-curriculum-card { min-height: 0; }
  .home-curriculum-card ol { margin-top: 10px; }
  .home-library-topics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-method { padding: 75px 0; }
  .home-founder-image { max-width: 560px; height: 420px; }
  .home-faq-grid { gap: 34px; }
}
@media (max-width: 560px) {
  .home-proof-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-top: 12px; padding-bottom: 12px; }
  .home-proof-grid > div { min-height: 86px; padding: 12px 10px; }
  .home-proof-grid strong { font-size: 21px; }
  .home-proof-grid span { font-size: 11px; }
  .home-start-grid, .home-path-grid, .home-course-grid, .home-teacher-grid, .home-library-grid { grid-template-columns: 1fr; }
  .home-discover-inner > span { flex-basis: 100%; }
  .home-discover a { font-size: 12px; }
  .home-curriculum-card { padding: 27px 23px; }
  .home-curriculum-card h3 { font-size: 33px; }
  .home-voice-card { grid-template-columns: minmax(0, 1fr) 94px; }
  .home-voice-card > div { padding: 22px 12px 21px 19px; }
  .home-voice-card h3 { font-size: 22px; }
  .home-library-topics a { min-height: 49px; font-size: 12px; }
  .home-start-grid > a { min-height: 230px; }
  .home-path-image { height: 230px; }
  .home-course-card { min-height: 215px; }
  .home-founder-image { height: 360px; }
  .home-section-end { align-items: flex-start; flex-direction: column; gap: 8px; padding-right: 0; }
}
