/* ============================================================
   Jainism Thinker — Theme
   Palette from logo: Saffron Orange #F58220 · Sky Blue #29ABE2 · Navy #1B2653
   ============================================================ */
:root {
  --saffron: #F58220;
  --saffron-dark: #d96b0c;
  --sky: #29ABE2;
  --sky-dark: #1b8fc2;
  --navy: #1B2653;
  --cream: #FFF8EF;
  --cream-2: #FDF3E3;
  --ink: #2b2b2b;
  --muted: #6b6f7e;
  --line: #f0e2cf;
  --radius: 14px;
  --shadow: 0 4px 18px rgba(27, 38, 83, .08);
  --font: 'Poppins', system-ui, sans-serif;
  --font-dev: 'Tiro Devanagari Hindi', serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--font); color: var(--ink); background: var(--cream); line-height: 1.6; }
img { max-width: 100%; }
a { color: var(--sky-dark); text-decoration: none; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 18px; }
h1,h2,h3,h4 { color: var(--navy); line-height: 1.3; }
.hindi, .devanagari { font-family: var(--font-dev); }

/* ---------- Top bar ---------- */
.topbar { background: var(--navy); color: #fff; font-size: 13px; }
.topbar-in { display: flex; justify-content: space-between; align-items: center; padding: 6px 18px; flex-wrap: wrap; gap: 6px; }
.topbar a { color: #ffd9ad; margin-left: 14px; }
.topbar-mantra { font-family: var(--font-dev); letter-spacing: .3px; }

/* ---------- Header / nav ---------- */
.site-header { background: #fff; box-shadow: var(--shadow); position: sticky; top: 0; z-index: 100; }
.header-in { display: flex; align-items: center; justify-content: space-between; padding: 6px 18px; gap: 14px; }
.brand { display: flex; align-items: center; }
.brand img { height: 72px; transition: transform .25s; }
.brand img:hover { transform: scale(1.04); }
.main-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.main-nav > a, .dropdown > a { color: var(--navy); font-weight: 500; font-size: 14.5px; padding: 8px 11px; border-radius: 8px; display: block; }
.main-nav > a:hover, .dropdown > a:hover, .main-nav > a.active, .dropdown.active > a { background: var(--cream-2); color: var(--saffron-dark); }
.dropdown { position: relative; }
.dropdown-menu { display: none; position: absolute; top: 100%; left: 0; background: #fff; min-width: 180px; box-shadow: var(--shadow); border-radius: 10px; overflow: hidden; }
.dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a { display: block; padding: 10px 16px; color: var(--navy); font-size: 14px; }
.dropdown-menu a:hover { background: var(--cream-2); color: var(--saffron-dark); }
.btn-donate { background: var(--saffron); color: #fff !important; border-radius: 25px; padding: 9px 20px !important; font-weight: 600; }
.btn-donate:hover { background: var(--saffron-dark) !important; }
.nav-toggle { display: none; font-size: 26px; background: none; border: 0; color: var(--navy); cursor: pointer; }

/* ---------- Buttons / badges ---------- */
.btn { display: inline-block; padding: 11px 26px; border-radius: 26px; font-weight: 600; font-size: 15px; border: 0; cursor: pointer; transition: .2s; font-family: var(--font); }
.btn-primary { background: var(--saffron); color: #fff; }
.btn-primary:hover { background: var(--saffron-dark); }
.btn-secondary { background: var(--sky); color: #fff; }
.btn-secondary:hover { background: var(--sky-dark); }
.btn-outline { background: transparent; color: var(--navy); border: 2px solid var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-sm { padding: 7px 16px; font-size: 13px; }
.badge { display: inline-block; font-size: 11.5px; font-weight: 600; padding: 3px 11px; border-radius: 12px; }
.badge-saffron { background: #fdebd9; color: var(--saffron-dark); }
.badge-sky { background: #e2f4fc; color: var(--sky-dark); }
.badge-navy { background: #e7eaf6; color: var(--navy); }

/* ---------- Alerts ---------- */
.alert { max-width: 1180px; margin: 14px auto 0; padding: 12px 20px; border-radius: 10px; font-size: 14.5px; }
.alert-success { background: #e6f7ea; color: #1d7a35; border: 1px solid #bfe7c9; }
.alert-error { background: #fdeaea; color: #b3261e; border: 1px solid #f3c4c1; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(ellipse 900px 500px at 15% -10%, rgba(245,130,32,.28), transparent 60%),
    radial-gradient(ellipse 700px 450px at 95% 110%, rgba(41,171,226,.30), transparent 60%),
    linear-gradient(135deg, #131c40 0%, var(--navy) 45%, #173a6b 100%);
  color: #fff; padding: 70px 0 86px; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .35;
  background-image: radial-gradient(rgba(255,255,255,.10) 1px, transparent 1.5px);
  background-size: 26px 26px;
}
.hero::after { content: 'ॐ'; position: absolute; right: -20px; top: -50px; font-size: 320px; opacity: .06; font-family: var(--font-dev); color: #ffc107; }
.hero-in { display: grid; grid-template-columns: 1.15fr .85fr; gap: 44px; align-items: center; position: relative; }
.hero-center { text-align: center; padding: 84px 0 92px; }
.hero-center h1 { font-size: 44px; max-width: 880px; margin: 0 auto 18px; }
.hero-center p.lead { margin: 0 auto 30px; max-width: 720px; }
.hero-center .hero-actions { justify-content: center; }
.hero h1 { color: #fff; font-size: 42px; margin-bottom: 16px; letter-spacing: .3px; }
.hero h1 span { background: linear-gradient(90deg, #ffc107, #ff9a3d); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .mantra {
  display: inline-block; font-family: var(--font-dev); color: #ffd9ad; font-size: 19px;
  border: 1px solid rgba(255,217,173,.4); border-radius: 30px; padding: 7px 22px; margin-bottom: 18px;
  background: rgba(255,255,255,.06); backdrop-filter: blur(4px);
}
.hero p.lead { color: #d7dfff; font-size: 16px; margin-bottom: 28px; max-width: 560px; line-height: 1.8; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-actions .btn { box-shadow: 0 8px 24px rgba(0,0,0,.25); }

/* Hero stats */
.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 44px; position: relative; }
.hero-stats .hs {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 14px;
  padding: 14px 10px; text-align: center; backdrop-filter: blur(6px);
}
.hero-stats .hs b { display: block; font-size: 24px; color: #ffc107; }
.hero-stats .hs span { font-size: 12px; color: #c9d2ef; letter-spacing: .4px; }

/* Mantra strip */
.mantra-strip {
  background: linear-gradient(90deg, var(--saffron-dark), var(--saffron) 50%, #ff9a3d);
  color: #fff; text-align: center; padding: 26px 18px; position: relative; overflow: hidden;
}
.mantra-strip::before { content: '🪷'; position: absolute; left: 4%; top: 50%; transform: translateY(-50%); font-size: 44px; opacity: .35; }
.mantra-strip::after { content: '🪷'; position: absolute; right: 4%; top: 50%; transform: translateY(-50%); font-size: 44px; opacity: .35; }
.mantra-strip .m1 { font-family: var(--font-dev); font-size: 22px; letter-spacing: 1px; text-shadow: 0 2px 8px rgba(0,0,0,.18); }
.mantra-strip .m2 { font-size: 12.5px; opacity: .9; margin-top: 4px; letter-spacing: 2px; text-transform: uppercase; }

/* Tithi card in hero */
.tithi-card { background: #fff; color: var(--ink); border-radius: 18px; box-shadow: 0 24px 60px rgba(0,0,0,.35); overflow: hidden; transform: rotate(.4deg); }
.tithi-card .tc-head { background: linear-gradient(90deg, var(--saffron-dark), var(--saffron)); color: #fff; padding: 13px 20px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
.tithi-card .tc-body { padding: 18px 20px; }
.tithi-card .tc-item { padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 14.5px; display: flex; gap: 10px; align-items: baseline; }
.tithi-card .tc-item:last-child { border-bottom: 0; }
.tithi-card .tc-date { color: var(--saffron-dark); font-weight: 600; white-space: nowrap; font-size: 13px; }

/* ---------- Sections ---------- */
.section { padding: 54px 0; }
.section-alt { background: #fff; }
.section-head { text-align: center; margin-bottom: 34px; }
.section-head h2 { font-size: 30px; }
.section-head h2 em { color: var(--saffron); font-style: normal; }
.section-head p { color: var(--muted); max-width: 640px; margin: 8px auto 0; }
.section-head .rule {
  width: 160px; height: 14px; margin: 10px auto 0; position: relative; background: none;
}
.section-head .rule::before {
  content: ''; position: absolute; top: 6px; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--saffron) 30%, var(--saffron) 70%, transparent);
}
.section-head .rule::after {
  content: '🪷'; position: absolute; top: -4px; left: 50%; transform: translateX(-50%);
  font-size: 15px; background: inherit; padding: 0 6px;
}

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; transition: transform .25s, box-shadow .25s; position: relative; }
.card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--saffron), var(--sky)); opacity: 0; transition: opacity .25s; z-index: 1; }
.card:hover { transform: translateY(-6px); box-shadow: 0 16px 36px rgba(27, 38, 83, .16); }
.card:hover::before { opacity: 1; }
.card-body { padding: 18px; }
.card h3 { font-size: 17px; margin-bottom: 6px; }
.card p { font-size: 14px; color: var(--muted); }
.card .thumb { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; background: var(--cream-2); }
.card .thumb-tall { aspect-ratio: 9/16; max-height: 330px; }
.card-meta { font-size: 12.5px; color: var(--muted); margin-top: 8px; display: flex; justify-content: space-between; align-items: center; }

/* Video cards */
.video-card { position: relative; }
.video-card .play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 46px; color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.6); opacity: 0; transition: .2s; }
.video-card:hover .play { opacity: 1; }

/* Bhakti list */
.bhakti-cats { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 30px; }
.bhakti-cats a { background: #fff; border: 1.5px solid var(--line); padding: 8px 20px; border-radius: 22px; color: var(--navy); font-size: 14px; font-weight: 500; }
.bhakti-cats a.active, .bhakti-cats a:hover { background: var(--saffron); border-color: var(--saffron); color: #fff; }
.bhakti-item { display: flex; justify-content: space-between; align-items: center; background: #fff; border-radius: 12px; padding: 16px 22px; box-shadow: var(--shadow); margin-bottom: 12px; gap: 14px; }
.bhakti-item h3 { font-size: 16.5px; }
.bhakti-item .sub { color: var(--muted); font-size: 13px; }

/* Content reading view */
.read-wrap { max-width: 820px; margin: 0 auto; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 42px 48px; }
.read-wrap h1 { font-size: 27px; margin-bottom: 6px; }
.read-meta { color: var(--muted); font-size: 13.5px; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 2px solid var(--cream-2); }
.read-content { font-size: 17px; line-height: 2; white-space: pre-wrap; font-family: var(--font-dev); color: #333; }
.read-tools { display: flex; gap: 10px; margin-bottom: 18px; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
table.site-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.site-table th { background: var(--navy); color: #fff; text-align: left; padding: 12px 16px; font-weight: 600; }
.site-table td { padding: 11px 16px; border-bottom: 1px solid #f2ede2; }
.site-table tr:hover td { background: var(--cream); }

/* ---------- Forms ---------- */
.form-card { max-width: 560px; margin: 0 auto; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 36px; }
.form-card.wide { max-width: 760px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13.5px; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 11px 14px; border: 1.5px solid #e3dccb; border-radius: 10px; font-family: var(--font); font-size: 14.5px; background: #fffdf9;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--sky); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ---------- Panchang calendar ---------- */
.cal-nav { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.cal-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-grid .dow { text-align: center; font-weight: 600; color: var(--navy); font-size: 13px; padding: 6px 0; }
.cal-cell { background: #fff; min-height: 86px; border-radius: 10px; padding: 7px 9px; font-size: 12px; box-shadow: 0 1px 4px rgba(27,38,83,.06); }
.cal-cell .dnum { font-weight: 600; color: var(--muted); font-size: 13px; }
.cal-cell.today { outline: 2px solid var(--saffron); }
.cal-cell.empty { background: transparent; box-shadow: none; }
.cal-ev { display: block; margin-top: 4px; padding: 2px 7px; border-radius: 7px; font-size: 11px; line-height: 1.4; }
.cal-ev.kalyanak { background: #fdebd9; color: var(--saffron-dark); }
.cal-ev.parva { background: #e2f4fc; color: var(--sky-dark); }
.cal-ev.tithi { background: #e7eaf6; color: var(--navy); }
/* on small screens the 7-column grid scrolls sideways (inside .cal-scroll) instead of clipping */
@media (max-width: 720px) { .cal-grid { min-width: 680px; } }

/* ---------- Donation / membership ---------- */
.purpose-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 28px; }
.purpose-card { background: #fff; border: 2px solid var(--line); border-radius: var(--radius); padding: 24px; text-align: center; cursor: pointer; transition: .2s; }
.purpose-card.selected, .purpose-card:hover { border-color: var(--saffron); background: #fffaf3; }
.purpose-card .ico { font-size: 34px; }
.plan-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 30px; text-align: center; position: relative; }
.plan-card .price { font-size: 34px; color: var(--saffron-dark); font-weight: 700; margin: 10px 0; }
.plan-card ul { list-style: none; margin: 16px 0 22px; text-align: left; }
.plan-card li { padding: 7px 0 7px 26px; position: relative; font-size: 14px; color: #444; border-bottom: 1px dashed var(--line); }
.plan-card li::before { content: '✔'; position: absolute; left: 0; color: var(--sky-dark); }

/* ---------- Thinkers / team ---------- */
.person-card { text-align: center; }
.person-card .avatar { width: 130px; height: 130px; border-radius: 50%; object-fit: cover; margin: 24px auto 0; border: 4px solid var(--cream-2); background: var(--cream-2); display:flex; align-items:center; justify-content:center; font-size: 44px; }
.person-card h3 { margin-top: 14px; }
.person-card .role { color: var(--saffron-dark); font-size: 13.5px; font-weight: 600; }
.person-card .loc { color: var(--muted); font-size: 13px; }

/* ---------- Quiz take form (autosave + progress) ---------- */
.quiz-autosave { background:#e8f5ec; border:1px solid #b9e3c6; color:#1d7a35; border-radius:10px; padding:11px 15px; font-size:13.5px; line-height:1.7; margin-bottom:18px; }
.quiz-qhead { display:flex; align-items:center; justify-content:space-between; gap:14px; flex-wrap:wrap; margin-bottom:6px; }
.quiz-prog { display:flex; align-items:center; gap:10px; flex:1; max-width:320px; }
.quiz-prog-bar { flex:1; height:9px; background:#eceff6; border-radius:50px; overflow:hidden; }
.quiz-prog-bar span { display:block; height:100%; width:0; background:linear-gradient(90deg,var(--saffron),#f7a24d); border-radius:50px; transition:width .3s; }
.quiz-prog-txt { font-size:13px; font-weight:600; color:var(--navy); white-space:nowrap; }
.quiz-q { margin:16px 0; padding:14px 14px 8px; border:1.5px solid var(--line); border-radius:12px; transition:border-color .2s, background .2s; }
.quiz-q.answered { border-color:#b9e3c6; background:#f5fbf7; }
.quiz-q-text { font-weight:600; margin-bottom:10px; display:flex; gap:8px; align-items:flex-start; line-height:1.6; }
.quiz-q-num { flex-shrink:0; width:26px; height:26px; background:var(--navy); color:#fff; border-radius:50%; font-size:12.5px; display:flex; align-items:center; justify-content:center; font-weight:700; }
.quiz-q.answered .quiz-q-num { background:#1d7a35; }
.quiz-opt { display:flex; align-items:center; gap:10px; padding:9px 13px; margin:6px 0; border:1.5px solid #e3dccb; border-radius:9px; cursor:pointer; font-weight:400; transition:border-color .15s, background .15s; }
.quiz-opt:hover { border-color:var(--saffron); background:#fff8ee; }
.quiz-opt input { width:18px; height:18px; margin:0; accent-color:var(--saffron); flex-shrink:0; }
.quiz-opt input:checked + span { font-weight:600; color:var(--navy); }
.quiz-pill { position:fixed; bottom:18px; right:18px; background:var(--navy); color:#fff; font-size:14px; font-weight:600; padding:10px 18px; border-radius:50px; box-shadow:0 6px 18px rgba(27,38,83,.3); z-index:80; }
.quiz-pill.done { background:#1d7a35; }
.quiz-pill b { color:var(--saffron); }
.quiz-pill.done b { color:#bfffb0; }
@media (max-width:600px){ .quiz-pill { bottom:12px; right:12px; font-size:12.5px; padding:8px 14px; } }

/* ---------- Bhakti smart search ---------- */
.bhakti-search-box { position:relative; flex:1; }
.bhakti-search-box input { width:100%; padding:11px 38px 11px 16px; border:1.5px solid #e3dccb; border-radius:24px; }
.bhakti-search-box input:focus { outline:none; border-color:var(--saffron); box-shadow:0 0 0 3px rgba(245,130,32,.12); }
.bhakti-spinner { position:absolute; right:14px; top:50%; width:16px; height:16px; margin-top:-8px; border:2px solid #e3dccb; border-top-color:var(--saffron); border-radius:50%; opacity:0; transition:opacity .15s; }
.bhakti-spinner.on { opacity:1; animation:bspin .6s linear infinite; }
@keyframes bspin { to { transform:rotate(360deg); } }
.bhakti-count { text-align:center; color:var(--muted); font-size:13px; margin-bottom:14px; }
.bhakti-snippet { color:#6b6b6b; font-size:13.5px; line-height:1.7; margin:3px 0 2px; }
#bhaktiResults mark { background:#ffe7a3; color:inherit; padding:0 2px; border-radius:3px; }
#bhaktiResults { transition:opacity .12s; }

/* ---------- Pratiyogita / Quiz ---------- */
.quiz-empty { text-align:center; padding:50px 0; color:var(--muted); }
.quiz-empty p { margin-top:12px; }

.quiz-list { display:grid; grid-template-columns:repeat(2,1fr); gap:24px; max-width:920px; margin:0 auto; }
.quiz-list.single { grid-template-columns:1fr; max-width:560px; }

.quiz-card { background:#fff; border-radius:18px; overflow:hidden; box-shadow:0 6px 24px rgba(27,38,83,.1); border:1px solid var(--line); transition:transform .2s, box-shadow .2s; display:flex; flex-direction:column; }
.quiz-card:hover { transform:translateY(-4px); box-shadow:0 14px 36px rgba(27,38,83,.16); }
.quiz-thumb { position:relative; aspect-ratio:16/9; background:#eef1f8; overflow:hidden; }
.quiz-thumb img { width:100%; height:100%; object-fit:cover; display:block; transition:transform .35s; }
.quiz-card:hover .quiz-thumb img { transform:scale(1.05); }
.quiz-prize-tag.float { position:absolute; top:12px; right:12px; box-shadow:0 2px 10px rgba(0,0,0,.25); }
.quiz-card-head { background:linear-gradient(120deg,var(--navy),#2a3a78); padding:16px 22px; display:flex; align-items:center; justify-content:space-between; gap:10px; flex-wrap:wrap; }
.quiz-status { font-size:12.5px; font-weight:600; color:#fff; display:inline-flex; align-items:center; gap:6px; }
.quiz-status.live { color:#7CFFB2; }
.quiz-status.closed { color:#ffb3b3; }
.quiz-prize-tag { background:var(--saffron); color:#fff; font-size:12px; font-weight:700; padding:5px 12px; border-radius:50px; white-space:nowrap; }

.quiz-card-body { padding:22px; display:flex; flex-direction:column; flex:1; }
.quiz-card-body h3 { font-size:21px; color:var(--navy); line-height:1.35; margin-bottom:10px; }
.quiz-desc { color:#555; font-size:14px; line-height:1.85; margin-bottom:18px; }

.quiz-stats { display:flex; gap:10px; margin-bottom:22px; flex-wrap:wrap; }
.qstat { flex:1; min-width:84px; background:#f7f9fd; border:1px solid var(--line); border-radius:12px; padding:12px 8px; text-align:center; }
.qstat-n { display:block; font-size:20px; font-weight:700; color:var(--saffron); line-height:1.1; }
.qstat-l { display:block; font-size:11.5px; color:var(--muted); margin-top:3px; }

/* Quiz instructions — prize cards + info panel */
.quiz-info-wrap { margin:20px 0 8px; }
.prize-panel { background:linear-gradient(135deg,#fff8ee,#fff); border:1px solid #f3dcbb; border-radius:18px; padding:22px; margin-bottom:18px; box-shadow:0 4px 18px rgba(245,130,32,.08); }
.prize-title { font-size:18px; font-weight:700; color:var(--navy); margin-bottom:16px; text-align:center; }
.prize-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:12px; }
.prize-card { background:#fff; border:1.5px solid var(--line); border-radius:14px; padding:16px 14px; text-align:center; display:flex; flex-direction:column; gap:8px; align-items:center; justify-content:space-between; transition:transform .18s, box-shadow .18s; }
.prize-card:hover { transform:translateY(-3px); box-shadow:0 8px 20px rgba(27,38,83,.12); }
.prize-card.gold { background:linear-gradient(135deg,#fff4d6,#ffe9b0); border-color:#f0c860; }
.prize-label { font-size:14px; font-weight:600; color:var(--navy); line-height:1.4; }
.prize-amt { font-size:22px; font-weight:800; color:var(--saffron); line-height:1; }
.prize-card.gold .prize-amt { color:#b8860b; }

.qinfo-panel { background:#fff; border:1px solid var(--line); border-radius:18px; padding:24px 26px; box-shadow:0 2px 12px rgba(27,38,83,.06); }
.qinfo-head { font-size:16px; font-weight:700; color:var(--navy); margin:18px 0 12px; padding-bottom:8px; border-bottom:2px solid #f3e6d2; }
.qinfo-head:first-child { margin-top:0; }
.qinfo-list { list-style:none; margin:0 0 8px; padding:0; }
.qinfo-list li { position:relative; padding:7px 0 7px 28px; line-height:1.7; color:#444; font-size:14.5px; }
.qinfo-list li::before { content:"✓"; position:absolute; left:0; top:7px; width:19px; height:19px; background:#e8f5ec; color:#1d7a35; border-radius:50%; font-size:11px; font-weight:700; display:flex; align-items:center; justify-content:center; }
.qinfo-chip { display:flex; align-items:flex-start; gap:6px; background:#f7f9fd; border:1px solid var(--line); border-radius:10px; padding:11px 15px; margin:9px 0; font-size:14px; color:var(--navy); font-weight:500; line-height:1.6; }
.qinfo-p { margin:9px 0; line-height:1.8; color:#444; font-size:14.5px; }
.qinfo-note { margin-top:16px; padding:13px 16px; background:#fff6e5; border-left:4px solid var(--saffron); border-radius:0 10px 10px 0; font-size:13.8px; color:#6b5530; line-height:1.7; }
.qinfo-chip strong { color:var(--navy); }

/* FAQ accordion */
.qfaq { border:1px solid var(--line); border-radius:10px; margin:9px 0; overflow:hidden; background:#fafbfe; }
.qfaq summary { cursor:pointer; padding:13px 16px; font-weight:600; color:var(--navy); font-size:14.5px; list-style:none; position:relative; padding-right:40px; }
.qfaq summary::-webkit-details-marker { display:none; }
.qfaq summary::after { content:"+"; position:absolute; right:16px; top:50%; transform:translateY(-50%); font-size:20px; color:var(--saffron); font-weight:400; transition:transform .2s; }
.qfaq[open] summary::after { content:"−"; }
.qfaq[open] summary { background:#fff6e5; }
.qfaq-a { padding:4px 16px 15px; color:#555; font-size:14px; line-height:1.8; }

@media (max-width:560px){
  .prize-grid { grid-template-columns:repeat(2,1fr); }
  .qinfo-panel, .prize-panel { padding:18px; }
}

.quiz-cta { width:100%; justify-content:center; font-size:15px; padding:13px; margin-top:auto; }
.quiz-detail-link { display:block; text-align:center; margin-top:12px; font-size:13px; color:var(--sky); font-weight:500; }
.quiz-detail-link:hover { text-decoration:underline; }

@media (max-width:760px){
  .quiz-list, .quiz-list.single { grid-template-columns:1fr; max-width:520px; }
}

/* ---------- Gallery ---------- */
/* Album (folder) cards */
.pg-album-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.pg-album { display:block; background:#fff; border-radius:16px; overflow:hidden; box-shadow:var(--shadow); text-decoration:none; transition:transform .2s, box-shadow .2s; }
.pg-album:hover { transform:translateY(-4px); box-shadow:0 14px 34px rgba(27,38,83,.16); }
.pg-album-cover { position:relative; aspect-ratio:16/10; background:#eef1f8; overflow:hidden; }
.pg-album-cover img { width:100%; height:100%; object-fit:cover; display:block; transition:transform .35s; }
.pg-album:hover .pg-album-cover img { transform:scale(1.07); }
.pg-album-empty { width:100%; height:100%; display:flex; align-items:center; justify-content:center; font-size:56px; color:#b6bfd8; }
.pg-album-count { position:absolute; bottom:12px; right:12px; background:rgba(27,38,83,.84); color:#fff; font-size:12.5px; font-weight:600; padding:5px 13px; border-radius:50px; backdrop-filter:blur(3px); }
.pg-album-body { padding:16px 18px 18px; }
.pg-album-body h3 { font-size:17px; color:var(--navy); margin:0 0 6px; line-height:1.3; }
.pg-album-open { color:var(--saffron); font-size:13.5px; font-weight:600; }

/* Breadcrumb */
.pg-breadcrumb { display:flex; align-items:center; gap:9px; font-size:14px; color:var(--muted); margin-bottom:6px; flex-wrap:wrap; }
.pg-breadcrumb a { color:var(--sky); font-weight:500; text-decoration:none; }
.pg-breadcrumb a:hover { text-decoration:underline; }
.pg-breadcrumb .cur { color:var(--navy); font-weight:600; }

.gallery-cats { display:flex; flex-wrap:wrap; gap:10px; justify-content:center; margin-bottom:32px; }
.gcat-pill { display:inline-flex; align-items:center; gap:6px; padding:7px 18px; border-radius:50px; border:1.5px solid #e0e0e0; background:#fff; color:#555; font-size:13.5px; font-weight:500; text-decoration:none; transition:all .18s; }
.gcat-pill:hover { border-color:var(--saffron); color:var(--saffron); }
.gcat-pill.active { background:var(--saffron); border-color:var(--saffron); color:#fff; }
.gcat-count { background:rgba(0,0,0,.1); border-radius:50px; padding:1px 7px; font-size:11px; }
.gcat-pill.active .gcat-count { background:rgba(255,255,255,.25); }

.gallery-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:14px; }
.gallery-item { display:block; position:relative; border-radius:12px; overflow:hidden; box-shadow:var(--shadow); cursor:pointer; }
.gallery-item img { width:100%; aspect-ratio:4/3; object-fit:cover; display:block; transition:transform .32s; }
.gallery-item:hover img { transform:scale(1.07); }
.gallery-caption { position:absolute; bottom:0; left:0; right:0; background:linear-gradient(0deg,rgba(0,0,0,.72) 0%,transparent 100%); padding:28px 12px 10px; opacity:0; transition:opacity .22s; pointer-events:none; }
.gallery-item:hover .gallery-caption { opacity:1; }
.gallery-caption span { display:block; color:#fff; font-size:13px; font-weight:600; line-height:1.35; }
.gallery-caption small { color:rgba(255,255,255,.75); font-size:11px; }

/* Lightbox */
.lb-overlay { position:fixed; inset:0; background:rgba(0,0,0,.92); z-index:9000; display:flex; align-items:center; justify-content:center; transition:opacity .18s; }
.lb-overlay[aria-hidden="true"] { opacity:0; pointer-events:none; }
.lb-overlay[aria-hidden="false"] { opacity:1; pointer-events:auto; }
.lb-wrap { position:relative; max-width:90vw; max-height:90vh; display:flex; flex-direction:column; align-items:center; }
.lb-wrap img { max-width:90vw; max-height:80vh; object-fit:contain; border-radius:10px; box-shadow:0 4px 40px rgba(0,0,0,.5); display:block; }
.lb-info { margin-top:12px; text-align:center; color:#fff; line-height:1.5; }
.lb-info span { font-size:15px; font-weight:600; display:block; }
.lb-info small { color:rgba(255,255,255,.65); font-size:12px; }
.lb-counter { display:block; color:rgba(255,255,255,.45); font-size:12px; margin-top:4px; }
.lb-close { position:fixed; top:18px; right:22px; background:rgba(255,255,255,.15); border:none; color:#fff; font-size:22px; width:40px; height:40px; border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:background .15s; z-index:9001; }
.lb-close:hover { background:rgba(255,255,255,.3); }
.lb-nav { position:fixed; top:50%; transform:translateY(-50%); background:rgba(255,255,255,.12); border:none; color:#fff; font-size:36px; width:50px; height:70px; cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center; transition:background .15s; z-index:9001; }
.lb-nav:hover { background:rgba(255,255,255,.25); }
.lb-prev { left:14px; }
.lb-next { right:14px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #c9d2ef; margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 34px; padding: 48px 18px 34px; }
.footer-logo { height: 70px; background: #fff; border-radius: 12px; padding: 6px; margin-bottom: 12px; }
.footer-mission { font-size: 13.5px; line-height: 1.7; }
.site-footer h4 { color: #fff; margin-bottom: 14px; font-size: 16px; }
.site-footer a { display: block; color: #c9d2ef; font-size: 14px; padding: 4px 0; }
.site-footer a:hover { color: #ffc107; }
.site-footer p { font-size: 13.5px; margin-bottom: 8px; }
.site-footer p a { display: inline; padding: 0; }
.site-footer .social a { display: inline-block; margin-right: 12px; color: #ffd9ad; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 16px 0; text-align: center; font-size: 13px; color: #9aa6cf; }

/* ---------- PDF reader ---------- */
.reader-bar { background: var(--navy); color: #fff; padding: 10px 18px; display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.reader-bar a, .reader-bar button { color: #fff; background: rgba(255,255,255,.14); border: 0; padding: 7px 15px; border-radius: 8px; cursor: pointer; font-size: 13.5px; font-family: var(--font); }
.reader-frame { width: 100%; height: calc(100vh - 60px); border: 0; background: #525659; }

/* ---------- Home: feature grid ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature-card { background: #fff; border-radius: 16px; padding: 28px 24px; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s; border: 1px solid #f3ead9; display: block; }
.feature-card:hover { transform: translateY(-6px); box-shadow: 0 18px 42px rgba(27,38,83,.15); }
.feature-card .fc-ico { width: 60px; height: 60px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 30px; background: linear-gradient(135deg, #fde7cb, #fdf3e3); margin-bottom: 14px; }
.feature-card h3 { font-size: 18px; }
.feature-card p { color: var(--muted); font-size: 14px; margin-top: 6px; line-height: 1.6; }
.feature-card .fc-link { color: var(--saffron-dark); font-weight: 600; font-size: 13.5px; margin-top: 12px; display: inline-block; }

/* ---------- Home: highlights band ---------- */
.highlight-band { background: linear-gradient(135deg, #131c40, var(--navy) 55%, #173a6b); color: #fff; border-radius: 22px; padding: 44px 34px; position: relative; overflow: hidden; }
.highlight-band::after { content: '🏆'; position: absolute; right: -8px; bottom: -26px; font-size: 170px; opacity: .06; }
.highlight-band .hb-head { text-align: center; margin-bottom: 26px; position: relative; }
.highlight-band .hb-head h2 { color: #fff; font-size: 28px; }
.highlight-band .hb-head h2 em { color: #ffc107; font-style: normal; }
.highlight-band .hb-head p { color: #cdd5f0; margin-top: 6px; }
.highlight-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; position: relative; }
.highlight-grid .hi { text-align: center; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 14px; padding: 20px 12px; }
.highlight-grid .hi b { display: block; font-size: 30px; color: #ffc107; line-height: 1.1; }
.highlight-grid .hi span { font-size: 13px; color: #cdd5f0; display: block; margin-top: 6px; }

/* ---------- Home: CTA band ---------- */
.cta-band { background: linear-gradient(135deg, var(--saffron), #ff9a3d); color: #fff; border-radius: 22px; padding: 46px 30px; text-align: center; box-shadow: 0 14px 40px rgba(245,130,32,.25); }
.cta-band h2 { color: #fff; font-size: 28px; }
.cta-band p { max-width: 640px; margin: 10px auto 22px; font-size: 16px; color: #fff8ef; }
.cta-band .btn-outline { border-color: #fff; color: #fff; }
.cta-band .btn-outline:hover { background: #fff; color: var(--saffron-dark); }

/* ---------- Calendar month listing (mobile + desktop) ---------- */
.cal-list { display: block; max-width: 760px; margin: 0 auto; }
.cal-li { display: flex; gap: 14px; background: #fff; border-radius: 12px; box-shadow: 0 1px 5px rgba(27,38,83,.06); padding: 12px 14px; margin-bottom: 10px; align-items: flex-start; }
.cal-li.today { outline: 2px solid var(--saffron); }
.cal-li-date { flex-shrink: 0; width: 50px; text-align: center; background: var(--cream-2); border-radius: 10px; padding: 6px 0; }
.cal-li-date .d { display: block; font-size: 20px; font-weight: 700; color: var(--navy); line-height: 1.1; }
.cal-li-date .w { display: block; font-size: 11px; color: var(--saffron-dark); font-weight: 600; text-transform: uppercase; }
.cal-li-evs { flex: 1; min-width: 0; }
.cal-li-ev { display: flex; gap: 8px; align-items: baseline; padding: 4px 0; font-size: 14.5px; line-height: 1.5; }
.cal-li-ev .dot { flex-shrink: 0; width: 9px; height: 9px; border-radius: 50%; margin-top: 6px; }
.cal-li-ev .dot.kalyanak { background: var(--saffron); }
.cal-li-ev .dot.parva { background: var(--sky); }
.cal-li-ev .dot.tithi { background: var(--navy); }
.cal-li-ev .dot.other { background: #b0b6c9; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-in { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .mantra-strip::before, .mantra-strip::after { display: none; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .highlight-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .purpose-cards { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .pg-album-grid { grid-template-columns: repeat(2, 1fr); gap:16px; }
  .gallery-caption { opacity:1; }
  .lb-nav { width:38px; height:54px; font-size:26px; }
  .lb-prev { left:4px; }
  .lb-next { right:4px; }
  .nav-toggle { display: block; }
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 0; padding: 10px 10px 14px; box-shadow: var(--shadow); max-height: 84vh; overflow-y: auto; }
  body.nav-open .main-nav { display: flex; }
  .main-nav > a, .dropdown > a { padding: 12px 14px; border-bottom: 1px solid var(--cream-2); }
  .btn-donate { text-align: center; margin-top: 8px; }
  .dropdown-menu { position: static; display: block; box-shadow: none; padding-left: 14px; }
}

@media (max-width: 600px) {
  .container { padding: 0 14px; }
  .section { padding: 38px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .highlight-grid { grid-template-columns: 1fr 1fr; }
  .highlight-band, .cta-band { padding: 32px 20px; }
  .cta-band h2, .highlight-band .hb-head h2 { font-size: 23px; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-logo { margin-left: auto; margin-right: auto; }
  .hero { padding: 44px 0 52px; }
  .hero h1, .hero-center h1 { font-size: 27px; }
  .hero p.lead { font-size: 15px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; text-align: center; }
  .hero-stats { grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 30px; }
  .section-head h2 { font-size: 24px; }
  .mantra-strip .m1 { font-size: 16px; line-height: 1.7; }
  .form-row { grid-template-columns: 1fr; }
  .form-card { padding: 24px 18px; }
  .read-wrap { padding: 24px 18px; }
  .read-content { font-size: 16px; }
  .topbar-mantra { font-size: 12px; }
  .brand img { height: 56px; }
  .btn { padding: 11px 22px; }
  table.site-table { font-size: 13px; }
  .site-table th, .site-table td { padding: 9px 11px; }
}

@media (max-width: 380px) {
  .hero h1, .hero-center h1 { font-size: 24px; }
  .topbar-mantra { display: none; }
  .hero-stats { grid-template-columns: 1fr; }
}
