:root {
  --bg: #f8f5ee;
  --surface: #ffffff;
  --ink: #20201d;
  --muted: #6d665e;
  --line: #e3dbce;
  --saffron: #d87922;
  --maroon: #7b2435;
  --green: #24614a;
  --deep: #24231f;
  --gold: #f5b84b;
  --shadow: 0 22px 60px rgba(45, 34, 25, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(216, 121, 34, 0.12), transparent 30%),
    linear-gradient(180deg, #fffaf2 0, var(--bg) 360px);
  color: var(--ink);
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(227, 219, 206, 0.9);
  background: rgba(255, 250, 242, 0.92);
  backdrop-filter: blur(14px);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--maroon);
  font-size: 20px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--saffron), var(--maroon));
  color: #fff;
  font-size: 18px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.nav-links a:hover,
.text-link:hover,
.footer-links a:hover {
  color: var(--saffron);
}

.donate-nav {
  border-radius: 6px;
  background: var(--saffron);
  color: #fff !important;
  padding: 8px 12px;
  box-shadow: 0 10px 20px rgba(216, 121, 34, 0.2);
}

.donate-nav:hover {
  background: #bd5f18;
}

.user-chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 10px;
  background: var(--surface);
}

.link-button {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.site-main {
  min-height: calc(100vh - 69px);
}

.banner-slot {
  width: min(1180px, calc(100% - 44px));
  margin: 22px auto;
}

.banner-slot-header_top {
  margin-top: 18px;
}

.banner-slot-footer_top {
  margin-bottom: 34px;
}

.banner-slot-sidebar {
  width: 100%;
  margin: 0;
}

.site-banner {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 16px 38px rgba(45, 34, 25, 0.1);
}

.banner-placeholder {
  display: grid;
  min-height: 112px;
  place-items: center;
  gap: 4px;
  border: 1px dashed #d4b697;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.54);
  color: var(--muted);
  text-align: center;
}

.banner-placeholder span {
  color: var(--maroon);
  font-weight: 900;
}

.banner-placeholder strong {
  color: var(--deep);
  font-size: 24px;
}

.banner-placeholder em {
  font-style: normal;
  font-size: 14px;
}

.banner-slot-sidebar .banner-placeholder {
  min-height: 250px;
  padding: 18px;
}

.banner-placeholder-inline {
  border: 0;
  border-radius: 0;
  background: #fffaf1;
  box-shadow: none;
}

.banner-slot-sidebar .banner-placeholder strong {
  font-size: 22px;
}

.site-banner a {
  display: block;
}

.site-banner img {
  width: 100%;
  max-height: 180px;
  object-fit: cover;
}

.site-banner-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
}

.site-banner-copy strong {
  color: var(--deep);
  font-size: 18px;
}

.site-banner-copy span {
  color: var(--maroon);
  font-weight: 900;
}

.banner-slot-sidebar .site-banner-copy {
  align-items: flex-start;
  flex-direction: column;
  gap: 8px;
}

.banner-slot-sidebar .site-banner-copy strong {
  font-size: 16px;
}

.messages,
.auth-page,
.profile-page {
  width: min(1180px, calc(100% - 44px));
  margin: 0 auto;
}

.messages {
  display: grid;
  gap: 10px;
  padding-top: 18px;
}

.message {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px 16px;
  color: var(--deep);
  font-weight: 700;
}

.message-success {
  border-color: #b7d5c3;
  background: #f1f8f4;
  color: var(--green);
}

.message-error {
  border-color: #e2b5b5;
  background: #fff3f3;
  color: var(--maroon);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 500px);
  gap: 42px;
  align-items: center;
  width: min(1180px, calc(100% - 44px));
  margin: 0 auto;
  min-height: 590px;
  padding: 58px 0 52px;
  color: var(--deep);
}

.hero-content {
  padding: 20px 0;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--saffron);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.hero h1 {
  max-width: 720px;
  margin-bottom: 16px;
  font-size: 64px;
  line-height: 1;
  letter-spacing: 0;
}

