/* Main public website (one page: home, hostels, hostel, contact, login, sponsor). Design from Home_Final.html */
:root {
    --night: #1c0a1f; --plum: #3b0d2c; --wine: #6d1431; --ember: #b4410f; --gold: #e9b44c; --gold-2: #f6d78b;
    --cream: #fbf6ee; --ink: #24131c; --muted: #7a6670; --line: #ecdfd2; --side: 264px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Noto Sans Gujarati', 'Inter', system-ui, sans-serif; background: var(--cream); color: var(--ink); line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; }
svg.lucide { width: 18px; height: 18px; stroke-width: 1.9; }
.serif { font-family: 'Noto Serif Gujarati', serif; }

/* ===== Left side menu ===== */
.side { position: fixed; inset: 0 auto 0 0; width: var(--side); z-index: 70; display: flex; flex-direction: column; color: #fff;
    background: radial-gradient(ellipse at 20% 0%, rgba(233,180,76,.18), transparent 50%), linear-gradient(180deg, var(--night), var(--plum) 70%, var(--wine)); }
.side .brand { display: flex; align-items: center; gap: 12px; padding: 18px 18px 16px; border-bottom: 1px solid rgba(255,255,255,.08); }
.side .brand b { flex: 1; font-size: 1rem !important; line-height: 1.4 !important; }
/* Lord Shiva logo (transparent PNG) – keeps its own shape, no circle */
.deity { height: 72px; width: auto; flex-shrink: 0; display: block; filter: drop-shadow(0 0 10px rgba(56,189,248,.25)); }
.logo-pair { display: flex; justify-content: center; margin-bottom: 10px; }
.logo-pair .deity { height: 96px; filter: none; }
/* Login card: the Shiva logo has no background of its own, so it sits on a dark round badge with a gold ring */
.login-card .logo-pair { width: 120px; height: 120px; margin: 0 auto 14px; border-radius: 50%; align-items: center;
    background: radial-gradient(circle at 50% 35%, #2b2350 0%, var(--night) 62%, #0d0510 100%);
    box-shadow: 0 0 0 3px var(--gold), 0 0 0 9px rgba(233,180,76,.16), 0 18px 34px -14px rgba(28,10,31,.6); }
.login-card .logo-pair .deity { height: 92px; filter: drop-shadow(0 0 12px rgba(56,189,248,.35)); }
.side .brand b { display: block; font-family: 'Noto Serif Gujarati', serif; font-size: 1rem; line-height: 1.35; }
.side .brand small { color: var(--gold-2); font-size: .74rem; }
.side nav { padding: 18px 12px; display: flex; flex-direction: column; gap: 4px; }
.side nav a { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 14px; font-weight: 600; color: rgba(255,255,255,.78); transition: background .2s, color .2s; }
.side nav a svg { width: 21px; height: 21px; }
.side nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.side nav a.on { background: linear-gradient(90deg, rgba(233,180,76,.22), rgba(233,180,76,.04)); color: var(--gold-2); box-shadow: inset 3px 0 0 var(--gold); }
.side nav a.login { margin-top: 10px; background: linear-gradient(135deg, var(--gold-2), var(--gold) 55%, #c98a1c); color: var(--night); justify-content: center; }
.side nav a.login.on { box-shadow: 0 0 0 2px #fff3; }
.side .sp { margin: auto 14px 16px; padding: 14px; border-radius: 16px; background: rgba(255,255,255,.06); border: 1px solid rgba(233,180,76,.25); display: flex; gap: 12px; align-items: center; }
.side .sp .av { width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0; box-shadow: 0 0 0 2px var(--gold); }
.side .sp small { color: var(--gold-2); font-size: .7rem; font-weight: 700; }
.side .sp p { font-size: .76rem; line-height: 1.45; color: rgba(255,255,255,.85); }
.side .copy { padding: 0 20px 18px; font-size: .7rem; color: rgba(255,255,255,.45); }
.scrim { display: none; }

.main { margin-left: var(--side); min-height: 100vh; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 28px; }
.view { display: none; animation: fade .35s ease; }
.view.on { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Mobile app bar + bottom bar */
.appbar, .bbar { display: none; }

/* ===== Common bits ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; padding: 12px 22px; font-weight: 700; font-size: .93rem; border: 0; cursor: pointer; white-space: nowrap; transition: transform .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: linear-gradient(135deg, var(--gold-2), var(--gold) 55%, #c98a1c); color: var(--night); box-shadow: 0 8px 22px rgba(233,180,76,.35); }
.btn-line { border: 1px solid rgba(255,255,255,.45); color: #fff; background: transparent; }
.btn-wine { background: var(--wine); color: #fff; }
.btn-ghost { background: #fff; border: 1px solid var(--line); color: var(--wine); }
.title { margin-bottom: 22px; }
.title .tag { font-family: 'Inter', sans-serif; font-size: .72rem; font-weight: 700; letter-spacing: .22em; color: var(--ember); text-transform: uppercase; }
.title h2 { font-family: 'Noto Serif Gujarati', serif; font-size: clamp(1.5rem, 2.6vw, 2.1rem); color: var(--wine); line-height: 1.3; }
.title p { color: var(--muted); }
.row-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.more { display: inline-flex; align-items: center; gap: 6px; color: var(--wine); font-weight: 700; font-size: .9rem; }
section.sec { padding: 52px 0; }
.b { display: inline-block; font-size: .72rem; font-weight: 800; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.b-girl { background: #fce7f3; color: #9d174d; } .b-boy { background: #e0f2fe; color: #075985; }
.b-erp { background: #fbf0d9; color: #8a5a00; border: 1px solid var(--gold); } .b-no { background: #f4efe9; color: var(--muted); }
.b-open { background: #dcfce7; color: #166534; }
.dark { color: #fff; background: radial-gradient(ellipse at 70% 20%, rgba(233,180,76,.25), transparent 45%), radial-gradient(ellipse at 0% 100%, rgba(180,65,15,.4), transparent 50%), linear-gradient(165deg, var(--night), var(--plum) 50%, var(--wine)); position: relative; overflow: hidden; }
.dark::before { content: ""; position: absolute; inset: 0; opacity: .07; pointer-events: none; background-image: radial-gradient(circle, #fff 1px, transparent 1.5px); background-size: 26px 26px; }
.dark > * { position: relative; }

/* ===== Home ===== */
.hero { padding: 48px 0 56px; }
.hero-grid { display: grid; grid-template-columns: 300px 1fr; gap: 54px; align-items: center; }
.arch { position: relative; width: min(300px, 100%); aspect-ratio: 4 / 5; margin: 0 auto; }
.arch .frame { position: absolute; inset: 0; border-radius: 150px 150px 20px 20px; overflow: hidden; background: #2a0f1a; box-shadow: 0 0 0 2px var(--gold), 0 0 0 9px rgba(233,180,76,.12), 0 30px 60px rgba(0,0,0,.45); }
.arch .bg { position: absolute; inset: -30px; background-size: cover; background-position: center; filter: blur(20px) brightness(.7); }
.arch img { position: relative; width: 100%; height: 100%; object-fit: contain; transition: opacity .5s; }
.k2 { color: var(--gold-2); font-weight: 700; font-size: .9rem; display: inline-flex; align-items: center; gap: 10px; }
.k2::before { content: ""; width: 30px; height: 1px; background: var(--gold); }
.hero h1 { font-family: 'Noto Serif Gujarati', serif; font-size: clamp(1.5rem, 2.7vw, 2.25rem); line-height: 1.45; margin: 0; transition: opacity .25s ease, transform .25s ease; }
.hero h1.out { opacity: 0; transform: translateY(8px); }
.msg-box { min-height: calc(4 * 1.45 * clamp(1.5rem, 2.7vw, 2.25rem)); display: flex; align-items: center; margin: 12px 0 14px; }
.topic { display: inline-block; margin-left: 8px; padding: 1px 10px; border-radius: 999px; background: rgba(233,180,76,.16); border: 1px solid rgba(233,180,76,.35); font-size: .76rem; transition: opacity .25s; }
.topic.out { opacity: 0; }
.hm-dots { display: flex; gap: 7px; margin-top: 16px; }
.hm-dots button { width: 9px; height: 9px; border-radius: 99px; border: 0; padding: 0; background: rgba(255,255,255,.35); cursor: pointer; transition: width .3s, background .3s; }
.hm-dots button.on { width: 28px; background: var(--gold); }
.hero h1 em { font-style: normal; color: var(--gold-2); }
.hero .who b { color: var(--gold-2); }
.hero .who small { display: block; color: rgba(255,255,255,.6); font-size: .84rem; }
.hero .acts { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.sponsor { display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; padding: 20px 24px; margin-top: 30px; border-radius: 22px; background: #fff; border: 1px solid var(--line); box-shadow: 0 20px 50px -24px rgba(109,20,49,.35); position: relative; overflow: hidden; cursor: pointer; }
.sponsor::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: linear-gradient(var(--gold), var(--ember)); }
.sponsor .av { width: 68px; height: 68px; border-radius: 50%; box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--gold); }
.sponsor .lbl { font-size: .76rem; font-weight: 800; color: var(--ember); }
.sponsor p { color: #4a2f3b; }
.sponsor strong { color: var(--wine); font-family: 'Noto Serif Gujarati', serif; }

/* ===== Hostel cards (top 6 ERP) ===== */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: #fff; border: 1px solid var(--gold); border-radius: 22px; overflow: hidden; display: flex; flex-direction: column; cursor: pointer; transition: transform .2s, box-shadow .2s; text-align: left; }
.card:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -20px rgba(109,20,49,.45); }
.card .top { padding: 18px 20px; background: linear-gradient(150deg, var(--plum), var(--wine)); color: #fff; position: relative; overflow: hidden; min-height: 112px; }
.card .top::after { content: "ॐ"; position: absolute; right: 12px; bottom: -18px; font-size: 4.6rem; opacity: .08; line-height: 1; }
.card .top small { color: var(--gold-2); font-weight: 700; font-size: .8rem; display: flex; align-items: center; gap: 6px; }
.card .top small svg { width: 15px; height: 15px; }
.card .top h3 { font-family: 'Noto Serif Gujarati', serif; font-size: 1.08rem; line-height: 1.4; margin-top: 4px; }
.card .bd { padding: 14px 20px 16px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.badges { display: flex; gap: 6px; flex-wrap: wrap; }
.card .go { margin-top: auto; display: flex; align-items: center; justify-content: space-between; font-weight: 700; color: var(--wine); font-size: .9rem; }

/* ===== Hostels page ===== */
.page-band { padding: 34px 0 30px; }
.page-band h1 { font-family: 'Noto Serif Gujarati', serif; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.page-band p { color: rgba(255,255,255,.75); }
.filters { position: sticky; top: 0; z-index: 30; background: rgba(251,246,238,.95); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); padding: 14px 0; }
.f-row { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; }
.search { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 0 16px; height: 48px; }
.search input { border: 0; outline: 0; font: inherit; font-size: 1rem; flex: 1; background: none; min-width: 0; }
.search svg { color: var(--ember); flex-shrink: 0; }
.seg { display: inline-flex; padding: 4px; background: #fff; border: 1px solid var(--line); border-radius: 999px; }
.seg button { border: 0; background: none; padding: 9px 16px; border-radius: 999px; font-weight: 700; font-size: .88rem; color: var(--wine); cursor: pointer; min-height: 40px; }
.seg button.on { background: var(--wine); color: #fff; }
.city { height: 48px; border-radius: 999px; border: 1px solid var(--line); background: #fff; padding: 0 40px 0 16px; font: inherit; font-weight: 600; color: var(--wine); min-width: 170px;
    appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%236d1431' stroke-width='2'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.count { color: var(--muted); font-size: .86rem; margin-top: 8px; }
.sub-title { display: flex; align-items: center; gap: 10px; font-family: 'Noto Serif Gujarati', serif; font-size: 1.25rem; color: var(--wine); margin: 28px 0 14px; }
.sub-title .b { font-family: 'Inter', sans-serif; }
.list { margin-top: 22px; background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.li { display: grid; grid-template-columns: 1fr 110px 120px 150px 28px; gap: 14px; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--line); cursor: pointer; transition: background .15s; width: 100%; background: none; border-left: 0; border-right: 0; border-top: 0; text-align: left; font: inherit; color: inherit; }
.li:last-child { border-bottom: 0; }
.li:hover { background: #fdf8f1; }
.li b { display: block; font-weight: 700; }
.li small { color: var(--muted); display: flex; align-items: center; gap: 4px; }
.li small svg { width: 13px; height: 13px; }
.li .ph { color: var(--muted); font-size: .88rem; font-family: 'Inter', sans-serif; }
.li .ar { color: var(--wine); }
.list-head { display: grid; grid-template-columns: 1fr 110px 120px 150px 28px; gap: 14px; padding: 10px 20px; background: #f7efe4; font-size: .78rem; font-weight: 700; color: var(--muted); }
.none { text-align: center; color: var(--muted); padding: 36px; background: #fff; border: 1px dashed var(--line); border-radius: 20px; }

/* ===== Hostel sub page ===== */
.h-band { padding: 26px 0 28px; }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--gold-2); font-weight: 700; font-size: .9rem; margin-bottom: 14px; background: none; border: 0; cursor: pointer; }
.h-band h1 { font-family: 'Noto Serif Gujarati', serif; font-size: clamp(1.5rem, 3vw, 2.3rem); line-height: 1.3; }
.h-band p { color: rgba(255,255,255,.75); }
.h-band .badges { margin-top: 12px; }
.subnav { position: sticky; top: 0; z-index: 30; background: rgba(251,246,238,.96); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.subnav .wrap { display: flex; gap: 6px; overflow-x: auto; padding-top: 10px; padding-bottom: 10px; scrollbar-width: none; }
.subnav .wrap::-webkit-scrollbar { display: none; }
.subnav a { flex-shrink: 0; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-weight: 600; font-size: .88rem; color: var(--wine); }
.subnav a:hover { border-color: var(--gold); }
[id^="s-"] { scroll-margin-top: 70px; }
.blessing { display: grid; grid-template-columns: 250px 1fr; gap: 40px; align-items: center; padding: 34px 0 6px; }
.blessing .arch { width: 250px; }
.blessing q { quotes: none; display: block; font-family: 'Noto Serif Gujarati', serif; font-size: clamp(1.3rem, 2.4vw, 1.8rem); line-height: 1.5; color: var(--wine); margin: 8px 0 12px; }
.blessing q::before { content: "“"; color: var(--gold); }
.blessing q::after { content: "”"; color: var(--gold); }
.blessing .k2 { color: var(--ember); }
.blessing .who b { color: var(--ink); }
.blessing .who small { display: block; color: var(--muted); }
.dots { display: flex; gap: 6px; margin-top: 16px; }
.dots button { width: 9px; height: 9px; border-radius: 99px; border: 0; background: #e3cfb9; cursor: pointer; transition: width .3s; padding: 0; }
.dots button.on { width: 26px; background: var(--gold); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.box { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 24px; }
.box h3 { display: flex; align-items: center; gap: 10px; color: var(--wine); font-size: 1.12rem; margin-bottom: 12px; }
.n-item { display: block; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.n-item:last-child { border: 0; }
.n-item small { color: var(--muted); font-size: .8rem; }
.imp { display: inline-block; font-size: .7rem; font-weight: 800; background: #f43f5e; color: #fff; padding: 1px 8px; border-radius: 99px; margin-right: 6px; vertical-align: 2px; }
.tl { position: relative; padding-left: 24px; }
.tl::before { content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--gold), transparent); }
.tl div { position: relative; padding-bottom: 16px; }
.tl div::before { content: ""; position: absolute; left: -24px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(233,180,76,.25); }
.tl span { font-family: 'Inter', sans-serif; font-weight: 700; color: var(--ember); font-size: .82rem; }
.tl b { display: block; }
.tl small { color: var(--muted); }
.about { display: grid; grid-template-columns: 1.4fr 1fr; gap: 26px; align-items: center; }
.about p { color: #4a2f3b; margin-bottom: 10px; }
.mini-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mini-stats div { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px; }
.mini-stats b { display: block; font-family: 'Noto Serif Gujarati', 'Inter', serif; font-size: 1.5rem; color: var(--wine); }
.mini-stats span { color: var(--muted); font-size: .85rem; }
.fac { display: flex; flex-wrap: wrap; gap: 10px; }
.fac span { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 600; font-size: .9rem; }
.fac svg { color: var(--ember); }
.acts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.act { position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: 4 / 4; color: #fff; display: flex; flex-direction: column; justify-content: flex-end; padding: 18px; }
.act::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(28,10,31,.85)); }
.act > * { position: relative; }
.act .big { position: absolute; top: 18px; right: 18px; opacity: .35; }
.act .big svg { width: 56px; height: 56px; stroke-width: 1.2; }
.act .cat { align-self: flex-start; font-size: .72rem; font-weight: 800; padding: 3px 10px; border-radius: 99px; background: rgba(255,255,255,.18); margin-bottom: 6px; }
.act h4 { font-family: 'Noto Serif Gujarati', serif; font-size: 1.1rem; line-height: 1.35; }
.a1 { background: linear-gradient(150deg, #b4410f, #6d1431); } .a2 { background: linear-gradient(150deg, #7c3aed, #3b0d2c); } .a3 { background: linear-gradient(150deg, #0f766e, #1c0a1f); }
.adm { display: grid; grid-template-columns: 1fr 1fr; border-radius: 24px; overflow: hidden; background: #fff; border: 1px solid var(--line); }
.adm .l { padding: 30px; }
.adm .r { padding: 30px; background: linear-gradient(160deg, var(--plum), var(--wine)); color: #fff; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.steps { list-style: none; counter-reset: s; margin-top: 12px; }
.steps li { counter-increment: s; display: flex; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.steps li::before { content: counter(s, decimal-leading-zero); font-family: 'Inter', sans-serif; font-weight: 700; color: var(--gold); }
.a-btn { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 18px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); color: #fff; text-align: left; }
.a-btn .ic { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--gold); color: var(--night); flex-shrink: 0; }
.a-btn b { display: block; }
.a-btn small { color: rgba(255,255,255,.7); }
.a-btn.soon { border-style: dashed; }
.a-btn.soon .ic { background: rgba(255,255,255,.15); color: #fff; }
.don { display: grid; grid-template-columns: 1.4fr 1fr; gap: 22px; }
dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: .92rem; }
dt { color: var(--muted); }
.qr { width: 140px; height: 140px; margin: 6px auto 10px; border-radius: 12px; background: repeating-conic-gradient(var(--night) 0 25%, #fff 0 50%) 0 0 / 28px 28px; border: 9px solid #fff; box-shadow: 0 0 0 1px var(--line); }
.c-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.c-item { display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.c-item .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: #fbf0d9; color: var(--wine); flex-shrink: 0; }
.c-item b { display: block; font-size: .82rem; color: var(--muted); font-weight: 600; }
.c-acts { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.c-acts .btn { flex: 1; min-width: 140px; }
.wa { background: #16a34a; color: #fff; }
.info-card { max-width: 720px; margin: 30px auto 0; }
.notice-off { display: flex; gap: 12px; align-items: flex-start; background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412; padding: 14px 16px; border-radius: 16px; margin-bottom: 16px; font-size: .92rem; }

/* ===== Contact + login + sponsor ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 30px; }
.map { border-radius: 22px; overflow: hidden; border: 1px solid var(--line); min-height: 320px; background: #eee; }
.map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }
form .fld { margin-bottom: 14px; }
form label { display: block; font-weight: 700; font-size: .86rem; color: var(--wine); margin-bottom: 6px; }
form input, form textarea { width: 100%; border: 1px solid var(--line); border-radius: 14px; padding: 13px 14px; font: inherit; font-size: 1rem; background: #fff; outline: 0; }
form input:focus, form textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(233,180,76,.25); }
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 40px 20px; }
.login-card { position: relative; width: min(440px, 100%); background: #fff; border: 1px solid var(--line); border-radius: 26px; padding: 34px 30px; box-shadow: 0 30px 60px -30px rgba(109,20,49,.4); text-align: center; }
.login-card h2 { font-family: 'Noto Serif Gujarati', serif; color: var(--wine); font-size: 1.6rem; }
.login-card > p { color: var(--muted); margin-bottom: 22px; }
.login-card form { text-align: left; }
.pw { position: relative; }
.pw button { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--muted); cursor: pointer; padding: 6px; }
.login-card .btn { width: 100%; margin-top: 6px; padding: 14px; font-size: 1rem; }
.forgot { display: block; text-align: center; margin-top: 14px; color: var(--wine); font-weight: 600; font-size: .9rem; }
.result { display: none; margin-top: 18px; padding: 16px; border-radius: 16px; background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; text-align: left; font-size: .92rem; }
.result.err { background: #fff1f2; border-color: #fecdd3; color: #9f1239; }
.result b { display: block; font-size: 1rem; }
.sp-page { display: grid; grid-template-columns: 320px 1fr; gap: 36px; align-items: start; margin-top: 30px; }
.sp-page .photo { border-radius: 22px; overflow: hidden; border: 2px solid var(--gold); background: #2a0f1a; }
.sp-page .photo img { width: 100%; }
.mantra { background: #fbf0d9; border-left: 4px solid var(--gold); padding: 12px 16px; border-radius: 10px; color: var(--wine); font-weight: 700; font-size: 1.08rem; margin: 10px 0 14px; }

footer.ft { margin-top: 40px; padding: 26px 0 30px; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
footer.ft .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
footer.ft a { color: var(--wine); font-weight: 600; }


/* ===== Tablet ===== */
@media (max-width: 1100px) {
    .cards { grid-template-columns: repeat(2, 1fr); }
    .li, .list-head { grid-template-columns: 1fr 100px 110px 28px; }
    .li .ph, .list-head .ph { display: none; }
}

/* ===== Mobile ===== */
@media (max-width: 860px) {
    :root { --side: 280px; }
    body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
    .side { transform: translateX(-100%); transition: transform .3s ease; box-shadow: 20px 0 50px rgba(0,0,0,.35); }
    .side.open { transform: none; }
    .scrim { display: block; position: fixed; inset: 0; z-index: 65; background: rgba(28,10,31,.55); opacity: 0; pointer-events: none; transition: opacity .3s; }
    .scrim.open { opacity: 1; pointer-events: auto; }
    .main { margin-left: 0; }
    .wrap { padding: 0 16px; }
    .appbar { display: flex; align-items: center; gap: 12px; position: sticky; top: 0; z-index: 60; height: 60px; padding: 0 12px; background: var(--night); color: #fff; }
    .appbar b { font-family: 'Noto Serif Gujarati', serif; font-size: .86rem; line-height: 1.3; flex: 1; min-width: 0; text-align: center;
        display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    .appbar { gap: 8px; height: 64px; }
    .appbar .deity { height: 48px; width: auto; }
    .appbar b { text-align: left; }
    .filters, .subnav { top: 64px !important; }
    .appbar button { background: none; border: 0; color: #fff; padding: 8px; cursor: pointer; display: grid; place-items: center; }
    .appbar button svg { width: 26px; height: 26px; }
    .bbar { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--night); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); box-shadow: 0 -8px 24px rgba(0,0,0,.25); }
    .bbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; min-height: 52px; justify-content: center; color: rgba(255,255,255,.6); font-size: .72rem; font-weight: 700; border-radius: 12px; }
    .bbar a svg { width: 22px; height: 22px; }
    .bbar a.on { color: var(--gold-2); background: rgba(233,180,76,.12); }
    .filters, .subnav { top: 60px; }
    [id^="s-"] { scroll-margin-top: 124px; }

    .hero { padding: 26px 0 34px; }
    .hero-grid { grid-template-columns: 1fr; gap: 24px; text-align: center; }
    .hero-grid .arch { width: 62%; }
    .hero h1 { font-size: 1.3rem; }
    .msg-box { min-height: calc(4 * 1.45 * 1.3rem); justify-content: center; }
    .hm-dots { justify-content: center; }
    .k2 { flex-wrap: wrap; justify-content: center; }
    .k2::before { display: none; }
    .hero .acts .btn { flex: 1; }
    .sponsor { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 20px; }
    section.sec { padding: 36px 0; }

    /* phone: one card per row, full screen width, no sideways scrolling */
    .cards { grid-template-columns: 1fr; gap: 12px; }
    .card .top { min-height: 0; padding: 14px 16px; }
    .card .bd { padding: 12px 16px 14px; }

    .f-row { grid-template-columns: 1fr 1fr; }
    .f-row .search { grid-column: 1 / -1; }
    .seg { width: 100%; }
    .seg button { flex: 1; padding: 9px 8px; }
    .city { width: 100%; min-width: 0; }
    .list-head { display: none; }
    .li { grid-template-columns: 1fr auto 20px; padding: 14px 16px; gap: 10px; }
    .li .type { display: none; }
    .li .erp-col { justify-self: end; }

    .blessing { grid-template-columns: 1fr; text-align: center; justify-items: center; gap: 18px; padding-top: 26px; }
    .blessing .arch { width: 58%; }
    .blessing .dots { justify-content: center; }
    .two, .about, .adm, .don, .contact-grid, .sp-page { grid-template-columns: 1fr; }
    .acts { grid-template-columns: 1fr; gap: 12px; }
    .act { aspect-ratio: 16 / 9; }
    .c-list { grid-template-columns: 1fr; }
    .adm .l, .adm .r { padding: 22px; }
    .login-wrap { min-height: calc(100vh - 64px - 68px - env(safe-area-inset-bottom)); padding: 24px 16px; }
    .login-card { padding: 26px 20px; }
}
a[data-go] { cursor: pointer; }

/* ===== Real-data additions (ERP) ===== */
[hidden] { display: none !important; }
.subnav a, [data-jump] { cursor: pointer; }
.empty { color: var(--muted); font-size: .92rem; }
.loading { text-align: center; color: var(--muted); padding: 80px 0; }
.loading.err { color: #9f1239; }
.result.show { display: block; }
.login-card .result.show { margin: 0 0 16px; }
.f-err { color: #be123c; font-size: .8rem; font-weight: 600; margin-top: 4px; }
.toasts { position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 100; display: grid; gap: 8px; width: min(520px, calc(100% - 32px)); transition: opacity .4s, transform .4s; }
.toasts.hide { opacity: 0; transform: translate(-50%, -12px); pointer-events: none; }
.toast { padding: 12px 16px; border-radius: 14px; font-weight: 600; font-size: .92rem; box-shadow: 0 16px 40px -16px rgba(28,10,31,.5); }
.toast.good { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.toast.bad { background: #fff1f2; color: #9f1239; border: 1px solid #fecdd3; }
.n-item details summary { cursor: pointer; list-style: none; }
.n-item details summary::-webkit-details-marker { display: none; }
.n-item details summary::after { content: " ▾"; color: var(--muted); font-size: .8rem; }
.n-item details[open] summary::after { content: " ▴"; }
.n-body { margin-top: 8px; font-size: .92rem; color: #4a2f3b; }
.n-body p { margin-bottom: 6px; }
.n-file { display: inline-flex; align-items: center; gap: 6px; color: var(--wine); font-weight: 700; }
.n-file svg { width: 15px; height: 15px; }
.act.has-photo { background-size: cover; background-position: center; }
.act .when { position: relative; font-size: .78rem; opacity: .8; }
.bank { display: grid; gap: 2px; font-size: .92rem; }
.upi-qr { width: 180px; height: 180px; object-fit: contain; margin: 4px auto 10px; border-radius: 12px; border: 1px solid var(--line); background: #fff; }
.don.one, .contact-grid.one { grid-template-columns: 1fr; }
.adm-note { color: var(--muted); margin-top: 6px; }
.sp-about p { margin-top: 12px; }
.sp-points { margin: 0 0 14px 20px; display: grid; gap: 6px; }
.c-item a { color: var(--wine); font-weight: 600; word-break: break-all; }
.side .copy a, footer.ft span a { color: inherit; font-weight: 700; }

/* login background music: small speaker button in the card corner */
.sound-btn { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--wine); display: grid; place-items: center; cursor: pointer; transition: background .2s; }
.sound-btn:hover { background: #fbf0d9; }
.sound-btn[aria-pressed="false"] { color: var(--muted); }
.sound-btn svg { width: 18px; height: 18px; }

/* forgot password screens */
.login-card .forgot { display: inline-flex; align-items: center; justify-content: center; gap: 4px; width: 100%; cursor: pointer; }
.login-card .forgot + .forgot { margin-top: 6px; color: var(--muted); }
.ic-sm { width: 15px !important; height: 15px !important; }
.hint-sm { color: var(--muted); font-size: .78rem; margin-top: 4px; }
.otp-input { letter-spacing: .5em; font-family: 'Inter', sans-serif; font-weight: 700; text-align: center; }
.result.dev { background: #fffbeb; border-color: #fde68a; color: #92400e; margin: 0 0 14px; }
.otp-code { display: inline; letter-spacing: .2em; }

/* ===== Hostel home page (tabs) ===== */
.h-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.h-id { min-width: 0; }
/* right side of the title band: boys / girls + beds */
.bed-card { flex-shrink: 0; display: flex; align-items: center; gap: 14px; padding: 14px 20px 14px 14px; border-radius: 22px;
    background: rgba(255,255,255,.08); border: 1px solid rgba(233,180,76,.35); backdrop-filter: blur(6px); }
.bed-card .kid { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; color: #fff; flex-shrink: 0; box-shadow: 0 0 0 3px rgba(255,255,255,.15); }
.bed-card.girl .kid { background: linear-gradient(145deg, #f472b6, #be185d); }
.bed-card.boy .kid { background: linear-gradient(145deg, #38bdf8, #1d4ed8); }
.bed-card .kid svg { width: 40px; height: 40px; }
.bed-card .bc-txt { display: flex; flex-direction: column; line-height: 1.25; }
.bed-card b { font-family: 'Inter', sans-serif; font-size: 2rem; font-weight: 700; color: var(--gold-2); line-height: 1.1; }
.bed-card small { color: rgba(255,255,255,.8); font-size: .82rem; font-weight: 600; }
.bed-card em { font-style: normal; font-size: .76rem; font-weight: 700; margin-top: 4px; color: rgba(255,255,255,.65); }
.bed-card.girl em { color: #fbcfe8; } .bed-card.boy em { color: #bae6fd; }

.htabs { position: sticky; top: 0; z-index: 30; background: rgba(251,246,238,.97); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.htabs .wrap { display: flex; gap: 6px; overflow-x: auto; padding-top: 10px; padding-bottom: 10px; scrollbar-width: none; }
.htabs .wrap::-webkit-scrollbar { display: none; }
.htabs a { flex-shrink: 0; display: inline-flex; align-items: center; gap: 7px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-weight: 700; font-size: .9rem; color: var(--wine); cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.htabs a svg { width: 16px; height: 16px; }
.htabs a:hover { border-color: var(--gold); }
.htabs a.on { background: var(--wine); border-color: var(--wine); color: #fff; }
/* donation: highlighted (gold), at the right end */
.htabs a.don-tab { margin-left: auto; background: linear-gradient(135deg, var(--gold-2), var(--gold) 55%, #c98a1c); border-color: #c98a1c; color: var(--night); box-shadow: 0 6px 16px -6px rgba(201,138,28,.7); }
.htabs a.don-tab.on { box-shadow: 0 0 0 2px var(--wine); }

.h-hero { padding: 40px 0 46px; }
.h-hero .sl-msg em { font-style: normal; color: var(--gold-2); }   /* *word* in the blessing = gold */
.h-hero .sl-msg { font-family: 'Noto Serif Gujarati', serif; font-size: clamp(1.35rem, 2.4vw, 2rem); line-height: 1.5; }
/* fixed-height text box: the slider keeps one height; long text is made smaller by fitSlideText() in main.js */
.h-hero .msg-box { min-height: 0; height: 210px; overflow: hidden; display: flex; align-items: center; margin: 10px 0 12px; }
.h-hero .who { min-height: 3.2em; }
.sl-text, .h-hero .arch img { transition: opacity .25s ease, transform .25s ease; }
.sl-text.out { opacity: 0; transform: translateY(8px); }
.h-hero .arch img.out { opacity: 0; }

/* About section on the hostel home: full width, up to 10 lines, stats on the right */
.h-intro { padding: 46px 0 14px; }
.hi-grid { display: block; }   /* about text uses the full width */
.hi-tag { font-family: 'Inter', 'Noto Sans Gujarati', sans-serif; font-size: .78rem; font-weight: 800; letter-spacing: .16em; color: var(--ember); display: inline-flex; align-items: center; gap: 10px; }
.hi-tag::before { content: ""; width: 30px; height: 2px; background: var(--gold); }
.hi-title { font-family: 'Noto Serif Gujarati', serif; color: var(--wine); font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.3; margin: 6px 0 14px; }
.hi-text { font-size: 1.22rem; line-height: 1.8; max-height: calc(1.8em * 10); overflow: hidden; position: relative; }
.hi-text p, .hi-text div, .hi-text ul, .hi-text ol, .hi-text blockquote { margin-bottom: .45em; }
.hi-text h2, .hi-text h3, .hi-text h4 { margin: .2em 0; line-height: 1.6; }
.hi-text.cut::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3.6em; background: linear-gradient(rgba(251,246,238,0), var(--cream)); pointer-events: none; }
.hi-more { margin-top: 18px; }
.hi-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hi-stats div { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 18px; box-shadow: 0 18px 36px -28px rgba(109,20,49,.45); }
.hi-stats div:last-child:nth-child(odd) { grid-column: 1 / -1; }
.hi-stats svg { color: var(--ember); width: 22px; height: 22px; }
.hi-stats b { display: block; font-family: 'Noto Serif Gujarati', 'Inter', serif; font-size: 1.45rem; color: var(--wine); margin-top: 6px; line-height: 1.3; }
.hi-stats span { color: var(--muted); font-size: .85rem; }

.h-home { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; padding: 26px 0 10px; align-items: stretch; }
.h-home .box { display: flex; flex-direction: column; }
.h-home .more { margin-top: 14px; align-self: flex-start; cursor: pointer; }
.rt { color: #4a2f3b; }
.rt p, .rt div { margin-bottom: 10px; }
.rt h2, .rt h3, .rt h4 { font-family: 'Noto Serif Gujarati', serif; color: var(--wine); margin: 14px 0 6px; line-height: 1.35; }
.rt h2 { font-size: 1.35rem; } .rt h3 { font-size: 1.15rem; } .rt h4 { font-size: 1rem; }
.rt ul, .rt ol { margin: 0 0 10px 22px; }
.rt li { margin-bottom: 4px; }
.rt blockquote { border-left: 4px solid var(--gold); background: #fbf0d9; padding: 10px 14px; border-radius: 10px; color: var(--wine); margin: 0 0 10px; }
.rt a { color: var(--wine); font-weight: 700; text-decoration: underline; }
.rt > :first-child { margin-top: 0; }
.rt.clamp { max-height: calc(1.65em * 9); overflow: hidden; position: relative; }
.rt.clamp::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3.2em; background: linear-gradient(rgba(255,255,255,0), #fff); }
.rows { display: grid; }
.n-row, .ev-row { display: flex; align-items: center; gap: 12px; padding: 11px 6px; border-bottom: 1px dashed var(--line); cursor: pointer; border-radius: 10px; transition: background .15s; }
.n-row:last-child, .ev-row:last-child { border-bottom: 0; }
.n-row:hover, .ev-row:hover { background: #fdf8f1; }
.n-row { flex-wrap: wrap; row-gap: 2px; }
.n-row .t { flex: 1; min-width: 0; font-weight: 600; }
.n-row small { order: 3; width: 100%; color: var(--muted); font-size: .8rem; display: inline-flex; align-items: center; gap: 4px; }
.n-row .ar, .ev-row .ar { color: var(--wine); width: 16px; height: 16px; flex-shrink: 0; }
.ic-xs { width: 13px !important; height: 13px !important; }
.ev-row .dt { width: 50px; flex-shrink: 0; text-align: center; border-radius: 12px; background: #fbf0d9; border: 1px solid #f3dca8; padding: 4px 0; line-height: 1.15; }
.ev-row .dt b { display: block; font-family: 'Inter', sans-serif; font-size: 1.15rem; color: var(--wine); }
.ev-row .dt small { font-size: .7rem; font-weight: 700; color: var(--ember); }
.ev-row .tx { flex: 1; min-width: 0; }
.ev-row .tx b { display: block; font-weight: 700; line-height: 1.35; }
.ev-row .tx small { color: var(--muted); font-size: .8rem; }
.mini-seg { display: inline-flex; padding: 3px; background: #f7efe4; border-radius: 999px; margin-bottom: 8px; align-self: flex-start; }
.mini-seg button { border: 0; background: none; padding: 6px 14px; border-radius: 999px; font-weight: 700; font-size: .8rem; color: var(--muted); cursor: pointer; }
.mini-seg button.on { background: #fff; color: var(--wine); box-shadow: 0 2px 6px rgba(109,20,49,.12); }

.hp { padding-top: 28px; }
.hp-head { margin-bottom: 18px; }
.hp-head h2 { font-family: 'Noto Serif Gujarati', serif; font-size: clamp(1.4rem, 2.4vw, 1.9rem); color: var(--wine); }
.back-l { display: inline-flex; align-items: center; gap: 6px; color: var(--wine); font-weight: 700; font-size: .9rem; cursor: pointer; }
.back-l svg { width: 16px; height: 16px; }
.about.top { align-items: start; }
.sub-h { display: flex; align-items: center; gap: 8px; color: var(--wine); font-size: 1.1rem; margin: 26px 0 12px; }
.detail { max-width: 820px; }
.detail h2 { font-family: 'Noto Serif Gujarati', serif; color: var(--wine); font-size: clamp(1.3rem, 2.4vw, 1.75rem); line-height: 1.35; margin: 8px 0 6px; }
.detail .meta { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .9rem; margin-bottom: 4px; }
.detail .meta svg { width: 16px; height: 16px; color: var(--ember); }
.detail .rt { margin-top: 14px; }
.detail .btn { margin-top: 8px; }
.d-img { width: 100%; max-height: 520px; object-fit: contain; border-radius: 16px; background: #f7efe4; margin-top: 14px; }
.d-img.top { margin: 0 0 16px; }

/* ===== Main home: free ERP invitation (bottom of the page) – full width, low height ===== */
.invite { padding-top: 10px; }
.invite .inv { padding: 22px 28px; border-radius: 22px; border: 1px solid var(--gold); background: #fff; box-shadow: 0 24px 50px -34px rgba(109,20,49,.45); }
.invite .inv-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.invite .free { display: inline-block; font-family: 'Inter', sans-serif; font-size: .72rem; font-weight: 800; letter-spacing: .14em; color: #166534; background: #dcfce7; padding: 4px 12px; border-radius: 999px; }
.invite h2 { font-family: 'Noto Serif Gujarati', serif; color: var(--wine); font-size: clamp(1.3rem, 2.2vw, 1.7rem); line-height: 1.35; }
.invite p { color: #4a2f3b; margin-top: 6px; }
.inv-pts { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 26px; margin-top: 12px; }
.inv-pts li { display: flex; gap: 10px; align-items: flex-start; }
.inv-pts svg { color: #16a34a; flex-shrink: 0; margin-top: 3px; }
.invite .inv-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px 18px; flex-wrap: wrap; margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); }
.invite .inv-last { margin: 0; font-weight: 600; }
.wa-share { display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border-radius: 999px; background: #25d366; color: #fff; font-weight: 700; font-size: .9rem; box-shadow: 0 8px 18px -8px rgba(37,211,102,.8); transition: transform .15s, background .2s; }
.wa-share:hover { background: #1ebe5b; transform: translateY(-1px); }
.wa-share svg { width: 20px; height: 20px; flex-shrink: 0; }
.invite .inv-last a { color: var(--wine); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

@media (max-width: 1100px) {
    .hi-grid { grid-template-columns: 1fr; gap: 24px; }
    .hi-stats { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
    .hi-stats div:last-child:nth-child(odd) { grid-column: auto; }
}
@media (max-width: 860px) {
    .htabs { top: 64px; }
    .h-top { flex-direction: column; align-items: stretch; gap: 16px; }
    .bed-card { padding: 10px 14px 10px 10px; }
    .bed-card .kid { width: 52px; height: 52px; }
    .bed-card .kid svg { width: 32px; height: 32px; }
    .bed-card b { font-size: 1.6rem; }
    .bed-card .bc-txt { flex-direction: row; flex-wrap: wrap; align-items: baseline; column-gap: 8px; }
    .bed-card em { width: 100%; margin-top: 0; }
    .htabs a.don-tab { margin-left: 0; }
    .h-hero { padding: 24px 0 30px; }
    .h-hero .sl-msg { font-size: 1.2rem; }
    .h-hero .msg-box { height: 200px; justify-content: center; }
    .h-home { grid-template-columns: 1fr; padding-top: 20px; gap: 14px; }
    .h-intro { padding-top: 30px; }
    .hi-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
    .hi-stats div { padding: 14px; }
    .invite .inv { padding: 20px 18px; }
    .inv-pts { grid-template-columns: 1fr; }
}

/* (the wider slider photo was removed – both sliders use the original narrow arch: .hero-grid / .arch above) */

/* પરિચય text: 20% bigger on the full about page too (same size as on the hostel home) */
[data-page="about"] .rt { font-size: 1.22rem; line-height: 1.8; }

/* સુવિધાઓ (facilities) on the પરિચય page: bigger heading and chips */
[data-page="about"] .sub-h { font-size: 1.45rem; margin: 30px 0 14px; }
[data-page="about"] .sub-h svg { width: 24px; height: 24px; }
[data-page="about"] .fac { gap: 12px; }
[data-page="about"] .fac span { font-size: 1.12rem; padding: 12px 20px; gap: 10px; }
[data-page="about"] .fac svg { width: 22px; height: 22px; }

/* ===== Hostel "દાન" page: donor form -> UPI QR (amount locked) + bank details ===== */
.don-intro { margin-bottom: 20px; }
.don-intro p { color: #4a2f3b; margin-bottom: 8px; font-size: 1.05rem; }
.don2 { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.don2.one { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
.dn-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
form select { width: 100%; border: 1px solid var(--line); border-radius: 14px; padding: 13px 14px; font: inherit; font-size: 1rem; background: #fff; outline: 0; color: var(--ink); }
form select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(233,180,76,.25); }
form input[type=file] { padding: 10px; font-size: .9rem; }
.dn-amts { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.dn-amts button { border: 1px solid var(--gold); background: #fbf0d9; color: var(--wine); font-weight: 700; border-radius: 999px; padding: 6px 14px; cursor: pointer; font-family: 'Inter', sans-serif; }
.dn-amts button:hover { background: var(--gold-2); }
.dn-box .btn-gold { width: 100%; padding: 14px; font-size: 1.02rem; }
.dn-note { display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--muted); font-size: .84rem; margin-top: 10px; }
.dn-note svg { width: 15px; height: 15px; }
.dn-result { text-align: center; }
.dn-amt span { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 600; }
.dn-amt span svg { width: 15px; height: 15px; color: #16a34a; }
.dn-amt b { display: block; font-family: 'Inter', sans-serif; font-size: 2.2rem; color: var(--wine); line-height: 1.2; }
.dn-qr { width: 250px; max-width: 100%; margin: 14px auto; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 16px 36px -24px rgba(109,20,49,.5); }
.dn-qr svg { display: block; width: 100%; height: auto; }
.dn-txn { font-size: 1rem; }
.dn-txn b { font-family: 'Inter', monospace; letter-spacing: .04em; color: var(--wine); }
.dn-to { color: var(--muted); font-size: .9rem; margin-top: 4px; }
.dn-to b { color: var(--ink); }
.dn-app { margin-top: 12px; }
.dn-steps { text-align: left; margin: 16px auto 12px; max-width: 420px; padding-left: 20px; color: #4a2f3b; font-size: .92rem; display: grid; gap: 4px; }
.bank-dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; font-size: 1rem; }
.bank-dl dt { color: var(--muted); }
.bank-dl dd { font-weight: 700; color: var(--ink); word-break: break-word; }
.dn-ph { margin-top: 20px !important; }
.bank-card .fac span { font-size: .9rem; padding: 8px 14px; }
@media (max-width: 860px) {
    .don2, .dn-grid { grid-template-columns: 1fr; }
    .bank-dl { grid-template-columns: 1fr; gap: 2px; }
    .bank-dl dd { margin-bottom: 8px; }
}

/* heading card without the bed number: the "કન્યા / કુમાર છાત્રાલય" label is the main text */
.bed-card .bc-txt em:only-child { font-size: 1.05rem; margin-top: 0; }

/* heading card: "કુલ પલંગ 160 / ઉપલબ્ધ 15" */
.bed-card .bc-row { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.bed-card .bc-row small { color: rgba(255,255,255,.75); font-size: .78rem; font-weight: 600; }
.bed-card .bc-row b { font-family: 'Inter', sans-serif; font-size: 1.7rem; font-weight: 700; color: var(--gold-2); line-height: 1.1; }
.bed-card .bc-row b.av { color: #86efac; }
.bed-card .bc-sep { color: rgba(255,255,255,.4); font-size: 1.4rem; margin: 0 2px; }

/* ===== Hostel "પ્રવેશ" page: term dates, procedure, fees, rules ===== */
.adm-term { display: grid; gap: 4px; margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: #fbf0d9; color: #4a2f3b; font-size: .92rem; }
.adm-term span { display: flex; align-items: center; gap: 8px; }
.adm-term svg { width: 16px; height: 16px; color: var(--ember); flex-shrink: 0; }
.adm-term b { color: var(--wine); }
.adm-proc { margin-top: 8px; }
.adm-online { display: flex; align-items: flex-start; gap: 8px; color: rgba(255,255,255,.8); font-size: .85rem; }
.adm-online svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 3px; }
.fee-box, .rule-box { margin-top: 22px; }
.fee-table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.fee-table td { padding: 11px 6px; border-bottom: 1px dashed var(--line); vertical-align: top; }
.fee-table tr:last-child td { border-bottom: 0; }
.fee-table td small { display: block; color: var(--muted); font-size: .8rem; }
.fee-table td.amt { text-align: right; font-weight: 700; color: var(--wine); white-space: nowrap; font-family: 'Inter', 'Noto Sans Gujarati', sans-serif; }
.fee-table .b { margin-left: 6px; vertical-align: 2px; }
.rule-intro { color: #4a2f3b; margin-bottom: 12px; }
.rule-sec { border: 1px solid var(--line); border-radius: 14px; margin-bottom: 8px; background: #fff; overflow: hidden; }
.rule-sec summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 10px; padding: 12px 14px; font-weight: 700; color: var(--wine); }
.rule-sec summary::-webkit-details-marker { display: none; }
.rule-sec summary::after { content: "▾"; margin-left: auto; color: var(--muted); }
.rule-sec[open] summary::after { content: "▴"; }
.rule-sec summary .no { width: 28px; height: 28px; border-radius: 50%; background: #fbf0d9; color: var(--ember); display: grid; place-items: center; font-family: 'Inter', sans-serif; font-size: .85rem; flex-shrink: 0; }
.rule-sec summary small { color: var(--muted); font-weight: 600; font-family: 'Inter', sans-serif; }
.rule-sec ul { margin: 0 16px 14px 52px; display: grid; gap: 8px; color: #4a2f3b; }
@media (max-width: 860px) {
    .rule-sec ul { margin-left: 32px; }
    .fee-table td.amt { white-space: normal; }
}

/* પ્રવેશ page: one column (the online-application panel is removed) */
.adm.one { grid-template-columns: 1fr; }
.adm-full { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding: 10px 14px; border-radius: 12px; background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412; font-weight: 600; font-size: .92rem; }
.adm-full svg { width: 18px; height: 18px; flex-shrink: 0; }

/* rules on the પ્રવેશ page: every section always open (no expand / collapse) */
.rule-sec { border: 0; border-radius: 0; background: none; margin-bottom: 18px; overflow: visible; }
.rule-sec h4 { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; color: var(--wine); padding-bottom: 8px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.rule-sec h4 .no { width: 28px; height: 28px; border-radius: 50%; background: #fbf0d9; color: var(--ember); display: grid; place-items: center; font-family: 'Inter', sans-serif; font-size: .85rem; flex-shrink: 0; }
.rule-sec ul { margin: 0 0 0 52px; }
@media (max-width: 860px) { .rule-sec ul { margin-left: 30px; } }

/* ===== Online admission: accept rules -> form (page "apply"), done box, print again ===== */
.ap-cta { margin-top: 22px; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; border: 2px solid var(--gold); background: #fffbf0; }
.ap-accept { display: flex !important; gap: 12px; align-items: flex-start; cursor: pointer; font-size: 1.02rem; font-weight: 600; color: var(--ink) !important; line-height: 1.6; }
.ap-accept input { width: 22px !important; height: 22px; flex: none; margin-top: 3px; accent-color: var(--wine); padding: 0 !important; }
.ap-accept.shake { animation: apShake .5s; }
@keyframes apShake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
#ap-go { font-size: 1.05rem; padding: 13px 26px; }
#ap-go.off { opacity: .45; filter: grayscale(.6); box-shadow: none; cursor: not-allowed; }
.ap-find-box { margin-top: 18px; padding: 0; }
.ap-find-box summary { display: flex; align-items: center; gap: 10px; padding: 16px 24px; cursor: pointer; font-weight: 700; color: var(--wine); list-style: none; }
.ap-find-box summary::-webkit-details-marker { display: none; }
.ap-find-box form { padding: 0 24px 20px; }
.ap-find-row { display: flex; gap: 14px; align-items: flex-end; flex-wrap: wrap; }
.ap-find-row .fld { flex: 1 1 200px; margin: 0; }
.ap-find-row .btn { padding: 13px 20px; }
.ap-form { padding: 28px; }
.ap-form .ap-hp { position: absolute; left: -5000px; width: 1px; height: 1px; opacity: 0; }
.ap-term { display: flex; align-items: center; gap: 8px; color: var(--wine); margin-bottom: 4px; }
.ap-req { color: var(--muted); font-size: .88rem; margin-bottom: 18px; }
.ap-confirm { margin-top: 26px; padding: 14px 16px; background: #fbf6ee; border-radius: 12px; }
.ap-form-err { font-size: .95rem; margin-top: 12px; }
.ap-submit { margin-top: 18px; width: 100%; justify-content: center; padding: 15px; font-size: 1.1rem; }
.ap-note { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--muted); font-size: .86rem; margin-top: 12px; text-align: center; }
.ap-need p { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; font-weight: 600; }
.ap-done { text-align: center; padding: 36px 24px; }
.ap-done-ic svg.lucide { width: 64px; height: 64px; color: #2b8a3e; margin: 0 auto 10px; display: block; }
.ap-done h3 { font-family: 'Noto Serif Gujarati', serif; color: var(--wine); font-size: 1.5rem; margin-bottom: 14px; }
.ap-no { font-family: 'Inter', sans-serif; font-size: 1.9rem; font-weight: 700; letter-spacing: 1px; color: var(--ink); margin: 2px 0 10px; }
.ap-keep { color: var(--muted); }
.ap-done-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }
.ap-done-btns .btn { padding: 13px 24px; }
@media (max-width: 700px) { .ap-form { padding: 18px 14px; } .ap-done-btns .btn { width: 100%; justify-content: center; } }
