/* Khair-un-Nass Tanzeem — site styles
   Identity: Khewra pink salt. Salt pink, deep slate, salt-lamp amber.
   Marcellus headings, Work Sans body, faceted (single cut-corner) shapes. */
:root {
  --blue: #2E3A4E;
  --blue-deep: #232C3C;
  --navy: #1E2533;
  --yellow: #F0A85A;
  --yellow-dark: #9A5A17;
  --salt: #F2B8B1;
  --salt-deep: #D9776E;
  --mist: #FBEDEB;
  --mist-2: #F5D9D5;
  --white: #FFFFFF;
  --text: #1E2533;
  --soft: #545C6C;
  --line: rgba(46, 58, 78, .16);
  --round: "Marcellus", "Trajan Pro", Georgia, serif;
  --body: "Work Sans", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--text); font-family: var(--body); font-size: 17.5px; line-height: 1.65; }
img, svg, iframe { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--round); font-weight: 400; line-height: 1.08; letter-spacing: .01em; }
p, ul, ol, dl, dd { margin: 0; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 1rem; top: -5rem; z-index: 100; background: var(--yellow); color: var(--navy); padding: .7rem 1.2rem; border-radius: 3px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 1rem; }

.k { max-width: 72rem; margin: 0 auto; padding: 0 1.25rem; }
.band { padding: 4.5rem 0; }
@media (min-width: 820px) { .band { padding: 6.5rem 0; } }
.b-mist { background: var(--mist); }
.b-blue { background: var(--blue); color: var(--white); }
.soft { color: var(--soft); }
.b-blue .soft { color: #E3E8F0; }
.read { max-width: 64ch; }
.t-xl { font-size: clamp(2.2rem, 5vw, 3.5rem); color: var(--blue); }
.b-blue .t-xl { color: var(--white); }
.t-md { font-size: clamp(1.5rem, 2.6vw, 2rem); color: var(--blue); }
.u1 { margin-top: .75rem; } .u2 { margin-top: 1.4rem; } .u3 { margin-top: 2.25rem; } .u4 { margin-top: 3.25rem; }

/* Speech bubble: the recurring shape */
.bubble { position: relative; background: var(--white); padding: 2rem; clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 0 100%); }

/* Fill-in boxes */
.fill { position: relative; border: 2px dashed var(--blue); background: var(--mist); border-radius: 4px; padding: 1.2rem 1.35rem 1.2rem 3.1rem; color: var(--navy); }
.fill::before { content: "✎"; position: absolute; left: 1.05rem; top: 1.1rem; width: 1.45rem; height: 1.45rem; border-radius: 50%; background: var(--blue); color: var(--white); font-size: .8rem; line-height: 1.45rem; text-align: center; }
.fill .lbl { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--blue); }
.fill p { margin-top: .4rem; color: var(--soft); }
.fill .ex { margin-top: .7rem; padding-top: .7rem; border-top: 1px dashed var(--line); font-style: italic; color: var(--navy); }
.fill .ex span { font-style: normal; font-weight: 700; color: var(--blue); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .95rem 1.7rem; border-radius: 0; clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%); border: 2px solid transparent; font-family: var(--body); font-weight: 600; font-size: 1rem; letter-spacing: .01em; text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, transform .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-y { background: var(--salt); color: var(--navy); }
.btn-y:hover { background: var(--white); }
.btn-b { background: var(--blue); color: var(--white); }
.btn-b:hover { background: var(--blue-deep); }
.btn-o { border-color: var(--blue); color: var(--blue); }
.btn-o:hover { background: var(--blue); color: var(--white); }
.btn-ow { border-color: rgba(255,255,255,.6); color: var(--white); }
.btn-ow:hover { border-color: var(--yellow); color: var(--yellow); }
.btns { display: flex; flex-wrap: wrap; gap: .75rem; }
.al { font-weight: 700; color: var(--blue); text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; text-underline-offset: 5px; }
.al:hover { color: var(--blue-deep); }