.hero p:not(.eyebrow) {
  max-width: 640px;
  color: var(--muted);
  font-size: 19px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.primary-action {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 12px;
  border-radius: 6px;
  background: var(--saffron);
  color: #fff;
  padding: 11px 18px;
  font-weight: 800;
  box-shadow: 0 14px 28px rgba(216, 121, 34, 0.25);
}

.primary-action:hover {
  background: #bd5f18;
}

.hero-actions .primary-action {
  margin-top: 0;
}

.secondary-action,
.section-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--maroon);
  padding: 10px 16px;
  font-weight: 800;
}

.secondary-action:hover,
.section-link:hover {
  border-color: rgba(216, 121, 34, 0.45);
  color: var(--saffron);
}

.hero-visual {
  position: relative;
  isolation: isolate;
  min-height: 430px;
}

.hero-visual img,
.hero-placeholder {
  width: 100%;
  height: 430px;
  border: 10px solid #fff;
  border-radius: 8px;
  box-shadow: var(--shadow);
  object-fit: cover;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 28px -14px -18px 30px;
  z-index: -1;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--maroon), var(--green));
}

.hero-placeholder {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #f3dcc3, #e8efe5);
  color: var(--maroon);
  font-size: 54px;
  font-weight: 900;
}

.hero-badge {
  position: absolute;
  right: 22px;
  bottom: -22px;
  display: grid;
  gap: 2px;
  min-width: 160px;
  border-radius: 8px;
  background: var(--green);
  color: #fff;
  padding: 16px 18px;
  box-shadow: 0 18px 36px rgba(36, 97, 74, 0.24);
}

.hero-badge strong {
  font-size: 30px;
  line-height: 1;
}

.hero-badge span {
  font-size: 13px;
  font-weight: 700;
}

.values-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  width: min(1180px, calc(100% - 44px));
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  box-shadow: 0 14px 34px rgba(45, 34, 25, 0.08);
}

.values-strip div {
  background: rgba(255, 255, 255, 0.84);
  padding: 22px;
}

.values-strip strong {
  display: block;
  margin-bottom: 4px;
  color: var(--maroon);
  font-size: 20px;
}

.values-strip span {
  color: var(--muted);
}

.about-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
  padding: 34px;
}

.about-copy {
  color: #36332f;
  font-family: "Noto Sans Devanagari", "Mangal", "Segoe UI", Arial, sans-serif;
  font-size: 20px;
  line-height: 1.9;
}

.about-copy p {
  margin-bottom: 20px;
  text-align: justify;
}

.about-copy p:last-child {
  margin-bottom: 0;
}

.donation-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: start;
}

.donation-panel,
.tax-note {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 28px;
}

.donation-panel h2 {
  margin-bottom: 18px;
  font-size: 28px;
}

.bank-details {
  display: grid;
  gap: 12px;
  margin: 0;
}

.bank-details div {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 14px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.bank-details div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.bank-details dt {
  color: var(--muted);
  font-weight: 800;
}

.bank-details dd {
  margin: 0;
  color: var(--deep);
  font-weight: 900;
  word-break: break-word;
}

.qr-panel {
  text-align: center;
}

.qr-panel img {
  width: min(100%, 290px);
  margin: 12px auto 0;
  border: 8px solid #fff;
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(45, 34, 25, 0.12);
}

.tax-note {
  margin-top: 24px;
  color: #4a3324;
  font-family: "Noto Sans Devanagari", "Mangal", "Segoe UI", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.7;
}

.tax-note strong {
  display: block;
  margin-bottom: 6px;
  color: var(--maroon);
  font-size: 22px;
}

.tax-note p {
  margin-bottom: 0;
}

.contact-panel {
  display: grid;
  gap: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 32px;
}

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

.contact-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf2;
  padding: 22px;
}

.contact-item span {
  display: block;
  margin-bottom: 8px;
  color: var(--saffron);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.contact-item p {
  margin-bottom: 0;
  color: var(--deep);
  font-family: "Noto Sans Devanagari", "Mangal", "Segoe UI", Arial, sans-serif;
  font-size: 20px;
  line-height: 1.7;
  font-weight: 700;
}

.contact-item a:hover {
  color: var(--maroon);
}

.event-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.event-featured-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.event-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.event-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 70px rgba(45, 34, 25, 0.18);
}

.event-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px;
}

.event-body h3 {
  min-height: 48px;
  margin-bottom: 10px;
  font-size: 20px;
  line-height: 1.2;
}

