/* ==========================================================================
   Sanatani Sanskriti Sansad — Gita Competition
   Palette: deep maroon, saffron, antique gold, warm cream
   ========================================================================== */

:root {
  --maroon-900: #2a0707;
  --maroon-800: #3b0b0b;
  --maroon-700: #521414;
  --maroon-600: #6a1e1e;
  --saffron: #f08a24;
  --saffron-deep: #d96a0b;
  --gold: #c99a3f;
  --gold-deep: #8a621b;
  --gold-soft: #e8c98a;
  --cream: #fdf7ec;
  --cream-2: #fffdf8;
  --ink: #2b1a16;
  --muted: #7b6357;
  --line: rgba(92, 26, 26, 0.14);
  --shadow: 0 24px 60px -32px rgba(46, 8, 8, 0.42);
  --radius: 18px;
  --font-display: "Tiro Bangla", "Marcellus", "Times New Roman", serif;
  --font-body: "Hind Siliguri", "Mukta", "Segoe UI", system-ui, sans-serif;
  --font-deva: "Tiro Devanagari Sanskrit", "Mukta", serif;
  --container: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 6%, rgba(240, 138, 36, 0.07), transparent 38%),
    radial-gradient(circle at 92% 12%, rgba(201, 154, 63, 0.09), transparent 42%),
    var(--cream);
  -webkit-font-smoothing: antialiased;
}

[hidden] {
  display: none !important;
}

img,
svg {
  max-width: 100%;
}

a {
  color: inherit;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--maroon-800);
  line-height: 1.35;
  margin: 0;
}

p {
  margin: 0;
}

::selection {
  background: rgba(240, 138, 36, 0.28);
  color: var(--maroon-800);
}

:focus-visible {
  outline: 2px solid var(--saffron);
  outline-offset: 3px;
}

.container {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  background: var(--maroon-800);
  color: #fff;
  padding: 10px 18px;
  border-radius: 0 0 10px 10px;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
}

/* --------------------------------------------------------------------------
   Buttons + shared bits
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 12px;
  padding: 13px 26px;
  font: 600 0.98rem/1 var(--font-body);
  letter-spacing: 0.01em;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #f7a13c, #e0700f 70%);
  color: #fff;
  box-shadow: 0 14px 30px -14px rgba(224, 112, 15, 0.8);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 38px -16px rgba(224, 112, 15, 0.85);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-outline-light {
  border: 1px solid rgba(253, 241, 221, 0.38);
  color: #fdf1dd;
  background: rgba(255, 255, 255, 0.04);
}

.btn-outline-light:hover {
  border-color: rgba(232, 201, 138, 0.8);
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
}

.btn-light {
  background: #fff6e3;
  color: var(--maroon-800);
  box-shadow: 0 16px 34px -18px rgba(0, 0, 0, 0.6);
}

.btn-light:hover {
  background: #fff;
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  border: 1px solid rgba(92, 26, 26, 0.26);
  color: var(--maroon-700);
}

.btn-ghost:hover {
  background: rgba(92, 26, 26, 0.06);
}

.btn-danger {
  background: linear-gradient(135deg, #d94a3d, #b3261e 70%);
  color: #fff;
  box-shadow: 0 14px 30px -14px rgba(179, 38, 30, 0.75);
}

.btn-danger:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 38px -16px rgba(179, 38, 30, 0.8);
}

.btn-danger:disabled {
  opacity: 0.6;
  cursor: progress;
  transform: none;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #a8500a;
  margin-bottom: 14px;
}

.eyebrow.light {
  color: var(--gold-soft);
}

.req {
  color: #a8500a;
  font-weight: 700;
}

.optional {
  font-weight: 400;
  color: var(--muted);
  font-size: 0.8rem;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(253, 247, 236, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.brand-mark {
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  overflow: hidden;
  padding: 3px;
  box-shadow:
    0 8px 18px -10px rgba(59, 11, 11, 0.55),
    inset 0 0 0 1px rgba(92, 26, 26, 0.14);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.brand-text strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.02rem;
  letter-spacing: 0.015em;
  line-height: 1.18;
  color: var(--maroon-800);
}

.brand-text small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.76rem;
  line-height: 1.4;
  color: var(--maroon-700);
  opacity: 0.72;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  position: relative;
  padding: 9px 14px;
  font-size: 0.93rem;
  font-weight: 500;
  text-decoration: none;
  color: #4a2f27;
  border-radius: 8px;
  transition: color 0.18s ease, background 0.18s ease;
}

.site-nav a:not(.nav-cta):hover {
  color: var(--maroon-800);
  background: rgba(201, 154, 63, 0.12);
}

.site-nav .nav-cta {
  margin-left: 8px;
  background: linear-gradient(135deg, #f7a13c, #e0700f);
  color: #fff;
  padding: 10px 20px;
  border-radius: 10px;
  box-shadow: 0 10px 22px -12px rgba(224, 112, 15, 0.9);
}

.site-nav .nav-cta:hover {
  filter: brightness(1.04);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fffaf0;
  cursor: pointer;
  padding: 0;
  place-items: center;
  gap: 4px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--maroon-700);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  color: #fdf1dd;
  background-color: #380b0b;
  background-image:
    radial-gradient(120% 110% at 88% -10%, rgba(240, 138, 36, 0.22), transparent 55%),
    radial-gradient(90% 90% at 0% 100%, rgba(201, 154, 63, 0.14), transparent 60%),
    linear-gradient(100deg, rgba(43, 8, 8, 0.96) 0%, rgba(56, 12, 12, 0.86) 44%, rgba(64, 16, 12, 0.64) 100%),
    url("/assets/hero-bg.webp");
  background-position: center, center, center, center;
  background-size: cover, cover, cover, cover;
  background-repeat: no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 235, 200, 0.16) 1px, transparent 1.3px);
  background-size: 26px 26px;
  opacity: 0.45;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 88%);
  mask-image: linear-gradient(to bottom, #000, transparent 88%);
  pointer-events: none;
}

.hero-mandala {
  position: absolute;
  top: -120px;
  right: -140px;
  width: 540px;
  height: 540px;
  color: var(--gold-soft);
  opacity: 0.34;
  animation: rotate-slow 120s linear infinite;
  pointer-events: none;
}

@keyframes rotate-slow {
  to {
    transform: rotate(360deg);
  }
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 64px;
  align-items: center;
  padding: 78px 0 88px;
}

.hero-copy {
  max-width: 620px;
}

.hero-copy .eyebrow {
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: none;
  color: var(--gold-soft);
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(2.2rem, 4.4vw, 3.7rem);
  line-height: 1.28;
  letter-spacing: 0;
  color: #fdf3e4;
}

.hero h1 em {
  font-style: normal;
  color: var(--gold-soft);
}

.hero-sanskrit {
  font-family: var(--font-deva);
  font-size: 1.22rem;
  line-height: 1.8;
  color: var(--gold-soft);
  margin-top: 22px;
  letter-spacing: 0.015em;
}

.hero-lede {
  max-width: 54ch;
  margin-top: 18px;
  font-size: 1.05rem;
  line-height: 1.78;
  color: rgba(253, 241, 221, 0.82);
  font-weight: 300;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.hero-deadline {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 24px;
  font-size: 0.88rem;
  color: rgba(253, 241, 221, 0.67);
  line-height: 1.5;
}

.hero-deadline svg {
  width: 18px;
  height: 18px;
  flex: none;
  color: var(--gold-soft);
}

.hero-deadline strong {
  color: #f6e4c6;
  font-weight: 600;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 34px;
  list-style: none;
  margin: 38px 0 0;
  padding: 26px 0 0;
  border-top: 1px solid rgba(232, 201, 138, 0.22);
}

.hero-stats li {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero-stats strong {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 400;
  color: var(--gold-soft);
  line-height: 1.2;
}

.hero-stats span {
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(253, 241, 221, 0.58);
}

/* Event card -------------------------------------------------------------- */

