/* Self-hosted Noto Sans Devanagari (variable weight 100-900, served as three
   unicode-range subsets). Self-hosting guarantees correct Devanagari conjunct
   shaping (e.g. ष्ट्र in महाराष्ट्र) without depending on fonts.googleapis.com. */
@font-face {
  font-family: 'Noto Sans Devanagari';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/noto-sans-devanagari-deva.woff2') format('woff2');
  unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF, U+11B00-11B09;
}
@font-face {
  font-family: 'Noto Sans Devanagari';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/noto-sans-devanagari-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Noto Sans Devanagari';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/noto-sans-devanagari-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --brand-blue: #1e3c8c;
  --brand-purple: #7b1fa2;
  --brand-red: #e53935;
  --brand-green: #2e8b57;
  --brand-yellow: #f5c518;
  --text-dark: #222;
  --bg-light: #fdfdfb;
  --border-light: #e5e0d8;
}

* { box-sizing: border-box; }

/* Visually hidden but still readable by screen readers / search engines. */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

body {
  margin: 0;
  /* Fallbacks are Devanagari-shaping-capable system fonts (Windows: Nirmala UI/
     Mangal, macOS/iOS: Kohinoor via system-ui) so conjuncts render correctly
     even before/without the webfont. */
  font-family: 'Noto Sans Devanagari', 'Nirmala UI', 'Mangal', system-ui, 'Segoe UI', sans-serif;
  color: var(--text-dark);
  background: var(--bg-light);
  line-height: 1.6;
}

/*
 * Noto Sans Devanagari applies a different OpenType locl (localized forms)
 * substitution for lang="mr" than for lang="hi" on certain conjuncts (most
 * visibly ष्ट्र, as in राष्ट्रकल्याण) - the Marathi variant renders with the
 * र looking detached/loose, while the Hindi variant forms a clean, tightly
 * stacked conjunct. Both are the same Devanagari script and the Hindi form
 * reads as correct/expected, so force the font to use Hindi's glyph
 * substitutions even for lang="mr" content.
 */
:lang(mr) { font-language-override: 'HIN'; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

a { color: var(--brand-blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Header */
.site-header { background: #fff; border-bottom: 3px solid var(--brand-red); position: sticky; top: 0; z-index: 100; }
/*
 * Deliberately NOT using .container's 1100px max-width here: a 9-item nav
 * plus the register CTA and language switcher needs ~1650px in English
 * (English labels run much longer than the Marathi/Hindi originals). Giving
 * the header its own wider ceiling means far more real desktop widths get
 * the full single-row nav before falling back to the hamburger menu.
 */
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1600px; margin: 0 auto; padding: 10px 20px; flex-wrap: nowrap; gap: 16px;
}
/* The brand block must never shrink or wrap - regardless of how long the
   active language's nav labels are (English runs noticeably longer than
   Marathi/Hindi), the logo+site-name position must stay fixed. Overflow is
   handled entirely by collapsing .main-nav into the hamburger menu instead. */
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--brand-purple); font-size: 1rem; flex-shrink: 0; white-space: nowrap; }
.brand-logo { height: 38px; width: auto; flex-shrink: 0; }
.nav-toggle { display: none; flex-shrink: 0; background: none; border: none; font-size: 1.6rem; cursor: pointer; }
.main-nav {
  display: flex; align-items: center; gap: 16px; flex-wrap: nowrap; flex-shrink: 0;
  justify-content: flex-end; overflow-x: auto; scrollbar-width: none;
}
.main-nav::-webkit-scrollbar { display: none; }
/* nowrap on each link: without this, flex's default min-width:auto lets an
   individual link's text wrap mid-word once space gets tight, well before
   the whole nav would collapse into the hamburger menu. */
.main-nav a { color: var(--brand-blue); font-weight: 600; font-size: 0.95rem; white-space: nowrap; }
.main-nav a.btn-register {
  display: inline-flex; align-items: center; line-height: 1;
  background: var(--brand-red); color: #fff; padding: 10px 16px; border-radius: 20px;
}
.main-nav a.btn-register:hover { background: #c62828; text-decoration: none; }
.lang-switch { font-size: 0.9rem; color: #888; }
.lang-switch a { color: #666; }
.lang-switch a.active { color: var(--brand-red); font-weight: 700; }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-purple));
  color: #fff; padding: 50px 0; text-align: center;
}
.hero-animated {
  background: linear-gradient(-45deg, #1e3c8c, #7b1fa2, #4527a0, #1565c0);
  background-size: 400% 400%;
  animation: gradientShift 16s ease infinite;
  position: relative; overflow: hidden; padding: 56px 0 40px;
}
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.hero-content { position: relative; z-index: 2; }
.hero-shape {
  position: absolute; z-index: 1; border-radius: 50%; opacity: 0.12; background: #fff;
  animation: floatShape 12s ease-in-out infinite;
}
.shape-1 { width: 280px; height: 280px; top: -90px; left: -70px; animation-delay: 0s; }
.shape-2 { width: 180px; height: 180px; bottom: -60px; right: -40px; animation-delay: -4s; }
.shape-3 { width: 100px; height: 100px; top: 30%; right: 12%; animation-delay: -8s; }
@keyframes floatShape {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-26px) scale(1.06); }
}
.hero-book {
  position: absolute; font-size: 3rem; opacity: 0.18; left: 8%; bottom: 14%;
  animation: floatShape 9s ease-in-out infinite; animation-delay: -2s;
}
.hero-badge {
  display: inline-block; background: rgba(255,255,255,0.16); border: 1px solid rgba(255,255,255,0.35);
  color: var(--brand-yellow); font-weight: 700; padding: 6px 18px; border-radius: 20px;
  /* No letter-spacing here: it breaks Devanagari conjunct shaping (राष्ट्रीय). */
  font-size: 0.95rem; backdrop-filter: blur(4px);
}
.hero h1 { font-size: 2.4rem; margin: 8px 0 10px; text-shadow: 0 2px 12px rgba(0,0,0,0.25); }
.hero .subtitle { font-size: 1.3rem; color: var(--brand-yellow); font-weight: 700; margin-bottom: 16px; }
.hero .dates-pill {
  display: inline-block; background: var(--brand-red); color: #fff; padding: 8px 22px;
  border-radius: 24px; font-weight: 700; margin: 12px 0; box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}