.event-body h3 a:hover {
  color: var(--maroon);
}

.event-body p {
  display: -webkit-box;
  min-height: 76px;
  overflow: hidden;
  color: var(--muted);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.event-body .text-link {
  margin-top: auto;
}

.auth-page {
  display: grid;
  place-items: center;
  padding: 58px 0 74px;
}

.auth-panel,
.profile-panel,
.plan-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.auth-panel {
  width: min(100%, 560px);
  padding: 34px;
}

.auth-panel h1,
.profile-page h1 {
  margin-bottom: 20px;
  font-size: 38px;
  line-height: 1.12;
}

.form-stack {
  display: grid;
  gap: 16px;
}

.social-button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--deep);
  padding: 10px 16px;
  font-weight: 800;
}

.social-button:hover {
  border-color: rgba(216, 121, 34, 0.45);
  color: var(--maroon);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.form-stack label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.form-stack input,
.form-stack textarea,
.form-stack select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fffaf2;
  color: var(--deep);
  padding: 11px 12px;
  font: inherit;
}

.form-stack .errorlist {
  margin: 0;
  padding-left: 18px;
  color: var(--maroon);
  font-size: 13px;
}

.form-note {
  margin: 20px 0 0;
  color: var(--muted);
}

.profile-page {
  padding: 54px 0 70px;
}

.certificate-page {
  width: min(1180px, calc(100% - 44px));
  margin: 0 auto;
  padding: 54px 0 70px;
}

.profile-layout {
  display: grid;
  grid-template-columns: minmax(280px, 430px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.profile-panel {
  padding: 26px;
}

.profile-panel h2 {
  margin-bottom: 16px;
  font-size: 24px;
}

.profile-photo {
  display: grid;
  place-items: center;
  width: 132px;
  height: 132px;
  margin-bottom: 18px;
  overflow: hidden;
  border: 5px solid #fff;
  border-radius: 50%;
  background: linear-gradient(135deg, #ead7c8, #dfeae5);
  color: var(--maroon);
  font-size: 54px;
  font-weight: 900;
  box-shadow: 0 14px 30px rgba(45, 34, 25, 0.14);
}

.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.membership-list {
  display: grid;
  gap: 12px;
  margin-bottom: 28px;
}

.membership-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf2;
  padding: 14px;
}

.membership-row strong,
.membership-row span,
.membership-row small {
  display: block;
}

.membership-row span {
  color: var(--green);
  font-weight: 800;
}

.membership-row small {
  color: var(--muted);
}

.certificate-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.certificate-actions .primary-action,
.certificate-actions .section-link {
  margin-top: 0;
}

.certificate-preview {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 18px;
  box-shadow: var(--shadow);
}

.certificate-preview svg {
  width: 100%;
  min-width: 760px;
  height: auto;
}

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

.plan-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding: 26px;
}

.plan-card h2 {
  margin-bottom: 10px;
  font-size: 28px;
}

.plan-card p:not(.eyebrow) {
  color: var(--muted);
}

.plan-price {
  display: block;
  color: var(--maroon);
  font-size: 34px;
  line-height: 1;
}

.plan-duration,
.checkout-amount {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-weight: 800;
}

.home-stambh-section {
  padding-bottom: 34px;
}

.home-stambh-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.home-stambh-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 18px 42px rgba(45, 34, 25, 0.11);
}

.home-stambh-photo {
  display: grid;
  place-items: center;
  height: 360px;
  overflow: hidden;
  background: linear-gradient(135deg, #ead7c8, #dfeae5);
  color: var(--maroon);
  font-size: 48px;
  font-weight: 900;
  flex: 0 0 auto;
}

.home-stambh-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.home-stambh-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px;
}

.home-stambh-body p {
  margin-bottom: 14px;
  color: var(--green);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
}

.home-stambh-body h3 {
  margin-bottom: 6px;
  font-size: 24px;
  line-height: 1.2;
}

.home-stambh-body h3 a:hover {
  color: var(--maroon);
}

.home-stambh-body .text-link {
  margin-top: auto;
}

.home-patrika-section {
  padding-bottom: 34px;
}

.patrika-feature {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 28px;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, #fffaf2, #eef6f0);
  box-shadow: var(--shadow);
  padding: 24px;
}