.event-card {
  position: relative;
  padding: 28px;
  border-radius: 22px;
  border: 1px solid rgba(232, 201, 138, 0.32);
  background: linear-gradient(160deg, rgba(255, 245, 228, 0.11), rgba(255, 245, 228, 0.035));
  box-shadow: 0 34px 80px -34px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.event-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-soft);
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(232, 201, 138, 0.2);
}

.event-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.event-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 0;
  border-bottom: 1px solid rgba(232, 201, 138, 0.14);
}

.event-list li:last-child {
  border-bottom: 0;
}

.event-icon {
  width: 40px;
  height: 40px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(232, 201, 138, 0.38);
  color: var(--gold-soft);
  background: rgba(42, 7, 7, 0.25);
}

.event-icon svg {
  width: 18px;
  height: 18px;
}

.event-list small {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(253, 241, 221, 0.55);
  margin-bottom: 2px;
}

.event-list strong {
  display: block;
  font-size: 0.93rem;
  font-weight: 600;
  color: #f8ead2;
  line-height: 1.4;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 22px 0;
}

.countdown div {
  text-align: center;
  padding: 10px 4px;
  border-radius: 12px;
  border: 1px solid rgba(232, 201, 138, 0.2);
  background: rgba(42, 7, 7, 0.4);
}

.countdown strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
  color: #fdf1dd;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.countdown span {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(232, 201, 138, 0.78);
  margin-top: 2px;
}

.event-cta {
  width: 100%;
}

/* --------------------------------------------------------------------------
   Verse strip
   -------------------------------------------------------------------------- */

.verse-strip {
  background: linear-gradient(90deg, #e2ac4a, #f3d18c 48%, #e2ac4a);
  color: #47120e;
  padding: 20px 0;
}

.verse-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 22px;
  text-align: center;
}

.verse-inner p {
  font-family: var(--font-deva);
  font-size: 1rem;
  line-height: 1.75;
}

.verse-mark {
  font-family: var(--font-deva);
  font-size: 1.1rem;
  opacity: 0.55;
}

.verse-ref {
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  opacity: 0.7;
  border: 1px solid rgba(71, 18, 14, 0.28);
  border-radius: 999px;
  padding: 4px 10px;
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.section {
  padding: 92px 0;
}

.section-head {
  max-width: 760px;
  margin: 0 auto 52px;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(2rem, 3.4vw, 2.9rem);
  letter-spacing: -0.01em;
}

.section-head .lede {
  margin-top: 16px;
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--muted);
}

.section-head.on-dark h2 {
  color: #fdf3e4;
}

.section-head.on-dark .lede {
  color: rgba(253, 241, 221, 0.75);
}

/* About ------------------------------------------------------------------- */

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.about-card {
  position: relative;
  overflow: hidden;
  padding: 32px 28px 30px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--cream-2);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.about-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.55;
}

.about-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 34px 60px -34px rgba(46, 8, 8, 0.4);
}

.about-num {
  position: absolute;
  top: 16px;
  right: 22px;
  font-family: var(--font-display);
  font-size: 1.9rem;
  color: rgba(201, 154, 63, 0.28);
  line-height: 1;
}

.about-card h3 {
  font-size: 1.28rem;
  margin-bottom: 10px;
}

.about-card p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Competition ------------------------------------------------------------- */