.hero p { max-width: 780px; margin: 16px auto 0; font-size: 1.05rem; }
.hero .cta { margin-top: 18px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta .btn {
  /* inline-flex + centered + line-height:1 avoids the inherited body
     line-height (1.6) inflating the box unevenly around the text - most
     visible as extra space below the baseline, and worse with Devanagari
     glyphs/matras than plain Latin text. */
  display: inline-flex; align-items: center; justify-content: center; line-height: 1;
  background: var(--brand-yellow); color: #222; font-weight: 700;
  padding: 14px 30px; border-radius: 26px; font-size: 1.05rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.cta .btn:hover { background: #ffd84a; text-decoration: none; transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,0.25); }
.btn-ghost {
  background: transparent !important; color: #fff !important; border: 2px solid rgba(255,255,255,0.7);
}
.btn-ghost:hover { background: rgba(255,255,255,0.12) !important; }
.btn-pulse { animation: pulseGlow 2.4s ease-in-out infinite; }
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245,197,24,0.55); }
  50% { box-shadow: 0 0 0 14px rgba(245,197,24,0); }
}

/* Entry animations (hero) */
.anim-fade-up { opacity: 0; animation: fadeUp 0.7s ease forwards; }
.anim-fade-up.delay-1 { animation-delay: 0.15s; }
.anim-fade-up.delay-2 { animation-delay: 0.3s; }
.anim-fade-up.delay-3 { animation-delay: 0.45s; }
.anim-fade-up.delay-4 { animation-delay: 0.6s; }
.anim-fade-up.delay-5 { animation-delay: 0.75s; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* Countdown */
.countdown { margin-top: 18px; }
.countdown-title { font-weight: 600; margin-bottom: 12px; color: rgba(255,255,255,0.9); }
.countdown-grid { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.count-box {
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.25);
  border-radius: 12px; padding: 12px 18px; min-width: 84px; backdrop-filter: blur(4px);
}
.count-num { display: block; font-size: 2rem; font-weight: 700; color: var(--brand-yellow); font-variant-numeric: tabular-nums; }
.count-label { display: block; font-size: 0.85rem; color: rgba(255,255,255,0.85); margin-top: 2px; }

/* Stats strip */
.stats-strip { background: #fff; border-bottom: 1px solid var(--border-light); padding: 28px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 18px; text-align: center; }
.stat-number { display: block; font-size: 2.4rem; font-weight: 700; color: var(--brand-red); line-height: 1.1; }
.stat-label { display: block; color: #555; font-weight: 600; margin-top: 4px; font-size: 0.95rem; }

/* Feature cards */
.feature-card { transition: transform 0.3s ease, box-shadow 0.3s ease; position: relative; overflow: hidden; }
.feature-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-purple), var(--brand-red));
}
.feature-card:hover { transform: translateY(-6px); box-shadow: 0 14px 30px rgba(0,0,0,0.1); }
.card-icon { font-size: 2.2rem; margin-bottom: 8px; }