.patrika-feature-cover,
.patrika-cover,
.patrika-sidebar-placeholder {
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(123, 36, 53, 0.12);
  border-radius: 8px;
  background: linear-gradient(135deg, #7b2435, #d87922);
  color: #fff;
  font-size: 38px;
  font-weight: 900;
}

.patrika-feature-cover {
  min-height: 360px;
  box-shadow: 0 18px 42px rgba(45, 34, 25, 0.16);
}

.patrika-feature-cover img,
.patrika-cover img,
.patrika-sidebar-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.patrika-feature-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.patrika-feature-body h2 {
  margin-bottom: 14px;
  font-size: 38px;
  line-height: 1.12;
}

.patrika-feature-body p:not(.eyebrow) {
  max-width: 680px;
  color: var(--muted);
  font-size: 18px;
}

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

.patrika-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.patrika-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 70px rgba(45, 34, 25, 0.18);
}

.patrika-cover {
  aspect-ratio: 3 / 4;
  border: 0;
  border-radius: 0;
}

.patrika-card-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}

.patrika-reader-header {
  padding: 34px 34px 24px;
}

.patrika-reader-header h1 {
  margin-bottom: 12px;
  font-size: 42px;
  line-height: 1.12;
}

.pdf-reader {
  border-top: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(#2b2722, #211f1b);
  background-size: 28px 28px, auto;
}

.pdf-reader-toolbar {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  background: #1f1d19;
  padding: 12px;
}

.pdf-toolbar-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.pdf-tool-button,
.pdf-tool-link,
.pdf-page-jump {
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: #fffaf2;
  padding: 8px 11px;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
}

.pdf-tool-button,
.pdf-tool-link {
  cursor: pointer;
}

.pdf-tool-button:hover,
.pdf-tool-link:hover {
  border-color: rgba(245, 184, 75, 0.58);
  color: var(--gold);
}

.pdf-tool-button.is-active {
  border-color: rgba(245, 184, 75, 0.72);
  background: var(--gold);
  color: #211f1b;
}

.pdf-tool-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.pdf-page-jump {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.pdf-page-jump input {
  width: 68px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 4px;
  background: #fffaf2;
  color: var(--deep);
  padding: 4px 6px;
  font: inherit;
  font-weight: 800;
}

.pdf-zoom-label {
  min-width: 54px;
  color: #fffaf2;
  font-size: 13px;
  font-weight: 900;
  text-align: center;
}

.pdf-reader-status {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: #39342e;
  color: #fffaf2;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 800;
}

.pdf-reader-status-error {
  background: #4d2028;
}

.pdf-newspaper-shell {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  min-height: 720px;
}

.pdf-thumbnail-rail {
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: auto;
  max-height: 86vh;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(20, 18, 15, 0.78);
  padding: 14px;
}

.pdf-thumbnail {
  display: grid;
  gap: 7px;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.07);
  color: #fffaf2;
  padding: 8px;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.pdf-thumbnail:hover,
.pdf-thumbnail.is-active {
  border-color: var(--gold);
  background: rgba(245, 184, 75, 0.18);
}

.pdf-thumbnail canvas {
  width: 100% !important;
  height: auto !important;
  border-radius: 4px;
  background: #fff;
}

.pdf-page-stage {
  display: block;
  min-height: 720px;
  overflow: auto;
  padding: 30px 22px 40px;
}

.pdf-paper-spread {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 18px;
  min-width: max-content;
}

.pdf-paper-spread.is-spread {
  gap: 0;
}

.pdf-paper-page {
  position: relative;
  margin: 0;
  padding: 14px 14px 36px;
  background: #fff;
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.44),
    inset 0 0 0 1px rgba(60, 50, 42, 0.08);
}

.pdf-paper-spread.is-spread .pdf-paper-page:first-child {
  border-radius: 4px 0 0 4px;
  box-shadow:
    -18px 28px 70px rgba(0, 0, 0, 0.38),
    inset -18px 0 28px rgba(46, 39, 33, 0.08);
}

.pdf-paper-spread.is-spread .pdf-paper-page-secondary {
  border-left: 1px solid #d8d0c4;
  border-radius: 0 4px 4px 0;
  box-shadow:
    18px 28px 70px rgba(0, 0, 0, 0.38),
    inset 18px 0 28px rgba(46, 39, 33, 0.08);
}

.pdf-paper-page canvas {
  display: block;
  max-width: none;
  background: #fff;
}

.pdf-paper-page figcaption {
  position: absolute;
  right: 14px;
  bottom: 8px;
  color: #8a8074;
  font-size: 12px;
  font-weight: 900;
}

.pdf-native-frame {
  display: block;
  width: 100%;
  height: min(82vh, 900px);
  min-height: 620px;
  border: 0;
  background: #37332d;
}

.pdf-fallback {
  color: #fffaf2;
  padding: 26px;
  text-align: center;
}

.pdf-reader:fullscreen {
  overflow: auto;
}

.patrika-description {
  max-width: 860px;
  padding-top: 30px;
}

.patrika-sidebar-cover {
  height: 360px;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 32px rgba(45, 34, 25, 0.12);
}

.patrika-sidebar-placeholder {
  height: 280px;
  margin-bottom: 20px;
}

.detail-sidebar h2 {
  margin: 20px 0 14px;
  font-size: 24px;
}

.sidebar-list {
  display: grid;
  gap: 10px;
}

.sidebar-list a,
.sidebar-list p {
  display: grid;
  gap: 3px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.sidebar-list a:hover strong {
  color: var(--maroon);
}

.sidebar-list strong {
  line-height: 1.25;
}

.sidebar-list span,
.sidebar-list p {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.section,
.page-intro {
  width: min(1180px, calc(100% - 44px));
  margin: 0 auto;
}

.section {
  padding: 62px 0;
}

.section-compact {
  padding-top: 20px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.section-heading h2,
.page-intro h1 {
  margin-bottom: 0;
  font-size: 34px;
  line-height: 1.15;
}

.page-intro {
  padding: 54px 0 18px;
}

.page-intro p:not(.eyebrow) {
  max-width: 620px;
  color: var(--muted);
  font-size: 18px;
}

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

.prakalp-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.prakalp-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 70px rgba(45, 34, 25, 0.18);
}

.stambh-card {
  position: relative;
}

.stambh-card::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 5px;
  background: linear-gradient(180deg, var(--maroon), var(--saffron), var(--green));
}

.card-media {
  display: grid;
  place-items: center;
  height: 330px;
  overflow: hidden;
  background: linear-gradient(135deg, #f1dcc5, #e7eee4);
  color: var(--maroon);
  font-size: 52px;
  font-weight: 800;
  flex: 0 0 auto;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.stambh-media {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #ead7c8, #dfeae5);
}

.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px;
}

.card-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
}

.card-meta span,
.detail-meta span {
  border: 1px solid #cfe0d7;
  border-radius: 999px;
  padding: 3px 9px;
  background: #f1f8f4;
}

.card-body h2,
.card-body h3 {
  min-height: 58px;
  margin-bottom: 10px;
  font-size: 24px;
  line-height: 1.2;
}

.card-body h2 a:hover,
.card-body h3 a:hover {
  color: var(--maroon);
}

.card-body p {
  color: var(--muted);
  display: -webkit-box;
  min-height: 98px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.card-body .text-link {
  margin-top: auto;
}

.text-link {
  color: var(--maroon);
  font-weight: 800;
}

.text-link::after {
  content: " >";
  color: var(--saffron);
}

.empty-state {
  grid-column: 1 / -1;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
  padding: 26px;
  color: var(--muted);
}

.detail-page {
  width: min(1080px, calc(100% - 44px));
  margin: 0 auto;
  padding: 42px 0 70px;
}

.detail-shell {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.detail-page-with-sidebar {
  width: min(1180px, calc(100% - 44px));
}

.detail-page-with-sidebar .detail-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
}

.detail-primary {
  min-width: 0;
}

.detail-sidebar {
  border-left: 1px solid var(--line);
  background: #fbf7ef;
  padding: 22px;
}

.stambh-detail-shell {
  border-top: 6px solid var(--maroon);
}

.detail-hero {
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: cover;
}

.stambh-detail-image {
  height: min(72vh, 640px);
  background: #f3ece2;
  object-fit: contain;
  object-position: center;
}

.detail-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 38px 24px 46px;
}

.detail-content h1 {
  margin-bottom: 14px;
  font-size: 44px;
  line-height: 1.12;
}

.lead {
  color: var(--maroon);
  font-size: 20px;
  font-weight: 700;
}

.rich-text {
  color: #36332f;
  font-size: 17px;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.detail-actions .primary-action {
  margin-top: 0;
}

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, calc(100% - 44px));
  margin: 0 auto 64px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--maroon), #3d2d4f 55%, var(--green));
  color: #fffaf2;
  padding: 34px;
  box-shadow: var(--shadow);
}

