/* Darul Ihsan · inner pages. Content blocks shared by the older pages, in the
   current paper, green and gold design. Loaded after home.css. */

/* Hero */
.detail-hero { padding: 28px 0 56px; border-bottom: 1px solid var(--line); }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 14px; color: var(--muted); margin-bottom: 36px; }
.breadcrumb a { color: var(--muted); text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px; transition: color 150ms ease, text-decoration-color 150ms ease; }
.breadcrumb a:hover { color: var(--green-ink); text-decoration-color: var(--gold); }
.breadcrumb > span[aria-hidden] { color: var(--line); }
.breadcrumb [aria-current] { color: var(--ink); font-weight: 500; }
.detail-hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 64px; align-items: center; }
.detail-hero h1 { font-size: clamp(42px, 5.4vw, 76px); margin-bottom: 20px; overflow-wrap: anywhere; }
.detail-intro { font-size: 18px; line-height: 1.7; color: var(--muted); max-width: 56ch; }
.detail-hero-image { margin: 0; aspect-ratio: 4 / 3.4; border-radius: 220px 220px 18px 18px; overflow: hidden; background: var(--paper-2); }
.detail-hero-image img { width: 100%; height: 100%; object-fit: cover; }
.detail-hero-image figcaption { display: none; }
.detail-ornament { display: none; }