/* Quote banner */
.quote-banner {
  background: linear-gradient(120deg, var(--brand-purple), var(--brand-blue));
  color: #fff; text-align: center; padding: 56px 20px; position: relative; overflow: hidden;
}
.quote-banner blockquote {
  font-size: 1.7rem; font-weight: 700; margin: 0 auto; max-width: 820px; line-height: 1.5;
}
.quote-banner cite { display: block; margin-top: 14px; color: var(--brand-yellow); font-style: normal; font-weight: 600; }

/* Day / journey cards */
.journey-grid .day-card { display: block; color: inherit; text-decoration: none; position: relative; padding-top: 30px; transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease; }
.day-card:hover { transform: translateY(-6px); box-shadow: 0 14px 30px rgba(0,0,0,0.12); border-color: var(--brand-purple); text-decoration: none; }
.day-number {
  position: absolute; top: -18px; left: 20px; width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-red), var(--brand-purple)); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 1.3rem; font-weight: 700;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}
.journey-grid { margin-top: 34px; }
.section-cta { text-align: center; margin-top: 26px; }
.btn, .btn-outline {
  display: inline-flex; align-items: center; justify-content: center; line-height: 1;
  font-weight: 700; padding: 14px 30px; border-radius: 26px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.btn { background: var(--brand-red); color: #fff; }
.btn:hover { text-decoration: none; transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,0.18); }
.btn-outline { background: transparent; color: var(--brand-purple); border: 2px solid var(--brand-purple); }
.btn-outline:hover { background: var(--brand-purple); color: #fff; }

/* Hero banner: real conference photo behind the animated gradient */
.hero-photo-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: url('/assets/images/hero-photo.jpg') center 30% / cover no-repeat;
  opacity: 0.32; mix-blend-mode: luminosity;
}
/*
 * The logo/wordmark art is itself blue/purple/magenta, which sits almost
 * flush against the blue-purple hero gradient - a drop-shadow alone isn't
 * enough separation (this was especially visible with the Marathi wordmark
 * image, but affects the icon logo in every language). A solid near-white
 * card behind the artwork guarantees contrast regardless of what's showing
 * through the photo/gradient behind it.
 */
.hero-logo {
  height: 120px; width: auto; margin: 0 auto 12px; display: block;
  background: rgba(255,255,255,0.96); border-radius: 20px; padding: 12px 22px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.32);
}
.hero-wordmark {
  max-width: 340px; width: 80%; height: auto; margin: 8px auto 6px; display: block;
  background: rgba(255,255,255,0.96); border-radius: 14px; padding: 10px 18px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}

