/* Ilm-e-rah — design system (Oct 2026; 25 Oct: app jaisa halka theme — safed/grey, mulaayam hara) */
:root {
    --deep: #0B6B50;
    --green: #16916B;
    --green2: #22A67B;
    --mint: #E7F6EF;
    --gold: #D9A63A;
    --gold-soft: #F6E3B0;
    --cream: #F3F4F6;
    --paper: #FFFFFF;
    --ink: #1F2937;
    --muted: #6B7280;
    --line: #E5E7EB;
    --red: #C0392B;
    --radius: 18px;
    --shadow: 0 1px 2px rgba(10, 51, 36, .04), 0 6px 20px rgba(10, 51, 36, .06);
    --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.07' stroke-width='1'%3E%3Cpath d='M28 4l7 17 17 7-17 7-7 17-7-17-17-7 17-7z'/%3E%3Cpath d='M28 14l4 10 10 4-10 4-4 10-4-10-10-4 10-4z'/%3E%3C/g%3E%3C/svg%3E");
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: 'Noto Sans Devanagari', system-ui, sans-serif; background: var(--cream); color: var(--ink); line-height: 1.55; padding-bottom: 84px; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.display { font-family: 'Tiro Devanagari Hindi', 'Noto Sans Devanagari', serif; font-weight: 400; letter-spacing: -.2px; }
.arabic { font-family: 'Amiri', serif; direction: rtl; }

.container { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 560px; margin: 0 auto; padding: 0 16px; }

/* ---------- Header ---------- */
.ilm-header { position: sticky; top: 0; z-index: 400; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.ilm-header .ilm-bar { display: flex; align-items: center; justify-content: space-between; height: 58px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 18px; color: var(--deep); }
.brand-mark { width: 32px; height: 32px; border-radius: 10px; background: linear-gradient(140deg, var(--green), var(--deep)); display: grid; place-items: center; color: var(--gold-soft); font-size: 16px; }
.brand small { display: block; font-size: 10.5px; font-weight: 600; color: var(--gold); letter-spacing: .3px; margin-top: -3px; }
.nav-links { display: none; gap: 22px; font-size: 14px; font-weight: 600; color: var(--muted); }
.nav-links a:hover, .nav-links a.on { color: var(--green); }
.head-actions { display: flex; align-items: center; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-size: 13px; font-weight: 700; white-space: nowrap; }
.chip.streak { color: #B5620F; }
@media (min-width: 900px) { .nav-links { display: flex; } }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 22px; border-radius: 14px; font-weight: 800; font-size: 15.5px; border: none; cursor: pointer; font-family: inherit; transition: transform .08s ease, box-shadow .15s ease; text-align: center; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 6px 18px rgba(18, 124, 68, .28); }
.btn-gold { background: linear-gradient(180deg, #E6B84B, var(--gold)); color: #2E1F00; box-shadow: 0 6px 18px rgba(217, 166, 58, .32); }
.btn-ghost { background: rgba(255,255,255,.12); color: #fff; border: 1.5px solid rgba(255,255,255,.35); }
.btn-soft { background: var(--mint); color: var(--green); }
.btn-block { display: flex; width: 100%; }

/* ---------- Cards & sections ---------- */
.card { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid rgba(236, 229, 212, .7); }
.section { padding: 34px 0 6px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .6px; color: var(--gold); text-transform: uppercase; }
.section h2 { font-size: 23px; line-height: 1.3; color: var(--deep); }
.section .sub { color: var(--muted); font-size: 14px; margin-top: 4px; }
.link-more { font-size: 13.5px; font-weight: 700; color: var(--green); white-space: nowrap; }
.muted { color: var(--muted); }

/* ---------- Progress ---------- */
.progress { height: 10px; border-radius: 99px; background: #E9E3D2; overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--gold), #F1CF7B); }

/* ---------- Footer ---------- */
.ilm-footer { margin-top: 40px; background: var(--deep); background-image: var(--pattern); color: rgba(255,255,255,.78); padding: 30px 0 26px; font-size: 13px; }
.ilm-footer .brand { color: #fff; }
.ilm-footer .links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 14px; }
.ilm-footer .links a:hover { color: #fff; }
.ilm-footer .small { margin-top: 14px; font-size: 12px; opacity: .7; }