.competition {
  background:
    radial-gradient(circle at 88% 8%, rgba(240, 138, 36, 0.08), transparent 40%),
    linear-gradient(180deg, #fbf2e2, #f6ebd6);
  border-block: 1px solid var(--line);
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.cat-card {
  display: flex;
  flex-direction: column;
  padding: 26px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--cream-2);
  box-shadow: 0 16px 40px -30px rgba(46, 8, 8, 0.4);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.cat-card:hover {
  transform: translateY(-5px);
  border-color: rgba(201, 154, 63, 0.65);
  box-shadow: 0 28px 50px -30px rgba(46, 8, 8, 0.45);
}

.cat-token {
  width: 58px;
  height: 58px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  margin-bottom: 18px;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--maroon-700);
  background: radial-gradient(circle at 32% 26%, #fff7e6, #f7e2b8);
  border: 1px solid rgba(201, 154, 63, 0.5);
  box-shadow: inset 0 0 0 4px rgba(255, 253, 248, 0.6);
  padding-bottom: 3px;
}

.cat-card h3 {
  font-size: 1.16rem;
  margin-bottom: 8px;
  line-height: 1.3;
}

.cat-card p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.68;
  margin-bottom: 18px;
}

.cat-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: auto 0 0;
  padding: 0;
}

.cat-meta li {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #7c5722;
  background: #f9efd8;
  border: 1px solid rgba(201, 154, 63, 0.28);
  border-radius: 999px;
  padding: 4px 9px;
}

.cat-note {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 28px;
  padding: 18px 22px;
  border-radius: 14px;
  border: 1px dashed rgba(201, 154, 63, 0.55);
  background: rgba(255, 253, 248, 0.72);
}

.cat-note svg {
  width: 20px;
  height: 20px;
  flex: none;
  color: var(--gold-deep);
  margin-top: 2px;
}

.cat-note p {
  font-size: 0.9rem;
  line-height: 1.65;
  color: #5a4034;
}

.cat-note strong {
  color: var(--maroon-800);
}

/* Prizes ------------------------------------------------------------------ */

.prizes {
  background:
    radial-gradient(circle at 6% 90%, rgba(201, 154, 63, 0.1), transparent 40%),
    var(--cream);
}

.prize-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: stretch;
}

.prize-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px 26px 28px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--cream-2);
  box-shadow: var(--shadow);
}

.prize-card.first {
  border-color: rgba(201, 154, 63, 0.6);
  background: linear-gradient(180deg, #fffaf0, #fdf0d6);
  box-shadow: 0 30px 70px -34px rgba(169, 122, 36, 0.55);
}

.prize-card.first::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  border-radius: 20px 20px 0 0;
  background: linear-gradient(90deg, #e2ac4a, #f7dda6, #e2ac4a);
}

.prize-rank {
  font-family: var(--font-deva);
  font-size: 1.02rem;
  color: var(--gold-deep);
  margin-bottom: 8px;
}

.prize-amount {
  font-family: var(--font-display);
  font-size: 2.3rem;
  font-weight: 400;
  color: var(--maroon-800);
  line-height: 1.15;
}

.prize-label {
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  color: var(--muted);
  margin-top: 6px;
}

.prize-card p {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 0.86rem;
  line-height: 1.65;
  color: var(--muted);
}

.prize-footnote {
  max-width: 720px;
  margin: 34px auto 0;
  text-align: center;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--muted);
}

.prize-footnote span {
  font-family: var(--font-deva);
  color: var(--gold-deep);
  margin: 0 6px;
}

/* Guidelines -------------------------------------------------------------- */

.guidelines {
  background: #fbf4e8;
  border-block: 1px solid var(--line);
}

.guidelines-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 60px;
  align-items: start;
}

.guidelines-grid h2 {
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  margin-bottom: 26px;
}

.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.check-list li {
  position: relative;
  padding-left: 36px;
  margin-bottom: 14px;
  line-height: 1.6;
  color: #4a352c;
  font-size: 0.96rem;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  border: 1px solid rgba(201, 154, 63, 0.55);
  background: #fdf1d9 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235c1a1a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 13 4 4 10-11'/%3E%3C/svg%3E") center / 11px no-repeat;
}

.check-list strong {
  color: var(--maroon-800);
  font-weight: 700;
}

.help-card {
  position: relative;
  overflow: hidden;
  padding: 34px 32px;
  border-radius: 22px;
  color: #fdf1dd;
  background:
    radial-gradient(80% 60% at 100% 0%, rgba(240, 138, 36, 0.22), transparent 60%),
    linear-gradient(155deg, #461111, #2a0707);
  box-shadow: 0 34px 70px -36px rgba(42, 7, 7, 0.7);
}

.help-card::after {
  content: "ॐ";
  position: absolute;
  right: -8px;
  bottom: -42px;
  font-family: var(--font-deva);
  font-size: 9rem;
  line-height: 1;
  color: rgba(232, 201, 138, 0.07);
  pointer-events: none;
}

.help-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 10px;
}

.help-card h3 {
  font-size: 1.55rem;
  color: #fdf3e4;
  margin-bottom: 12px;
}

.help-card > p {
  position: relative;
  z-index: 1;
  font-size: 0.92rem;
  line-height: 1.7;
  color: rgba(253, 241, 221, 0.72);
}

.help-link {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 0;
  margin-top: 4px;
  border-top: 1px solid rgba(232, 201, 138, 0.16);
  text-decoration: none;
  transition: color 0.18s ease;
}

.help-link:hover strong {
  color: var(--gold-soft);
}

