:root {
  --saffron: #f47b20;
  --saffron-dark: #d9600a;
  --red: #d7261e;
  --maroon: #6b1414;
  --gold: #ffd23f;
  --cream: #fff8ee;
  --line: #f1e3d3;
  --text: #2b1d16;
  --muted: #6b5a50;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(107, 20, 20, .12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Mukta', 'Tiro Devanagari Marathi', sans-serif; color: var(--text); background: #fff; line-height: 1.75; font-size: 17px; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.center { text-align: center; }
.muted { color: var(--muted); }

/* ---------- Topbar / header ---------- */
.topbar { background: var(--maroon); color: #f8e3cf; font-size: .9rem; }
.topbar-inner { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; flex-wrap: wrap; }
.topbar-links { display: flex; gap: 18px; }
.topbar a:hover { color: var(--gold); }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); backdrop-filter: blur(6px); border-bottom: 3px solid var(--saffron); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px 0; }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand img { width: 56px; height: 56px; object-fit: contain; }
.brand strong { display: block; color: var(--maroon); font-size: 1.08rem; line-height: 1.2; }
.brand small { color: var(--saffron-dark); font-size: .85rem; }
.main-nav { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; justify-content: flex-end; }
.main-nav a { padding: 6px 10px; border-radius: 8px; font-weight: 600; color: var(--maroon); transition: background .2s; font-size: .98rem; }
.main-nav a:hover, .main-nav a.active { background: var(--cream); color: var(--red); }
.main-nav a.nav-donate { background: linear-gradient(135deg, var(--red), var(--saffron)); color: #fff; margin-left: 6px; padding: 6px 16px; }
.main-nav a.nav-donate:hover { filter: brightness(1.08); color: #fff; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 26px; height: 3px; background: var(--maroon); margin: 5px 0; border-radius: 2px; }

.notice-bar { background: var(--gold); color: var(--maroon); font-weight: 600; font-size: .95rem; overflow: hidden; }
.notice-bar .container { display: flex; align-items: center; gap: 12px; padding: 4px 0; }
.notice-tag { background: var(--red); color: #fff; padding: 0 10px; border-radius: 4px; flex-shrink: 0; }
.notice-text { white-space: nowrap; animation: marquee 22s linear infinite; }
@keyframes marquee { from { transform: translateX(60vw); } to { transform: translateX(-100%); } }

/* ---------- Hero ---------- */
.hero { background: radial-gradient(circle at 80% 50%, rgba(255,210,63,.35), transparent 55%), linear-gradient(135deg, var(--maroon) 0%, #9b1c14 45%, var(--saffron-dark) 100%); color: #fff; padding: 64px 0; }
.hero-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.eyebrow { color: var(--gold); font-weight: 600; margin-bottom: 6px; }
.hero h1 { font-family: 'Tiro Devanagari Marathi', serif; font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.25; margin-bottom: 14px; }
.lead { font-size: 1.2rem; opacity: .95; margin-bottom: 24px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-image img { width: min(400px, 100%); margin-inline: auto; border-radius: 50%; box-shadow: 0 0 0 8px rgba(255,255,255,.15), 0 20px 50px rgba(0,0,0,.35); }

.page-hero { background: linear-gradient(135deg, var(--maroon), #9b1c14 60%, var(--saffron-dark)); color: #fff; padding: 36px 0; }
.page-hero h1 { font-family: 'Tiro Devanagari Marathi', serif; font-size: clamp(1.7rem, 4vw, 2.5rem); line-height: 1.3; }
.crumbs { opacity: .85; font-size: .95rem; }
.crumbs a:hover { color: var(--gold); }

/* ---------- Buttons ---------- */
.btn { display: inline-block; padding: 11px 24px; border-radius: 40px; font-weight: 700; border: 0; cursor: pointer; font-family: inherit; font-size: 1rem; transition: transform .2s, filter .2s; text-align: center; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(135deg, var(--red), var(--saffron)); color: #fff; box-shadow: 0 6px 18px rgba(215,38,30,.3); }
.btn-gold { background: var(--gold); color: var(--maroon); box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.btn-ghost { border: 2px solid rgba(255,255,255,.8); color: #fff; }
.btn-outline { border: 2px solid var(--saffron); color: var(--saffron-dark); background: #fff; }
.btn-sm { padding: 5px 14px; font-size: .9rem; }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section-alt { background: var(--cream); }
.section-title { font-family: 'Tiro Devanagari Marathi', serif; color: var(--maroon); font-size: clamp(1.6rem, 3.5vw, 2.2rem); margin-bottom: 20px; position: relative; padding-bottom: 10px; line-height: 1.35; }
.section-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 70px; height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--red), var(--saffron)); }
.section-title.center::after { left: 50%; transform: translateX(-50%); }
.section p + p { margin-top: 12px; }
.section-foot { text-align: center; margin-top: 30px; }

/* Quick links on home */
.quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; margin-top: -40px; position: relative; z-index: 2; }
.quick a { background: #fff; border-radius: var(--radius); padding: 22px 18px; box-shadow: var(--shadow); text-align: center; border-bottom: 4px solid var(--saffron); transition: transform .25s; }
.quick a:hover { transform: translateY(-4px); }
.quick .icon { font-size: 2.2rem; }
.quick strong { display: block; color: var(--maroon); font-size: 1.1rem; }
.quick small { color: var(--muted); }

/* About */
.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }
.facts { display: grid; gap: 14px; }
.fact { background: #fff; border-left: 5px solid var(--saffron); border-radius: var(--radius); padding: 14px 18px; box-shadow: var(--shadow); }
.fact-label { display: block; font-size: .9rem; color: var(--muted); }
.fact-value { font-weight: 700; color: var(--maroon); font-size: 1.1rem; line-height: 1.4; }
.fact-value small { font-weight: 400; color: var(--muted); font-size: .85rem; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; margin-top: 30px; }
.card { background: #fff; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); border-top: 4px solid var(--saffron); transition: transform .25s; }
.card:hover { transform: translateY(-4px); }
.card .icon { font-size: 2rem; margin-bottom: 6px; }
.card h3 { color: var(--maroon); font-size: 1.15rem; margin-bottom: 6px; line-height: 1.4; }
.card p { color: var(--muted); font-size: .98rem; }

/* Events */
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 28px; }
.chips a { padding: 5px 14px; border-radius: 30px; border: 1.5px solid var(--saffron); color: var(--saffron-dark); font-weight: 600; font-size: .92rem; }
.chips a.active, .chips a:hover { background: var(--saffron); color: #fff; }
.events { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.event { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.event-img { position: relative; aspect-ratio: 16/10; background: linear-gradient(135deg, var(--maroon), var(--saffron)); }
.event-img img { width: 100%; height: 100%; object-fit: cover; }
.event-img .ph { display: flex; height: 100%; align-items: center; justify-content: center; }
.event-img .ph img { width: 110px; height: 110px; border-radius: 50%; }
.date-badge { position: absolute; top: 12px; left: 12px; background: #fff; border-radius: 10px; text-align: center; padding: 4px 10px; line-height: 1.15; box-shadow: 0 4px 12px rgba(0,0,0,.2); }
.date-badge b { display: block; font-size: 1.4rem; color: var(--red); }
.date-badge small { color: var(--maroon); font-weight: 600; font-size: .78rem; }
.event-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.tag { align-self: flex-start; background: var(--cream); color: var(--saffron-dark); font-weight: 700; font-size: .8rem; padding: 2px 10px; border-radius: 20px; }
.tag.upcoming { background: #e5f6e8; color: #1f7a33; }
.event h3 { color: var(--maroon); font-size: 1.18rem; line-height: 1.4; }
.event .meta { color: var(--muted); font-size: .92rem; }
.event .more { margin-top: auto; padding-top: 8px; color: var(--red); font-weight: 700; }
.empty { text-align: center; color: var(--muted); padding: 40px 20px; background: var(--cream); border-radius: var(--radius); }

.event-detail { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: start; }
.event-detail img { border-radius: var(--radius); box-shadow: var(--shadow); cursor: zoom-in; }
.info-list { list-style: none; margin: 16px 0; display: grid; gap: 8px; }
.info-list li { background: var(--cream); padding: 10px 14px; border-radius: 10px; }
.info-list b { color: var(--maroon); }
.prose { white-space: pre-line; }

/* Kakkaya */
.kakkaya { background: linear-gradient(180deg, #fff 0%, #fff4e0 100%); }
.kakkaya-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 44px; align-items: center; }
.kakkaya-img { border-radius: var(--radius); box-shadow: var(--shadow); cursor: zoom-in; }
.thumbs { display: flex; gap: 14px; margin-top: 22px; }
.thumbs img { width: 140px; height: 140px; object-fit: cover; border-radius: 12px; box-shadow: var(--shadow); cursor: zoom-in; border: 3px solid #fff; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.gallery figure { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.gallery img { width: 100%; height: 240px; object-fit: cover; cursor: zoom-in; transition: transform .4s; }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption { padding: 10px 14px; font-weight: 600; color: var(--maroon); }

/* Registration / tables */
.two-col { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: start; }
.info-table { width: 100%; border-collapse: collapse; background: #fff; box-shadow: var(--shadow); border-radius: var(--radius); overflow: hidden; }
.info-table th, .info-table td { padding: 11px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.info-table th { background: var(--cream); color: var(--maroon); width: 40%; font-weight: 600; }
.info-table small { color: var(--muted); }
.cert img { border-radius: var(--radius); box-shadow: var(--shadow); cursor: zoom-in; max-height: 480px; margin-inline: auto; }
.cert figcaption { text-align: center; color: var(--muted); font-size: .9rem; margin-top: 8px; }

/* Donation */
.donate-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: start; }
.panel { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px; border-top: 4px solid var(--saffron); }
.panel h3 { color: var(--maroon); font-size: 1.3rem; margin-bottom: 12px; }
.qr { width: 220px; margin: 14px auto 0; border: 6px solid var(--cream); border-radius: 12px; }
.copy-btn { background: none; border: 1px solid var(--saffron); color: var(--saffron-dark); border-radius: 6px; padding: 0 8px; cursor: pointer; font-family: inherit; font-size: .8rem; margin-left: 6px; }
.uses { list-style: none; display: grid; gap: 8px; margin-top: 10px; }
.uses li::before { content: "🔸 "; }

/* Founder */
.founder { background: linear-gradient(135deg, var(--maroon), #9b1c14); color: #fff; }
.founder-box { display: flex; align-items: center; gap: 36px; }
.founder-box img { width: 160px; height: 160px; border-radius: 50%; background: #fff; padding: 6px; flex-shrink: 0; }
.founder h2 { font-family: 'Tiro Devanagari Marathi', serif; font-size: clamp(1.5rem, 3.5vw, 2.2rem); line-height: 1.3; }
.founder blockquote { margin-top: 14px; padding-left: 16px; border-left: 4px solid var(--gold); font-size: 1.1rem; font-style: italic; opacity: .95; }
.founder .btn { margin-top: 18px; }

/* CTA band */
.cta { background: linear-gradient(135deg, var(--saffron), var(--red)); color: #fff; padding: 44px 0; }
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.cta h2 { font-family: 'Tiro Devanagari Marathi', serif; font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.35; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 14px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.form-grid .full { grid-column: 1 / -1; }
.form label { display: block; font-weight: 600; color: var(--maroon); font-size: .95rem; }
.form label > input, .form label > select, .form label > textarea { display: block; margin-top: 4px; }
.form label .req { color: var(--red); }
.form input, .form select, .form textarea { font-family: inherit; font-size: 1rem; padding: 10px 12px; border: 1.5px solid #e6d3bf; border-radius: 10px; background: #fff; color: var(--text); width: 100%; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--saffron); box-shadow: 0 0 0 3px rgba(244,123,32,.18); }
.form textarea { min-height: 100px; resize: vertical; }
.form .hint { font-weight: 400; color: var(--muted); font-size: .85rem; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.radio-row { display: flex; gap: 18px; font-weight: 400; color: var(--text); }
.radio-row label { display: flex; align-items: center; gap: 6px; font-weight: 400; color: var(--text); }
.radio-row input { width: auto; }
.hp { position: absolute; left: -9999px; }

.alert { padding: 12px 16px; border-radius: 10px; margin-bottom: 18px; font-weight: 600; }
.alert-success { background: #e5f6e8; color: #1f6b2e; border: 1px solid #b7e2c0; }
.alert-error { background: #fdeaea; color: #9b1c14; border: 1px solid #f3c0bd; }
.alert-info { background: var(--cream); color: var(--maroon); border: 1px solid var(--line); }

/* Contact */
.contact-cards { display: grid; gap: 16px; }
.contact-card { display: flex; gap: 14px; align-items: flex-start; background: #fff; padding: 18px; border-radius: var(--radius); box-shadow: var(--shadow); }
.contact-card .icon { font-size: 1.6rem; }
.contact-card b { color: var(--maroon); display: block; }

/* ---------- Footer ---------- */
.site-footer { background: #2b0c0c; color: #f3d9c4; padding: 44px 0 0; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.footer-brand img { width: 48px; height: 48px; border-radius: 50%; background: #fff; }
.footer-brand strong, .site-footer h4 { color: #fff; font-size: 1.08rem; }
.site-footer h4 { margin-bottom: 8px; }
.site-footer ul { list-style: none; }
.site-footer a:hover { color: var(--gold); }
.site-footer p + p { margin-top: 6px; }
.social { display: flex; gap: 12px; }
.copy { border-top: 1px solid rgba(255,255,255,.12); margin-top: 30px; padding: 14px 0; text-align: center; opacity: .75; }

.wa-float { position: fixed; right: 18px; bottom: 18px; width: 54px; height: 54px; border-radius: 50%; background: #25d366; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 20px rgba(0,0,0,.25); z-index: 60; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.88); display: flex; align-items: center; justify-content: center; z-index: 100; padding: 20px; cursor: zoom-out; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 95vw; max-height: 90vh; border-radius: 8px; }
.lightbox-close { position: absolute; top: 12px; right: 18px; background: none; border: 0; color: #fff; font-size: 2.6rem; cursor: pointer; line-height: 1; }

/* Auth (install / login) */
.auth-page { background: linear-gradient(135deg, var(--maroon), var(--saffron-dark)); min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; }
.auth-box { background: #fff; border-radius: 18px; padding: 32px; width: min(420px, 100%); box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.auth-logo { width: 90px; margin: 0 auto 8px; }
.auth-box h1 { text-align: center; color: var(--maroon); font-size: 1.5rem; margin-bottom: 16px; }
.auth-box p { margin-bottom: 12px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav-toggle { display: block; }
  .main-nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-bottom: 3px solid var(--saffron); max-height: 0; overflow: hidden; transition: max-height .3s; }
  .main-nav.open { max-height: 600px; }
  .main-nav a { padding: 12px 20px; border-radius: 0; border-top: 1px solid var(--line); }
  .main-nav a.nav-donate { margin: 10px 20px; border-radius: 30px; text-align: center; }
}
@media (max-width: 900px) {
  .hero-inner, .about-grid, .kakkaya-grid, .two-col, .donate-grid, .event-detail { grid-template-columns: 1fr; }
  .hero { padding: 44px 0 70px; text-align: center; }
  .hero-actions { justify-content: center; }
  .hero-image { order: -1; }
  .hero-image img { width: 220px; }
  .founder-box { flex-direction: column; text-align: center; }
  .founder blockquote { border-left: 0; padding-left: 0; }
  .section { padding: 48px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-inner { justify-content: center; text-align: center; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .form-grid { grid-template-columns: 1fr; }
  .brand strong { font-size: .92rem; }
  .brand img { width: 44px; height: 44px; }
  .topbar-inner > span:first-child { display: none; }
  .topbar-inner { justify-content: center; }
  .thumbs img { width: 46%; height: auto; aspect-ratio: 1; }
  .quick { grid-template-columns: 1fr 1fr; gap: 12px; }
  .quick a { padding: 16px 10px; }
  .panel { padding: 20px; }
}