/* Body: reading column and contact aside */
.page-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 72px; padding-block: 64px 96px; align-items: start; }
.page-copy { min-width: 0; max-width: 720px; }
.page-copy > p, .content-section p { color: var(--ink); font-size: 17px; line-height: 1.75; }
.page-copy a:not(.button):not(.text-link):not(.flyer-artwork) { color: var(--green-ink); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }
.page-notice { display: grid; gap: 4px; padding: 18px 22px; margin-bottom: 40px; background: var(--paper-2); border: 1px solid var(--line); border-radius: 16px; }
.notice-label { font-size: 13px; font-weight: 600; color: var(--gold-text); }
.page-notice p { color: var(--ink); font-size: 16px; }
.content-section { padding: 0 0 36px; margin-bottom: 36px; border-bottom: 1px solid var(--line); scroll-margin-top: 120px; }
.content-section:last-child { border-bottom: 0; margin-bottom: 0; }
.content-section h2 { font-size: clamp(28px, 2.8vw, 38px); margin-bottom: 14px; }
.content-section h3 { font-family: var(--serif); font-weight: 400; font-size: 22px; margin: 22px 0 8px; }
.content-section p + p { margin-top: 12px; }
.content-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.content-list li { position: relative; padding-left: 26px; font-size: 16.5px; line-height: 1.6; }
.content-list li::before { content: ''; position: absolute; left: 4px; top: 0.62em; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.arabic-copy { font-family: 'Amiri', serif; font-size: 26px; line-height: 1.9; color: var(--green-ink); margin: 6px 0 10px; }

.page-aside { position: sticky; top: 110px; display: grid; gap: 16px; }
.aside-card { padding: 26px; background: var(--green); color: var(--on-green); border-radius: 22px; }
.aside-card h2 { font-size: 30px; color: #fff; margin-bottom: 8px; }
.aside-card > p { font-size: 15px; color: var(--on-green-muted); margin-bottom: 18px; }
.aside-phone { display: block; font-family: var(--serif); font-size: 26px; color: #fff; margin-bottom: 4px; }
.aside-email { display: inline-block; font-size: 14px; color: var(--gold-soft); margin-bottom: 18px; overflow-wrap: anywhere; text-decoration: underline; text-decoration-color: #d8c48f66; text-underline-offset: 4px; }
.aside-details { padding: 14px 0; border-top: 1px solid #ffffff1f; font-size: 15px; }
.aside-details span { display: block; font-size: 13px; font-weight: 600; color: var(--gold-soft); margin-bottom: 2px; }
.aside-details small { display: block; font-size: 13px; color: var(--on-green-muted); margin-top: 2px; }
.aside-details .aside-visit { display: flex; text-decoration: none; font-size: inherit; }
/* "Request a visit" button inside page text: keep it a real button so the label sits centered (home.css .aside-visit is a text link) */
.page-copy .button.aside-visit { display: inline-flex; text-decoration: none; color: #fff; }
.about-top { padding-top: clamp(40px, 6vw, 72px); }
.about-top h1 { font-size: clamp(36px, 4vw, 52px); margin-bottom: 14px; }
.aside-card .button { width: 100%; margin-top: 8px; background: var(--gold-soft); border-color: var(--gold-soft); color: var(--on-gold); }

/* Related links: ruled rows, like the homepage services list */
.related-section { padding: 72px 0 88px; background: var(--paper-2); }
.related-section .section-top { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; margin-bottom: 24px; }
.related-section h2 { font-size: clamp(30px, 3.4vw, 46px); }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); column-gap: 40px; border-top: 1px solid var(--line); }
.related-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 4px; border-bottom: 1px solid var(--line); transition: padding 300ms var(--ease-out); }
.related-card h3 { font-family: var(--serif); font-weight: 400; font-size: 24px; line-height: 1.2; color: var(--ink); }
.related-arrow { width: 40px; height: 40px; padding: 11px; flex-shrink: 0; border-radius: 50%; border: 1px solid var(--line); color: var(--green-ink); transition: background-color 250ms ease, color 250ms ease, transform 300ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .related-card:hover { padding-left: 14px; }
  .related-card:hover .related-arrow { background: var(--green); color: #fff; transform: rotate(45deg); }
}

/* Image gallery inside a page */
.detail-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-top: 18px; }
.detail-gallery .gallery-button { aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; }
.detail-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease-out); }
@media (hover: hover) { .detail-gallery .gallery-button:hover img { transform: scale(1.04); } }

/* Program flyers library */
.flyer-collection { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); gap: 32px; align-items: end; padding: 28px; margin-bottom: 32px; background: var(--green); color: var(--on-green); border-radius: 22px; }
.flyer-collection h2 { font-size: clamp(28px, 3vw, 40px); color: #fff; margin-bottom: 10px; }
.flyer-collection p { color: var(--on-green-muted); }
.flyer-collection-actions { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
.flyer-collection-actions .button { background: var(--gold-soft); border-color: var(--gold-soft); color: var(--on-gold); }
.flyer-collection-actions .text-link { color: var(--gold-soft); border-color: #d8c48f66; }
.flyer-collection-actions small { flex-basis: 100%; font-size: 13px; color: var(--on-green-muted); }
.flyer-toolbar { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; margin-bottom: 24px; }
.flyer-toolbar label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.flyer-toolbar input { width: min(420px, 100%); font: inherit; font-size: 16px; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 12px 18px; }
.flyer-toolbar input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px #a58a4d33; }
.flyer-toolbar p { font-size: 14px; color: var(--muted); }
.flyer-library-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 28px 18px; }
.flyer-library-card[hidden] { display: none; }
.flyer-artwork { position: relative; display: block; border-radius: 12px; overflow: hidden; box-shadow: 0 16px 30px -22px #0f442466; margin-bottom: 12px; }
.flyer-artwork img { width: 100%; height: auto; transition: transform 500ms var(--ease-out); }
.flyer-artwork > span { position: absolute; left: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--green); color: #fff; font-size: 13px; opacity: 0; transform: translateY(6px); transition: opacity 200ms ease, transform 250ms var(--ease-out); }
@media (hover: hover) { .flyer-artwork:hover img { transform: scale(1.03); } .flyer-artwork:hover > span { opacity: 1; transform: none; } }
.flyer-card-copy h2 { font-family: var(--sans); font-size: 17px; font-weight: 600; letter-spacing: 0; line-height: 1.3; margin-bottom: 8px; }
.flyer-card-downloads { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; }
.flyer-card-downloads a { display: inline-flex; align-items: center; gap: 4px; color: var(--green-ink); }
.flyer-card-downloads a:hover { text-decoration: underline; text-underline-offset: 3px; }
.flyer-bn-downloads { margin-top: 4px; }
.flyer-programme-link { display: inline-flex; margin-top: 8px; font-size: 14px; font-weight: 500; }
.flyer-empty { padding: 24px; border: 1px dashed var(--line); border-radius: 16px; color: var(--muted); }

/* Giving planner */
.inner .giving-methods { display: block; color: var(--ink); font-size: inherit; }
.giving-planner, .giving-methods { padding: 28px; margin-bottom: 32px; background: var(--white); border: 1px solid var(--line); border-radius: 22px; }
.giving-planner h2, .giving-methods h2 { font-size: clamp(28px, 3vw, 40px); margin-bottom: 10px; }
.giving-planner > p, .giving-methods > p { color: var(--muted); margin-bottom: 20px; }
.giving-planner fieldset { border: 0; padding: 0; margin: 0 0 22px; }
.giving-planner legend, .gift-fund > span, .custom-gift > span { display: block; font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.gift-segments { display: inline-grid; grid-auto-flow: column; padding: 4px; background: var(--paper-2); border: 1px solid var(--line); border-radius: 999px; }
.gift-segments label { cursor: pointer; }
.gift-segments input { position: absolute; opacity: 0; pointer-events: none; }
.gift-segments span { display: block; padding: 8px 18px; border-radius: 999px; font-size: 15px; font-weight: 500; color: var(--muted); transition: background-color 200ms ease, color 200ms ease; }
.gift-segments input:checked + span { background: var(--green); color: #fff; }
.gift-segments input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.gift-amounts { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; margin-bottom: 14px; }
.gift-amounts[hidden] { display: none; }
.gift-amount { display: grid; gap: 2px; justify-items: center; padding: 14px 8px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); color: var(--ink); transition: background-color 200ms ease, border-color 200ms ease, transform 160ms var(--ease-out); }
.gift-amount:active { transform: scale(0.97); }
.gift-amount strong { font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
.gift-amount small { font-size: 12px; color: var(--muted); }
.gift-amount[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: #fff; }
.gift-amount[aria-pressed="true"] small { color: var(--on-green-muted); }
.custom-gift div { display: flex; align-items: center; gap: 8px; width: min(240px, 100%); padding: 0 14px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; }
.custom-gift input { flex: 1; min-width: 0; font: inherit; font-size: 17px; color: var(--ink); background: none; border: 0; padding: 12px 0; outline: none; }
.custom-gift div:focus-within, .gift-fund select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px #a58a4d33; outline: none; }
.giving-planner fieldset > small { display: block; font-size: 13px; color: var(--muted); margin-top: 6px; }
.gift-fund { display: block; margin-bottom: 22px; }
.gift-fund select { width: min(360px, 100%); font: inherit; font-size: 16px; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.gift-request { display: grid; gap: 12px; justify-items: start; padding-top: 20px; border-top: 1px solid var(--line); }
.gift-summary { font-size: 16px; font-weight: 500; color: var(--green-ink); }
.gift-request small { font-size: 13px; color: var(--muted); }
.gift-request .button[aria-disabled="true"] { opacity: 0.5; pointer-events: none; }
.giving-method { border-top: 1px solid var(--line); }
.giving-method:last-of-type { border-bottom: 1px solid var(--line); }
.giving-method summary { display: flex; align-items: center; gap: 16px; padding: 18px 4px; cursor: pointer; list-style: none; }
.giving-method summary::-webkit-details-marker { display: none; }
.giving-method summary > span:not(.method-plus) { flex: 1; }
.giving-method summary strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 22px; }
.giving-method summary small { display: block; font-size: 13px; color: var(--muted); }
.method-plus { font-size: 24px; line-height: 1; color: var(--gold); transition: transform 250ms var(--ease-out); }
.giving-method[open] .method-plus { transform: rotate(45deg); }
.method-body { padding: 0 4px 20px; color: var(--ink); font-size: 16px; }
.method-body p + p { margin-top: 8px; }
.giving-closing { padding: 8px 0 0; }
.giving-closing h2 { font-size: clamp(30px, 3.4vw, 44px); margin-bottom: 12px; }
.giving-closing p { color: var(--muted); }

/* Video */
.source-video { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 16px; background: #000; }

/* Gentle entrance for the hero only: content is visible by default */
.js .inner .detail-hero h1, .js .inner .detail-intro { animation: inner-rise 700ms var(--ease-out) both; }
.js .inner .detail-intro { animation-delay: 80ms; }
.js .inner .detail-hero-image { animation: inner-reveal 900ms var(--ease-out) 120ms both; }
@keyframes inner-rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes inner-reveal { from { opacity: 0; clip-path: inset(12% 0 0 0 round 220px 220px 18px 18px); } }

@media (max-width: 1020px) {
  .detail-hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .detail-hero-image { max-width: 520px; }
  .page-layout { grid-template-columns: 1fr; gap: 48px; }
  .page-aside { position: static; max-width: 520px; }
  .flyer-collection { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .detail-hero { padding: 16px 0 40px; }
  .breadcrumb { margin-bottom: 24px; font-size: 13px; }
  .detail-intro { font-size: 16px; }
  .page-layout { padding-block: 40px 64px; }
  .page-copy > p, .content-section p { font-size: 16px; }
  .giving-planner, .giving-methods, .flyer-collection { padding: 20px; }
  .flyer-library-grid { grid-template-columns: 1fr 1fr; gap: 22px 12px; }
  .related-section { padding: 56px 0 64px; }
}
@media (prefers-reduced-motion: reduce) {
  .js .inner .detail-hero h1, .js .inner .detail-intro, .js .inner .detail-hero-image { animation: none; }
}

/* Arrows inside plain links keep a little space from the words */
.inner a:not(.button):not(.text-link):not(.related-card):not(.flyer-artwork) > svg.ico { margin-left: 6px; vertical-align: -2px; }
.flyer-card-downloads a, .flyer-programme-link { gap: 6px; }

/* Flyers: the library runs the full width of the page */
.page-layout:has(.flyer-library) { grid-template-columns: 1fr; }
.page-layout:has(.flyer-library) .page-copy { max-width: none; }
.page-layout:has(.flyer-library) .page-aside { display: none; }
.flyer-library-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.flyer-toolbar input { width: min(520px, 100%); }

/* Today's times on inner pages */
.inner-times { padding: 26px; margin-bottom: 40px; background: var(--green); color: var(--on-green); border-radius: 22px; }
.inner-times-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; margin-bottom: 12px; }
.inner-times-head h2 { font-size: clamp(26px, 2.6vw, 34px); color: #fff; }
.inner-times-head p { color: var(--on-green-muted); font-size: 15px; }
.inner-times table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 16px; }
.inner-times th, .inner-times td { padding: 10px 8px; text-align: right; border-top: 1px solid #ffffff1f; }
.inner-times thead th { font-size: 13px; font-weight: 600; color: var(--gold-soft); border-top: 0; }
.inner-times th:first-child { text-align: left; }
.inner-times tbody th { font-family: var(--serif); font-weight: 400; font-size: 20px; color: #fff; }
.inner-times tr.marker th, .inner-times tr.marker td { color: var(--on-green-muted); font-size: 15px; }
.inner-times tr.next th, .inner-times tr.next td { background: var(--gold-soft); color: var(--on-gold); }
.inner-times tr.next th { border-radius: 10px 0 0 10px; }
.inner-times tr.next td:last-child { border-radius: 0 10px 10px 0; }
.inner-times-jumuah { margin-top: 14px; padding-top: 14px; border-top: 1px dashed #ffffff33; color: var(--gold-soft); font-variant-numeric: tabular-nums; }
.inner-times-jumuah b { color: #fff; margin-right: 8px; }
.inner-times-links { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 18px; }
.inner-times .text-link { color: var(--gold-soft); border-color: #d8c48f66; }
.flyer-toolbar > div { flex: 1 1 320px; }
.flyer-general { margin-top: 64px; padding-top: 40px; border-top: 1px solid var(--line); }
.flyer-general h2 { font-size: clamp(30px, 3.4vw, 44px); margin-bottom: 10px; }
.flyer-general p { color: var(--muted); margin-bottom: 14px; }
.flyer-general .text-link + .text-link { margin-left: 20px; }

/* Give page: Zeffy form */
.give-zeffy { margin-bottom: 56px; }
.give-zeffy > p { color: var(--muted); max-width: 62ch; margin: 12px 0 24px; }
.give-zeffy .give-fine { font-size: 14px; margin-top: 16px; }
.give-zeffy .give-fine a { color: var(--green-ink); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.zeffy-loading { padding: 32px; color: var(--muted); }

/* Coming soon page whose photo is the point (Islamic School building): show the photo more, keep the text readable */
.soon-photo.soon-photo-strong { opacity: 0.7; filter: saturate(0.9); object-position: 50% 60%; }
.soon:has(.soon-photo-strong)::after { background: linear-gradient(100deg, #0a2e18f0 10%, #0a2e18b3 45%, #0a2e1833 100%); }
/* A page whose picture is the logo (Dua & remembrance): show the whole logo on a light panel, never cropped or recoloured */
.detail-hero-image:has(img[src$="dicc-logo-official.png"]) { background: #fbf8ef; display: grid; place-items: center; }
.detail-hero-image img[src$="dicc-logo-official.png"] { width: 72%; height: 72%; object-fit: contain; }

/* Ramadan: two ways to take part, each card jumps to its own form */
.option-heading { font-size: clamp(28px, 3vw, 38px); margin: 8px 0 18px; }
.option-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.option-card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 28px 28px 24px; border-radius: 22px; background: var(--paper-2); border: 1px solid var(--line); color: var(--ink); transition: transform 300ms var(--ease-out), border-color 250ms ease; }
.option-card h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 2.6vw, 34px); line-height: 1.15; color: var(--green-ink); }
.option-card p { color: var(--muted); font-size: 16px; max-width: 48ch; }
.option-num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); font-family: var(--serif); font-size: 18px; color: var(--green-ink); }
.option-go { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 8px; font-weight: 600; color: var(--green-ink); }
.option-go .ico { width: 18px; height: 18px; transition: transform 300ms var(--ease-out); }
.option-card-primary { background: var(--green); border-color: var(--green); color: var(--on-green); }
.option-card-primary h3 { color: #fff; }
.option-card-primary p { color: var(--on-green-muted); }
.option-card-primary .option-num { border-color: rgba(255, 255, 255, 0.28); color: var(--gold-soft); }
.option-card-primary .option-go { color: var(--gold-soft); }
.option-card:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) {
  .option-card:hover { transform: translateY(-2px); border-color: var(--green-ink); }
  .option-card:hover .option-go .ico { transform: translateY(3px); }
}
.option-card:active { transform: scale(0.99); }
.form-switch { padding: 12px 16px; border-radius: 14px; background: var(--paper-2); border: 1px solid var(--line); color: var(--ink) !important; font-size: 15px; }
#host { border-top: 1px solid var(--line); }
@media (prefers-reduced-motion: reduce) { .option-card, .option-go .ico { transition: none; } .option-card:hover, .option-card:active { transform: none; } }

/* Umrah payment call-out (Alvin, 2026-11-07): the pay button must be impossible to miss.
   Drone photo of the center, the same one as Request a visit and the Give pages. */
.pay-cta { display: grid; grid-template-columns: 1.15fr 1fr; border-radius: 24px; overflow: hidden; background: var(--green); color: #fff; box-shadow: 0 24px 60px -30px rgba(15, 38, 25, .55); }
.pay-cta-photo { margin: 0; min-height: 260px; }
.pay-cta-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pay-cta-copy { padding: clamp(28px, 4vw, 52px); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 14px; }
.pay-cta-copy h2 { color: #fff; margin: 0; font-size: clamp(26px, 3vw, 38px); }
.pay-cta-copy p { color: #ffffffd9; margin: 0; max-width: 34ch; }
.button-xl { min-height: 62px; padding: 0 34px; font-size: 17px; font-weight: 600; }
.pay-cta .button-xl { box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .5); }
.pay-cta .button-xl:hover { transform: translateY(-1px); }
@media (max-width: 760px) {
  .pay-cta { grid-template-columns: 1fr; }
  .pay-cta-photo { min-height: 0; aspect-ratio: 16 / 9; }
  .pay-cta .button-xl { width: 100%; white-space: normal; text-align: center; }
}