.help-icon {
  width: 40px;
  height: 40px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(232, 201, 138, 0.35);
  color: var(--gold-soft);
  background: rgba(255, 255, 255, 0.04);
}

.help-icon svg {
  width: 17px;
  height: 17px;
}

.help-link small {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(253, 241, 221, 0.5);
}

.help-link strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: #f8ead2;
  transition: color 0.18s ease;
  overflow-wrap: anywhere;
}

.help-note {
  position: relative;
  z-index: 1;
  margin-top: 16px !important;
  padding-top: 16px;
  border-top: 1px solid rgba(232, 201, 138, 0.16);
  font-size: 0.82rem !important;
  color: rgba(253, 241, 221, 0.6) !important;
}

.help-note strong {
  color: #f6e4c6;
}

/* --------------------------------------------------------------------------
   Registration
   -------------------------------------------------------------------------- */

.register-section {
  position: relative;
  overflow: hidden;
  padding: 96px 0 110px;
  background:
    radial-gradient(90% 80% at 100% 0%, rgba(240, 138, 36, 0.19), transparent 55%),
    radial-gradient(80% 80% at 0% 100%, rgba(201, 154, 63, 0.13), transparent 55%),
    linear-gradient(160deg, #380b0b, #511414 55%, #632020);
}

.register-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 235, 200, 0.13) 1px, transparent 1.3px);
  background-size: 28px 28px;
  opacity: 0.4;
  -webkit-mask-image: radial-gradient(120% 100% at 50% 0%, #000, transparent 75%);
  mask-image: radial-gradient(120% 100% at 50% 0%, #000, transparent 75%);
  pointer-events: none;
}

.register-section .container {
  position: relative;
  z-index: 1;
}

.reg-card {
  max-width: 980px;
  margin: 0 auto;
  border-radius: 26px;
  overflow: hidden;
  background: var(--cream-2);
  border: 1px solid rgba(232, 201, 138, 0.45);
  box-shadow: 0 50px 110px -40px rgba(15, 2, 2, 0.8);
}

.reg-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding: 26px 38px;
  background: linear-gradient(135deg, #fff7e8, #fbe9c9);
  border-bottom: 1px solid var(--line);
}

.reg-head h3 {
  font-size: 1.45rem;
  margin-bottom: 2px;
}

.reg-head p {
  font-size: 0.82rem;
  color: var(--muted);
}

.deadline-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(201, 154, 63, 0.55);
  background: #fffdf8;
  color: #8a5a1a;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}

.deadline-badge svg {
  width: 14px;
  height: 14px;
}

.reg-body {
  padding: 34px 38px 40px;
}

.form-alert {
  padding: 13px 18px;
  margin-bottom: 26px;
  border-radius: 12px;
  border: 1px solid #f0b7ad;
  background: #fff2ef;
  color: #9e2a1b;
  font-size: 0.9rem;
  line-height: 1.6;
}

.form-alert.show {
  display: block;
}

.reg-form .form-section {
  border: 0;
  padding: 0;
  margin: 0 0 38px;
  min-width: 0;
}

.reg-form .form-section:last-of-type {
  margin-bottom: 0;
}

.reg-form legend {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 0 0 12px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 1.18rem;
  color: var(--maroon-800);
}

.step {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 50%;
  border: 1px solid rgba(201, 154, 63, 0.55);
  background: #fbeed3;
  color: #8a5a1a;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 22px;
}

.span-2 {
  grid-column: 1 / -1;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.field label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #4a2a22;
  line-height: 1.4;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: #fffdfa;
  border: 1px solid rgba(92, 26, 26, 0.19);
  border-radius: 11px;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #a89486;
  font-weight: 300;
}

.field textarea {
  min-height: 84px;
  resize: vertical;
  line-height: 1.55;
}

.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%237b6357' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px 8px;
  cursor: pointer;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: rgba(92, 26, 26, 0.34);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--saffron);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(240, 138, 36, 0.14);
}

.field.invalid input,
.field.invalid select,
.field.invalid textarea {
  border-color: #c0392b;
  background: #fff8f7;
}

.field.invalid input:focus,
.field.invalid select:focus,
.field.invalid textarea:focus {
  box-shadow: 0 0 0 4px rgba(192, 57, 43, 0.12);
}

.hint {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.4;
}

.field-error {
  display: none;
  font-size: 0.8rem;
  font-weight: 500;
  color: #b3261e;
  line-height: 1.45;
}

.field-error.show {
  display: block;
}

.consent-block {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fffaf0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: #4a352c;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.check:hover {
  border-color: rgba(201, 154, 63, 0.55);
}

.check input {
  width: 18px;
  height: 18px;
  min-height: 0;
  flex: none;
  margin: 2px 0 0;
  accent-color: var(--saffron-deep);
  cursor: pointer;
}

.check:has(input:checked) {
  border-color: rgba(201, 154, 63, 0.6);
  background: #fdf3df;
}

.submit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  flex-wrap: wrap;
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.privacy-note {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 48ch;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--muted);
}

.privacy-note svg {
  width: 16px;
  height: 16px;
  flex: none;
  color: var(--gold-deep);
}

.btn-submit {
  position: relative;
  min-width: 224px;
  padding: 15px 28px;
}

.btn-submit .spinner {
  display: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  animation: spin 0.8s linear infinite;
}

.btn-submit.loading {
  pointer-events: none;
  opacity: 0.88;
}

.btn-submit.loading .btn-label {
  opacity: 0.55;
}

