/* JAMHS Centenary — public site. Heritage green & gold. */
/* Bangla letters and digits: Times New Roman has none. Kalpurush is the font the PDF card uses too; its letters run small, hence size-adjust. */
@font-face { font-family: 'Kalpurush'; src: url('../fonts/kalpurush.ttf') format('truetype'); font-display: swap; size-adjust: 112%; }
:root {
    --g-950: #052219;
    --g-900: #073026;
    --g-800: #0b4a37;
    --g-700: #0f5f46;
    --g-600: #17795a;
    --g-100: #e3f0ea;
    --gold: #c9982d;
    --gold-600: #a97c18;
    --gold-300: #f3d27a;
    --gold-100: #fbf1d6;
    --cream: #fbf7ee;
    --paper: #ffffff;
    --ink: #1c2622;
    --muted: #5d6a64;
    --line: #e7e0cf;
    --radius: 18px;
    --shadow: 0 10px 30px rgba(7, 48, 38, .08), 0 2px 6px rgba(7, 48, 38, .05);
    --font: 'Times New Roman', Times, Tinos, Kalpurush, serif;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--ink); background: var(--cream); font-size: 1.02rem; line-height: 1.7; font-variant-numeric: lining-nums; }
a { color: var(--g-700); }
a:hover { color: var(--g-900); }
.text-gold { color: var(--gold) !important; }
.text-green { color: var(--g-700) !important; }
.bg-cream { background: var(--cream); }