/* Header */
.hdr { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top, 0px); }
.hdr-r { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; height: 74px; }
.lg-mark { display: flex; align-items: center; gap: .65rem; text-decoration: none; }
.lg-mark img { width: 44px; height: 44px; }
.lg-mark span { font-family: var(--round); font-weight: 400; font-size: 1.4rem; color: var(--navy); line-height: 1; }
.lg-mark small { display: block; font-family: var(--body); font-weight: 600; font-size: .78rem; color: var(--salt-deep); margin-top: .2rem; }
.nav { display: none; }
.nav ul { list-style: none; padding: 0; display: flex; gap: .3rem; }
.nav a { display: block; padding: .45rem .9rem; font-family: var(--body); font-weight: 700; font-size: .95rem; text-decoration: none; color: var(--soft); border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--blue); }
.nav a[aria-current="page"] { color: var(--blue); border-bottom-color: var(--salt-deep); }
.hdr-cta { display: none; padding: .65rem 1.2rem; }
.tog { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 0; border: 0; background: var(--blue); color: var(--salt); cursor: pointer; clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%); }
.dr { background: var(--white); border-top: 1px solid var(--line); padding: .75rem 1.25rem 1.75rem; }
.dr[hidden] { display: none; }
.dr ul { list-style: none; padding: 0; display: grid; gap: .5rem; }
.dr a.dl { display: block; padding: .8rem 1.2rem; font-family: var(--round); font-weight: 600; font-size: 1.4rem; text-decoration: none; background: var(--mist); border-radius: 4px; }
.dr a.dl[aria-current="page"] { background: var(--blue); color: var(--white); }
.dr .btn { width: 100%; margin-top: 1rem; }
@media (min-width: 940px) { .nav { display: block; } .tog, .dr { display: none !important; } }
@media (min-width: 1160px) { .hdr-cta { display: inline-flex; } }