.btn-submit.loading .spinner {
  display: block;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Success ----------------------------------------------------------------- */

.success-panel {
  max-width: 640px;
  margin: 6px auto 0;
  text-align: center;
  padding: 15px 6px 10px;
}

.success-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 26%, #3d9c69, #256b47);
  color: #fff;
  box-shadow: 0 18px 36px -16px rgba(37, 107, 71, 0.7), inset 0 0 0 5px rgba(255, 255, 255, 0.16);
}

.success-icon svg {
  width: 34px;
  height: 34px;
}

.success-panel .eyebrow {
  display: block;
  margin-bottom: 8px;
  color: #2e7d4f;
}

.success-panel h3 {
  font-size: 1.85rem;
  margin-bottom: 12px;
}

.success-text {
  font-size: 0.96rem;
  line-height: 1.7;
  color: var(--muted);
}

.success-text strong {
  color: var(--maroon-800);
}

.success-id {
  max-width: 340px;
  margin: 24px auto;
  padding: 16px;
  border-radius: 14px;
  border: 1px dashed rgba(201, 154, 63, 0.7);
  background: #fdf1d9;
}

.success-id span {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8a5a1a;
  margin-bottom: 4px;
}

.success-id strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--maroon-800);
}

.success-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 24px 0;
  text-align: left;
}

.success-summary div {
  padding: 12px 14px;
  border-radius: 12px;
  background: #fbf4e7;
  border: 1px solid var(--line);
  min-width: 0;
}

.success-summary dt {
  font-size: 0.64rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 3px;
}

.success-summary dd {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: #4a2a22;
  overflow-wrap: anywhere;
}

.success-note {
  font-size: 0.84rem;
  line-height: 1.65;
  color: var(--muted);
}

.success-note a {
  color: #a8500a;
  font-weight: 600;
  text-decoration: none;
}

.success-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background:
    radial-gradient(80% 70% at 100% 0%, rgba(240, 138, 36, 0.12), transparent 55%),
    #270606;
  color: rgba(253, 241, 221, 0.72);
  padding: 62px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 0.8fr 1.2fr 1.2fr;
  gap: 38px;
}

.footer-brand {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.footer-brand .brand-mark {
  width: 52px;
  height: 52px;
}

.footer-brand strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: #fdf1dd;
  font-weight: 400;
  line-height: 1.3;
}

.footer-brand p {
  font-family: var(--font-body);
  color: var(--gold-soft);
  font-size: 0.9rem;
  margin: 2px 0 8px;
}

.footer-brand small {
  font-size: 0.8rem;
  color: rgba(253, 241, 221, 0.5);
  line-height: 1.6;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 14px;
}

.footer-col a,
.footer-col p {
  display: block;
  font-size: 0.88rem;
  color: rgba(253, 241, 221, 0.68);
  text-decoration: none;
  margin: 0 0 7px;
  line-height: 1.55;
  transition: color 0.18s ease;
}

.footer-col a:hover {
  color: #fff;
}

.footer-admin {
  display: inline-block !important;
  margin-top: 8px !important;
  padding: 6px 12px;
  border: 1px solid rgba(232, 201, 138, 0.28);
  border-radius: 999px;
  font-size: 0.76rem !important;
}

.footer-admin:hover {
  border-color: rgba(232, 201, 138, 0.6);
  background: rgba(232, 201, 138, 0.08);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 48px;
  padding: 18px 0;
  border-top: 1px solid rgba(232, 201, 138, 0.14);
  font-size: 0.78rem;
  color: rgba(253, 241, 221, 0.48);
}

.footer-verse {
  font-family: var(--font-deva);
  color: rgba(232, 201, 138, 0.8);
  font-size: 0.9rem;
}

/* --------------------------------------------------------------------------
   Admin
   -------------------------------------------------------------------------- */

.admin-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 8% 0%, rgba(240, 138, 36, 0.08), transparent 40%),
    radial-gradient(circle at 92% 4%, rgba(201, 154, 63, 0.1), transparent 42%),
    #faf3e6;
}

.admin-header {
  background: #2a0707;
  color: #fdf1dd;
}

.admin-header .header-inner {
  padding: 14px 0;
}

.admin-header .brand-text strong {
  color: #fdf1dd;
}

.admin-header .brand-text small {
  color: var(--gold-soft);
  opacity: 0.85;
}

.admin-header-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.admin-tag {
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  color: var(--gold-soft);
  border: 1px solid rgba(232, 201, 138, 0.35);
  border-radius: 999px;
  padding: 5px 12px;
}

.admin-main {
  padding: 42px 0 80px;
}

.admin-login-wrap {
  display: grid;
  place-items: center;
  min-height: 60vh;
}

.admin-login {
  width: min(430px, 100%);
  padding: 38px 34px;
  border-radius: 22px;
  background: var(--cream-2);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.admin-login h1 {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.admin-login p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 22px;
}

.admin-login .field {
  margin-bottom: 16px;
}

.admin-alert {
  padding: 11px 14px;
  margin-bottom: 16px;
  border-radius: 10px;
  border: 1px solid #f0b7ad;
  background: #fff2ef;
  color: #9e2a1b;
  font-size: 0.86rem;
  line-height: 1.5;
}

.admin-back {
  display: inline-block;
  margin-top: 18px;
  font-size: 0.84rem;
  color: var(--muted);
  text-decoration: none;
}

.admin-back:hover {
  color: var(--maroon-700);
}

.admin-title-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 26px;
}

.admin-title-row h1 {
  font-size: 2rem;
}

.admin-title-row p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 4px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 26px;
}

.stat-card {
  padding: 20px 22px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--cream-2);
  box-shadow: 0 14px 34px -30px rgba(46, 8, 8, 0.45);
}

.stat-card span {
  display: block;
  font-size: 0.74rem;
  letter-spacing: 0.02em;
  color: var(--muted);
  margin-bottom: 6px;
}

