/* =========================================================================
   Creative sections library, used across all pages (loaded site-wide)
   ========================================================================= */

.mini-head { max-width: 720px; margin: 0 auto 2rem; text-align: center; }
.mini-head.start { margin-inline: 0; text-align: left; }
.mini-head h2 { margin-bottom: .3rem; }
.mini-head p { color: var(--muted); }

/* ---- Learning Journey (horizontal connected roadmap) ---- */
.journey { position: relative; display: grid; grid-template-columns: repeat(var(--steps, 5), 1fr); gap: 1rem; margin-top: 2.5rem; }
.journey::before { content: ""; position: absolute; top: 34px; left: 6%; right: 6%; height: 3px;
  background: repeating-linear-gradient(90deg, var(--gold) 0 14px, transparent 14px 26px); opacity: .5; z-index: 0; }
.journey-step { position: relative; z-index: 1; text-align: center; }
.journey-node { width: 70px; height: 70px; margin: 0 auto .9rem; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: var(--white); border: 2px solid var(--gold); color: var(--emerald); display: grid; place-items: center;
  box-shadow: var(--shadow); font-family: var(--ff-head); font-size: 1.3rem; font-weight: 700; position: relative; }
.journey-node::after { content: ""; position: absolute; top: -9px; left: 50%; transform: translateX(-50%) rotate(45deg);
  width: 10px; height: 10px; background: var(--gold); border-radius: 2px; }
.journey-step h3 { font-size: 1.05rem; margin: 0 0 .2rem; }
.journey-step p { font-size: .85rem; color: var(--muted); margin: 0; }
.journey-step.is-goal .journey-node { background: var(--emerald); color: #fff; border-color: var(--emerald); }
@media (max-width: 860px){ .journey { grid-template-columns: 1fr 1fr; } .journey::before { display: none; } }
@media (max-width: 480px){ .journey { grid-template-columns: 1fr; } }

/* ---- Vertical timeline ---- */
.tl { position: relative; max-width: 780px; margin: 2rem auto 0; padding-left: 2rem; }
.tl::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--gold), var(--sage-deep)); }
.tl-item { position: relative; padding: 0 0 1.8rem 1.6rem; }
.tl-item::before { content: ""; position: absolute; left: -2rem; top: 4px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--white); border: 3px solid var(--gold); box-shadow: 0 0 0 4px var(--sage); }
.tl-item .yr { font-family: var(--ff-head); color: var(--emerald); font-weight: 700; font-size: 1.05rem; }
.tl-item h3 { font-size: 1.1rem; margin: .1rem 0 .3rem; }
.tl-item p { color: var(--muted); margin: 0; }

/* ---- Sanad / Chain of Knowledge ---- */
.sanad { max-width: 560px; margin: 2rem auto 0; position: relative; }
.sanad-node { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: 16px;
  padding: 1rem 1.3rem; text-align: center; box-shadow: var(--shadow-sm); margin-bottom: 2.4rem; }
.sanad-node:last-child { margin-bottom: 0; }
.sanad-node::after { content: ""; position: absolute; left: 50%; bottom: -2.4rem; transform: translateX(-50%);
  width: 2px; height: 2.4rem; background: linear-gradient(var(--gold), transparent); }
