/* NOOR Family Support — blue & white, clean, trustworthy. */
:root {
  --ink: #0f1f38;
  --ink-2: #3a4a63;
  --muted: #66758c;
  --line: #cfdcec;
  --hair: #e3ecf7;
  --paper: #ffffff;
  --mist: #f2f7fd;
  --brand: #0a5fbf;
  --brand-light: #3d97e3;
  --brand-deep: #08488f;
  --brand-soft: #e8f1fc;
  --navy: #0a2547;
  --link: #0a5fbf;
  --danger: #b3261e;
  --ok: #1e7a46;
  --radius: 22px;
  --serif: 'Cormorant Garamond', 'Iowan Old Style', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --wrap: 1120px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.55 var(--sans); letter-spacing: -0.01em; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.025em; line-height: 1.08; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.serif { font-family: var(--serif); font-weight: 500; letter-spacing: -0.01em; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); margin-bottom: 14px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ── Header ───────────────────────────── */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.9); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid rgba(0,0,0,.06); }
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--brand); font-weight: 700; font-size: 30px; line-height: 1; letter-spacing: .01em; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand svg { width: 26px; height: 26px; }
.brand small { display: block; margin-top: 5px; font-size: 16px; font-weight: 600; letter-spacing: .02em; color: var(--brand); }
.brand img { flex: none; }
.menu { display: flex; gap: 20px; white-space: nowrap; margin: 0 auto; padding: 0; list-style: none; font-size: 13px; }
.menu > li { position: relative; }
.menu a { color: var(--ink-2); }
.menu a:hover, .menu a.on { color: var(--brand); text-decoration: none; }
.menu .drop { position: absolute; top: 100%; left: -18px; min-width: 250px; padding: 12px 0; margin-top: 12px; background: #fff; border: 1px solid var(--hair); border-radius: 14px; box-shadow: 0 18px 40px rgba(0,0,0,.08); opacity: 0; visibility: hidden; transform: translateY(-4px); transition: .25s var(--ease); list-style: none; }
.menu li:hover .drop, .menu li:focus-within .drop { opacity: 1; visibility: visible; transform: none; }
.menu .drop::before { content: ''; position: absolute; top: -14px; left: 0; right: 0; height: 14px; }
.menu .drop a { display: block; padding: 8px 18px; font-size: 14px; }
.menu .drop a:hover { background: var(--brand-soft); color: var(--brand); }
.nav-actions { display: flex; align-items: center; gap: 14px; font-size: 13px; white-space: nowrap; }
.hero .actions { justify-content: center; }
.auth .art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.45), transparent 55%); }
.auth .art .caption { z-index: 1; }
.nav-actions .link { color: var(--ink-2); }
.burger { display: none; margin-left: auto; background: none; border: 0; width: 40px; height: 40px; padding: 10px; cursor: pointer; }
.burger span { display: block; height: 1.5px; background: var(--ink); margin: 5px 0; transition: .3s var(--ease); }
.nav.open .burger span:first-child { transform: translateY(3.25px) rotate(45deg); }
.nav.open .burger span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

/* ── Buttons ──────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 24px; border-radius: 980px; border: 1px solid var(--brand); background: var(--brand); color: #fff; font: 500 15px/1.2 var(--sans); cursor: pointer; transition: background .2s, transform .2s var(--ease), color .2s; white-space: nowrap; }
.btn:hover { background: var(--brand-deep); border-color: var(--brand-deep); text-decoration: none; }
.btn:active { transform: scale(.98); }
.btn.ghost { background: transparent; color: var(--brand); }
.btn.ghost:hover { background: var(--brand); color: #fff; }
.btn.primary { background: var(--brand); border-color: var(--brand); }
.btn.primary:hover { background: var(--brand-deep); border-color: var(--brand-deep); }
.btn.light { background: #fff; color: var(--brand); border-color: #fff; }
.btn.light:hover { background: var(--brand-soft); color: var(--brand-deep); }
.btn.outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn.outline-light:hover { background: #fff; color: var(--brand); }
.btn.sm { padding: 7px 15px; font-size: 13px; }
.btn.block { width: 100%; }
.arrow::after { content: ' ›'; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.center .actions { justify-content: center; }

/* ── Sections ─────────────────────────── */
section { padding: 110px 0; }
.tight { padding: 72px 0; }
.mist { background: var(--mist); }
.display { font-size: clamp(42px, 7vw, 80px); }
.h1 { font-size: clamp(36px, 5.4vw, 60px); }
.h2 { font-size: clamp(30px, 4vw, 48px); }
.lede { font-size: clamp(19px, 2.2vw, 24px); color: var(--ink-2); line-height: 1.4; letter-spacing: -0.015em; }
.section-head { margin-bottom: 56px; }
.section-head .lede { margin-top: 16px; }

