/* Bardhaman Poura Utsav – public portal
   Palette drawn from the festival logo: maroon frame, marigold, leaf green, royal blue. */
:root {
  --maroon: #8a1538; --maroon-d: #5e0d26; --marigold: #f2a900; --marigold-l: #ffe7a3;
  --leaf: #0b6b2e; --royal: #0f3d91; --pink: #d81b7a; --ivory: #fbf6ee; --paper: #fffdf8;
  --ink: #2b1d16; --muted: #6f5f55; --line: #eadfce;
  --radius: 16px;
  --font-body: 'Hind Siliguri', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Tiro Bangla', 'Noto Serif Bengali', Georgia, serif;
}
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); background: var(--ivory); color: var(--ink); font-size: 1.02rem; }
.lang-bn body, body.lang-bn { line-height: 1.7; }
a { color: var(--royal); }
h1, h2, h3, .display-font { font-family: var(--font-display); }
.skip { position: absolute; z-index: 2000; background: #fff; padding: 8px 12px; }

/* top bar + header */
.topbar { background: var(--maroon-d); color: #f6e7d8; font-size: .85rem; padding: 4px 0; }
.topbar a { color: #ffe7a3; text-decoration: none; }
.lang-switch { background: rgba(255,255,255,.12); padding: 2px 10px; border-radius: 999px; }
.site-header { background: rgba(255,253,248,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.brand-logo { border-radius: 12px; background: #fff; box-shadow: 0 2px 8px rgba(138,21,56,.15); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-bn { font-family: var(--font-display); color: var(--maroon); font-size: 1.25rem; }
.brand-text small { color: var(--muted); font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; }
.navbar .nav-link { color: var(--ink); font-weight: 500; border-radius: 8px; padding: .45rem .75rem !important; }
.navbar .nav-link:hover, .navbar .nav-link.active { color: var(--maroon); background: #f7ebe0; }
.navbar-toggler { border: 0; color: var(--maroon); }

/* buttons */
.btn-festive { background: linear-gradient(135deg, var(--maroon), var(--pink)); color: #fff; border: 0; border-radius: 999px; font-weight: 600; }
.btn-festive:hover, .btn-festive:focus { color: #fff; filter: brightness(1.08); box-shadow: 0 6px 18px rgba(138,21,56,.3); }
.btn-marigold { background: var(--marigold); color: #3a2400; border: 0; border-radius: 999px; font-weight: 600; }
.btn-marigold:hover { background: #ffbb1c; color: #3a2400; }
.btn-outline-maroon { border: 2px solid var(--maroon); color: var(--maroon); border-radius: 999px; font-weight: 600; }
.btn-outline-maroon:hover { background: var(--maroon); color: #fff; }

/* hero */
.hero { position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(circle at 85% 20%, rgba(242,169,0,.35), transparent 40%),
    radial-gradient(circle at 10% 90%, rgba(216,27,122,.35), transparent 45%),
    linear-gradient(135deg, #5e0d26 0%, #8a1538 45%, #a3204b 100%); }
.hero::before { content: ""; position: absolute; inset: 0; opacity: .18;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23fff' stroke-width='1.4'%3E%3Ccircle cx='60' cy='60' r='22'/%3E%3Ccircle cx='60' cy='60' r='34' stroke-dasharray='3 6'/%3E%3Cpath d='M60 26c8 10 8 24 0 34-8-10-8-24 0-34zM60 94c8-10 8-24 0-34-8 10-8 24 0 34zM26 60c10-8 24-8 34 0-10 8-24 8-34 0zM94 60c-10-8-24-8-34 0 10 8 24 8 34 0z'/%3E%3Ccircle cx='60' cy='60' r='4' fill='%23fff'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 120px 120px; }
.hero .container { position: relative; z-index: 1; }
.hero-kicker { display: inline-block; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); padding: 4px 14px; border-radius: 999px; font-size: .9rem; }
.hero h1 { font-size: clamp(2.3rem, 6vw, 4.2rem); line-height: 1.15; margin: .6rem 0 .3rem; text-shadow: 0 3px 18px rgba(0,0,0,.25); }
.hero .theme { font-family: var(--font-display); font-size: clamp(1.1rem, 2.4vw, 1.5rem); color: var(--marigold-l); }
.hero-logo { width: min(320px, 70vw); border-radius: 28px; background: #fff; padding: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.35); transform: rotate(-3deg); }
.hero-meta { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; margin-top: 1rem; opacity: .95; }
.countdown { display: inline-flex; gap: .5rem; margin-top: 1.2rem; background: rgba(0,0,0,.18); padding: .6rem .9rem; border-radius: 14px; align-items: center; flex-wrap: wrap; }
.countdown .cd-box { text-align: center; min-width: 54px; }
.countdown .cd-num { font-size: 1.6rem; font-weight: 700; line-height: 1; color: var(--marigold-l); }
.countdown .cd-lbl { font-size: .72rem; opacity: .85; }
.alpona-strip { height: 14px; background:
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='14'%3E%3Cpath d='M0 14 Q7 0 14 14 Q21 0 28 14' fill='%23f2a900'/%3E%3Ccircle cx='14' cy='11' r='2' fill='%238a1538'/%3E%3C/svg%3E") repeat-x; }

/* sections */
.section { padding: 64px 0; }
.section-alt { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-title { font-size: clamp(1.6rem, 3.2vw, 2.2rem); color: var(--maroon); margin-bottom: .3rem; }
.section-title + .title-flourish { width: 90px; height: 6px; margin-bottom: 1.6rem; border-radius: 999px;
  background: linear-gradient(90deg, var(--marigold) 0 33%, var(--leaf) 33% 66%, var(--royal) 66%); }
.card-soft { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 6px 24px rgba(94,13,38,.06); }

/* registration cards */
.reg-card { position: relative; overflow: hidden; height: 100%; padding: 1.6rem; }
.reg-card .ribbon { position: absolute; top: 0; left: 0; right: 0; height: 6px; }
.reg-card.moulmanch .ribbon { background: linear-gradient(90deg, var(--maroon), var(--pink)); }
.reg-card.competition .ribbon { background: linear-gradient(90deg, var(--royal), var(--leaf)); }
.reg-icon { width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; font-size: 1.7rem; color: #fff; }
.moulmanch .reg-icon { background: linear-gradient(135deg, var(--maroon), var(--pink)); }
.competition .reg-icon { background: linear-gradient(135deg, var(--royal), var(--leaf)); }
.reg-state { display: inline-flex; align-items: center; gap: .35rem; font-size: .88rem; padding: 3px 10px; border-radius: 999px; }
.reg-state.open { background: #e5f5ea; color: var(--leaf); }
.reg-state.closed { background: #fde8ea; color: #a01d2c; }
.reg-state.upcoming, .reg-state.not_configured { background: #fff3d6; color: #7a5300; }
.part-btn { display: flex; align-items: center; gap: .7rem; padding: .85rem 1rem; border: 1.5px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); background: var(--paper); transition: .15s; }
.part-btn:hover { border-color: var(--maroon); background: #fff5f0; color: var(--maroon); transform: translateY(-1px); }
.part-btn i.lead { font-size: 1.4rem; color: var(--maroon); }

/* steps list */
.steps { counter-reset: s; list-style: none; padding: 0; }
.steps li { counter-increment: s; position: relative; padding: .6rem 0 .6rem 3.2rem; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: .45rem; width: 2.2rem; height: 2.2rem; border-radius: 50%;
  background: var(--marigold); color: #3a2400; font-weight: 700; display: grid; place-items: center; }
.lang-bn .steps li::before { content: counter(s, bengali); }

/* notices / programme */
.notice-item { display: flex; gap: .9rem; padding: .9rem 0; border-bottom: 1px dashed var(--line); }
.notice-date { flex: 0 0 64px; text-align: center; background: #f7ebe0; border-radius: 12px; padding: .35rem; color: var(--maroon); line-height: 1.1; }
.notice-date b { display: block; font-size: 1.3rem; }
.prog-day { border-left: 4px solid var(--marigold); padding-left: 1rem; margin-bottom: 1.4rem; }
.prog-item { display: flex; gap: 1rem; padding: .5rem 0; border-bottom: 1px dotted var(--line); }
.prog-time { flex: 0 0 110px; color: var(--maroon); font-weight: 600; }

/* page header for inner pages */
.page-head { background: linear-gradient(135deg, #5e0d26, #8a1538); color: #fff; padding: 34px 0 30px; position: relative; overflow: hidden; }
.page-head::after { content: ""; position: absolute; inset: auto 0 0 0; height: 14px; background: inherit; }
.page-head h1 { font-size: clamp(1.5rem, 3.6vw, 2.3rem); margin: 0; }
.breadcrumb a { color: var(--marigold-l); }

/* registration wizard */
.wizard { max-width: 920px; margin: -28px auto 40px; position: relative; z-index: 2; }
.stepper { display: flex; gap: .4rem; margin-bottom: 1.2rem; overflow-x: auto; padding-bottom: 2px; }
.stepper .st { flex: 1 1 0; min-width: 96px; text-align: center; font-size: .85rem; color: var(--muted); }
.stepper .st .dot { width: 34px; height: 34px; margin: 0 auto 4px; border-radius: 50%; display: grid; place-items: center; background: #efe5d7; color: var(--muted); font-weight: 700; border: 2px solid transparent; }
.stepper .st.active .dot { background: var(--maroon); color: #fff; }
.stepper .st.done .dot { background: var(--leaf); color: #fff; }
.stepper .st.active { color: var(--maroon); font-weight: 600; }
.step-pane { display: none; }
.step-pane.active { display: block; animation: fadeUp .25s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.form-label { font-weight: 600; margin-bottom: .3rem; }
.form-label .req { color: #c62828; }
.form-control, .form-select { border-radius: 10px; border-color: #dccfbd; padding: .6rem .8rem; }
.form-control:focus, .form-select:focus { border-color: var(--maroon); box-shadow: 0 0 0 .2rem rgba(138,21,56,.15); }
.bn-input { font-family: 'Hind Siliguri', sans-serif; background: #fffaf2; }
.bn-input.edited { background: #fff; border-style: dashed; }
.translit-note { font-size: .82rem; color: var(--muted); }
.member-card { border: 1px solid var(--line); border-radius: 12px; padding: 1rem; margin-bottom: .8rem; background: var(--paper); }
.member-card .member-no { display: inline-block; background: var(--royal); color: #fff; border-radius: 999px; padding: 1px 10px; font-size: .8rem; margin-bottom: .5rem; }
.otp-box { border: 1.5px solid var(--line); border-radius: 14px; padding: 1rem; background: var(--paper); }
.otp-box.verified { border-color: var(--leaf); background: #f0faf3; }
.otp-input { letter-spacing: .5em; font-size: 1.3rem; text-align: center; font-weight: 700; max-width: 220px; }
.review-table td:first-child { width: 38%; color: var(--muted); }
.success-no { font-size: clamp(1.6rem, 5vw, 2.4rem); font-weight: 700; letter-spacing: .05em; color: var(--maroon); border: 2px dashed var(--maroon); border-radius: 14px; display: inline-block; padding: .4rem 1.2rem; background: #fff; }
.select2-container--bootstrap-5 .select2-selection { border-radius: 10px; min-height: calc(1.5em + 1.2rem + 2px); border-color: #dccfbd; }
.invalid-feedback { display: block; }

/* footer */
.site-footer { background: #2a0a15; color: #f3e6da; }
.site-footer a { color: #ffe7a3; text-decoration: none; }
.footer-title { font-family: var(--font-display); font-size: 1.3rem; }
.footer-links li { margin-bottom: .35rem; }

@media (max-width: 575.98px) {
  .section { padding: 44px 0; }
  .brand-bn { font-size: 1.05rem; }
  .wizard { margin-top: -18px; }
  .card-soft.p-4 { padding: 1.1rem !important; }
}
@media print {
  .topbar, .site-header, .site-footer, .no-print { display: none !important; }
  body { background: #fff; }
}

/* ===================================================================
   v1.1 – Mobile web app shell (installable PWA)
   =================================================================== */
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #e11d48; margin-right: 6px; vertical-align: middle; box-shadow: 0 0 0 0 rgba(225,29,72,.6); animation: livePulse 1.6s infinite; }
.live-dot.big { width: 14px; height: 14px; margin-right: 10px; }
@keyframes livePulse { 0% { box-shadow: 0 0 0 0 rgba(225,29,72,.6); } 70% { box-shadow: 0 0 0 9px rgba(225,29,72,0); } 100% { box-shadow: 0 0 0 0 rgba(225,29,72,0); } }
.live-pill { background: #e11d48; color: #fff; font-weight: 700; font-size: .75rem; border-radius: 6px; padding: 2px 8px; letter-spacing: .05em; }
.live-pill .live-dot { background: #fff; }
.live-wrap { max-width: 980px; }

/* rules */
.rules-list { padding-left: 1.4rem; font-size: 1.05rem; line-height: 1.7; }
.rules-list li { margin-bottom: .55rem; padding-left: .2rem; }
.rules-list li::marker { color: var(--maroon); font-weight: 700; }
.lang-bn .rules-list { list-style-type: bengali; }
.rules-tabs .nav-link { border-radius: 999px; color: var(--maroon); font-weight: 600; }
.rules-tabs .nav-link.active { background: var(--maroon); }
.rules-accept { border-top: 1px dashed var(--line); padding-top: 1.2rem; }

/* WhatsApp floating button */
.wa-fab { position: fixed; right: 18px; bottom: 22px; z-index: 1035; width: 54px; height: 54px; border-radius: 50%; background: #25d366; color: #fff;
  display: grid; place-items: center; font-size: 1.7rem; box-shadow: 0 8px 22px rgba(0,0,0,.25); text-decoration: none; }
.wa-fab:hover { color: #fff; transform: scale(1.05); }

/* install banner */
.install-banner { position: fixed; left: 12px; right: 12px; bottom: 16px; z-index: 1045; background: #fff; border-radius: 16px; padding: 12px;
  display: flex; gap: 12px; align-items: center; box-shadow: 0 14px 40px rgba(43,29,22,.25); border: 1px solid var(--line); max-width: 520px; margin: 0 auto; }
.install-banner img { border-radius: 12px; }

/* tile grid (phones) */
.app-tiles { padding: 18px 0 6px; background: var(--ivory); }
.tiles-title { font-weight: 700; color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; margin: 0 2px 10px; }
.tile-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.tile { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; text-decoration: none;
  background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 12px 6px; min-height: 92px; color: var(--ink); font-size: .78rem; font-weight: 600; line-height: 1.25;
  box-shadow: 0 4px 14px rgba(94,13,38,.06); transition: transform .12s; }
.tile:active { transform: scale(.96); }
.tile i { font-size: 1.55rem; color: var(--maroon); }
.tile.t-maroon, .tile.t-blue, .tile.t-green, .tile.t-gold { grid-column: span 2; flex-direction: row; justify-content: flex-start; text-align: left; padding: 14px; min-height: 84px; font-size: .95rem; color: #fff; border: 0; }
.tile.t-maroon { background: linear-gradient(135deg, var(--maroon), var(--pink)); }
.tile.t-blue { background: linear-gradient(135deg, var(--royal), #2563eb); }
.tile.t-green { background: linear-gradient(135deg, var(--leaf), #16a34a); }
.tile.t-gold { background: linear-gradient(135deg, #c27c00, var(--marigold)); }
.tile.t-maroon i, .tile.t-blue i, .tile.t-green i, .tile.t-gold i { color: #fff; font-size: 1.8rem; background: rgba(255,255,255,.18); border-radius: 12px; width: 46px; height: 46px; display: grid; place-items: center; flex: 0 0 46px; }
.tile-badge { position: absolute; left: 70px; bottom: 7px; font-style: normal; font-size: .62rem; font-weight: 500; opacity: .9; }

/* bottom tab bar */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1040; display: flex; justify-content: space-around; align-items: flex-end;
  background: rgba(255,253,248,.97); backdrop-filter: blur(10px); border-top: 1px solid var(--line);
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); box-shadow: 0 -6px 20px rgba(43,29,22,.06); }
.tabbar a, .tabbar button { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; gap: 2px; background: none; border: 0; padding: 4px 0;
  color: var(--muted); text-decoration: none; font-size: .68rem; font-weight: 600; }
.tabbar i { font-size: 1.3rem; line-height: 1; }
.tabbar .active { color: var(--maroon); }
.tabbar .active i::before { transform: scale(1.08); }
.tabbar .tab-apply i { width: 52px; height: 52px; margin-top: -26px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 1.6rem;
  background: linear-gradient(135deg, var(--maroon), var(--pink)); box-shadow: 0 8px 18px rgba(138,21,56,.35); border: 4px solid var(--ivory); }
.tabbar .tab-apply span { color: var(--maroon); }

/* bottom sheets */
.app-sheet { height: auto !important; max-height: 85vh; border-radius: 22px 22px 0 0; padding-bottom: env(safe-area-inset-bottom); }
.sheet-handle { width: 42px; height: 5px; border-radius: 99px; background: #d9cbb8; margin: 8px auto 0; }
.sheet-group { border: 1px solid var(--line); border-radius: 16px; padding: 12px; margin-bottom: 12px; background: var(--paper); }
.sheet-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; }
.sheet-group.moulmanch .sheet-ic { background: linear-gradient(135deg, var(--maroon), var(--pink)); }
.sheet-group.competition .sheet-ic { background: linear-gradient(135deg, var(--royal), var(--leaf)); }
.sheet-btn { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 10px; border-radius: 12px; background: #fff; border: 1.5px solid var(--line);
  color: var(--ink); text-decoration: none; font-weight: 700; }
.sheet-btn i { color: var(--maroon); font-size: 1.2rem; }
.sheet-btn:active { background: #fff1ea; }
.more-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.more-grid a { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; text-decoration: none; color: var(--ink); font-size: .75rem; font-weight: 600; padding: 10px 2px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); }
.more-grid i { font-size: 1.4rem; color: var(--maroon); }

/* phone layout tweaks */
.app-back, .app-lang { display: none; }
@media (max-width: 991.98px) {
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .site-header { padding-top: env(safe-area-inset-top); }
  .site-header .navbar { padding: 6px 0; }
  .brand-logo { width: 40px; height: 40px; }
  .brand-text small { display: none; }
  .app-back { display: grid; place-items: center; width: 36px; height: 36px; margin-right: 4px; color: var(--maroon); font-size: 1.3rem; text-decoration: none; }
  .app-lang { display: grid; place-items: center; min-width: 40px; height: 34px; padding: 0 10px; border-radius: 999px; background: #f7ebe0; color: var(--maroon); font-weight: 700; font-size: .8rem; text-decoration: none; }
  .wa-fab { bottom: calc(86px + env(safe-area-inset-bottom)); right: 14px; width: 48px; height: 48px; font-size: 1.45rem; }
  .install-banner { bottom: calc(84px + env(safe-area-inset-bottom)); }
  .page-index .hero .container { padding-top: 1.6rem !important; padding-bottom: 1.4rem !important; }
  .page-index .hero h1 { font-size: 2rem; }
  .page-index .hero .row { --bs-gutter-y: 1rem; }
  .page-index .reg-section { padding-top: 32px; }
  .site-footer .container { padding-top: 2rem !important; padding-bottom: 1.5rem !important; }
  .page-head { padding: 22px 0 26px; }
}
@media (max-width: 380px) {
  .tile-grid { gap: 8px; }
  .tile { font-size: .7rem; min-height: 84px; }
  .more-grid { grid-template-columns: repeat(3, 1fr); }
}
/* running as installed app: hide website-only chrome */
@media (display-mode: standalone) {
  .install-btn, .install-banner { display: none !important; }
}

@media (min-width: 992px) { .live-card { max-width: 900px; margin: 0 auto; } }
