/* ============================================================
   Madrasah Noor — shared site theme (green)
   Linked by every page in /madrasahnoor/. Edit colours here once
   and the whole mini-site updates.
   ============================================================ */

:root{
  /* palette */
  --green-900:#0d3b2e;
  --green-800:#11513f;
  --green-700:#136b56;
  --green-600:#1a7f67;
  --green-tint:#e7f1ea;
  --gold:#c8a557;
  --gold-deep:#7a5f1a;

  /* surfaces & text */
  --ink:#152019;
  --muted:#56675d;
  --bg:#eef3ee;
  --card:#ffffff;
  --line:rgba(19,80,63,.16);
  --line2:rgba(19,80,63,.10);
  --radius:18px;
  --shadow:0 14px 32px rgba(13,59,46,.10);

  --font-display:'Fraunces',Georgia,'Times New Roman',serif;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family:system-ui,-apple-system,"Segoe UI",Roboto,Ubuntu,Arial,sans-serif;
  background:var(--bg);
  color:var(--ink);
  -webkit-text-size-adjust:100%;
}
a{color:inherit}
img{max-width:100%;height:auto}
.wrap{max-width:1100px;margin:0 auto;padding:18px}
.wrap.narrow{max-width:980px}
.wrap.slim{max-width:720px}
.muted{color:var(--muted)}

/* ===== Header band (the site signature) ===== */
.titlebar{
  background:linear-gradient(135deg,var(--green-900) 0%,var(--green-700) 100%);
  border-bottom:3px solid var(--gold);
}
.titlebar-inner{
  max-width:1100px;margin:0 auto;padding:14px 16px;
  display:flex;align-items:center;justify-content:space-between;gap:14px;
  color:#fff;
}
.brand{display:flex;align-items:center;gap:12px;min-width:0}
.brand > div, .brand .txt{min-width:0}
.brand img{
  width:56px;height:56px;object-fit:contain;border-radius:14px;
  background:#fff;padding:3px;flex:0 0 auto;
  box-shadow:0 10px 22px rgba(0,0,0,.25);
}
.brand strong{
  display:block;font-size:21px;font-weight:600;line-height:1.1;color:#fff;
  font-family:var(--font-display);letter-spacing:.2px;
}
.brand span{
  display:block;font-size:13px;font-weight:600;margin-top:4px;
  color:rgba(255,255,255,.78);
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}