.stat-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 400;
  color: var(--maroon-800);
  line-height: 1.15;
}

.stat-card small {
  display: block;
  font-size: 0.74rem;
  color: var(--muted);
  margin-top: 4px;
}

.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.admin-search {
  flex: 1 1 260px;
  min-width: 220px;
  position: relative;
}

.admin-search input {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px 10px 40px;
  border-radius: 10px;
  border: 1px solid rgba(92, 26, 26, 0.19);
  background: #fffdfa;
  font: inherit;
  font-size: 0.9rem;
}

.admin-search input:focus {
  outline: none;
  border-color: var(--saffron);
  box-shadow: 0 0 0 4px rgba(240, 138, 36, 0.14);
}

.admin-search svg {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--muted);
}

.admin-toolbar select {
  min-height: 44px;
  padding: 10px 34px 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(92, 26, 26, 0.19);
  background: #fffdfa;
  font: inherit;
  font-size: 0.88rem;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%237b6357' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 11px 7px;
}

.admin-toolbar .btn {
  padding: 11px 18px;
  font-size: 0.88rem;
}

.table-wrap {
  overflow-x: auto;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--cream-2);
  box-shadow: 0 18px 44px -34px rgba(46, 8, 8, 0.5);
}

.admin-table {
  width: 100%;
  min-width: 940px;
  border-collapse: collapse;
  font-size: 0.86rem;
}

.admin-table thead th {
  padding: 13px 16px;
  text-align: left;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #7b5a2a;
  background: #f7ead2;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.admin-table tbody td {
  padding: 13px 16px;
  border-bottom: 1px solid rgba(92, 26, 26, 0.08);
  vertical-align: middle;
  color: #4a352c;
}

.admin-table tbody tr:last-child td {
  border-bottom: 0;
}

.admin-table tbody tr:hover {
  background: #fffaf0;
}

.admin-table .cell-name strong {
  display: block;
  color: var(--maroon-800);
  font-weight: 600;
}

.admin-table .cell-name small {
  display: block;
  font-size: 0.74rem;
  color: var(--muted);
}

.admin-table .cell-id {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
  color: var(--muted);
  white-space: nowrap;
}

.admin-table tbody td small {
  display: block;
  font-size: 0.74rem;
  color: var(--muted);
  line-height: 1.4;
}

.admin-title-row code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.8rem;
  background: #f7ead2;
  border: 1px solid rgba(201, 154, 63, 0.3);
  border-radius: 4px;
  padding: 1px 5px;
}

.cat-badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  background: #fbf0da;
  border: 1px solid rgba(201, 154, 63, 0.35);
  color: #7c5722;
  font-size: 0.7rem;
  font-weight: 600;
  white-space: nowrap;
}

.row-actions {
  display: flex;
  gap: 6px;
  white-space: nowrap;
}

.icon-btn {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  border: 1px solid rgba(92, 26, 26, 0.16);
  background: #fffdfa;
  color: var(--maroon-700);
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.icon-btn svg {
  width: 15px;
  height: 15px;
}

.icon-btn:hover {
  background: #fbf0da;
  border-color: rgba(201, 154, 63, 0.6);
}

.icon-btn.danger:hover {
  background: #fff0ee;
  border-color: #e5a79e;
  color: #b3261e;
}

.admin-empty {
  padding: 60px 20px;
  text-align: center;
  color: var(--muted);
}

.admin-empty strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--maroon-800);
  margin-bottom: 6px;
}

.table-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  font-size: 0.78rem;
  color: var(--muted);
}

.admin-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 20px);
  z-index: 200;
  padding: 12px 20px;
  border-radius: 10px;
  background: var(--maroon-800);
  color: #fdf1dd;
  font-size: 0.88rem;
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.admin-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Modal */

.modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(20, 4, 4, 0.62);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.modal-card {
  width: min(580px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  padding: 28px;
  border-radius: 18px;
  background: var(--cream-2);
  border: 1px solid rgba(232, 201, 138, 0.5);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.7);
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
}

.modal-card-narrow {
  max-width: 460px;
}

.delete-note {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 16px;
}

.modal-head h2 {
  font-size: 1.5rem;
}

.modal-head p {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 3px;
}

.modal-close {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fffaf0;
  color: var(--maroon-700);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.modal-close:hover {
  background: #fbeed3;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 18px;
}

.detail-grid div {
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(92, 26, 26, 0.08);
  min-width: 0;
}

.detail-grid div.full {
  grid-column: 1 / -1;
}

.detail-grid dt {
  font-size: 0.74rem;
  letter-spacing: 0.02em;
  color: var(--muted);
  margin-bottom: 2px;
}

.detail-grid dd {
  margin: 0;
  font-size: 0.9rem;
  color: #3d2a22;
  overflow-wrap: anywhere;
}

/* --------------------------------------------------------------------------
   জেলা-ভিত্তিক যোগাযোগ (public + admin)
   -------------------------------------------------------------------------- */

.contact-panel {
  padding: 30px;
  border-radius: 20px;
  background: var(--cream-2);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.contact-filter {
  max-width: 340px;
  margin-bottom: 22px;
}

.contact-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.contact-card {
  padding: 20px 22px;
  border-radius: 16px;
  background: #fffdfa;
  border: 1px solid rgba(201, 154, 63, 0.3);
}

.contact-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--maroon-800);
  margin-bottom: 12px;
}

