:root {
    
    --green: #0F3D33;
    --green-deep: #0A2C25;
    --green-soft: #E6EDE8;
    --gold: #C9971C;
    --gold-bright: #E3B23C;
    --gold-text: #85600C;
    --cream: #F7EFD9;
    --paper: #FCF8EE;
    --ink: #24201B;
    --muted: #5F574E;
    --line: #E3D6B8;
    --radius: 10px;
    --shadow: 0 1px 2px rgba(36,32,27,.06), 0 10px 30px rgba(36,32,27,.10);
    --serif: "Marcellus", Georgia, serif;
    --sans: "Jost", "Segoe UI", system-ui, sans-serif;
    --arabic: "Amiri", "Traditional Arabic", "Noto Naskh Arabic", serif;
    --farsi: "Vazirmatn", "Segoe UI", Tahoma, sans-serif;
  }
  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; scroll-padding-top: 88px; }
  body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font: 400 17px/1.6 var(--sans);
    -webkit-font-smoothing: antialiased;
  }
  img, svg { display: block; }
  a { color: inherit; }
  h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.15; margin: 0; color: var(--green); }
  h1, h2, h3 { text-wrap: balance; }
  h2 { font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.5rem); }
  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; }
  }
  p { margin: 0; }
  .wrap {
    max-width: 1240px; margin: 0 auto;
    padding-left: max(32px, env(safe-area-inset-left, 0px));
    padding-right: max(32px, env(safe-area-inset-right, 0px));
  }
  .eyebrow {
    font: 700 .78rem/1 var(--sans);
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--gold-text);
  }
  .skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--green-deep); padding: 8px 14px; z-index: 100; }
  .skip:focus { left: 8px; }
  :focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 3px; }

  .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font: 700 1rem/1 var(--sans);
    text-decoration: none;
    padding: 14px 22px;
    border-radius: 6px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: background-color .15s, transform .15s;
  }
  .btn-gold { background: var(--gold-bright); color: var(--green-deep); }
  .btn-gold:hover { background: #EDC25A; }
  .btn-line { border-color: rgba(247,239,217,.55); color: var(--cream); }
  .btn-line:hover { background: rgba(247,239,217,.1); }

  /* Header */
  .site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(252,248,238,.97);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(6px);
  }
  .header-row { display: flex; align-items: center; gap: 24px; height: 80px; }
  .brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; min-width: 0; }
  .brand svg { width: 44px; height: 55px; flex: none; color: var(--gold); }
  .brand-name { display: flex; flex-direction: column; line-height: 1.1; }
  .brand-name strong { font: 700 1.3rem/1.05 var(--serif); color: var(--green); }
  .brand-name span { font: 600 .72rem/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--gold-text); margin-top: 3px; }
  .nav { display: flex; align-items: center; gap: 4px; }
  .nav a {
    text-decoration: none; font-weight: 600; font-size: .98rem; color: var(--ink);
    padding: 8px 12px; border-radius: 4px;
  }
  .nav a:hover { color: var(--green); background: var(--green-soft); }
  .header-donate { padding: 12px 22px; }
  .menu-btn {
    display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 6px;
    background: transparent; color: var(--green); cursor: pointer; align-items: center; justify-content: center;
  }

  /* Hero + prayer times */
  .top { display: flex; flex-direction: column; }
  .hero { position: relative; background: var(--green-deep); height: 580px; }
  .hero-photo {
    position: absolute; inset: 0; max-width: 1440px; margin: 0 auto;
    /* Photo is drawn at the hero's height so the dome and flag always sit in the left 545px, clear of the hadith panel */
    background:
      linear-gradient(90deg, rgba(69,87,26,0) 0, rgba(69,87,26,0) 640px, rgba(69,87,26,.8) 900px, var(--green-deep) 1010px),
      linear-gradient(0deg, rgba(69,87,26,.35) 0, rgba(69,87,26,0) 120px),
      var(--hero-img) left center / auto 100% no-repeat;
  }
  .hero-inner { position: relative; height: 100%; display: flex; justify-content: flex-end; align-items: center; padding-bottom: 84px; }
  .hadith {
    width: 500px; margin: 0;
    padding: 32px 36px 28px;
    background: rgba(69,87,26,.8);
    border: 1px solid rgba(227,178,60,.35);
    border-radius: var(--radius);
    color: var(--cream);
    backdrop-filter: blur(4px);
  }
  .hadith .eyebrow { color: var(--gold-bright); display: flex; align-items: center; gap: 10px; }
  .hadith .eyebrow::after { content: ""; flex: 1; height: 1px; background: rgba(227,178,60,.4); }
  .hadith blockquote { margin: 18px 0 0; }
  .h-ar { font: 400 1.6rem/1.85 var(--arabic); color: #FFF9EA; text-align: right; }
  .h-en { font: 500 1.28rem/1.45 var(--serif); color: var(--cream); margin-top: 14px; }
  .h-fa { font: 400 1rem/1.95 var(--farsi); color: rgba(247,239,217,.9); text-align: right; margin-top: 14px; }
  .hadith figcaption { margin-top: 16px; font: 600 .92rem/1 var(--sans); letter-spacing: .06em; color: var(--gold-bright); }

  .prayers { position: relative; z-index: 2; margin-top: -84px; width: 100%; }
  .prayer-card {
    display: grid; grid-template-columns: 250px repeat(6, 1fr);
    background: #FFFDF7; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow);
    overflow: hidden;
  }
  .prayer-head { padding: 22px 24px; border-right: 1px solid var(--line); }
  .prayer-head h2 { font-size: 1.75rem; }
  .prayer-date { margin-top: 8px; font-size: .95rem; line-height: 1.4; color: var(--muted); }
  .prayer-date b { color: var(--ink); font-weight: 600; display: block; }
  .prayer-link { display: inline-block; margin-top: 10px; font-weight: 700; font-size: .92rem; color: var(--gold-text); text-decoration: none; }
  .prayer-link:hover { text-decoration: underline; }
  .times { display: contents; list-style: none; }
  .time {
    position: relative; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center;
    padding: 18px 8px; border-right: 1px solid var(--line);
  }
  .time:last-child { border-right: 0; }
  .time .label { font-weight: 700; font-size: .95rem; color: var(--green); }
  .time .clock { font: 600 1.85rem/1.1 var(--sans); font-variant-numeric: tabular-nums; color: var(--ink); margin-top: 4px; letter-spacing: -.01em; }
  .time.marker .label { font-weight: 600; color: var(--muted); }
  .time.marker .clock { font-weight: 400; color: var(--muted); font-size: 1.5rem; }
  .time .badge { display: none; }
  .time.is-next { background: var(--green); }
  .time.is-next .label { color: var(--cream); }
  .time.is-next .clock { color: var(--gold-bright); }
  .time.is-next .badge {
    display: block; margin-top: 8px;
    font: 700 .7rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase;
    color: var(--green-deep); background: var(--gold-bright); padding: 5px 8px; border-radius: 99px;
  }

  /* Sections */
  section.band { padding: 80px 0; }
  .band-cream { background: var(--cream); }
  .section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
  .section-head .more { font-weight: 700; color: var(--gold-text); text-decoration: none; white-space: nowrap; }
  .section-head .more:hover { text-decoration: underline; }
  .lede { color: var(--muted); margin-top: 10px; max-width: 60ch; }

  .split { display: grid; grid-template-columns: 7fr 5fr; gap: 48px; align-items: start; }

  .events { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
  .event a {
    display: grid; grid-template-columns: 68px 1fr 28px; align-items: center; gap: 18px;
    padding: 16px 8px; border-bottom: 1px solid var(--line); text-decoration: none;
    transition: background-color .15s;
  }
  .event a:hover { background: var(--cream); }
  .datebox {
    width: 68px; height: 68px; border-radius: 8px;
    border: 1.5px solid var(--gold); background: var(--cream);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
  }
  .datebox .m { font: 700 .74rem/1 var(--sans); letter-spacing: .14em; color: var(--gold-text); }
  .datebox .d { font: 700 1.6rem/1 var(--sans); font-variant-numeric: tabular-nums; color: var(--green); margin-top: 3px; }
  .event-name { font-weight: 700; font-size: 1.15rem; color: var(--ink); line-height: 1.3; }
  .event-meta { color: var(--muted); font-size: .95rem; margin-top: 2px; }
  .event .arrow { color: var(--gold-text); transition: transform .15s; }
  .event a:hover .arrow { transform: translateX(4px); }

  .mosque {
    background: var(--green); color: var(--cream); border-radius: 14px; padding: 34px;
    background-image: radial-gradient(circle at 100% 0, rgba(227,178,60,.18), transparent 55%);
  }
  .mosque .eyebrow { color: var(--gold-bright); }
  .mosque h2 { color: #FFF9EA; margin-top: 10px; font-size: clamp(1.8rem, 1.4rem + 1.2vw, 2.2rem); }
  .mosque > p { margin-top: 12px; color: rgba(247,239,217,.9); }
  .raised { margin-top: 24px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 10px; }
  .raised strong { font: 700 1.8rem/1 var(--sans); color: var(--gold-bright); }
  .raised span { color: rgba(247,239,217,.85); }
  .bar { margin-top: 12px; height: 12px; border-radius: 99px; background: rgba(247,239,217,.16); overflow: hidden; }
  .bar i { display: block; height: 100%; width: var(--progress); background: linear-gradient(90deg, var(--gold), var(--gold-bright)); border-radius: 99px; }
  .bar-note { margin-top: 8px; font-size: .82rem; color: rgba(247,239,217,.7); }
  .update { margin-top: 22px; padding: 14px 16px; border-left: 3px solid var(--gold-bright); background: rgba(69,87,26,.45); border-radius: 0 8px 8px 0; }
  .update .eyebrow { font-size: .72rem; }
  .update p { margin-top: 6px; color: var(--cream); }
  .mosque-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

  .services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 32px; }
  .service {
    background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 28px;
    display: flex; flex-direction: column;
  }
  .icon {
    width: 52px; height: 52px; border-radius: 50%; background: var(--green); color: var(--gold-bright);
    display: flex; align-items: center; justify-content: center;
  }
  .service h3 { font-size: 1.55rem; margin-top: 18px; }
  .service p { color: var(--muted); margin-top: 8px; flex: 1; }
  .service a { margin-top: 18px; font-weight: 700; color: var(--gold-text); text-decoration: none; }
  .service a:hover { text-decoration: underline; }

  .campaigns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px; }
  .campaign {
    display: flex; flex-direction: column; text-decoration: none;
    padding: 22px 24px; border: 1px solid var(--line); border-radius: 12px; background: #FFFDF7;
    transition: border-color .15s, transform .15s, box-shadow .15s;
  }
  .campaign:hover { border-color: var(--gold); transform: translateY(-2px); box-shadow: var(--shadow); }
  .campaign h3 { font-size: 1.45rem; }
  .campaign p { color: var(--muted); font-size: .95rem; margin-top: 4px; flex: 1; }
  .campaign .go { margin-top: 14px; font-weight: 700; color: var(--gold-text); }
  .campaign.featured { background: var(--green); border-color: var(--green); }
  .campaign.featured h3 { color: #FFF9EA; }
  .campaign.featured p { color: rgba(247,239,217,.85); }
  .campaign.featured .go { color: var(--gold-bright); }
  .tag { align-self: flex-start; margin-bottom: 10px; font: 700 .68rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; background: var(--gold-bright); color: var(--green-deep); padding: 5px 8px; border-radius: 99px; }

  .etransfer {
    margin-top: 24px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
    padding: 22px 24px; border-radius: 12px; border: 1.5px dashed var(--gold); background: var(--cream);
  }
  .etransfer .icon { flex: none; }
  .etransfer-text { flex: 1; min-width: 240px; }
  .etransfer-text h3 { font-size: 1.35rem; }
  .etransfer-text p { color: var(--muted); margin-top: 4px; }
  .etransfer-text a { color: var(--green); font-weight: 700; overflow-wrap: anywhere; }
  .copy { background: var(--green); color: var(--cream); }
  .copy:hover { background: var(--green-deep); }

  /* Footer */
  .site-footer { background: var(--green-deep); color: rgba(247,239,217,.88); padding: 64px 0 28px; }
  .footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
  .site-footer .brand svg { color: var(--gold-bright); }
  .site-footer .brand-name strong { color: #FFF9EA; }
  .site-footer .brand-name span { color: var(--gold-bright); }
  .footer-about { margin-top: 16px; max-width: 36ch; }
  .site-footer h3 { font: 700 .78rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-bright); margin-bottom: 14px; }
  .site-footer address { font-style: normal; }
  .site-footer ul { list-style: none; margin: 0; padding: 0; }
  .site-footer li + li { margin-top: 8px; }
  .site-footer a { text-decoration: none; }
  .site-footer a:hover { color: var(--gold-bright); text-decoration: underline; }
  .footer-bottom { margin-top: 48px; padding-top: 20px; border-top: 1px solid rgba(247,239,217,.15); font-size: .88rem; color: rgba(247,239,217,.65); }

  /* Below 1100px the hadith panel can no longer sit beside the dome, so the photo becomes a band */
  @media (max-width: 1099px) {
    .hero { height: auto; display: contents; }
    .hero-photo {
      position: relative; order: 1; height: clamp(210px, 46vw, 440px); max-width: none; width: 100%;
      background:
        linear-gradient(0deg, rgba(69,87,26,.45) 0, rgba(69,87,26,0) 70px),
        var(--hero-img) 20% 60% / cover no-repeat;
    }
    .hero-inner { display: block; order: 3; height: auto; padding-block: 0; background: var(--green-deep); max-width: none; width: 100%; }
    .hadith { width: auto; max-width: 720px; margin: 0 auto; background: none; border: 0; border-radius: 0; padding: 48px 0; backdrop-filter: none; }
    .prayers { order: 2; margin-top: -40px; margin-bottom: 40px; }
    .prayer-card { grid-template-columns: repeat(6, 1fr); }
    .prayer-head { grid-column: 1 / -1; border-right: 0; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 20px; padding: 18px 22px; }
    .prayer-date { margin-top: 0; }
    .prayer-date b { display: inline; }
    .prayer-link { margin-top: 0; margin-left: auto; }
    .split { grid-template-columns: 1fr; }
    .services { grid-template-columns: 1fr; }
    .campaigns { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
  }
  @media (max-width: 1019px) {
    .menu-btn { display: inline-flex; }
    .nav {
      display: none; position: absolute; left: 0; right: 0; top: 100%;
      flex-direction: column; align-items: stretch; gap: 0;
      background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; box-shadow: var(--shadow);
    }
    .nav a { padding: 14px 8px; border-bottom: 1px solid var(--line); border-radius: 0; }
    .site-header.open .nav { display: flex; }
    .header-row { gap: 10px; }
  }
  @media (max-width: 640px) {
    body { font-size: 16px; }
    .wrap {
      padding-left: max(16px, env(safe-area-inset-left, 0px));
      padding-right: max(16px, env(safe-area-inset-right, 0px));
    }
    .header-row { height: 68px; }
    .brand { gap: 9px; }
    .brand svg { width: 34px; height: 43px; }
    .brand-name strong { font-size: 1.12rem; }
    .brand-name span { font-size: .6rem; letter-spacing: .07em; }
    .header-donate { padding: 11px 14px; font-size: .95rem; }
    .prayers { margin-top: -28px; margin-bottom: 32px; }
    .prayer-card { grid-template-columns: repeat(3, 1fr); }
    .prayer-head { padding: 14px 16px; gap: 2px 12px; }
    .prayer-head h2 { font-size: 1.5rem; }
    .prayer-date { font-size: .88rem; width: 100%; }
    .prayer-link { position: absolute; top: 18px; right: 16px; font-size: .85rem; }
    .time { padding: 12px 4px; }
    .time:nth-child(3) { border-right: 0; }
    .time:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
    .time .clock { font-size: 1.5rem; }
    .time.marker .clock { font-size: 1.3rem; }
    .time .label { font-size: .88rem; }
    .time.is-next .badge { margin-top: 6px; font-size: .62rem; padding: 4px 6px; }
    .hadith { padding: 36px 16px; }
    .h-ar { font-size: 1.4rem; }
    .h-en { font-size: 1.18rem; }
    section.band { padding: 56px 0; }
    .event a { grid-template-columns: 60px 1fr 20px; gap: 14px; padding: 14px 4px; }
    .datebox { width: 60px; height: 60px; }
    .datebox .d { font-size: 1.45rem; }
    .mosque { padding: 26px 20px; }
    .mosque-actions .btn { flex: 1 1 100%; }
    .service { padding: 22px; }
    .campaigns { grid-template-columns: 1fr; gap: 12px; }
    .campaign { padding: 18px 20px; }
    .etransfer { padding: 20px; }
    .etransfer .copy { width: 100%; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  }
  @media (max-width: 360px) {
    .brand-name span { display: none; }
  }

  /* Merged top of page */
  h1, h2, h3 { font-weight: 400; }
  .photo2 { height: 440px; background: linear-gradient(0deg, rgba(69,87,26,.3) 0, rgba(69,87,26,0) 90px), var(--hero-img) left 30% / cover no-repeat; }
  .under { background: var(--green-deep); color: var(--cream); }
  .under-row { display: flex; gap: 56px; align-items: stretch; }
  .hadith2 { flex: 1 1 0; min-width: 0; margin: 0; padding: 32px 0 40px; }
  .hadith2 .eyebrow { color: var(--gold-bright); }
  .hadith2 blockquote { margin: 12px 0 0; }
  .hadith2 .h-ar { font-family: var(--arabic); font-size: 30px; line-height: 1.6; }
  .hadith2 .h-en { font-family: var(--serif); font-size: 24px; line-height: 1.32; margin-top: 8px; color: #fff; }
  .hadith2 .h-fa { font-family: var(--farsi); font-size: 18px; line-height: 1.75; margin-top: 10px; }
  .hadith2 figcaption { margin-top: 10px; color: var(--gold-bright); font-weight: 500; }
  .arch { flex: 0 0 420px; margin-top: -340px; position: relative; z-index: 2; display: flex; flex-direction: column; }
  .arch svg { display: block; width: 100%; height: 130px; flex: none; }
  .arch-body { flex: 1; background: var(--paper); margin-top: -1px; padding: 0 36px 28px; color: #2B3313; font-size: 18px; }
  .arch-date { text-align: center; font-size: 15px; }
  .arch-next { margin-top: 12px; text-align: center; color: #7A5A0C; font-size: 14px; font-weight: 600; letter-spacing: 2px; }
  .arch-big { text-align: center; font-family: var(--serif); font-size: 48px; line-height: 1.15; color: #2B2C20; }
  .arch-list { list-style: none; margin: 14px 0 0; padding: 0; border-top: 1px solid #D9CFB5; }
  .arch-list li { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid #E8E0CB; }
  .arch-list li[hidden] { display: none; }
  .arch-list li.last { border-bottom: 0; }
  .arch-link { display: block; margin-top: 8px; text-align: center; font-weight: 500; color: #2B2C20; }
  @media (max-width: 1019px) {
    .photo2 { height: clamp(220px, 46vw, 400px); }
    .under-row { flex-direction: column-reverse; align-items: center; gap: 0; }
    .arch { flex: none; width: 100%; max-width: 420px; margin-top: -90px; }
    .hadith2 { flex: none; width: 100%; max-width: 720px; }
    .hadith2 .h-ar { font-size: 26px; }
    .hadith2 .h-en { font-size: 22px; }
    .arch-body { padding: 0 22px 24px; }
    .arch-big { font-size: 42px; }
    .under { background: var(--green-deep); }
    .under-row { padding-bottom: 0; }
    .arch-body { border-radius: 0 0 12px 12px; }
  }

  /* Layout v2: hadith on the photo, mosque strip, events beside the arch */
  .hero { height: 520px; }
  .hero-inner { padding-bottom: 0; }
  .strip { background: #F3E3B5; border-bottom: 1px solid var(--line); }
  .strip-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 40px; padding-block: 18px; }
  .strip-text { flex: 1 1 380px; min-width: 0; }
  .strip-text h2 { font-size: 1.7rem; }
  .strip-text p { font-size: 1rem; line-height: 1.4; margin-top: 2px; }
  .strip-progress { flex: 0 1 230px; font-size: .98rem; }
  .strip-progress strong { font-weight: 700; color: var(--green); }
  .strip-bar { height: 9px; margin-top: 5px; border-radius: 5px; background: rgba(15,61,51,.18); }
  .strip-bar i { display: block; width: 40%; height: 100%; border-radius: 5px; background: var(--green); }
  .strip-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; }
  .strip-give { background: var(--green); color: #fff; border: 0; }
  .strip-give:hover { background: var(--green-deep); color: #fff; }
  .strip-more { font-weight: 600; color: var(--green); }
  .arch-card { background: var(--green-deep); border-radius: 12px; padding: 32px 32px 0; display: flex; align-self: start; width: 100%; }
  .arch-card .arch { flex: 1 1 auto; min-width: 0; margin-top: 0; }
  .arch-card .arch-body { padding: 0 30px 24px; border-radius: 0; }
  @media (max-width: 1019px) {
    .hero { height: auto; }
    .strip { order: 4; width: 100%; }
    .split > #events { order: 2; }
    .arch-card { order: 1; max-width: 520px; margin-inline: auto; padding: 20px 20px 0; }
    .arch-card .arch { width: 100%; max-width: none; margin-top: 0; }
  }
  @media (max-width: 640px) { .strip-progress { flex: 1 1 100%; } .strip-give { width: 100%; text-align: center; } }

  /* Olive palette and geometric pattern */
  :root {  --olive: #45571A; --gold-on-olive: #F4D47E; }

  .hadith { background: rgba(69,87,26,.94); border-color: rgba(244,212,126,.45); backdrop-filter: none; }
  .hadith .eyebrow, .hadith figcaption { color: var(--gold-on-olive); }

  .copy:hover { background: #2B2C20; }
  .strip-give:hover { background: #2B2C20; }
  .site-footer { position: relative; padding-top: 120px; }

  .site-footer .eyebrow, .site-footer h3, .site-footer h4 { color: var(--gold-on-olive); }
  @media (min-width: 1020px) {
    .hero-photo { background:
      linear-gradient(90deg, rgba(69,87,26,0) 0, rgba(69,87,26,0) 640px, rgba(69,87,26,.85) 860px, var(--green-deep) 908px, rgba(69,87,26,0) 909px),
      linear-gradient(0deg, rgba(69,87,26,.3) 0, rgba(69,87,26,0) 120px),
      var(--hero-img) left center / auto 100% no-repeat; }
  }
  @media (max-width: 1019px) { .hero-inner { background: var(--green-deep); } .hadith { background: none; border: 0; } }
  .btn-gold { color: #2B3313; }

  /* Phones and tablets: prayer times directly under the photo */
  @media (max-width: 1019px) {
    main { display: flex; flex-direction: column; }
    main > section { order: 10; }
    .top, .band-events, .band-events > .wrap, .split { display: contents; }
    .hero-photo { order: 1; }
    .arch-card { order: 2; width: calc(100% - 32px); max-width: 520px; margin: -36px auto 0; position: relative; z-index: 2; }
    .hero-inner { order: 3; margin-top: 32px; }
    .strip { order: 4; }
    .split > #events { order: 5; width: 100%; max-width: 760px; margin: 0 auto; padding: 48px 16px; }
  }

  /* Colour roles: olive for a few special areas, gold for action, neutrals elsewhere */
  .hero { background: var(--olive); }
  .hadith { background: var(--olive); }
  .hero-photo { --x: 0; }
  @media (min-width: 1020px) {
    .hero-photo { background:
      linear-gradient(90deg, rgba(69,87,26,0) 0, rgba(69,87,26,0) 640px, rgba(69,87,26,.85) 860px, var(--olive) 908px),
      linear-gradient(0deg, rgba(43,44,32,.25) 0, rgba(43,44,32,0) 120px),
      var(--hero-img) left center / auto 100% no-repeat; }
  }

  .campaign.featured { background: var(--olive); border-color: var(--olive); }
  .icon { background: #EFE3C2 !important; color: var(--green) !important; }
  .strip-give, .copy { background: var(--gold-bright); color: #2B2C20; }
  .strip-give:hover, .copy:hover { background: var(--gold); color: #2B2C20; }
  .strip-bar i { background: #85600C; }
  .site-footer { background: #2B2C20; padding-top: 121px; }

  @media (max-width: 1019px) { .hero-inner { background: var(--olive); } .hadith { background: none; } }

  .strip-give { background: var(--olive); color: #fff; }
  .strip-give:hover { background: #36450F; color: #fff; }

  /* Dark green is the main colour again; olive with the pattern belongs to the prayer times card */
  .hero { background: var(--green-deep); }
  .hadith { background: rgba(10,44,37,.94); border-color: rgba(227,178,60,.35); }
  .hadith .eyebrow, .hadith figcaption { color: var(--gold-bright); }
  @media (min-width: 1020px) {
    .hero-photo { background:
      linear-gradient(90deg, rgba(10,44,37,0) 0, rgba(10,44,37,0) 640px, rgba(10,44,37,.85) 860px, var(--green-deep) 908px),
      linear-gradient(0deg, rgba(10,44,37,.25) 0, rgba(10,44,37,0) 120px),
      var(--hero-img) left center / auto 100% no-repeat; }
  }
  .campaign.featured { background: var(--green); border-color: var(--green); }
  .icon { background: var(--green) !important; color: var(--gold-bright) !important; }
  .strip-give, .copy { background: var(--green); color: #fff; }
  .strip-give:hover, .copy:hover { background: var(--green-deep); color: #fff; }
  .strip-bar i { background: var(--green); }
  .btn-gold { color: var(--green-deep); }
  .arch-body, .arch-big { color: #0B2E28; }
  .arch-body { color: #17302A; }
  .arch-link { color: #0F3D33; }
  .site-footer { background: var(--green-deep); }
  .site-footer .eyebrow, .site-footer h3, .site-footer h4 { color: var(--gold-bright); }
  @media (max-width: 1019px) { .hero-inner { background: var(--green-deep); } .hadith { background: none; } }

  /* Prayer times card: plain deep gold */
  .arch-card { background: #C9971C; }

  /* Footer: plain dark green, no pattern band */
  .site-footer { padding-top: 64px; }
  .site-footer::before { content: none; display: none; }

  /* Welcome section */
  .welcome { border-bottom: 1px solid var(--line); }
  .welcome-row { display: grid; grid-template-columns: 4fr 8fr; gap: 20px 48px; align-items: center; padding-block: 32px; }
  .welcome-text h2, .welcome-text h1 { font-size: 1.9rem; }
  .welcome-text p { margin-top: 6px; color: var(--muted); line-height: 1.45; }
  .welcome-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .welcome-links a { display: block; padding: 4px 0 4px 16px; border-left: 2px solid var(--gold); text-decoration: none; line-height: 1.35; }
  .welcome-links strong { display: block; font: 400 1.25rem/1.25 var(--serif); color: var(--green); }
  .welcome-links span { display: block; margin-top: 3px; font-size: .95rem; color: var(--muted); }
  .welcome-links a:hover strong { color: var(--gold-text); }

  /* Full-screen photo on desktop: header over the photo, New Mosque band still on the first screen */
  @media (min-width: 1020px) {
    .site-header { position: absolute; top: 0; left: 0; right: 0; z-index: 20; background: linear-gradient(180deg, rgba(10,44,37,.82), rgba(10,44,37,0)); border: 0; box-shadow: none; backdrop-filter: none; }
    .site-header .brand, .site-header .brand-name strong, .site-header .nav a { color: #fff; }
    .site-header .brand-name span { color: #F4D47E; }
    .site-header .brand svg { color: var(--gold-bright); }
    .site-header .nav a:hover { color: var(--gold-bright); background: transparent; }
    .hero { height: clamp(600px, calc(100vh - 112px), 860px); }
    .hero-photo { max-width: none; background:
      linear-gradient(90deg, rgba(10,44,37,0) 45%, rgba(10,44,37,.72) 62%, rgba(10,44,37,.82) 100%),
      var(--hero-img) left center / cover no-repeat; }
    .hero-inner { align-items: center; padding-top: 72px; }
    .hadith { background: rgba(10,44,37,.9); }
  }
  @media (max-width: 1019px) {
    .welcome { order: 5; width: 100%; }
    .split > #events { order: 6; }
    .welcome-row { grid-template-columns: 1fr; }
  }
  @media (max-width: 640px) { .welcome-links { grid-template-columns: 1fr; } }

  /* Announcement bar */
  .strip { background: var(--paper); border: 0; padding-block: 18px 0; }
  .notice { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; align-items: center; gap: 12px 20px; padding: 14px 24px; background: #FDF1E8; border: 1px solid #F3D9C4; border-radius: 10px; }
  .notice-icon { color: #B8470C; flex: none; }
  .notice h2 { font-size: 1.45rem; white-space: nowrap; color: #B8470C; }
  .notice-text { font-size: 1rem; padding-left: 20px; border-left: 1px solid #E8CDB6; line-height: 1.4; }
  .notice-text strong { font-weight: 600; color: var(--ink); }
  .notice-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 18px; }
  .notice-btn { display: inline-flex; align-items: center; gap: 9px; padding: 12px 26px; background: #B8470C; color: #fff; border-radius: 7px; font-weight: 600; text-decoration: none; }
  .notice-btn:hover { background: #973A09; color: #fff; }
  .notice-more { color: #973A09; font-weight: 500; }
  .welcome { border-top: 1px solid var(--line); border-bottom: 0; }
  @media (min-width: 1020px) { .hero { height: clamp(600px, calc(100vh - 156px), 860px); } }
  @media (max-width: 1019px) {
    .strip { order: 4; padding: 24px 0 0; }
    .welcome { order: 7; }
    .notice { grid-template-columns: auto minmax(0, 1fr); }
    .notice h2 { white-space: normal; }
    .notice-text, .notice-actions { grid-column: 1 / -1; }
    .notice-text { padding-left: 0; border-left: 0; }
  }

  /* Layout from the arranger: arch on the photo, announcement overlapping its edge, hadith beside events */
  .site-header { position: relative; background: var(--green-deep); border: 0; }
  .site-header .brand, .site-header .brand-name strong, .site-header .nav a { color: #fff; }
  .site-header .brand-name span { color: #F4D47E; }
  .site-header .brand svg { color: var(--gold-bright); }
  .site-header .menu-btn { color: #fff; border-color: rgba(255,255,255,.4); }
  .site-header .nav a:hover { color: var(--gold-bright); background: transparent; }
  .hero { position: relative; height: 650px; }
  .hero-photo { position: absolute; inset: 0; max-width: none; background:
      linear-gradient(90deg, rgba(10,44,37,0) 50%, rgba(10,44,37,.75) 72%, rgba(10,44,37,.85) 100%),
      var(--hero-img) left center / cover no-repeat; }
  .hero-inner { position: relative; display: flex; height: 100%; justify-content: flex-end; align-items: flex-start; padding: 36px 24px 0; background: none; }
  .hero-inner .arch-card { flex: 0 0 470px; width: 470px; max-width: 100%; margin: 0; position: relative; z-index: 3; box-shadow: 0 14px 40px rgba(10,44,37,.35); }
  .strip { position: relative; z-index: 4; background: none; padding-block: 0; margin-top: -22px; }
  .band-events { padding-top: 56px; }
  .split .hadith { width: auto; margin: 68px 0 0; background: var(--green-deep); border-radius: 10px; }
  .split .hadith .eyebrow, .split .hadith figcaption { color: var(--gold-bright); }
  @media (max-width: 1019px) {
    main, .top, .band-events, .band-events > .wrap { display: block; }
    .split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
    .hero { display: block; height: auto; background: none; }
    .hero-photo { position: relative; inset: auto; height: clamp(220px, 46vw, 400px); background: var(--hero-img) left center / cover no-repeat; }
    .hero-inner { display: block; height: auto; padding: 0 16px; max-width: 520px; margin: -36px auto 0; }
    .hero-inner .arch-card { width: 100%; padding: 20px 20px 0; }
    .strip { margin-top: 24px; padding: 0; }
    .band-events { padding-top: 40px; }
    .split > #events { width: auto; max-width: none; margin: 0; padding: 0; }
    .split .hadith { margin: 0; padding: 28px 20px; }
    .welcome { width: auto; }
  }

  /* Prayer times: the arch stands directly on the photo, no gold card */
  .hero-inner .arch-card { flex: 0 0 420px; width: 420px; padding: 0; background: none; box-shadow: none; filter: drop-shadow(0 12px 28px rgba(10,44,37,.45)); }
  .hero-inner .arch-card .arch-body { border-radius: 0 0 12px 12px; padding: 0 34px 26px; }
  .hero-inner { padding-top: 28px; }
  @media (max-width: 1019px) {
    .hero-inner .arch-card { width: 100%; padding: 0; }
    .hero-inner .arch-card .arch-body { padding: 0 22px 24px; }
    .hero-inner { margin-top: -96px; padding-top: 0; }
  }
