:root {
  --cream: #faf6ef;
  --ivory: #f3ebe0;
  --sand: #e8dcc8;
  --maroon: #6b2d2d;
  --maroon-deep: #4a1c1c;
  --gold: #b8955a;
  --gold-soft: #d4b87a;
  --ink: #2c221c;
  --muted: #6b5e52;
  --white: #fffcf7;
  --success: #3d6b4f;
  --error: #8b2e2e;
  --radius: 0.85rem;
  --shadow: 0 12px 40px rgba(74, 28, 28, 0.08);
  --font-body: "Noto Sans Gujarati", "Noto Sans", system-ui, sans-serif;
  --font-display: "Tiro Gujarati", "Noto Serif Gujarati", Georgia, serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(184, 149, 90, 0.18), transparent 55%),
    linear-gradient(180deg, var(--cream) 0%, var(--ivory) 45%, #efe4d4 100%);
  min-height: 100vh;
  line-height: 1.7;
}

.font-display {
  font-family: var(--font-display);
}

/* Hero */
.hero {
  position: relative;
  min-height: min(88vh, 720px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: var(--white);
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  display: block;
  transform: scale(1.02);
  animation: hero-drift 18s ease-in-out infinite alternate;
}

.hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(42, 22, 18, 0.35) 0%, rgba(42, 22, 18, 0.25) 40%, rgba(42, 22, 18, 0.78) 100%),
    linear-gradient(90deg, rgba(74, 28, 28, 0.25), transparent 55%);
}

.hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3rem;
  animation: fade-up 1s ease-out both;
}

.hero__mantra {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.4vw, 1.35rem);
  line-height: 1.8;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
  max-width: 40rem;
}

.hero__brand {
  margin-top: 1.25rem;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 4.2vw, 2.65rem);
  font-weight: 600;
  line-height: 1.35;
  color: #fff8ea;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
  max-width: 28ch;
}

.hero__sub {
  margin-top: 0.65rem;
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: rgba(255, 248, 234, 0.9);
  max-width: 36rem;
}

.gold-rule {
  width: 4.5rem;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-soft), transparent);
  margin: 1rem 0;
  border: 0;
}

/* Sections */
.section {
  max-width: 48rem;
  margin: 0 auto;
  padding: 2.75rem 1.25rem;
}

.section--wide {
  max-width: 72rem;
}

.intro {
  text-align: center;
  animation: fade-up 0.9s ease-out 0.15s both;
  max-width: 52rem;
}

.intro-panel {
  position: relative;
  padding: 2.25rem 1.5rem 2rem;
  background:
    radial-gradient(ellipse 70% 60% at 50% 0%, rgba(212, 184, 122, 0.16), transparent 65%),
    linear-gradient(180deg, #fffdf8 0%, #faf4ea 100%);
  border: 1px solid rgba(184, 149, 90, 0.32);
  border-radius: 1.15rem;
  box-shadow: 0 18px 48px rgba(74, 28, 28, 0.06);
  overflow: hidden;
}

.intro-panel::before,
.intro-panel::after {
  content: "";
  position: absolute;
  width: 4.5rem;
  height: 4.5rem;
  border: 1px solid rgba(184, 149, 90, 0.28);
  pointer-events: none;
}

.intro-panel::before {
  top: 0.75rem;
  left: 0.75rem;
  border-right: none;
  border-bottom: none;
  border-radius: 0.85rem 0 0 0;
}

.intro-panel::after {
  right: 0.75rem;
  bottom: 0.75rem;
  border-left: none;
  border-top: none;
  border-radius: 0 0 0.85rem 0;
}

.intro-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.1rem;
}

.intro-ornament--bottom {
  margin-top: 1.35rem;
  margin-bottom: 0;
}