/* nav pills on the green band */
.header-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end;align-items:center}
.chip,.home-btn{
  display:inline-flex;align-items:center;gap:8px;
  padding:9px 13px;border-radius:999px;
  background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.26);
  color:#fff;font-weight:800;font-size:13px;
  text-decoration:none;white-space:nowrap;
  transition:background .15s ease;
}
.chip:hover,.home-btn:hover{background:rgba(255,255,255,.22)}
.chip.is-here{background:#fff;color:var(--green-800);border-color:#fff}
@media(min-width:721px){ .header-actions{flex-wrap:nowrap;flex:0 0 auto} }
@media(max-width:720px){
  .titlebar-inner{flex-direction:column;align-items:flex-start}
  .header-actions{width:100%;justify-content:flex-start;flex-wrap:wrap}
  .chip,.home-btn{padding:8px 11px;font-size:12.5px}
}

/* optional light strip of in-page anchors under the band */
.anchor-strip{
  max-width:1100px;margin:14px auto 0;padding:0 18px;
  display:flex;gap:8px;flex-wrap:wrap;
}
.anchor-strip a{
  display:inline-flex;align-items:center;gap:6px;
  padding:7px 12px;border-radius:999px;font-weight:800;font-size:13px;
  background:#fff;border:1px solid var(--line);text-decoration:none;color:var(--ink);
}
.anchor-strip a:hover{background:var(--green-tint)}

/* ===== Cards ===== */
.card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:0 8px 22px rgba(13,59,46,.06);
  overflow:hidden;
}
.card > header{
  padding:16px 18px;
  border-bottom:1px solid var(--line2);
  background:linear-gradient(180deg,#f4f9f5,#fff);
  font-weight:800;
  display:flex;align-items:center;justify-content:space-between;gap:10px;
}
.card > header h2{margin:0;font-size:18px}
.card > header, .card > header h2, .cardhead h2{
  font-family:var(--font-display);
  color:var(--green-900);
  letter-spacing:.2px;
}
.card main{padding:18px}

.subhead{
  font-size:12px;font-weight:900;color:var(--gold-deep);
  font-family:system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  background:linear-gradient(90deg,rgba(200,165,87,.18),rgba(200,165,87,.04));
  border:1px solid rgba(200,165,87,.30);
  padding:6px 10px;border-radius:999px;white-space:nowrap;
}

/* ===== Buttons ===== */
.cta{
  display:inline-flex;align-items:center;justify-content:center;gap:10px;
  padding:12px 17px;border-radius:999px;border:none;cursor:pointer;
  background:linear-gradient(180deg,var(--green-600),var(--green-700));
  color:#fff;font-weight:900;font-size:15px;text-decoration:none;
  box-shadow:0 12px 22px rgba(26,127,103,.22);
}
.cta:active{transform:translateY(1px)}
.pill{
  display:inline-block;padding:8px 10px;margin:4px 6px 0 0;
  border:1px solid var(--line);border-radius:999px;background:#fff;
  font-weight:800;font-size:13px;text-decoration:none;
}

/* ===== Forms (shared by admissions / gift aid / contact) ===== */
label.f{display:block;font-size:13px;font-weight:700;color:#33473c;margin:12px 0 5px}
label.f .opt{color:var(--muted);font-weight:600}
input,select,textarea{
  width:100%;padding:11px 12px;font:inherit;color:var(--ink);
  border:1px solid var(--line);border-radius:12px;background:#fafcf9;
}
input:focus,select:focus,textarea:focus{outline:2px solid var(--green-600);border-color:transparent}
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:0 14px}
.grid3{display:grid;grid-template-columns:110px 1fr 1fr;gap:0 14px}
@media(max-width:560px){.grid2,.grid3{grid-template-columns:1fr}}
.hp{position:absolute;left:-9999px;opacity:0;height:0;overflow:hidden}
.sec-title{font-weight:900;font-size:14px;margin:18px 0 8px;color:var(--green-800);display:flex;align-items:center;gap:8px}
.sec-title:first-child{margin-top:0}
.req{color:#b3372c}
.err{background:#fdecea;border:1px solid #f5c2bd;color:#a3372f;border-radius:12px;padding:12px 14px;margin-bottom:14px;font-weight:700}
.note{font-size:12.5px;color:var(--muted);margin-top:6px}
.fees{
  background:linear-gradient(90deg,rgba(200,165,87,.14),rgba(200,165,87,.03));
  border:1px solid rgba(200,165,87,.30);border-radius:14px;padding:14px 16px;font-size:14px;
}
.fees strong{color:var(--gold-deep)}

/* soft green callout zone */
.reg-zone{
  margin-top:12px;padding:10px;border-radius:14px;
  background:linear-gradient(180deg,rgba(26,127,103,.07),rgba(26,127,103,.02));
  border:1px dashed rgba(26,127,103,.30);
}

/* gold divider */
.goldline{
  height:6px;border-radius:999px;margin-top:10px;
  background:linear-gradient(90deg,#b28b3d,var(--gold),#b28b3d);
}

/* ===== Thank-you tick ===== */
.tick{
  width:72px;height:72px;border-radius:50%;
  background:linear-gradient(180deg,var(--green-600),var(--green-700));
  color:#fff;display:flex;align-items:center;justify-content:center;
  font-size:38px;margin:0 auto 18px;
  box-shadow:0 12px 24px rgba(26,127,103,.25);
}

/* ===== Footer ===== */
.foot{
  margin-top:16px;padding:14px 16px;border-radius:16px;
  border:1px solid var(--line);
  border-top:3px solid var(--gold);
  background:#fff;color:var(--muted);font-weight:700;font-size:13px;
}