.contact-numbers {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.contact-numbers li {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px dashed rgba(92, 26, 26, 0.12);
}

.contact-numbers li:first-child {
  padding-top: 0;
  border-top: 0;
}

.contact-person {
  font-size: 0.85rem;
  color: #5a4034;
  line-height: 1.45;
}

.contact-person small {
  display: block;
  margin-top: 2px;
  font-size: 0.74rem;
  color: var(--muted);
}

.contact-numbers a {
  flex: none;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--maroon-700);
  text-decoration: none;
  white-space: nowrap;
}

.contact-numbers a:hover {
  text-decoration: underline;
}

.contact-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 26px;
  border-radius: 14px;
  border: 1px dashed rgba(92, 26, 26, 0.2);
  background: #fffdfa;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.7;
  text-align: center;
}

.contact-empty a {
  color: var(--maroon-700);
  font-weight: 600;
}

.contact-fallback {
  margin-top: 18px;
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--muted);
}

.contact-fallback a {
  color: var(--maroon-700);
  font-weight: 600;
}

.admin-contacts {
  margin-top: 52px;
  padding-top: 36px;
  border-top: 1px solid rgba(92, 26, 26, 0.12);
}

.admin-section-head {
  margin-bottom: 20px;
}

.admin-section-head h2 {
  font-size: 1.7rem;
  margin-bottom: 6px;
}

.admin-section-head p {
  max-width: 760px;
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--muted);
}

.contact-form {
  display: grid;
  grid-template-columns: 1.1fr 1.4fr 1fr 1.2fr auto;
  align-items: end;
  gap: 12px;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--cream-2);
  box-shadow: 0 16px 38px -32px rgba(46, 8, 8, 0.45);
}

.contact-form .field {
  margin-bottom: 0;
}

.contact-form .btn {
  min-height: 44px;
  padding: 11px 20px;
  white-space: nowrap;
}

.contact-table {
  min-width: 720px;
}

.district-badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  background: #eef4ea;
  border: 1px solid #cbdcbf;
  color: #3b5a2f;
  font-size: 0.7rem;
  font-weight: 600;
  white-space: nowrap;
}

.cell-phone a {
  color: var(--maroon-700);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.cell-phone a:hover {
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1080px) {
  .cat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-inner {
    gap: 44px;
  }

  .footer-grid {
    grid-template-columns: 1.4fr 0.8fr 1.1fr 1.1fr;
    gap: 28px;
  }
}

@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
    padding: 62px 0 72px;
  }

  .hero-copy {
    max-width: 680px;
  }

  .hero-mandala {
    top: -160px;
    right: -180px;
    width: 480px;
    height: 480px;
    opacity: 0.26;
  }

  .event-card {
    max-width: 540px;
  }

  .guidelines-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .help-card {
    max-width: 580px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-form .btn {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    max-width: 640px;
    margin-inline: auto;
  }

  .about-card {
    padding: 26px 24px;
  }

  .section {
    padding: 74px 0;
  }

  .register-section {
    padding: 76px 0 88px;
  }
}