/* Hero */
.hero { background: var(--blue); color: var(--white); overflow: hidden; }
.hero-g { display: grid; gap: 2.5rem; align-items: center; padding-top: 4rem; padding-bottom: 5rem; }
@media (min-width: 900px) { .hero-g { grid-template-columns: 1.1fr 1fr; gap: 3rem; padding-top: 5.5rem; padding-bottom: 6.5rem; } }
.hero h1 { font-size: clamp(3rem, 7.4vw, 5.8rem); }
.hero .eyebrow { font-family: var(--body); font-weight: 600; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--salt); margin-bottom: 1rem; }
.hero p.sub { margin-top: 1.4rem; font-size: 1.18rem; max-width: 40ch; color: #E3E8F0; }
.hero .btns { margin-top: 2.25rem; }
.crystals { width: min(100%, 30rem); justify-self: center; overflow: visible; }
.crystals .glow { fill: var(--yellow); opacity: .35; filter: blur(30px); animation: glow 3s ease-out both; }
.crystals .xtal { transform-box: fill-box; transform-origin: 50% 100%; animation: grow 1.1s cubic-bezier(.25,.8,.3,1.1) both; }
@keyframes grow { from { transform: scaleY(0); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes glow { 0% { opacity: 0; } 60% { opacity: .55; } 100% { opacity: .35; } }

/* Mission / vision */
.mv { display: grid; gap: 2.25rem; }
@media (min-width: 820px) { .mv { grid-template-columns: 1fr 1fr; gap: 1.5rem; } }
.mv .bubble { background: var(--white); border-left: 5px solid var(--salt-deep); }
.mv .bubble.y { background: var(--blue); }
.mv .bubble.y h2 { color: var(--salt) !important; } .mv .bubble.y p { color: var(--white) !important; }
.mv h2 { font-size: 1.15rem; color: var(--blue); }
.mv .bubble.y h2 { color: var(--navy); }
.mv p { margin-top: .9rem; font-family: var(--round); font-weight: 500; font-size: clamp(1.3rem, 2.2vw, 1.65rem); line-height: 1.35; color: var(--navy); }
.lead { font-size: clamp(1.2rem, 2vw, 1.4rem); line-height: 1.6; }

/* Programme cards */
.cards { display: grid; gap: 1.25rem; margin-top: 3rem; }
@media (min-width: 820px) { .cards { grid-template-columns: repeat(3, 1fr); } }
/* card */ .card { background: var(--white); padding: 1.75rem; border: 1px solid var(--line); border-left: 5px solid var(--salt-deep); }
.card .num { display: inline-flex; width: 42px; height: 42px; align-items: center; justify-content: center; border-radius: 50%; background: var(--yellow); font-family: var(--round); font-weight: 600; color: var(--navy); }
.card h3 { margin-top: .9rem; font-size: 1.4rem; color: var(--blue); }
.card .fill { margin-top: 1rem; }

/* Help */
.help { display: grid; gap: 2rem; margin-top: 3rem; }
@media (min-width: 820px) { .help { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; } }
.help .bubble { background: var(--blue-deep); color: var(--white); display: flex; flex-direction: column; }
.help h3 { font-size: 1.7rem; color: var(--yellow); }
.help p { margin-top: .6rem; flex: 1; color: #E3E8F0; }
.help .btn { margin-top: 1.75rem; align-self: flex-start; }

/* FAQ as a conversation */
.fqg { display: grid; gap: 2.5rem; }
@media (min-width: 820px) { .fqg { grid-template-columns: 1fr 1.8fr; gap: 4rem; } }
.fqs details { margin-bottom: .6rem; }
.fqs summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.05rem 1.35rem; border-radius: 4px; background: var(--mist); font-family: var(--round); font-weight: 600; font-size: 1.12rem; color: var(--navy); }
.fqs summary::-webkit-details-marker { display: none; }
.fqs .ch { flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--white); display: flex; align-items: center; justify-content: center; color: var(--blue); transition: transform .2s; }
.fqs details[open] summary { background: var(--blue); color: var(--salt); }
.fqs details[open] .ch { transform: rotate(180deg); }
.fqs details p { margin: 0; padding: 1rem 1.35rem 1.2rem; background: var(--white); border: 1px solid var(--line); border-top: 0; color: var(--soft); }

/* Contact strip */
.cst { display: grid; gap: 1.25rem; padding-top: 3rem; padding-bottom: 3rem; }
@media (min-width: 820px) { .cst { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }
.cst h3 { font-family: var(--body); font-size: .9rem; font-weight: 700; color: var(--blue); }
.cst a, .cst p { display: block; margin-top: .3rem; font-family: var(--round); font-weight: 600; font-size: 1.2rem; text-decoration: none; word-break: break-word; color: var(--navy); }
.cst a:hover { color: var(--blue); }

/* Page head */
.phd { background: var(--blue); color: var(--white); overflow: hidden; }
.phd .k { display: grid; gap: 1.5rem; align-items: center; padding-top: 3.75rem; padding-bottom: 4rem; }
@media (min-width: 820px) { .phd .k { grid-template-columns: 1fr auto; padding-top: 5rem; padding-bottom: 5.5rem; } }
.phd h1 { font-size: clamp(2.6rem, 6.5vw, 4.4rem); }
.phd p { margin-top: 1.1rem; max-width: 50ch; font-size: 1.12rem; color: #E3E8F0; }
.phd .mini { display: none; width: 190px; }
@media (min-width: 820px) { .phd .mini { display: block; } }

/* Layout */
.two { display: grid; gap: 2.5rem; }
@media (min-width: 820px) { .two { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.tw { display: grid; gap: 2.5rem; }
@media (min-width: 880px) { .tw { grid-template-columns: 1fr 1.45fr; gap: 4rem; } }

/* Table */
.tbl { width: 100%; border-collapse: collapse; }
.tbl th, .tbl td { text-align: left; vertical-align: top; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.tbl th { width: 11rem; padding-right: 1.25rem; font-weight: 700; color: var(--blue); }
.tbl td { word-break: break-word; }

/* Contact */
.cli > div { padding: 1.3rem 1.4rem; background: var(--mist); border-radius: 4px; }
.cli > div + div { margin-top: .9rem; }
.cli h2 { font-family: var(--body); font-size: .9rem; font-weight: 700; color: var(--blue); }
.cli a, .cli address { display: block; margin-top: .3rem; font-family: var(--round); font-weight: 600; font-size: 1.2rem; font-style: normal; text-decoration: none; word-break: break-all; color: var(--navy); }
.cli address { word-break: normal; line-height: 1.45; }
.cli a:hover { color: var(--blue); }
.fbx { background: var(--mist); padding: 1.5rem; border-top: 4px solid var(--yellow); }
@media (min-width: 640px) { .fbx { padding: 2.5rem; } }
.mapf { overflow: hidden; border: 1px solid var(--line); border-top: 4px solid var(--yellow); }
.mapf iframe { width: 100%; height: 380px; border: 0; }
@media (min-width: 820px) { .mapf iframe { height: 450px; } }
.safe { clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 0 100%); background: var(--blue-deep); padding: 2rem; }
.safe h3 { font-size: 1.6rem; color: var(--yellow); }
.safe ul { margin-top: 1rem; padding-left: 1.2rem; color: #E3E8F0; }
.safe li + li { margin-top: .6rem; }

/* Forms */
.form { display: grid; gap: 1.15rem; }
.form .rw { display: grid; gap: 1.15rem; }
@media (min-width: 620px) { .form .rw { grid-template-columns: 1fr 1fr; } }
.form .fl { font-weight: 700; }
.form .op { font-weight: 400; color: var(--soft); }
.form input[type=text], .form input[type=email], .form input[type=tel], .form select, .form textarea { display: block; width: 100%; margin-top: .45rem; padding: .85rem 1.1rem; font: inherit; font-size: 1rem; color: var(--text); background: var(--mist); border: 2px solid transparent; border-radius: 3px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--blue); background: var(--white); }
.form [aria-invalid="true"] { border-color: #C62F3B !important; background: #FFF1F2; }
.form .err { margin-top: .3rem; font-size: .92rem; font-weight: 700; color: #B02531; }
.form .ag { display: flex; gap: .75rem; align-items: flex-start; font-size: .95rem; line-height: 1.5; }
.form .ag input { width: 20px; height: 20px; margin-top: 3px; flex-shrink: 0; accent-color: var(--blue); }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { justify-self: start; }
.form .btn[disabled] { opacity: .6; cursor: wait; }
.alert { border-radius: 3px; padding: 1rem; font-size: .95rem; background: #FFF1F2; border: 2px solid #C62F3B; }
.alert strong { display: block; color: #B02531; }
/*s*/ .success { clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 0 100%); padding: 2rem; background: var(--yellow); }
.success h3 { font-size: 1.8rem; color: var(--navy); }
.success button { margin-top: 1.25rem; background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: var(--navy); text-decoration: underline; cursor: pointer; }

/* Legal */
.law { max-width: 46rem; margin: 0 auto; padding: 4rem 1.25rem; }
@media (min-width: 820px) { .law { padding: 5.5rem 1.25rem; } }
.law h1 { font-size: clamp(2.4rem, 5.5vw, 3.5rem); color: var(--blue); }
.law h2 { font-size: 1.5rem; color: var(--blue); margin-top: 2.5rem; }
.law h2[id] { scroll-margin-top: 6rem; }
.law p, .law ul { margin-top: .75rem; }
.law ul { padding-left: 1.4rem; }
.law li + li { margin-top: .45rem; }
.psum { margin-top: 2rem; background: var(--mist); border-left: 5px solid var(--salt-deep); padding: 1.4rem 1.6rem; }
.psum h2 { margin-top: 0 !important; font-size: 1.3rem; color: var(--navy) !important; }
.psum ul { margin-top: .6rem; }
.ptoc { margin-top: 2rem; padding: 1.3rem 1.6rem; background: var(--mist); border-radius: 4px; }
.ptoc h2 { margin-top: 0 !important; font-size: 1.15rem; }
.ptoc ol { margin: .6rem 0 0; padding-left: 1.4rem; columns: 2 14rem; }
.ptoc li { margin-bottom: .3rem; }
.ptoc a { color: var(--blue); font-weight: 700; text-decoration: none; }
.ptoc a:hover { text-decoration: underline; }
.paddr { margin-top: .75rem; font-style: normal; line-height: 1.7; }

/* Footer */
.fo { background: var(--navy); color: #C9D0DC; border-top: 4px solid var(--salt); }
.fo-g { display: grid; gap: 2.5rem; padding-top: 3.5rem; padding-bottom: 2.5rem; }
@media (min-width: 820px) { .fo-g { grid-template-columns: 1.6fr 1fr 1.4fr; } }
.fo .lg-mark span { color: var(--white); font-size: 1.6rem; }
.fo .lg-mark small { color: var(--salt); }
.fo h2 { font-family: var(--body); font-size: .92rem; font-weight: 700; color: var(--salt); }
.fo ul { list-style: none; padding: 0; margin-top: .9rem; }
.fo li + li { margin-top: .5rem; }
.fo a { text-decoration: none; }
.fo a:hover { color: var(--white); text-decoration: underline; }
.fo address { font-style: normal; margin-top: .9rem; }
.fo address p + p { margin-top: .5rem; }
.fo-soc { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.fo-soc a { background: rgba(255,255,255,.08); border-radius: 3px; padding: .3rem .8rem; font-size: .9rem; }
.fo-e { border-top: 1px solid rgba(255,255,255,.12); }
.fo-e p { padding-top: 1.2rem; padding-bottom: calc(1.2rem + env(safe-area-inset-bottom, 0px)); font-size: .9rem; }

/* Back to top */
.btt { position: fixed; right: 1.1rem; bottom: calc(1.1rem + env(safe-area-inset-bottom, 0px)); z-index: 30; width: 52px; height: 56px; border: 0; clip-path: polygon(50% 0, 100% 28%, 100% 100%, 0 100%, 0 28%); background: var(--salt); color: var(--navy); display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 6px 18px rgba(22,26,51,.25); }
.btt[hidden] { display: none; }
.btt:hover { background: var(--blue); color: var(--white); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .crystals .xtal, .crystals .glow { animation: none; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* Programmes */
.pcard { display: block; text-decoration: none; transition: box-shadow .2s, background-color .2s; }
.pcard:hover { border-color: var(--blue); background: var(--mist); }
.pcard p { margin-top: .5rem; }
.pic { display: inline-flex; width: 58px; height: 58px; align-items: center; justify-content: center; background: var(--salt); color: var(--navy); margin-bottom: 1rem; clip-path: polygon(50% 0, 100% 30%, 82% 100%, 18% 100%, 0 30%); }
.prog { scroll-margin-top: 6rem; padding: 2rem; display: flex; flex-direction: column; }
.prog h2 { font-size: clamp(1.45rem, 2.4vw, 1.8rem); color: var(--blue); }
.prog .lead2 { margin-top: .75rem; font-weight: 700; color: var(--navy); }
.prog .u2 { margin-top: auto; padding-top: 1.4rem; }

/* Salt facet band */
.lattice { height: 26px; background: var(--blue-deep) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='26'%3E%3Cpath d='M18 2 28 9 24 24 12 24 8 9Z' fill='%23F2B8B1'/%3E%3Cpath d='M18 2 24 24 12 24Z' fill='%23D9776E'/%3E%3C/svg%3E") repeat-x left center / 36px 26px; }
.ur-name { font-family: "Noto Nastaliq Urdu", serif; direction: rtl; color: var(--salt); font-size: 1.6rem; line-height: 2; margin-top: .5rem; }