.intro-ornament__line {
  width: 3.5rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.intro-ornament__lotus {
  color: var(--gold);
  font-size: 0.95rem;
  line-height: 1;
  opacity: 0.9;
}

.intro h2 {
  font-family: var(--font-display);
  color: var(--maroon);
  font-size: clamp(1.55rem, 3.6vw, 2.15rem);
  margin: 0 0 1.15rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.35;
}

.intro p {
  color: #5a4f45;
  margin: 0 auto 1rem;
  max-width: 38rem;
  font-size: clamp(0.98rem, 2.2vw, 1.08rem);
  line-height: 1.85;
}

.intro-note {
  margin-top: 1.15rem !important;
}

.intro-note strong {
  color: var(--maroon-deep);
  font-weight: 600;
}

.age-badge {
  display: inline-block;
  margin: 0.85rem auto 0.25rem;
  padding: 0.55rem 1.35rem;
  border: 1.5px solid rgba(107, 45, 45, 0.45);
  color: var(--maroon);
  border-radius: 999px;
  font-size: clamp(0.92rem, 2vw, 1.02rem);
  font-weight: 600;
  background: linear-gradient(180deg, #fffdf9, #f7efe3);
  box-shadow: 0 4px 14px rgba(107, 45, 45, 0.06);
  letter-spacing: 0.01em;
}

/* Form */
.form-shell {
  background: var(--white);
  border: 1px solid rgba(184, 149, 90, 0.28);
  border-radius: calc(var(--radius) + 0.25rem);
  box-shadow: var(--shadow);
  padding: 1.5rem 1.25rem 2rem;
  animation: fade-up 0.9s ease-out 0.25s both;
}

@media (min-width: 640px) {
  .form-shell {
    padding: 2rem 2.25rem 2.5rem;
  }
}

.form-shell h2 {
  font-family: var(--font-display);
  color: var(--maroon-deep);
  font-size: 1.45rem;
  margin: 0 0 0.35rem;
}

.form-shell .hint {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.field-grid {
  display: grid;
  gap: 1.15rem;
}

@media (min-width: 640px) {
  .field-grid.two {
    grid-template-columns: 1fr 1fr;
  }
}

.field label {
  display: block;
  font-weight: 600;
  color: var(--maroon-deep);
  margin-bottom: 0.4rem;
  font-size: 0.98rem;
}

.field .req {
  color: var(--gold);
  margin-left: 0.15rem;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid rgba(107, 45, 45, 0.18);
  background: #fffdf9;
  border-radius: 0.65rem;
  padding: 0.75rem 0.9rem;
  font: inherit;
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184, 149, 90, 0.22);
}

.field textarea {
  min-height: 5.5rem;
  resize: vertical;
}

.field.error input,
.field.error textarea {
  border-color: var(--error);
}

.field .error-text {
  color: var(--error);
  font-size: 0.85rem;
  margin-top: 0.3rem;
}

.sutra-block {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(184, 149, 90, 0.25);
}

.sutra-block h3 {
  font-family: var(--font-display);
  color: var(--maroon);
  font-size: 1.2rem;
  margin: 0 0 0.35rem;
}

.sutra-block p {
  color: var(--muted);
  margin: 0 0 1rem;
  font-size: 0.95rem;
}

.sutra-list {
  display: grid;
  gap: 0.55rem;
}

@media (min-width: 640px) {
  .sutra-list {
    grid-template-columns: 1fr 1fr;
  }
}

.sutra-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.7rem 0.8rem;
  border-radius: 0.65rem;
  border: 1px solid transparent;
  background: rgba(243, 235, 224, 0.45);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.sutra-item:hover,
.sutra-item:has(input:checked) {
  background: rgba(184, 149, 90, 0.12);
  border-color: rgba(184, 149, 90, 0.35);
}

.sutra-item input {
  margin-top: 0.25rem;
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--maroon);
  flex-shrink: 0;
}

.sutra-item span {
  font-size: 0.95rem;
  line-height: 1.45;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: none;
  border-radius: 0.7rem;
  padding: 0.85rem 1.5rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s, background 0.2s, box-shadow 0.2s;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--maroon) 0%, var(--maroon-deep) 100%);
  color: #fff8ea;
  box-shadow: 0 8px 24px rgba(74, 28, 28, 0.22);
  width: 100%;
  margin-top: 1.75rem;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #7a3535 0%, var(--maroon) 100%);
}

.btn-secondary {
  background: transparent;
  color: var(--maroon);
  border: 1px solid rgba(107, 45, 45, 0.3);
}

.btn-secondary:hover {
  background: rgba(184, 149, 90, 0.12);
}

.btn-danger {
  background: #8b2e2e;
  color: #fff;
}

.btn-sm {
  padding: 0.45rem 0.85rem;
  font-size: 0.88rem;
  border-radius: 0.5rem;
}

.alert {
  padding: 0.85rem 1rem;
  border-radius: 0.65rem;
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}

.alert-error {
  background: #f8e8e8;
  color: var(--error);
  border: 1px solid rgba(139, 46, 46, 0.2);
}

.alert-success {
  background: #e8f2ec;
  color: var(--success);
  border: 1px solid rgba(61, 107, 79, 0.2);
}

.honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}

/* Thank you */
.thanks {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem 1.25rem;
}

.thanks-card {
  max-width: 32rem;
  width: 100%;
  text-align: center;
  background: var(--white);
  border: 1px solid rgba(184, 149, 90, 0.3);
  border-radius: 1rem;
  box-shadow: var(--shadow);
  overflow: hidden;
  animation: fade-up 0.8s ease-out both;
}

.thanks-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.thanks-card .body {
  padding: 1.75rem 1.5rem 2rem;
}

.thanks-card h1 {
  font-family: var(--font-display);
  color: var(--maroon);
  font-size: 1.65rem;
  margin: 0 0 0.75rem;
}

.thanks-card p {
  color: var(--muted);
  margin: 0 0 1.25rem;
}

.site-footer {
  margin-top: 1rem;
  padding: 0;
  color: var(--muted);
}

.footer-inner {
  max-width: 48rem;
  margin: 0 auto;
  padding: 0 1.25rem 2rem;
  text-align: center;
}

.footer-org {
  padding: 0.5rem 0 1.5rem;
}