.sanad-node:last-child::after { display: none; }
.sanad-node .who { font-family: var(--ff-head); font-weight: 700; color: var(--emerald); }
.sanad-node .role { font-size: .82rem; color: var(--muted); }
.sanad-node.top { background: var(--emerald); color: #fff; }
.sanad-node.top .who { color: #fff; }
.sanad-node.top .role { color: var(--gold); }

/* ---- Daily Ayah / Hadith band ---- */
.ayah-card { background: var(--emerald); color: #fff; border-radius: var(--radius-lg); padding: clamp(2rem,5vw,3.2rem);
  text-align: center; position: relative; overflow: hidden; background-image: url("../img/pattern-star.svg"); background-size: 300px; background-blend-mode: soft-light; }
.ayah-card .badge-day { display: inline-block; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25);
  color: var(--gold); border-radius: 999px; padding: .3rem .9rem; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 1rem; }
.ayah-ar { font-family: var(--ff-ar); font-size: clamp(1.8rem, 4vw, 2.8rem); line-height: 1.8; margin: .4rem 0; }
.ayah-tr { font-family: var(--ff-head); font-size: 1.2rem; max-width: 46ch; margin: .6rem auto; }
.ayah-ref { color: var(--gold); font-weight: 600; }

/* ---- Comparison (with us vs alone) ---- */
.vs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
@media (max-width: 700px){ .vs-grid { grid-template-columns: 1fr; } }
.vs-col { border-radius: var(--radius-lg); padding: 1.6rem; }
.vs-col h3 { display: flex; align-items: center; gap: .5rem; }
.vs-col.good { background: var(--sage); border: 1px solid var(--sage-deep); }
.vs-col.bad { background: #f7f2ea; border: 1px solid var(--line); }
.vs-col ul { list-style: none; margin: .6rem 0 0; padding: 0; display: grid; gap: .55rem; }
.vs-col li { display: flex; gap: .5rem; align-items: flex-start; }
.vs-col.good li::before { content: "\2713"; color: var(--emerald); font-weight: 700; }
.vs-col.bad li::before { content: "\2715"; color: #b0592f; font-weight: 700; }

/* ---- Channel cards (contact) ---- */
.channels { display: grid; grid-template-columns: repeat(auto-fit,minmax(180px,1fr)); gap: 1rem; }
.channel { text-align: center; text-decoration: none; }
.channel .icon-chip { margin: 0 auto .7rem; }
.channel h3 { font-size: 1.05rem; margin: 0 0 .2rem; }
.channel p { font-size: .88rem; color: var(--muted); margin: 0; }

/* ---- Interactive Course Finder ---- */
.finder { max-width: 720px; margin: 0 auto; }
.finder-step { display: none; } .finder-step.on { display: block; animation: fadeIn .25s; }
.finder .opts { display: grid; grid-template-columns: repeat(auto-fit,minmax(150px,1fr)); gap: .7rem; margin-top: 1rem; }
.finder .opt { border: 1.5px solid var(--line); background: #fff; border-radius: 14px; padding: 1rem; cursor: pointer; font: inherit; text-align: center; transition: all .15s; }
.finder .opt:hover { border-color: var(--emerald); background: var(--sage); }
.finder-prog { display: flex; gap: .4rem; justify-content: center; margin-bottom: 1.2rem; }
.finder-prog span { width: 26px; height: 5px; border-radius: 3px; background: var(--line); }
.finder-prog span.on { background: var(--gold); }
.finder-result { display: none; } .finder-result.on { display: block; }

/* ---- Interactive Plan Builder ---- */
.pbuilder { display: grid; grid-template-columns: 1.1fr .9fr; gap: 1.5rem; align-items: stretch; }
@media (max-width: 760px){ .pbuilder { grid-template-columns: 1fr; } }
.pbuilder .controls .field { margin-bottom: 1rem; }
.seg { display: inline-flex; background: var(--sage); border-radius: 999px; padding: 4px; gap: 4px; flex-wrap: wrap; }
.seg button { border: 0; background: none; padding: .5rem 1rem; border-radius: 999px; cursor: pointer; font: inherit; font-weight: 600; color: var(--emerald); }
.seg button.on { background: var(--emerald); color: #fff; }
.plan-out { background: var(--emerald); color: #fff; border-radius: var(--radius-lg); padding: 1.6rem; display: flex; flex-direction: column; justify-content: center; text-align: center; }
.plan-out .price { font-family: var(--ff-head); font-size: 3rem; font-weight: 800; color: #fff; line-height: 1; }
.plan-out .price small { font-size: 1rem; color: rgba(255,255,255,.8); }
.plan-out .save { color: var(--gold); font-weight: 700; margin-top: .4rem; }

/* ---- Audio before/after ---- */
.ba { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 620px){ .ba { grid-template-columns: 1fr; } }
.ba-card { border: 1px solid var(--line); border-radius: 16px; padding: 1.2rem; background: #fff; text-align: center; }
.ba-card.after { background: var(--sage); border-color: var(--sage-deep); }
.ba-play { width: 54px; height: 54px; border-radius: 50%; background: var(--emerald); color: #fff; border: 0; cursor: pointer; display: grid; place-items: center; margin: .5rem auto; }
.ba-card.after .ba-play { background: var(--gold); color: #2a2000; }

/* ---- Number/impact band on dark ---- */
.kpi-dark { background: var(--emerald); color: #fff; border-radius: var(--radius-lg); padding: clamp(2rem,4vw,3rem);
  background-image: url("../img/pattern-star.svg"); background-size: 280px; background-blend-mode: soft-light; }
.kpi-dark .stats .num { color: #fff; } .kpi-dark .stats .num .suffix { color: var(--gold); }
.kpi-dark .stats .label { color: rgba(255,255,255,.85); }

/* ---- Feature split two-col ---- */
.split-info { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; }
@media (max-width: 820px){ .split-info { grid-template-columns: 1fr; } }

/* ---- Responsive safety net: collapse any inline repeat() grids on small screens ---- */
@media (max-width: 600px){
  [style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
}
@media (min-width: 601px) and (max-width: 900px){
  [style*="repeat(3,"], [style*="repeat(3 ,"], [style*="repeat(4,"],
  [style*="repeat(3,1fr)"], [style*="repeat(4,1fr)"] { grid-template-columns: 1fr 1fr !important; }
}

/* ---- About page wide architectural banner ---- */
.about-banner { position:relative; overflow:hidden; }
.about-banner img { width:100%; height:clamp(280px,42vh,440px); object-fit:cover; object-position:center; display:block; }
.about-banner-overlay { position:absolute; inset:0; display:flex; align-items:center;
  background: linear-gradient(0deg, rgba(15,53,18,.82) 0%, rgba(15,53,18,.5) 55%, rgba(15,53,18,.6) 100%); }
.about-banner-overlay h2 { color:#fff; }
.about-banner-overlay p { color:rgba(255,255,255,.9); max-width:56ch; margin-inline:auto; }
.about-banner-overlay .ornament { color:var(--gold); }

/* Book a meeting band */
.meeting-band { display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:1.75rem;
  background:#fff; border:1px solid rgba(27,94,32,.12); border-radius:20px; padding:2rem 2.25rem;
  box-shadow:var(--shadow); position:relative; overflow:hidden; }
.meeting-band::before { content:""; position:absolute; inset:0 auto 0 0; width:6px;
  background:linear-gradient(180deg,var(--emerald),var(--gold)); }
.meeting-band__icon { display:grid; place-items:center; width:64px; height:64px; border-radius:50%;
  background:var(--sage); color:var(--emerald); flex:none; }
.meeting-band__icon svg { width:30px; height:30px; }
.meeting-band__body h2 { margin:.25rem 0 .5rem; font-size:1.5rem; }
.meeting-band__body p { margin:0; color:var(--muted); max-width:62ch; font-size:.98rem; }
.meeting-band__cta { display:flex; flex-direction:column; gap:.6rem; flex:none; }
.meeting-band__cta .btn { white-space:nowrap; }
.meeting-band--dark { background:linear-gradient(135deg,#143a17,#0f3512); border-color:rgba(212,168,67,.3); }
.meeting-band--dark .meeting-band__body h2 { color:#fff; }
.meeting-band--dark .meeting-band__body p { color:rgba(255,255,255,.82); }
.meeting-band--dark .meeting-band__body .eyebrow { color:var(--gold); }
.meeting-band--dark .meeting-band__icon { background:rgba(255,255,255,.1); color:var(--gold); }
@media (max-width:860px){
  .meeting-band { grid-template-columns:1fr; text-align:center; gap:1.1rem; padding:1.75rem 1.25rem; }
  .meeting-band__icon { margin:0 auto; }
  .meeting-band__body p { margin-inline:auto; }
  .meeting-band__cta { flex-direction:row; flex-wrap:wrap; justify-content:center; }
}