@media (max-width: 820px) {
  .nav-toggle {
    display: grid;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 14px 24px 20px;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -28px rgba(46, 8, 8, 0.4);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: 11px 12px;
  }

  .site-nav .nav-cta {
    margin: 8px 0 0;
    text-align: center;
  }

  .site-header {
    position: sticky;
  }

  .prize-grid {
    grid-template-columns: 1fr;
    max-width: 460px;
    margin-inline: auto;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 700px) {
  .container {
    width: calc(100% - 36px);
  }

  .cat-grid {
    grid-template-columns: 1fr;
  }

  .brand-text strong {
    font-size: 0.92rem;
  }

  .brand-text small {
    font-size: 0.7rem;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
  }

  .hero h1 {
    font-size: clamp(2.15rem, 8.4vw, 2.9rem);
  }

  .hero-sanskrit {
    font-size: 1.08rem;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .span-2 {
    grid-column: auto;
  }

  .reg-body {
    padding: 26px 22px 30px;
  }

  .reg-head {
    padding: 22px;
  }

  .reg-head h3 {
    font-size: 1.28rem;
  }

  .success-summary {
    grid-template-columns: 1fr;
  }

  .submit-row {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-submit {
    width: 100%;
  }

  .section-head {
    margin-bottom: 38px;
  }

  .section-head .lede {
    font-size: 0.96rem;
  }

  .admin-main {
    padding: 28px 0 60px;
  }

  .stat-grid {
    gap: 12px;
  }

  .stat-card {
    padding: 16px 18px;
  }

  .stat-card strong {
    font-size: 1.55rem;
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }

  .contact-panel {
    padding: 22px 18px;
  }

  .contact-filter {
    max-width: none;
  }

  .contact-list {
    grid-template-columns: 1fr;
  }

  .contact-form {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .admin-contacts {
    margin-top: 40px;
    padding-top: 28px;
  }

  .admin-section-head h2 {
    font-size: 1.45rem;
  }
}

@media (max-width: 560px) {
  .hero-stats {
    gap: 24px;
  }

  .hero-stats strong {
    font-size: 1.35rem;
  }

  .hero-actions .btn {
    flex: 1 1 auto;
  }

  .countdown strong {
    font-size: 1.2rem;
  }

  .prize-amount {
    font-size: 2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom {
    justify-content: center;
    text-align: center;
    margin-top: 34px;
  }

  .contact-numbers li {
    flex-direction: column;
    gap: 4px;
  }

  .contact-numbers a {
    font-size: 0.95rem;
  }

  .verse-inner {
    gap: 6px 14px;
  }

  .verse-inner p {
    font-size: 0.9rem;
  }

  .verse-mark {
    display: none;
  }

  .section {
    padding: 60px 0;
  }

  .register-section {
    padding: 62px 0 74px;
  }

  .reg-card {
    border-radius: 20px;
  }

  .deadline-badge {
    font-size: 0.72rem;
  }

  .admin-title-row h1 {
    font-size: 1.6rem;
  }

  .admin-toolbar .btn {
    flex: 1 1 auto;
  }
}

/* --------------------------------------------------------------------------
   Background music toggle + mobile quick action bar
   -------------------------------------------------------------------------- */

.music-toggle {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: calc(18px + env(safe-area-inset-bottom));
  z-index: 80;
  width: 52px;
  height: 52px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(253, 241, 221, 0.28);
  background: linear-gradient(150deg, rgba(105, 31, 31, 0.97), rgba(42, 7, 7, 0.98));
  color: #ffe2b0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow:
    0 14px 32px -14px rgba(20, 4, 4, 0.85),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  transition: transform 0.18s ease, opacity 0.18s ease, color 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}

.music-toggle:hover {
  transform: translateY(-2px);
}

.music-toggle:active {
  transform: translateY(0) scale(0.96);
}

.music-toggle:focus-visible {
  outline: 2px solid #f3b75e;
  outline-offset: 3px;
}

.music-toggle .music-icon {
  width: 24px;
  height: 24px;
}

.music-toggle .music-icon--off {
  display: none;
}

.music-toggle.is-off .music-icon--on {
  display: none;
}

.music-toggle.is-off .music-icon--off {
  display: block;
  color: #d9c7ae;
}

.music-toggle.is-off {
  opacity: 0.82;
}

.music-ring {
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1px solid rgba(243, 183, 94, 0.55);
  opacity: 0;
  pointer-events: none;
}

.music-toggle.is-on .music-ring {
  animation: musicPulse 4.5s ease-out infinite;
}

@keyframes musicPulse {
  0% {
    transform: scale(0.9);
    opacity: 0.55;
  }
  70% {
    transform: scale(1.24);
    opacity: 0;
  }
  100% {
    transform: scale(1.24);
    opacity: 0;
  }
}

.music-toggle.needs-tap::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(243, 183, 94, 0.7);
  animation: musicNudge 1.9s ease-out infinite;
  pointer-events: none;
}

@keyframes musicNudge {
  0% {
    transform: scale(0.92);
    opacity: 0.8;
  }
  70% {
    transform: scale(1.28);
    opacity: 0;
  }
  100% {
    transform: scale(1.28);
    opacity: 0;
  }
}

.music-hint {
  position: absolute;
  right: 62px;
  top: 50%;
  transform: translateY(-50%);
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(42, 7, 7, 0.94);
  color: #ffe7c0;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
  box-shadow: 0 10px 24px -12px rgba(20, 4, 4, 0.75);
  pointer-events: none;
  animation: hintFade 0.4s ease both;
}

.music-hint::after {
  content: "";
  position: absolute;
  right: -4px;
  top: 50%;
  width: 9px;
  height: 9px;
  transform: translateY(-50%) rotate(45deg);
  background: rgba(42, 7, 7, 0.94);
}

@keyframes hintFade {
  from {
    opacity: 0;
    transform: translateY(-50%) translateX(6px);
  }
  to {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
  }
}

.music-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.mobile-cta {
  display: none;
}

@media (max-width: 820px) {
  body:not(.admin-body) {
    padding-bottom: calc(86px + env(safe-area-inset-bottom));
  }

  section[id],
  .section[id] {
    scroll-margin-top: 84px;
  }

  /* iOS-এ ফর্মে ট্যাপ করলে জুম হওয়া বন্ধ (১৬px ন্যূনতম) */
  .field input,
  .field select,
  .field textarea,
  .admin-search input,
  .admin-toolbar select {
    font-size: 16px;
  }

  .btn {
    min-height: 48px;
  }

  .site-nav a {
    padding: 14px 12px;
    font-size: 1.02rem;
  }

  .nav-toggle {
    width: 46px;
    height: 46px;
  }

  .footer-col a,
  .footer-col p {
    line-height: 1.75;
  }

  .footer-col a {
    padding: 3px 0;
  }

  /* নিচে সবসময় হাতের কাছে নিবন্ধন */
  .mobile-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 75;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(250, 244, 232, 0.94);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-top: 1px solid rgba(92, 26, 26, 0.14);
    box-shadow: 0 -10px 32px -20px rgba(46, 8, 8, 0.55);
    transition: transform 0.26s ease, opacity 0.26s ease;
  }

  .mobile-cta.is-hidden {
    transform: translateY(112%);
    opacity: 0;
    pointer-events: none;
  }

  .mobile-cta-main {
    flex: 1 1 auto;
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 12px;
    background: linear-gradient(135deg, #f7a13c, #e0700f 70%);
    color: #fff;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 12px 26px -14px rgba(224, 112, 15, 0.9);
    -webkit-tap-highlight-color: transparent;
  }

  .mobile-cta-main:active {
    transform: scale(0.985);
  }

  .mobile-cta-main svg {
    width: 20px;
    height: 20px;
    flex: none;
  }

  .mobile-cta-call {
    flex: none;
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    border: 1px solid rgba(92, 26, 26, 0.2);
    background: #fffdfa;
    color: #7b1f1f;
    -webkit-tap-highlight-color: transparent;
  }

  .mobile-cta-call svg {
    width: 21px;
    height: 21px;
  }

  .music-toggle {
    right: 14px;
    bottom: calc(86px + env(safe-area-inset-bottom));
    width: 48px;
    height: 48px;
  }

  .music-toggle .music-icon {
    width: 22px;
    height: 22px;
  }

  .music-hint {
    right: 56px;
    padding: 6px 10px;
    font-size: 0.72rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