.footer-sangh,
.footer-pathshala {
  margin: 0.15rem 0;
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-pathshala {
  color: var(--maroon);
  font-weight: 500;
}

.footer-credit-bar {
  display: flex;
  justify-content: center;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(184, 149, 90, 0.28);
}

.credit-card {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 1.15rem;
  text-decoration: none;
  color: inherit;
  background: linear-gradient(180deg, #fffdf9 0%, #f7efe4 100%);
  border: 1px solid rgba(184, 149, 90, 0.35);
  border-radius: 0.9rem;
  box-shadow: 0 8px 22px rgba(74, 28, 28, 0.05);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.credit-card:hover {
  transform: translateY(-1px);
  border-color: rgba(107, 45, 45, 0.35);
  box-shadow: 0 12px 28px rgba(74, 28, 28, 0.1);
  text-decoration: none;
}

.credit-mark {
  flex-shrink: 0;
  width: 2.35rem;
  height: 2.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.65rem;
  background: linear-gradient(145deg, var(--maroon) 0%, var(--maroon-deep) 100%);
  color: #fff8ea;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  box-shadow: 0 4px 12px rgba(74, 28, 28, 0.2);
}

.credit-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.05rem;
  text-align: left;
  line-height: 1.25;
}

.credit-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8a7b6c;
  font-weight: 500;
}

.credit-brand {
  font-size: 1rem;
  font-weight: 700;
  color: var(--maroon-deep);
  letter-spacing: 0.01em;
}

.credit-url {
  font-size: 0.78rem;
  color: var(--gold);
  font-weight: 500;
}

.credit-card:hover .credit-url {
  color: var(--maroon);
}

/* Admin */
.admin-body {
  background: linear-gradient(180deg, #f7f1e8 0%, #efe6d8 100%);
  min-height: 100vh;
}

.admin-nav {
  background: var(--maroon-deep);
  color: #fff8ea;
  padding: 0.9rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.admin-nav a {
  color: #fff8ea;
  text-decoration: none;
  font-weight: 500;
}

.admin-nav .brand {
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.admin-wrap {
  max-width: 72rem;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

.admin-card {
  background: var(--white);
  border: 1px solid rgba(184, 149, 90, 0.28);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem;
}

.login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.login-card {
  width: 100%;
  max-width: 24rem;
  background: var(--white);
  border: 1px solid rgba(184, 149, 90, 0.3);
  border-radius: 1rem;
  box-shadow: var(--shadow);
  padding: 2rem 1.5rem;
  animation: fade-up 0.7s ease-out both;
}

.login-card h1 {
  font-family: var(--font-display);
  color: var(--maroon);
  font-size: 1.4rem;
  margin: 0 0 0.35rem;
  text-align: center;
}

.login-card .sub {
  text-align: center;
  color: var(--muted);
  margin-bottom: 1.5rem;
  font-size: 0.92rem;
}

.filters {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

@media (min-width: 768px) {
  .filters {
    grid-template-columns: 2fr 1fr 1fr auto auto;
    align-items: end;
  }
}

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  min-width: 640px;
}

table.data th,
table.data td {
  text-align: left;
  padding: 0.75rem 0.65rem;
  border-bottom: 1px solid rgba(184, 149, 90, 0.2);
  vertical-align: top;
}

table.data th {
  color: var(--maroon);
  font-weight: 600;
  white-space: nowrap;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.mobile-cards {
  display: none;
}

@media (max-width: 767px) {
  table.data {
    display: none;
  }

  .mobile-cards {
    display: grid;
    gap: 0.85rem;
  }

  .m-card {
    border: 1px solid rgba(184, 149, 90, 0.25);
    border-radius: 0.75rem;
    padding: 1rem;
    background: #fffdf9;
  }

  .m-card h3 {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
    color: var(--maroon-deep);
  }

  .m-card p {
    margin: 0.2rem 0;
    font-size: 0.9rem;
    color: var(--muted);
  }
}

.detail-grid {
  display: grid;
  gap: 0.85rem;
}

@media (min-width: 640px) {
  .detail-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.detail-item {
  padding: 0.75rem 0.85rem;
  background: rgba(243, 235, 224, 0.4);
  border-radius: 0.6rem;
}

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

.detail-item .label {
  font-size: 0.82rem;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.detail-item .value {
  color: var(--ink);
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.chip {
  background: rgba(107, 45, 45, 0.08);
  color: var(--maroon-deep);
  border: 1px solid rgba(184, 149, 90, 0.35);
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  font-size: 0.85rem;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.toolbar h1 {
  font-family: var(--font-display);
  color: var(--maroon);
  font-size: 1.45rem;
  margin: 0;
}

.empty {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--muted);
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-drift {
  from {
    transform: scale(1.02) translateY(0);
  }
  to {
    transform: scale(1.06) translateY(-1.5%);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media print {
  .admin-nav,
  .no-print,
  .toolbar .actions {
    display: none !important;
  }

  .admin-body,
  body {
    background: white;
  }

  .admin-card {
    box-shadow: none;
    border: none;
  }
}