/* ---------- buttons ---------- */
.btn { border-radius: 999px; font-weight: 600; }
.btn-gold { background: linear-gradient(135deg, var(--gold-300), var(--gold) 55%, var(--gold-600)); color: var(--g-950); border: 0; box-shadow: 0 6px 18px rgba(169, 124, 24, .28); }
.btn-gold:hover, .btn-gold:focus { color: var(--g-950); filter: brightness(1.06); box-shadow: 0 8px 22px rgba(169, 124, 24, .38); }
.btn-green { background: var(--g-700); color: #fff; border: 0; }
.btn-green:hover, .btn-green:focus { background: var(--g-800); color: #fff; }
.btn-outline-light { border-width: 1.5px; }
.btn-outline-green { border: 1.5px solid var(--g-700); color: var(--g-700); }
.btn-outline-green:hover { background: var(--g-700); color: #fff; }
.btn-bkash { background: #e2136e; color: #fff; border: 0; box-shadow: 0 8px 20px rgba(226, 19, 110, .28); }
.btn-bkash:hover, .btn-bkash:focus { background: #c70f60; color: #fff; }
.btn-lg { padding: .8rem 1.6rem; }

/* ---------- header ---------- */
.topline { background: var(--g-950); color: rgba(255, 255, 255, .78); font-size: .82rem; padding: .35rem 0; }
.site-nav { background: rgba(255, 255, 255, .94); backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--line); box-shadow: 0 2px 14px rgba(7, 48, 38, .05); }
.brand-logo { height: 52px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-family: var(--font); font-weight: 700; color: var(--g-800); font-size: 1.05rem; }
.brand-sub { font-size: .78rem; color: var(--gold-600); font-weight: 600; letter-spacing: .02em; }
.site-nav .nav-link { font-weight: 600; color: var(--ink); border-radius: 999px; padding: .4rem .9rem !important; }
.site-nav .nav-link:hover, .site-nav .nav-link.active { color: var(--g-700); background: var(--g-100); }
@media (max-width: 991.98px) {
    .site-nav .navbar-collapse { padding: .75rem 0 1rem; }
    .site-nav .btn-gold { width: 100%; margin-top: .5rem; }
}
@media (max-width: 420px) {
    .brand-name { font-size: .93rem; }
    .brand-sub { font-size: .7rem; }
    .brand-logo { height: 44px; }
}

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; color: #fff; padding: 4.5rem 0 5.5rem;
    background:
        radial-gradient(1200px 500px at 85% -10%, rgba(243, 210, 122, .18), transparent 60%),
        radial-gradient(800px 400px at -10% 110%, rgba(23, 121, 90, .55), transparent 60%),
        linear-gradient(160deg, var(--g-800), var(--g-950)); }
.hero::before { content: ''; position: absolute; inset: 0; opacity: .07; pointer-events: none;
    background-image: radial-gradient(circle at 1px 1px, #fff 1px, transparent 0); background-size: 22px 22px; }
.hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 60px; background: var(--cream);
    clip-path: polygon(0 60%, 12% 45%, 30% 70%, 50% 40%, 70% 65%, 88% 42%, 100% 58%, 100% 100%, 0 100%); }
.hero .container { position: relative; z-index: 1; }
.hero-kicker { display: inline-flex; align-items: center; gap: .5rem; background: rgba(255, 255, 255, .1); border: 1px solid rgba(243, 210, 122, .35);
    color: var(--gold-300); padding: .35rem .9rem; border-radius: 999px; font-weight: 600; font-size: .92rem; }
.hero-title { font-family: var(--font); font-weight: 700; font-size: clamp(2.4rem, 6vw, 4.4rem); line-height: 1.15; margin: 1rem 0 .4rem; }
.hero-title .years { display: block; font-family: var(--font); font-weight: 600; color: var(--gold-300); font-size: .48em; letter-spacing: .08em; margin-top: .35rem; font-variant-numeric: lining-nums tabular-nums; }
.hero-school { font-size: clamp(1.1rem, 2.4vw, 1.45rem); font-weight: 600; color: rgba(255, 255, 255, .92); }
.hero-tagline { color: rgba(255, 255, 255, .75); font-size: 1.05rem; }
.hero-chips { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.4rem 0 1.8rem; }
.hero-chip { display: inline-flex; align-items: center; gap: .5rem; background: rgba(0, 0, 0, .18); border: 1px solid rgba(255, 255, 255, .14); padding: .45rem .9rem; border-radius: 12px; font-size: .95rem; }
.hero-chip i { color: var(--gold-300); }
.hero-logo-card { display: inline-block; width: min(390px, 92%); padding: 1.5rem 1.7rem; background: #fff; border-radius: 28px; border: 3px solid var(--gold-300); box-shadow: 0 24px 50px rgba(0, 0, 0, .35); animation: float 7s ease-in-out infinite; }
.hero-logo-card img { display: block; width: 100%; height: auto; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .hero-logo-card { animation: none; } }

.countdown { display: flex; gap: .6rem; flex-wrap: wrap; }
.countdown .cd { min-width: 78px; text-align: center; background: rgba(255, 255, 255, .08); border: 1px solid rgba(243, 210, 122, .3); border-radius: 14px; padding: .5rem .4rem; }
.countdown .num { font-family: var(--font); font-size: 1.9rem; font-weight: 700; color: var(--gold-300); line-height: 1.1; }
.countdown .lbl { font-size: .78rem; color: rgba(255, 255, 255, .7); }

/* ---------- sections ---------- */
.section { padding: 4.5rem 0; }
.section-sm { padding: 3rem 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 2.6rem; }
.section-head .eyebrow { color: var(--gold-600); font-weight: 700; letter-spacing: .08em; font-size: .85rem; text-transform: uppercase; }
.section-head h2 { font-family: var(--font); font-weight: 700; color: var(--g-800); font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin: .3rem 0 .6rem; }
.section-head p { color: var(--muted); margin: 0; }
.ornament { display: flex; align-items: center; justify-content: center; gap: .6rem; color: var(--gold); margin-top: .7rem; }
.ornament::before, .ornament::after { content: ''; width: 60px; height: 1.5px; background: linear-gradient(90deg, transparent, var(--gold)); }
.ornament::after { transform: scaleX(-1); }

.card-soft { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }

/* stats */
.stats-strip { margin-top: -3.2rem; position: relative; z-index: 2; }
.stat { text-align: center; padding: 1.3rem 1rem; }
.stat .num { font-family: var(--font); font-weight: 700; font-size: 2rem; color: var(--g-700); line-height: 1.1; }
.stat .lbl { color: var(--muted); font-size: .92rem; }
.stats-strip .col + .col .stat { border-left: 1px solid var(--line); }
@media (max-width: 575.98px) { .stats-strip .col:nth-child(3) .stat { border-left: 0; } .stats-strip .col:nth-child(n+3) .stat { border-top: 1px solid var(--line); } }

/* steps */
.step { position: relative; padding: 1.8rem 1.5rem; height: 100%; }
.step .badge-num { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font); font-weight: 700; font-size: 1.35rem;
    background: linear-gradient(135deg, var(--gold-300), var(--gold)); color: var(--g-950); box-shadow: 0 6px 14px rgba(169, 124, 24, .3); margin-bottom: 1rem; }
.step h3 { font-size: 1.2rem; font-weight: 700; color: var(--g-800); }
.step p { color: var(--muted); margin: 0; }

/* fee cards */
.fee-card { position: relative; padding: 1.8rem 1.6rem 1.6rem; height: 100%; display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease; }
.fee-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(7, 48, 38, .12); }
.fee-card .name { font-family: var(--font); font-weight: 700; font-size: 1.3rem; color: var(--g-800); }
.fee-card .name-en { color: var(--muted); font-size: .85rem; }
.fee-card .price { font-family: var(--font); font-size: 2.4rem; font-weight: 700; color: var(--gold-600); line-height: 1.1; margin: 1rem 0 .2rem; }
.fee-card .price small { font-size: .95rem; color: var(--muted); font-weight: 500; }
.fee-card ul { padding-left: 0; list-style: none; margin: .8rem 0 1.2rem; color: var(--muted); font-size: .95rem; }
.fee-card li { display: flex; gap: .5rem; margin-bottom: .35rem; }
.fee-card li i { color: var(--g-600); }
.fee-card .btn { margin-top: auto; }
.fee-card.featured { border: 2px solid var(--gold); }
.fee-card.featured::before { content: 'জনপ্রিয়'; position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--gold); color: var(--g-950); font-size: .78rem; font-weight: 700; padding: .15rem .8rem; border-radius: 999px; }

/* history */
.history { background: linear-gradient(180deg, var(--paper), var(--cream)); }
.history p { font-size: 1.05rem; color: #34413b; }
.about-logo { height: 150px; width: auto; max-width: 100%; }
.fact { display: flex; gap: 1rem; align-items: flex-start; padding: 1rem 0; border-bottom: 1px dashed var(--line); }
.fact:last-child { border-bottom: 0; }
.fact .ic { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 12px; display: grid; place-items: center; background: var(--g-100); color: var(--g-700); font-size: 1.2rem; }
.fact .k { font-size: .85rem; color: var(--muted); }
.fact .v { font-weight: 700; color: var(--g-800); }
.timeline-year { font-family: var(--font); font-weight: 700; color: var(--gold-600); }

/* program */
.program { position: relative; }
.program-item { display: flex; gap: 1.2rem; padding: 1rem 1.2rem; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); margin-bottom: .75rem; align-items: center; }
.program-item .time { flex: 0 0 auto; min-width: 118px; font-weight: 700; color: var(--g-700); }
.program-item .what { font-weight: 600; }
@media (max-width: 575.98px) { .program-item { flex-direction: column; align-items: flex-start; gap: .1rem; } }

/* notices */
.notice-item { padding: 1.2rem 1.4rem; border-left: 4px solid var(--gold); }
.notice-item .date { color: var(--gold-600); font-size: .88rem; font-weight: 600; }
.notice-item h3 { font-size: 1.1rem; font-weight: 700; color: var(--g-800); margin: .2rem 0 .4rem; }
.notice-item p { color: var(--muted); margin: 0; white-space: pre-line; }

/* CTA band */
.cta-band { background: linear-gradient(135deg, var(--g-800), var(--g-950)); color: #fff; border-radius: 24px; padding: 2.6rem; position: relative; overflow: hidden; }
.cta-band::after { content: '১০০'; position: absolute; right: -10px; bottom: -60px; font-family: var(--font); font-size: 12rem; font-weight: 700; color: rgba(243, 210, 122, .08); line-height: 1; }
.cta-band h2 { font-family: var(--font); font-weight: 700; }

/* page header */
.page-head { background: linear-gradient(160deg, var(--g-800), var(--g-950)); color: #fff; padding: 2.6rem 0 3.2rem; position: relative; overflow: hidden; }
.page-head::before { content: ''; position: absolute; inset: 0; opacity: .06; background-image: radial-gradient(circle at 1px 1px, #fff 1px, transparent 0); background-size: 22px 22px; }
.page-head .container { position: relative; }
.page-head h1 { font-family: var(--font); font-weight: 700; font-size: clamp(1.6rem, 4vw, 2.3rem); margin: 0; }
.page-head p { color: rgba(255, 255, 255, .75); margin: .3rem 0 0; }
.page-body { margin-top: -1.8rem; position: relative; padding-bottom: 4rem; }

/* ---------- forms ---------- */
.form-card { padding: 1.6rem; }
@media (min-width: 768px) { .form-card { padding: 2rem 2.2rem; } }
.form-section + .form-section { margin-top: 2rem; padding-top: 1.8rem; border-top: 1px dashed var(--line); }
.form-section-title { display: flex; align-items: center; gap: .7rem; font-weight: 700; font-size: 1.15rem; color: var(--g-800); margin-bottom: 1.1rem; }
.form-section-title .n { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--g-700); color: #fff; font-size: .95rem; flex: 0 0 32px; }
.form-label { font-weight: 600; margin-bottom: .3rem; }
.form-label .en { font-weight: 500; color: var(--muted); font-size: .85em; }
.req { color: #c0392b; }
.form-control, .form-select { border-radius: 12px; padding: .6rem .85rem; border-color: #d9d3c4; }
.form-control:focus, .form-select:focus { border-color: var(--g-600); box-shadow: 0 0 0 .2rem rgba(23, 121, 90, .15); }
@media (max-width: 575.98px) { .form-control, .form-select { font-size: 16px; } }
.form-text { color: var(--muted); }

.cat-option { position: relative; display: block; cursor: pointer; height: 100%; }
.cat-option input { position: absolute; opacity: 0; pointer-events: none; }
.cat-option .box { display: block; position: relative; height: 100%; border: 2px solid var(--line); border-radius: 16px; padding: 1rem 1.1rem; background: #fff; transition: border-color .15s, box-shadow .15s, background .15s; }
.cat-option .box .t { font-weight: 700; color: var(--g-800); }
.cat-option .box .s { font-size: .82rem; color: var(--muted); }
.cat-option .box .p { font-family: var(--font); font-weight: 700; color: var(--gold-600); font-size: 1.35rem; margin-top: .3rem; }
.cat-option .box .tick { position: absolute; top: .8rem; right: .9rem; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; color: #fff; font-size: .8rem; }
.cat-option input:checked + .box { border-color: var(--g-600); background: #f4faf7; box-shadow: 0 0 0 4px rgba(23, 121, 90, .12); }
.cat-option input:checked + .box .tick { background: var(--g-600); border-color: var(--g-600); }
.cat-option input:focus-visible + .box { outline: 3px solid var(--gold-300); }

.size-pills { display: flex; flex-wrap: wrap; gap: .5rem; }
.size-pills label { cursor: pointer; }
.size-pills input { position: absolute; opacity: 0; }
.size-pills span { display: inline-block; min-width: 58px; text-align: center; padding: .45rem .8rem; border: 2px solid var(--line); border-radius: 12px; font-weight: 700; background: #fff; }
.size-pills input:checked + span { border-color: var(--g-600); background: var(--g-600); color: #fff; }
.size-pills input:focus-visible + span { outline: 3px solid var(--gold-300); }

.photo-drop { display: flex; gap: 1.2rem; align-items: center; flex-wrap: wrap; }
.photo-frame { width: 120px; height: 150px; border-radius: 14px; border: 2px dashed #cfc6b2; background: #faf8f2 center/cover no-repeat; display: grid; place-items: center; color: #a39a86; font-size: 2.2rem; flex: 0 0 120px; }
.photo-frame.has { border-style: solid; border-color: var(--g-600); font-size: 0; }

.guest-row { background: #faf8f2; border: 1px solid var(--line); border-radius: 14px; padding: .9rem; margin-bottom: .7rem; }
.guest-free { font-size: .8rem; color: var(--g-700); font-weight: 600; }

.summary { position: sticky; top: 96px; }
.summary .line { display: flex; justify-content: space-between; padding: .45rem 0; border-bottom: 1px dashed var(--line); }
.summary .total { display: flex; justify-content: space-between; align-items: baseline; padding-top: .8rem; }
.summary .total .amt { font-family: var(--font); font-size: 2rem; font-weight: 700; color: var(--g-700); }
.is-invalid-group .box { border-color: #dc3545 !important; }
.field-error { color: #c0392b; font-size: .88rem; margin-top: .3rem; }

/* ---------- status page ---------- */
.status-hero { display: flex; gap: 1.4rem; align-items: center; flex-wrap: wrap; }
.status-photo { width: 110px; height: 138px; border-radius: 14px; object-fit: cover; border: 3px solid #fff; box-shadow: var(--shadow); }
.reg-no { font-family: var(--font); font-weight: 700; font-size: 1.55rem; line-height: 1.3; color: var(--g-800); letter-spacing: .05em; font-variant-numeric: lining-nums tabular-nums; }
.kv { display: grid; grid-template-columns: minmax(120px, 34%) 1fr; gap: .45rem 1rem; }
.kv dt { color: var(--muted); font-weight: 500; }
.kv dd { margin: 0; font-weight: 600; word-break: break-word; }
@media (max-width: 480px) { .kv { grid-template-columns: 1fr; gap: 0; } .kv dd { margin-bottom: .55rem; } }
.pay-box { border: 2px solid #f5c0d8; background: linear-gradient(180deg, #fff, #fff5fa); border-radius: 18px; padding: 1.5rem; }
.pay-box .due { font-family: var(--font); font-size: 2.2rem; font-weight: 700; color: #b40f58; }
.done-box { border: 2px solid #b9dfcd; background: linear-gradient(180deg, #fff, #f1faf5); border-radius: 18px; padding: 1.5rem; }
.done-box .ic { width: 58px; height: 58px; border-radius: 50%; background: var(--g-600); color: #fff; display: grid; place-items: center; font-size: 1.8rem; }
.link-copy { font-size: .9rem; background: #f4f1e8; border-radius: 10px; padding: .5rem .7rem; word-break: break-all; }

/* verify */
.verify-card { max-width: 520px; margin: 0 auto; overflow: hidden; }
.verify-top { padding: 1.4rem; text-align: center; color: #fff; }
.verify-top.ok { background: linear-gradient(135deg, var(--g-600), var(--g-800)); }
.verify-top.bad { background: linear-gradient(135deg, #b23b3b, #7c1f1f); }
.verify-top.warn { background: linear-gradient(135deg, #c98a12, #8a5c05); }
.verify-top i { font-size: 2.6rem; }

/* footer */
.site-footer { background: var(--g-950); color: rgba(255, 255, 255, .85); padding: 3.2rem 0 1.2rem; margin-top: 2rem; }
.site-footer a { color: var(--gold-300); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-logo { height: 66px; width: auto; padding: 5px; background: #fff; border-radius: 14px; }
.footer-name { font-family: var(--font); font-weight: 700; font-size: 1.15rem; color: #fff; }
.footer-head { color: var(--gold-300); font-weight: 700; margin-bottom: .7rem; }
.footer-links li { margin-bottom: .35rem; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 2rem; padding-top: 1rem; font-size: .82rem; color: rgba(255, 255, 255, .55); }

/* bKash simulator */
.sim-wrap { max-width: 420px; margin: 2rem auto; }
.sim-head { background: #e2136e; color: #fff; border-radius: 18px 18px 0 0; padding: 1.2rem 1.4rem; }