/* Speakers preview (homepage chips) */
.speakers-preview { background: #f6f4fb; padding: 48px 0; }
.speaker-chips { display: flex; flex-wrap: wrap; gap: 12px; }
.speaker-chip {
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
  background: #fff; border: 1px solid var(--border-light); border-radius: 28px;
  padding: 6px 18px 6px 6px; font-weight: 600; color: var(--brand-blue);
  font-family: inherit; font-size: 0.95rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05); transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.speaker-chip img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.speaker-chip:hover { transform: translateY(-3px) scale(1.02); border-color: var(--brand-purple); box-shadow: 0 8px 18px rgba(0,0,0,0.1); }

/* Speaker cards (speakers page) */
.speaker-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 22px; margin: 26px 0; }
.speaker-card {
  background: #fff; border: 1px solid var(--border-light); border-radius: 14px;
  padding: 26px 18px 20px; text-align: center; cursor: pointer; font-family: inherit;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.speaker-card:hover { transform: translateY(-6px); box-shadow: 0 14px 30px rgba(0,0,0,0.12); border-color: var(--brand-purple); }
.speaker-card-photo {
  width: 120px; height: 120px; border-radius: 50%; object-fit: cover; margin-bottom: 14px;
  border: 4px solid #f0ecf8; box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.speaker-card-name { display: block; font-weight: 700; color: var(--brand-blue); font-size: 1.05rem; }
.speaker-card-role { display: block; color: #777; font-size: 0.85rem; margin-top: 6px; line-height: 1.4; }

/* Speaker profile modal */
.speaker-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 20px; }
.speaker-modal[hidden] { display: none; }
.speaker-modal-backdrop {
  position: absolute; inset: 0; background: rgba(18, 16, 44, 0.65); backdrop-filter: blur(3px);
  animation: modalFade 0.25s ease;
}
.speaker-modal-box {
  position: relative; background: #fff; border-radius: 18px; max-width: 520px; width: 100%;
  padding: 34px 30px 30px; text-align: center; box-shadow: 0 24px 60px rgba(0,0,0,0.35);
  animation: modalPop 0.3s cubic-bezier(0.34, 1.4, 0.64, 1);
  max-height: 86vh; overflow-y: auto;
}
.speaker-modal-photo {
  display: block; width: 130px; height: 130px; border-radius: 50%; object-fit: cover;
  margin: 0 auto 16px; border: 5px solid #f0ecf8; box-shadow: 0 8px 24px rgba(0,0,0,0.2); background: #fff;
}
.speaker-modal-name { color: var(--brand-purple); margin: 0 0 4px; font-size: 1.3rem; }
.speaker-modal-role { color: var(--brand-red); font-weight: 600; font-size: 0.95rem; margin-bottom: 14px; }
.speaker-modal-bio { color: #444; text-align: left; line-height: 1.7; margin: 0; }
.speaker-modal-close {
  position: absolute; top: 12px; right: 14px; background: none; border: none; cursor: pointer;
  font-size: 1.8rem; line-height: 1; color: #999; transition: color 0.2s ease, transform 0.2s ease;
}
.speaker-modal-close:hover { color: var(--brand-red); transform: scale(1.15); }
@keyframes modalFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalPop { from { opacity: 0; transform: translateY(30px) scale(0.92); } to { opacity: 1; transform: translateY(0) scale(1); } }
body.modal-open { overflow: hidden; }

/* Venue map */
.venue-map-wrap {
  margin-top: 20px; border-radius: 12px; overflow: hidden; border: 1px solid var(--border-light);
  box-shadow: 0 4px 14px rgba(0,0,0,0.08); max-width: 720px; margin-left: auto; margin-right: auto;
}
.venue-map-wrap iframe { display: block; width: 100%; height: 320px; border: 0; }
.venue-map-link { display: inline-block; margin-top: 12px; font-weight: 600; }

/* Social share buttons */
.share-section { background: #f6f4fb; padding: 40px 0; text-align: center; }
.thankyou-share { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--border-light); }
.thankyou-share .share-buttons { justify-content: flex-start; }
.share-buttons { display: flex; gap: 14px; justify-content: center; margin-top: 16px; flex-wrap: wrap; }
.share-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px;
  border-radius: 50%; background: #fff; border: 1px solid var(--border-light); cursor: pointer;
  color: var(--brand-blue); box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}
.share-btn svg { width: 22px; height: 22px; }
.share-btn:hover { transform: translateY(-3px); box-shadow: 0 8px 18px rgba(0,0,0,0.15); text-decoration: none; }
.share-whatsapp:hover { background: #25D366; color: #fff; }
.share-facebook:hover { background: #1877F2; color: #fff; }
.share-twitter:hover { background: #000; color: #fff; }
.share-copy:hover, .share-copy.copied { background: var(--brand-purple); color: #fff; }

/* WhatsApp group CTA */
.whatsapp-group-section {
  background: linear-gradient(135deg, #0e7a3e, #25D366 60%, #128C4A);
  padding: 56px 20px; position: relative; overflow: hidden;
}
.whatsapp-group-shape {
  position: absolute; border-radius: 50%; background: rgba(255,255,255,0.08); pointer-events: none;
}
.shape-a { width: 260px; height: 260px; top: -100px; left: -80px; }
.shape-b { width: 180px; height: 180px; bottom: -80px; right: 6%; }
.whatsapp-group-card {
  position: relative; z-index: 1; background: #fff; border-radius: 20px;
  padding: 36px 40px; max-width: 900px; margin: 0 auto;
  display: flex; align-items: center; gap: 28px; flex-wrap: wrap; justify-content: center;
  box-shadow: 0 16px 40px rgba(0,0,0,0.2);
}
.whatsapp-group-icon {
  flex-shrink: 0; width: 68px; height: 68px; border-radius: 50%;
  background: linear-gradient(135deg, #25D366, #128C4A); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px rgba(18,140,74,0.4);
}
.whatsapp-group-icon svg { width: 34px; height: 34px; }
.whatsapp-group-text { flex: 1 1 260px; text-align: left; min-width: 200px; }
.whatsapp-group-text h2 { color: var(--brand-blue); border: none; padding: 0; margin: 0 0 6px; font-size: 1.4rem; }
.whatsapp-group-text p { margin: 0; color: #555; }
.whatsapp-group-cta {
  flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; line-height: 1; gap: 10px;
  background: linear-gradient(135deg, #25D366, #128C4A); color: #fff;
  font-weight: 700; padding: 14px 30px; border-radius: 26px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 6px 16px rgba(18,140,74,0.35);
}
.whatsapp-group-cta:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(18,140,74,0.5); text-decoration: none; color: #fff; }
.whatsapp-group-cta svg { width: 22px; height: 22px; }

@media (max-width: 640px) {
  .whatsapp-group-card { padding: 28px 24px; text-align: center; }
  .whatsapp-group-text { text-align: center; }
}

/* Venue + closing */
.venue-strip { background: #fff; border-top: 1px solid var(--border-light); text-align: center; padding: 44px 0; }
.closing-cta {
  background: linear-gradient(135deg, var(--brand-red), var(--brand-purple));
  color: #fff; text-align: center; padding: 56px 20px;
}
.closing-cta h2 { color: #fff; border-bottom-color: var(--brand-yellow); }
.closing-cta .btn { margin-top: 10px; background: var(--brand-yellow); color: #222; }

@media (prefers-reduced-motion: reduce) {
  .hero-animated { animation: none; }
  .hero-shape, .hero-book, .btn-pulse { animation: none; }
  .anim-fade-up { animation: none; opacity: 1; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .cta .btn, .btn, .feature-card, .day-card, .speaker-chip, .speaker-card { transition: none; }
  .speaker-modal-backdrop, .speaker-modal-box { animation: none; }
}

section { padding: 40px 0; }
section h2 {
  color: var(--brand-purple); border-bottom: 3px solid var(--brand-yellow);
  display: inline-block; padding-bottom: 6px; margin-bottom: 24px;
}
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.card {
  background: #fff; border: 1px solid var(--border-light); border-radius: 10px; padding: 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}
.card h3 { color: var(--brand-blue); margin-top: 0; }
.badge-pill {
  display: inline-block; background: #f0ecf8; color: var(--brand-purple); font-weight: 700;
  font-size: 0.78rem; padding: 4px 12px; border-radius: 14px; margin-bottom: 10px;
}

table.fee-table, table.schedule-table { width: 100%; border-collapse: collapse; margin: 20px 0; background: #fff; }
table.fee-table th, table.fee-table td,
table.schedule-table th, table.schedule-table td {
  border: 1px solid var(--border-light); padding: 12px; text-align: center;
}
table.fee-table th, table.schedule-table th { background: var(--brand-blue); color: #fff; }
table.schedule-table td.session-topics { text-align: left; }
table.schedule-table caption { caption-side: top; font-weight: 700; color: var(--brand-purple); font-size: 1.1rem; padding: 10px 0; text-align: left; }

.notice-banner {
  background: #fff3e0; border-left: 5px solid var(--brand-red); padding: 14px 18px; margin: 20px 0; border-radius: 4px;
}

.brochure-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.brochure-gallery img { width: 100%; border-radius: 8px; border: 1px solid var(--border-light); }

form.registration-form fieldset { border: 1px solid var(--border-light); border-radius: 8px; margin-bottom: 20px; padding: 16px; }
form.registration-form legend { color: var(--brand-purple); font-weight: 700; padding: 0 8px; }
form.registration-form label { display: block; font-weight: 600; margin: 10px 0 4px; }
form.registration-form input:not([type="radio"]):not([type="checkbox"]),
form.registration-form select, form.registration-form textarea {
  width: 100%; padding: 8px 10px; border: 1px solid #ccc; border-radius: 6px; font-family: inherit;
}
form.registration-form textarea { resize: vertical; }
form.registration-form .grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
form.registration-form .field-hint { display: block; margin-top: 4px; font-size: 0.82rem; color: #888; font-weight: 400; }

.radio-group, .checkbox-group { display: flex; flex-wrap: wrap; gap: 10px 20px; margin: 6px 0 14px; }
.radio-inline, .checkbox-inline {
  display: inline-flex; align-items: center; gap: 6px; font-weight: 500; margin: 0;
  background: #f6f4fb; border: 1px solid var(--border-light); border-radius: 20px; padding: 6px 14px;
  cursor: pointer;
}
.radio-inline input, .checkbox-inline input { width: auto; margin: 0; }
.notice-banner .checkbox-inline { background: #fff; }
.form-actions { margin-top: 20px; }
.btn-submit {
  display: inline-flex; align-items: center; justify-content: center; line-height: 1;
  background: var(--brand-red); color: #fff; border: none; padding: 14px 30px; border-radius: 26px;
  font-size: 1.05rem; font-weight: 700; cursor: pointer;
}
.btn-submit:hover { background: #c62828; }
.error-list { background: #ffebee; border: 1px solid var(--brand-red); border-radius: 6px; padding: 12px 20px; color: #b71c1c; }

/* Archive iframe viewer */
.archive-frame-wrap { border: 1px solid var(--border-light); border-radius: 10px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.archive-frame-wrap iframe { display: block; width: 100%; height: 1400px; border: 0; }

/* CCAvenue payment handoff page (full-page redirect integration - the
   iframe approach was abandoned because this merchant account's template3
   checkout widget doesn't implement the newHeight resize protocol; see
   payment/ccav-request-handler.php). This card shows for the moment
   between form submit and CCAvenue's page loading. */
.payment-redirect { text-align: center; }
.payment-redirect-card {
  max-width: 480px; margin: 30px auto; padding: 40px 30px;
  background: #fff; border: 1px solid var(--border-light); border-radius: 14px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.payment-redirect-card p { margin: 0 0 22px; font-weight: 600; }
.payment-redirect-spinner {
  width: 44px; height: 44px; margin: 0 auto 18px; border-radius: 50%;
  border: 4px solid var(--border-light); border-top-color: var(--brand-red);
  animation: paymentSpin 0.9s linear infinite;
}
@keyframes paymentSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .payment-redirect-spinner { animation: none; }
}

/* Footer */
.site-footer { background: #1b1b2f; color: #cfd0e0; margin-top: 40px; padding: 30px 0 0; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; }
.footer-inner a { color: #cfd0e0; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-brand { display: flex; align-items: flex-start; gap: 14px; }
.footer-logo { height: 48px; width: auto; flex-shrink: 0; margin-top: 2px; }
.footer-bottom { text-align: center; padding: 16px; margin-top: 20px; background: #14141f; font-size: 0.85rem; }

/*
 * Measured directly in-browser: with the compact brand mark ("Manashakti"
 * instead of the full conference name) and abbreviated language switch
 * (मर | हिं | EN), brand + full 9-item nav + language switch needs only
 * ~1030px of natural width in English (the longest of the 3 languages).
 * Below this width the nav always fully collapses into the hamburger menu
 * instead of partially wrapping - partial wrapping is what used to shove
 * the brand logo out of position. 1100px leaves a safety margin for
 * font-rendering/zoom variance while keeping the full nav visible on
 * essentially all real desktop/laptop widths.
 */
@media (max-width: 1100px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none; flex-direction: column; align-items: flex-start; width: 100%;
    background: #fff; padding: 10px 0; flex-wrap: wrap;
  }
  .main-nav.open { display: flex; }
  form.registration-form .grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-logo { height: 90px; padding: 10px 16px; }
}