.cta-band h2 {
  max-width: 640px;
  margin-bottom: 0;
  font-size: 32px;
  line-height: 1.18;
}

.cta-band .eyebrow {
  color: var(--gold);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #211f1b;
  color: #f8efe2;
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  width: min(1180px, calc(100% - 44px));
  margin: 0 auto;
  padding: 34px 0;
}

.footer-brand {
  color: #fff;
}

.site-footer p {
  max-width: 520px;
  margin: 12px 0 0;
  color: #cfc5b7;
}

.footer-links {
  display: flex;
  gap: 18px;
  color: #cfc5b7;
  font-weight: 800;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero-visual {
    min-height: 360px;
  }

  .hero-visual img,
  .hero-placeholder {
    height: 360px;
  }

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

  .patrika-feature {
    grid-template-columns: 220px minmax(0, 1fr);
  }

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

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

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

  .values-strip,
  .cta-band,
  .footer-inner,
  .profile-layout,
  .plan-grid,
  .donation-layout,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .values-strip {
    grid-template-columns: 1fr;
  }

  .cta-band,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .site-nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    flex-wrap: wrap;
  }

  .hero {
    width: min(100% - 32px, 1180px);
    padding: 42px 0;
  }

  .hero-content {
    padding: 0;
  }

  .hero h1,
  .detail-content h1 {
    font-size: 34px;
  }

  .hero-visual {
    min-height: 280px;
  }

  .hero-visual img,
  .hero-placeholder {
    height: 280px;
  }

  .hero-badge {
    left: 16px;
    right: auto;
  }

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

  .patrika-feature {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .patrika-feature-cover {
    min-height: 300px;
  }

  .patrika-feature-body h2,
  .patrika-reader-header h1 {
    font-size: 30px;
  }

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

  .patrika-reader-header {
    padding: 24px 20px 20px;
  }

  .pdf-reader-toolbar {
    align-items: stretch;
  }

  .pdf-newspaper-shell {
    grid-template-columns: 1fr;
    min-height: 520px;
  }

  .pdf-thumbnail-rail {
    flex-direction: row;
    max-height: none;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding: 10px;
  }

  .pdf-thumbnail {
    flex: 0 0 78px;
  }

  .pdf-toolbar-group {
    width: 100%;
  }

  .pdf-tool-button,
  .pdf-tool-link,
  .pdf-page-jump {
    flex: 1 1 auto;
    justify-content: center;
    text-align: center;
  }

  .pdf-page-stage {
    min-height: 520px;
    padding: 16px 10px 24px;
  }

  .pdf-paper-spread,
  .pdf-paper-spread.is-spread {
    gap: 14px;
  }

  .pdf-paper-page {
    padding: 8px 8px 28px;
  }

  .pdf-native-frame {
    height: 72vh;
    min-height: 460px;
  }

  .event-grid,
  .event-featured-grid {
    grid-template-columns: 1fr;
  }

  .home-stambh-grid {
    grid-template-columns: 1fr;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .detail-page-with-sidebar .detail-shell {
    grid-template-columns: 1fr;
  }

  .detail-sidebar {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .values-strip,
  .cta-band,
  .section,
  .page-intro,
  .banner-slot,
  .detail-page,
  .certificate-page,
  .footer-inner,
  .messages,
  .auth-page,
  .profile-page {
    width: min(100% - 32px, 1180px);
  }

  .cta-band {
    padding: 26px;
  }

  .auth-panel,
  .profile-panel,
  .plan-card,
  .about-panel,
  .contact-panel {
    padding: 22px;
  }

  .about-copy {
    font-size: 18px;
    line-height: 1.8;
    text-align: left;
  }

  .membership-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .bank-details div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .cta-band h2 {
    font-size: 26px;
  }

}