/* Hero */
.hero { padding: 96px 0 0; text-align: center; overflow: hidden; background: linear-gradient(180deg, var(--brand-soft) 0%, #fff 62%); }
.hero .display { max-width: 900px; margin: 0 auto; }
.hero .lede { max-width: 720px; margin: 22px auto 34px; }
.hero-figure { margin: 72px auto 0; max-width: 1280px; padding: 0 22px; }
.hero-figure .frame { border-radius: 28px; overflow: hidden; aspect-ratio: 16 / 7; transform-origin: center top; will-change: transform; }
.frame { position: relative; background: url('/static/img/pattern.svg') center / 120px repeat, linear-gradient(135deg, #eef5fe, #dce9fa); }
.frame img { width: 100%; height: 100%; object-fit: cover; transition: opacity .8s var(--ease); }
.frame img.failed { opacity: 0; }
.frame.sepia img { filter: saturate(.85) contrast(1.02); }

/* Page header */
.page-head { padding: 96px 0 56px; background: linear-gradient(180deg, var(--brand-soft) 0%, #fff 100%); }
.page-head .lede { max-width: 760px; margin-top: 20px; }
.page-head.center .lede { margin-left: auto; margin-right: auto; }
.banner { max-width: 1280px; margin: 0 auto; padding: 0 22px; }
.banner .frame { border-radius: 28px; overflow: hidden; aspect-ratio: 21 / 8; }

/* Trust strip */
.trust { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--hair); }
.trust > div { padding: 34px 32px 34px 0; border-bottom: 1px solid var(--hair); }
.trust h3 { font-size: 19px; margin-bottom: 6px; color: var(--brand-deep); }
.trust h3::before { content: '✓'; display: inline-grid; place-items: center; width: 24px; height: 24px; margin-right: 10px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 13px; vertical-align: 2px; }
.trust p { margin: 0; color: var(--muted); font-size: 15px; }

/* Service tiles */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tile { position: relative; display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: var(--mist); color: var(--ink); min-height: 440px; transition: transform .5s var(--ease); }
.tile:hover { text-decoration: none; transform: translateY(-4px); }
.tile .frame { height: 250px; }
.tile .frame img { transition: transform 1.2s var(--ease); }
.tile:hover .frame img { transform: scale(1.04); }
.tile .body { padding: 26px 28px 30px; display: flex; flex-direction: column; flex: 1; }
.tile h3 { font-size: 24px; margin-bottom: 8px; }
.tile p { color: var(--ink-2); font-size: 15px; flex: 1; }
.tile .more { color: var(--link); font-size: 15px; font-weight: 500; }
.tile.wide { grid-column: span 2; flex-direction: row; min-height: 380px; }
.tile.wide .frame { height: auto; flex: 1.25; }
.tile.wide .body { justify-content: center; padding: 48px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; counter-reset: s; }
.steps > div { padding: 28px 22px 0 0; border-top: 2px solid var(--brand); }
.steps .n { font: 500 15px var(--sans); color: var(--brand); display: block; margin-bottom: 18px; }
.steps h3 { font-size: 22px; margin-bottom: 8px; }
.steps p { color: var(--muted); font-size: 15px; }
.steps.seven { grid-template-columns: repeat(4, 1fr); row-gap: 48px; }
.steps.three { grid-template-columns: repeat(3, 1fr); }
.steps.six { grid-template-columns: repeat(3, 1fr); row-gap: 48px; }
.flow { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 14px 0; align-items: center; }
.flow li { display: flex; align-items: center; gap: 10px; padding: 12px 20px 12px 12px; background: #fff; border: 1px solid var(--line); border-radius: 980px; font-weight: 500; color: var(--ink); }
.flow li span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 13px; font-weight: 600; }
.flow li + li { margin-left: 34px; position: relative; }
.flow li + li::before { content: '→'; position: absolute; left: -26px; color: var(--brand); font-size: 18px; }

/* Split feature */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.split .frame { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; }
.split.rev .frame { order: 2; }
.ticks { list-style: none; padding: 0; margin: 18px 0 0; }
.ticks li { position: relative; padding: 9px 0 9px 28px; border-bottom: 1px solid var(--hair); font-size: 16px; }
.ticks li::before { content: ''; position: absolute; left: 2px; top: 17px; width: 10px; height: 6px; border-left: 1.6px solid var(--brand); border-bottom: 1.6px solid var(--brand); transform: rotate(-45deg); }
.ticks.no li::before { width: 10px; height: 0; border-left: 0; top: 21px; transform: none; border-bottom-color: var(--muted); }
.flags { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 30px; }
.flags span { padding: 7px 14px; border: 1px solid var(--line); border-radius: 980px; font-size: 14px; color: var(--ink-2); }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--paper); border: 1px solid var(--hair); border-radius: var(--radius); padding: 32px; border-top: 3px solid var(--brand); box-shadow: 0 10px 30px rgba(10,95,191,.05); }
.mist .card { border-color: transparent; border-top-color: var(--brand); }
.card .num { font: 500 13px var(--sans); color: var(--brand); letter-spacing: .1em; }
.card h3 { font-size: 21px; margin: 10px 0 10px; }
.card p { color: var(--ink-2); font-size: 15px; margin: 0; }
.card ul { margin: 14px 0 0; padding: 0; list-style: none; }
.card li { font-size: 14px; color: var(--muted); padding: 4px 0 4px 16px; position: relative; }
.card li::before { content: ''; position: absolute; left: 0; top: 13px; width: 5px; height: 5px; border-radius: 50%; background: var(--brand); opacity: .55; }

/* Values */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px 40px; }
.values h3 { font-family: var(--serif); font-weight: 600; font-size: 30px; margin-bottom: 8px; letter-spacing: 0; color: var(--brand-deep); }
.values p { color: var(--muted); margin: 0; }

/* Packages */
.packages { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.pkg { border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; background: #fff; display: flex; flex-direction: column; }
.pkg.featured { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), 0 20px 40px rgba(10,95,191,.10); }
.pkg .tag { font-size: 13px; color: var(--brand); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.pkg h3 { font-size: 24px; margin: 8px 0 6px; }
.pkg .price { font-size: 30px; font-weight: 600; letter-spacing: -0.03em; margin: 10px 0 4px; }
.pkg .price small { font-size: 15px; color: var(--muted); font-weight: 400; }
.pkg p { color: var(--ink-2); font-size: 15px; }

/* Notice */
.notice { border-left: 3px solid var(--brand); padding: 20px 24px 20px 26px; max-width: 860px; background: var(--brand-soft); border-radius: 0 14px 14px 0; }
.notice h3 { font-size: 15px; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin-bottom: 10px; }
.notice p { color: var(--ink-2); margin: 0; }

/* Provider ID card */
.idcard { max-width: 420px; border-radius: 24px; padding: 30px; background: linear-gradient(160deg, #fff, var(--brand-soft)); border: 1px solid #c9dcf5; box-shadow: 0 30px 60px rgba(10,95,191,.14); }
.idcard .top { display: flex; justify-content: space-between; align-items: center; font-size: 12px; letter-spacing: .14em; font-weight: 600; color: var(--brand); }
.idcard .who { display: flex; gap: 18px; align-items: center; margin: 24px 0; }
.idcard .avatar { width: 64px; height: 64px; border-radius: 50%; background: #d6e6fb; display: grid; place-items: center; font: 500 26px var(--serif); color: var(--brand); overflow: hidden; }
.idcard .avatar img { width: 100%; height: 100%; object-fit: cover; }
.idcard dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; margin: 0; font-size: 14px; }
.idcard dt { color: var(--muted); }
.idcard dd { margin: 0; }
.idcard .checks { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.idcard .checks span { font-size: 12px; background: #fff; border: 1px solid #c9dcf5; padding: 5px 10px; border-radius: 980px; color: var(--ok); }

/* Quote band */
.quote { font-family: var(--serif); font-weight: 500; font-size: clamp(34px, 5vw, 58px); line-height: 1.1; letter-spacing: -0.01em; }

/* CTA band */
.cta-band { text-align: center; }
.cta-band .h2 { margin-bottom: 14px; }
.cta-band .lede { max-width: 640px; margin: 0 auto 32px; }
.urgent { background: var(--navy); color: #f2f7fd; }
.urgent .lede, .urgent .muted { color: #a9bedb; }
.urgent .eyebrow { color: #8ec2ff; }
.blue-band { background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%); color: #fff; }
.blue-band .lede, .blue-band .muted { color: #d6e6fb; }
.blue-band .eyebrow { color: #bcd8fb; }
.blue-band .btn { background: #fff; color: var(--brand); border-color: #fff; }
.blue-band .btn:hover { background: var(--brand-soft); }
.blue-band .btn.ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.blue-band .btn.ghost:hover { background: #fff; color: var(--brand); }

/* FAQ */
.faq details { border-bottom: 1px solid var(--hair); }
.faq summary { list-style: none; cursor: pointer; padding: 26px 40px 26px 0; font-size: 21px; font-weight: 500; letter-spacing: -0.015em; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 22px; font-size: 28px; font-weight: 300; color: var(--muted); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-2); padding: 0 40px 26px 0; margin: 0; }

/* Forms */
.form-card { background: #fff; border: 1px solid var(--hair); border-radius: 28px; padding: 44px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.form-grid .full { grid-column: 1 / -1; }
fieldset { border: 0; padding: 0; margin: 0 0 36px; }
legend { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); margin-bottom: 18px; padding: 0; }
label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 7px; color: var(--ink-2); }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=date], input[type=time], input[type=number], input[type=url], select, textarea {
  width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font: 16px var(--sans); color: var(--ink); transition: border-color .2s, box-shadow .2s; }
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(10,95,191,.12); }
input[type=file] { font-size: 14px; }
.has-error input, .has-error select, .has-error textarea { border-color: var(--danger); }
.err { color: var(--danger); font-size: 13px; margin-top: 6px; }
.hint { color: var(--muted); font-size: 13px; margin-top: 6px; }
.check { display: block; position: relative; padding-left: 28px; font-weight: 400; font-size: 15px; color: var(--ink-2); cursor: pointer; }
.check input { position: absolute; left: 0; top: 3px; margin: 0; accent-color: var(--brand); width: 16px; height: 16px; }
.chip[hidden] { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; padding: 10px 18px; border: 1px solid var(--line); border-radius: 980px; font-size: 15px; cursor: pointer; transition: .2s; color: var(--ink-2); }
.chip input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; }
.chip input:focus-visible + span { box-shadow: 0 0 0 4px rgba(0,0,0,.12); }
.cat-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.cat-pick label { margin: 0; }
.cat-pick input { position: absolute; opacity: 0; }
.cat-pick span { display: block; padding: 18px 20px; border: 1px solid var(--line); border-radius: 16px; cursor: pointer; transition: .2s; }
.cat-pick span b { display: block; font-size: 16px; color: var(--ink); font-weight: 600; }
.cat-pick span i { font-style: normal; font-size: 13px; color: var(--muted); }
.cat-pick input:checked + span { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); background: var(--brand-soft); }
.cat-pick input:focus-visible + span { box-shadow: 0 0 0 4px rgba(0,0,0,.12); }
.upload { position: relative; display: block; margin: 0; cursor: pointer; }
.upload input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.upload-box { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 130px; padding: 18px; border: 1.5px dashed var(--line); border-radius: 14px; background: var(--mist); text-align: center; transition: .2s; }
.upload-box::before { content: '⬆'; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-size: 16px; margin-bottom: 4px; }
.upload-box b { font-size: 15px; color: var(--brand); font-weight: 600; word-break: break-all; }
.upload-box i { font-style: normal; font-size: 13px; color: var(--muted); }
.upload:hover .upload-box, .upload input:focus-visible + .upload-box { border-color: var(--brand); background: var(--brand-soft); }
.upload-box.has-file { border-style: solid; border-color: var(--brand); background: #fff; }
.upload-box.has-file::before { content: '✓'; background: var(--brand); color: #fff; }
.upload-box img { max-height: 120px; max-width: 100%; border-radius: 8px; margin-bottom: 6px; object-fit: contain; }
.has-error .upload-box { border-color: var(--danger); }
.svc-group { margin-bottom: 22px; }
.svc-group h4 { margin: 0 0 10px; font-size: 15px; }

/* Flash */
.flash { max-width: var(--wrap); margin: 18px auto 0; padding: 0 22px; }
.flash div { padding: 14px 18px; border-radius: 12px; font-size: 15px; background: #eef7f1; color: var(--ok); }
.flash div.error { background: #fbeeed; color: var(--danger); }
.alert { padding: 14px 18px; border-radius: 12px; font-size: 15px; background: #fbeeed; color: var(--danger); margin-bottom: 20px; }
.alert.info { background: var(--brand-soft); color: var(--brand-deep); }

/* Auth */
.auth { min-height: calc(100vh - 68px); display: grid; grid-template-columns: 1fr 1fr; }
.auth .art { position: relative; }
.auth .art .frame { position: absolute; inset: 0; }
.auth .art .caption { position: absolute; left: 48px; bottom: 48px; right: 48px; color: #fff; font: 500 34px/1.15 var(--serif); text-shadow: 0 2px 30px rgba(0,0,0,.35); }
.auth .panel { display: flex; align-items: center; justify-content: center; padding: 60px 22px; }
.auth .box { width: 100%; max-width: 400px; }
.auth h1 { font-size: 36px; margin-bottom: 10px; }
.tabs { display: flex; background: var(--mist); border-radius: 12px; padding: 4px; margin: 30px 0 24px; }
.tabs button { flex: 1; border: 0; background: none; padding: 9px; border-radius: 9px; font: 500 14px var(--sans); color: var(--muted); cursor: pointer; }
.tabs button[aria-selected=true] { background: #fff; color: var(--brand); box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.tabpanel[hidden] { display: none; }
.stack > * + * { margin-top: 16px; }
.google-btn { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; padding: 13px; border: 1px solid var(--line); border-radius: 980px; background: #fff; color: var(--ink); font: 500 15px var(--sans); }
.google-btn:hover { background: var(--mist); text-decoration: none; }
.google-btn svg { width: 18px; height: 18px; }
.or { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 13px; margin: 22px 0; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--hair); }
.code-input { font-size: 30px !important; letter-spacing: .5em; text-align: center; font-variant-numeric: tabular-nums; }
.small { font-size: 14px; }

/* Account / provider dashboards */
.dash-head { padding: 64px 0 32px; display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th { text-align: left; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 12px 14px; border-bottom: 1px solid var(--line); }
.table td { padding: 16px 14px; border-bottom: 1px solid var(--hair); vertical-align: top; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 980px; font-size: 12px; font-weight: 600; background: var(--mist); color: var(--ink-2); text-transform: capitalize; white-space: nowrap; }
.badge.requested, .badge.pending { background: #fff4e0; color: #8a5a00; }
.badge.confirmed, .badge.assigned, .badge.in_progress { background: #e8f1fd; color: #0b57c7; }
.badge.completed, .badge.approved, .badge.active, .badge.sent { background: #eaf6ee; color: var(--ok); }
.badge.cancelled, .badge.rejected, .badge.suspended, .badge.disabled, .badge.failed { background: #fbeeed; color: var(--danger); }
.panel-list { display: grid; gap: 16px; }
.booking { border: 1px solid var(--hair); border-radius: 18px; padding: 24px; display: grid; grid-template-columns: 1fr auto; gap: 12px 20px; }
.booking h3 { font-size: 19px; }
.booking .meta { color: var(--muted); font-size: 14px; }
.booking form { display: inline; }
.empty { text-align: center; padding: 60px 20px; border: 1px dashed var(--line); border-radius: 18px; color: var(--muted); }
.stars { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.stars input { position: absolute; opacity: 0; }
.stars label { font-size: 22px; color: var(--line); cursor: pointer; margin: 0; }
.stars input:checked ~ label, .stars label:hover, .stars label:hover ~ label { color: var(--brand); }

/* Footer */
.foot { background: var(--navy); color: #a9bedb; font-size: 13px; padding: 64px 0 36px; }
.foot .brand { display: inline-flex; background: #fff; padding: 10px 16px 10px 10px; border-radius: 16px; color: var(--brand); }
.foot .brand:hover { color: var(--brand); text-decoration: none; }
.foot .cols { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.14); }
.foot h4 { margin: 0 0 14px; font-size: 13px; color: #fff; font-weight: 600; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin-bottom: 9px; }
.foot a { color: #dce9fa; }
.foot a:hover { color: #fff; }
.foot .disclaimer { padding: 24px 0; border-bottom: 1px solid rgba(255,255,255,.14); line-height: 1.6; }
.foot .legal { padding-top: 22px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.foot .tagline { font-family: var(--serif); font-size: 22px; color: #fff; line-height: 1.2; margin: 14px 0; }

/* Motion */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }
/* Price list (home) */
.quick { display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 14px; align-items: end; background: var(--mist); padding: 22px; border-radius: var(--radius); margin-bottom: 28px; }
.quick label { font-size: 14px; font-weight: 600; margin-bottom: 6px; display: block; }
.quick .btn { padding: 15px 26px; }
.price-filter { margin-bottom: 22px; }
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cat-card { display: flex; flex-direction: column; border: 1px solid var(--hair); border-radius: 18px; background: #fff; overflow: hidden; }
.cat-card .pc-img { margin: 0; }
.cat-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.cat-body h3 { font-size: 19px; }
.cat-body .desc { font-size: 14px; color: var(--ink-2); margin: 0; flex: 1; }
.cat-count { font-size: 13px; color: var(--muted); margin: 4px 0 8px; }
.cat-open { align-self: flex-start; }
.cat-open.on { background: var(--brand-deep); border-color: var(--brand-deep); }
.child-panel { margin-top: 28px; padding: 24px; border-radius: 22px; background: var(--mist); scroll-margin-top: 140px; }
.child-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.child-head h3 { font-size: 22px; }
@media (max-width: 1020px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .cat-grid { grid-template-columns: 1fr 1fr; gap: 12px; } .cat-body { padding: 12px 14px 14px; } .cat-body h3 { font-size: 16px; } .cat-body .desc { display: none; } .child-panel { padding: 16px; } }
.assure { display: flex; flex-wrap: wrap; gap: 10px; margin: -6px 0 22px; }
.assure span { padding: 8px 14px; border-radius: 980px; background: var(--brand-soft); color: var(--brand-deep); font-size: 14px; font-weight: 600; }
.assure span::before { content: '✓ '; }
.price-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: pc; }
.price-card:not([hidden]) { counter-increment: pc; }
.price-card .num::before { content: counter(pc, decimal-leading-zero); }
.price-card { position: relative; display: flex; flex-direction: column; padding: 22px; border: 1px solid var(--hair); border-radius: 18px; background: #fff; color: var(--ink); transition: transform .3s var(--ease), border-color .2s; }
.price-card:hover { text-decoration: none; transform: translateY(-3px); border-color: var(--brand); }
.price-card[hidden] { display: none; }
.price-card { padding: 0 0 20px; overflow: hidden; }
.price-card > :not(.pc-img) { padding-left: 20px; padding-right: 20px; }
.pc-img { position: relative; aspect-ratio: 1 / 1; background: var(--brand-soft); margin-bottom: 14px; overflow: hidden; }
.pc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.price-card:hover .pc-img img { transform: scale(1.04); }
.price-card .num { position: absolute; top: 12px; left: 12px; width: 38px; height: 38px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px; color: var(--ink); }
.price-card h3 { font-size: 18px; margin: 6px 0 12px; line-height: 1.25; }
.price-card .from { font-size: 13px; color: var(--muted); margin: 0; }
.price-card .amount { font-size: 22px; font-weight: 600; color: var(--brand); margin: 0 0 8px; letter-spacing: -0.02em; }
.price-card .amount.on-request { font-size: 18px; color: var(--ink-2); }
.price-card .amount small { font-size: 14px; font-weight: 400; color: var(--muted); }
.price-card .desc { font-size: 14px; color: var(--ink-2); margin: 0 0 12px; flex: 1; }
.price-card .more { color: var(--link); font-size: 14px; margin-top: auto; }
.price-hint { margin-top: 10px; font-size: 15px; color: var(--brand); font-weight: 600; }
/* Price list (service pages) */
.price-rows { border-top: 1px solid var(--hair); }
.price-rows a { display: flex; justify-content: space-between; gap: 16px; padding: 16px 4px; border-bottom: 1px solid var(--hair); color: var(--ink); }
.price-rows a:hover { text-decoration: none; background: var(--mist); }
.price-rows span:last-child { white-space: nowrap; font-weight: 600; color: var(--brand); }
.price-rows small { display: block; color: var(--muted); font-size: 14px; font-weight: 400; }
@media (max-width: 1020px) { .price-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) { .quick { grid-template-columns: 1fr; } .price-grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-figure .frame { transform: none !important; }
}

/* ── Responsive ───────────────────────── */
@media (max-width: 1240px) {
  .menu, .nav-actions { display: none; }
  .burger { display: block; }
  .nav.open .menu, .nav.open .nav-actions { display: flex; }
  .nav.open .wrap { flex-wrap: wrap; height: auto; padding-top: 8px; padding-bottom: 20px; }
  .nav.open .brand { height: 40px; }
  .nav.open .menu { order: 3; flex-direction: column; width: 100%; gap: 0; margin: 10px 0 0; font-size: 17px; }
  .nav.open .menu > li > a { display: block; padding: 12px 0; border-bottom: 1px solid var(--hair); }
  .nav.open .menu .drop { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; margin: 0; padding: 4px 0 8px 14px; }
  .nav.open .nav-actions { order: 4; width: 100%; padding-top: 18px; font-size: 15px; }
}
@media (max-width: 1020px) {
  .tiles, .cards { grid-template-columns: 1fr 1fr; }
  .tile.wide { grid-column: span 2; }
  .steps { grid-template-columns: 1fr 1fr 1fr; row-gap: 40px; }
  .steps.seven, .steps.six { grid-template-columns: 1fr 1fr; }
  .foot .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  section { padding: 76px 0; }
  .wrap { padding: 0 16px; }
  .hero { padding-top: 64px; }
  .hero-figure, .banner { padding: 0 16px; }
  .hero-figure .frame { aspect-ratio: 4 / 5; border-radius: 22px; }
  .banner .frame { aspect-ratio: 4 / 3; border-radius: 22px; }
  .tiles, .cards, .trust, .values, .split, .form-grid, .cat-pick, .steps, .steps.seven, .steps.six, .steps.three { grid-template-columns: 1fr; }
  .flow { flex-direction: column; align-items: flex-start; gap: 22px; }
  .flow li + li { margin-left: 0; }
  .flow li + li::before { content: '↓'; left: 18px; top: -24px; }
  .tile.wide { grid-column: auto; flex-direction: column; }
  .tile.wide .frame { height: 250px; flex: none; }
  .tile.wide .body { padding: 26px 28px 30px; }
  .split { gap: 36px; }
  .split.rev .frame { order: 0; }
  .form-card { padding: 26px 20px; border-radius: 22px; }
  .auth { grid-template-columns: 1fr; }
  .auth .art { display: none; }
  .booking { grid-template-columns: 1fr; }
  .table { display: block; overflow-x: auto; }
  .foot .cols { grid-template-columns: 1fr; }
}

/* ── Admin ───────────────────────────── */
.admin { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; background: linear-gradient(to right, #fff 232px, var(--mist) 232px); }
.admin aside { background: #fff; border-right: 1px solid var(--hair); padding: 22px 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.admin aside .brand { padding: 0 10px 24px; }
.admin aside a.item { display: flex; justify-content: space-between; padding: 9px 12px; border-radius: 9px; color: var(--ink-2); font-size: 14px; }
.admin aside a.item:hover { background: var(--mist); text-decoration: none; }
.admin aside a.item.on { background: var(--brand); color: #fff; }
.admin aside a.item .count { background: var(--brand); color: #fff; border-radius: 980px; font-size: 11px; padding: 1px 7px; }
.admin aside .group { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 18px 12px 6px; }
.admin .main { padding: 32px 36px 80px; min-width: 0; }
.admin .head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.admin h1 { font-size: 30px; }
.abox { background: #fff; border-radius: 16px; padding: 24px; border: 1px solid var(--hair); }
.abox + .abox { margin-top: 20px; }
.abox h2 { font-size: 18px; margin-bottom: 14px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
.stat { background: #fff; border-radius: 16px; padding: 20px 22px; border: 1px solid var(--hair); color: var(--ink); }
.stat:hover { text-decoration: none; border-color: var(--line); }
.stat b { display: block; font-size: 32px; letter-spacing: -0.03em; }
.stat span { color: var(--muted); font-size: 13px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.filters input, .filters select { width: auto; padding: 9px 12px; font-size: 14px; }
.admin .table { font-size: 14px; background: #fff; }
.admin .table td { padding: 12px 14px; }
.admin .table tr:hover td { background: #fafafa; }
.kv { display: grid; grid-template-columns: 170px 1fr; gap: 8px 16px; font-size: 14px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; word-break: break-word; }
.warn { background: #fff8e6; border: 1px solid #f3e1b0; color: #6b4e00; padding: 12px 16px; border-radius: 12px; font-size: 14px; margin-bottom: 18px; }
.inline-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.inline-form input[type=text] { width: auto; flex: 1; min-width: 160px; padding: 8px 12px; font-size: 14px; }
.table-scroll { overflow-x: auto; }
.price-table input[type=text], .price-table input[type=number], .price-table select { padding: 7px 10px; font-size: 14px; min-width: 0; }
.price-table td { padding: 6px 8px; vertical-align: middle; }
.price-table td:first-child { min-width: 220px; }
.price-table td:nth-child(2) { width: 120px; }
.price-table td:nth-child(4) { min-width: 240px; }
.price-table tr.off input[type=text] { color: var(--muted); }
.photos { margin-top: 16px; }
.photos summary { cursor: pointer; font-weight: 600; font-size: 14px; color: var(--brand); }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; margin-top: 12px; }
.photo-item { font-size: 13px; display: flex; flex-direction: column; gap: 6px; }
.photo-item img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 10px; background: var(--mist); }
.photo-item img.fallback { opacity: .45; }
.photo-item input[type=file] { font-size: 12px; max-width: 100%; }
.link-btn { background: none; border: 0; padding: 0; color: var(--danger); font: inherit; font-size: 12px; cursor: pointer; }
.jump { display: flex; flex-wrap: wrap; gap: 6px; margin: 20px 0; }
.jump a { padding: 6px 12px; border: 1px solid var(--line); border-radius: 980px; font-size: 13px; color: var(--ink-2); background: #fff; }
.pill-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.pill-list form { display: inline; }
.pill-list button { border: 1px solid var(--line); background: #fff; border-radius: 980px; padding: 4px 11px; font-size: 13px; cursor: pointer; color: var(--ink-2); }
.pill-list button.off { text-decoration: line-through; color: var(--muted); background: var(--mist); }
.thumb { width: 120px; height: 68px; object-fit: cover; border-radius: 8px; background: var(--mist); }
@media (max-width: 900px) {
  .admin { grid-template-columns: 1fr; background: var(--mist); }
  .admin aside { position: static; height: auto; display: flex; flex-wrap: wrap; gap: 4px; padding: 12px; }
  .admin aside .group, .admin aside .brand { display: none; }
  .admin .main { padding: 22px 16px 60px; }
  .stats, .grid2 { grid-template-columns: 1fr 1fr; }
  .kv { grid-template-columns: 1fr; }
}

/* Floating WhatsApp + Urdu buttons */
.float-wa { position: fixed; bottom: 18px; z-index: 60; display: flex; align-items: center; justify-content: center; border: 0; border-radius: 999px; box-shadow: 0 8px 24px rgba(0,0,0,.18); cursor: pointer; transition: transform .2s var(--ease); }
.float-wa { right: 18px; width: 56px; height: 56px; background: #25d366; color: #fff; }
.float-lang-group { position: fixed; left: 18px; bottom: 23px; z-index: 60; display: flex; align-items: center; gap: 8px; direction: ltr; }
.float-lang, .float-gt { display: flex; align-items: center; justify-content: center; border-radius: 999px; cursor: pointer; transition: transform .2s var(--ease), background .2s var(--ease); }
.float-lang { min-width: 64px; height: 46px; padding: 0 18px; background: var(--brand); color: #fff; font: 600 16px/1 var(--sans); border: 2px solid #fff; box-shadow: 0 8px 24px rgba(10,95,191,.35); }
.float-lang:hover { background: var(--brand-deep); color: #fff; }
.float-lang.alt { background: #fff; color: var(--brand); border-color: var(--brand); }
.float-lang.alt:hover { background: var(--brand-soft); color: var(--brand-deep); }
.float-wa:hover, .float-lang:hover, .float-gt:hover { transform: scale(1.06); text-decoration: none; }
.float-gt { width: 46px; height: 46px; padding: 0; background: #fff; color: var(--brand); border: 2px solid var(--brand); box-shadow: 0 8px 24px rgba(10,95,191,.25); }
.float-gt[aria-expanded=true] { background: var(--brand-soft); }
.gt-panel { position: absolute; left: 0; bottom: 58px; width: 250px; padding: 14px 16px 12px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 40px rgba(10,37,71,.16); font: 500 14px/1.4 'Inter', -apple-system, 'Segoe UI', sans-serif; color: var(--ink); }
.gt-panel[hidden] { display: none; }
.gt-panel p { margin: 0 0 10px; font-weight: 600; color: var(--navy); }
.gt-panel .goog-te-combo { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--mist); color: var(--ink); font: 500 14px 'Inter', sans-serif; margin: 0 !important; }
.gt-panel .goog-te-gadget { font-size: 0 !important; color: transparent !important; }
.gt-panel .goog-te-gadget > span, .gt-panel .goog-logo-link { display: none !important; }
.gt-reset { margin-top: 10px; padding: 0; border: 0; background: none; color: var(--brand); font: 500 13px 'Inter', sans-serif; cursor: pointer; }
.gt-reset:hover { text-decoration: underline; }
/* Hide Google Translate's own top banner and hover tooltips */
iframe.skiptranslate, .goog-te-banner-frame, #goog-gt-tt, .goog-te-balloon-frame, .VIpgJd-ZVi9od-ORHb-OEVmcd, .VIpgJd-ZVi9od-aZ2wEe-wOHMyf { display: none !important; }
body { top: 0 !important; }
.goog-text-highlight { background: none !important; box-shadow: none !important; }

/* ── Funeral ticker ───────────────────── */
.ticker { display: block; overflow: hidden; background: var(--navy); color: #fff; height: 38px; direction: ltr; }
.ticker:hover { text-decoration: none; }
.ticker-track { display: flex; width: max-content; height: 100%; animation: ticker 160s linear infinite; }
.ticker:hover .ticker-track, .ticker:focus .ticker-track { animation-play-state: paused; }
.ticker-run { display: flex; align-items: center; flex-shrink: 0; }
.ticker-run span { padding: 0 22px; font: 500 14px/1 'Inter', -apple-system, 'Segoe UI', sans-serif; font-weight: 500; letter-spacing: .04em; white-space: nowrap; }
.ticker-run span[lang=ur] { font: 600 17px/1 'Noto Nastaliq Urdu', 'Jameel Noori Nastaleeq', 'Urdu Typesupport', serif; letter-spacing: 0; padding-bottom: 4px; }
.ticker-run b { color: var(--brand-light); font-size: 12px; }
.ticker-run a { color: #fff; padding: 0 22px; font: 500 14px/1 'Inter', -apple-system, 'Segoe UI', sans-serif; letter-spacing: .02em; white-space: nowrap; }
.ticker-run a:hover { color: var(--brand-light); text-decoration: none; }
.ticker:hover .ticker-track, .ticker:focus-within .ticker-track { animation-play-state: paused; }
.nav-search { border-top: 1px solid var(--hair); }
.nav .nav-search .wrap { display: flex; gap: 10px; align-items: center; height: auto; padding-top: 8px; padding-bottom: 8px; max-width: 760px; flex-wrap: nowrap; }
.nav-search input { flex: 1; padding: 10px 16px; border-radius: 980px; font-size: 15px; }
.nav-search .btn { padding: 10px 20px; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation-duration: 120s; } }

/* ── Urdu (right-to-left) ─────────────── */
.ltr { direction: ltr; unicode-bidi: isolate; }
[dir=rtl] { --sans: 'Noto Nastaliq Urdu', 'Jameel Noori Nastaleeq', 'Urdu Typesupport', 'Inter', Tahoma, sans-serif; --serif: var(--sans); }
[dir=rtl] body { line-height: 2.1; letter-spacing: 0; }
[dir=rtl] h1, [dir=rtl] h2, [dir=rtl] h3, [dir=rtl] .display, [dir=rtl] .h1, [dir=rtl] .h2, [dir=rtl] .quote, [dir=rtl] .serif { line-height: 1.9; letter-spacing: 0; font-weight: 600; }
[dir=rtl] .lede, [dir=rtl] .foot .disclaimer, [dir=rtl] .foot .tagline { line-height: 2.1; letter-spacing: 0; }
[dir=rtl] .eyebrow, [dir=rtl] legend, [dir=rtl] .notice h3, [dir=rtl] .table th { letter-spacing: 0; text-transform: none; }
[dir=rtl] .menu, [dir=rtl] .nav-actions { font-size: 14px; }
[dir=rtl] .brand, [dir=rtl] .brand small, [dir=rtl] input, [dir=rtl] .float-lang, [dir=rtl] .float-lang-group { font-family: 'Inter', -apple-system, 'Segoe UI', sans-serif; }
[dir=rtl] input[type=tel], [dir=rtl] input[type=email], [dir=rtl] input[type=url] { direction: ltr; text-align: right; }
[dir=rtl] .display { font-size: clamp(32px, 5.2vw, 60px); }
[dir=rtl] .h1 { font-size: clamp(28px, 4.2vw, 46px); }
[dir=rtl] .quote { font-size: clamp(28px, 4vw, 44px); }
[dir=rtl] .arrow::after { content: ' ‹'; font-family: 'Inter', sans-serif; }
[dir=rtl] .menu .drop { left: auto; right: -18px; }
[dir=rtl] .burger { margin-left: 0; margin-right: auto; }
[dir=rtl] .trust > div { padding: 34px 0 34px 32px; }
[dir=rtl] .ticks li { padding: 9px 28px 9px 0; }
[dir=rtl] .ticks li::before { left: auto; right: 2px; }
[dir=rtl] .card li { padding: 4px 16px 4px 0; }
[dir=rtl] .card li::before { left: auto; right: 0; }
[dir=rtl] .notice { border-left: 0; border-right: 3px solid var(--brand); padding: 20px 26px 20px 24px; border-radius: 14px 0 0 14px; }
[dir=rtl] .faq summary { padding: 26px 0 26px 40px; }
[dir=rtl] .faq summary::after { right: auto; left: 4px; }
[dir=rtl] .faq details p { padding: 0 0 26px 40px; }
[dir=rtl] .check { padding-left: 0; padding-right: 28px; }
[dir=rtl] .check input { left: auto; right: 0; }
[dir=rtl] .table th { text-align: right; }
@media (max-width: 1240px) { [dir=rtl] .nav.open .menu .drop { padding: 4px 14px 8px 0; } }
@media (max-width: 760px) { .brand { font-size: 24px; gap: 10px; } .brand small { font-size: 13px; } }
a.pc-img { display: block; }
.back-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--brand); margin-bottom: 18px; }
.back-link:hover { text-decoration: underline; }
.kw-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 10px 0 0; }
.kw-list li { font-size: 13px; padding: 6px 12px; border-radius: 999px; background: var(--brand-soft); color: var(--ink-2); }
.blog-edit { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; margin-top: 16px; }
.blog-edit .abox + .abox { margin-top: 0; }
.blog-edit > div:last-child { display: grid; gap: 16px; }
.blog-edit textarea, .blog-edit input[type=text] { width: 100%; }
@media (max-width: 900px) { .blog-edit { grid-template-columns: 1fr; } }
.err { color: #c0392b; margin-top: 4px; }
.serp { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: #f7f8fa; display: grid; gap: 2px; font-family: Arial, sans-serif; }
.serp-url { font-size: 12px; color: #4d5156; }
.serp-title { font-size: 18px; color: #1a0dab; }
.serp-desc { font-size: 13px; color: #4d5156; }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.blog-card { display: flex; flex-direction: column; border: 1px solid var(--hair); border-radius: 18px; overflow: hidden; background: #fff; color: var(--ink); transition: transform .3s var(--ease), border-color .2s; }
.blog-card:hover { transform: translateY(-3px); border-color: var(--brand); }
.blog-img { aspect-ratio: 16 / 9; background: var(--brand-soft); overflow: hidden; }
.blog-img img { width: 100%; height: 100%; object-fit: cover; }
.blog-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.blog-body h2 { font-size: 20px; line-height: 1.3; letter-spacing: -0.2px; }
.blog-body .more { margin-top: auto; }
.blog-cover { width: 100%; border-radius: 20px; aspect-ratio: 16 / 9; object-fit: cover; }
.blog-content { font-size: 18px; line-height: 1.75; color: var(--ink-2); }
.blog-content h2 { font-size: 28px; color: var(--ink); margin: 34px 0 12px; line-height: 1.25; }
.blog-content h3 { font-size: 21px; color: var(--ink); margin: 26px 0 10px; }
.blog-content p { margin: 0 0 18px; }
.blog-content ul, .blog-content ol { margin: 0 0 18px 22px; }
.blog-content li { margin-bottom: 6px; }
.blog-content a { color: var(--brand); text-decoration: underline; }
@media (max-width: 900px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .blog-grid { grid-template-columns: 1fr; } }
