.community-main {
  padding-top: var(--header-h-mobile);
}

.community-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(54px, 8vw, 104px) 0 46px;
  color: #fff;
  background:
    radial-gradient(ellipse at 82% 4%, rgba(201,162,75,.2), transparent 36%),
    linear-gradient(125deg, #1e0e26 0%, #391a45 62%, #4a2158 100%);
}

.community-hero-glow {
  position: absolute;
  right: -120px;
  bottom: -290px;
  width: min(58vw, 640px);
  aspect-ratio: 1;
  border: 1px solid rgba(230,200,118,.12);
  border-radius: 50%;
  pointer-events: none;
}

.community-hero-glow::before,
.community-hero-glow::after {
  position: absolute;
  content: "";
  border: 1px solid rgba(230,200,118,.1);
  border-radius: 50%;
}

.community-hero-glow::before { inset: 11%; }
.community-hero-glow::after { inset: 23%; }

.community-hero-content {
  position: relative;
  z-index: 1;
}

.community-hero .eyebrow { color: var(--gold-light); }
.community-hero h1 {
  max-width: 850px;
  margin: 0 0 14px;
  color: #fff;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 600;
  letter-spacing: -.025em;
}

.community-hero-content > p:not(.eyebrow) {
  max-width: 660px;
  margin: 0;
  color: rgba(255,255,255,.78);
  font-size: clamp(1rem, 1.7vw, 1.18rem);
}

.community-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 11px;
  margin-top: 32px;
  color: rgba(255,255,255,.68);
  font-size: .82rem;
}

.community-breadcrumb a { color: var(--gold-light); }
.community-breadcrumb a:hover { color: #fff; }

.community-section {
  padding: clamp(54px, 7vw, 92px) 0;
  background: #fff;
}

.community-section--soft { background: #f8f5f1; }

.community-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(280px, 1fr);
  align-items: end;
  gap: clamp(24px, 6vw, 90px);
  margin-bottom: 38px;
}

.community-intro-grid h2,
.community-governance h2,
.community-principles h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 600;
  letter-spacing: -.02em;
}

.community-lead {
  margin: 0;
  color: #6b5f52;
  font-size: 1.05rem;
  line-height: 1.8;
}

.community-card-grid {
  display: grid;
  gap: 18px;
}

.community-card-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.community-card,
.community-record-card {
  min-width: 0;
  padding: 28px;
  border: 1px solid #eee7df;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(42,20,51,.045);
}

.community-card-icon,
.community-roster-icon,
.community-notice-icon {
  display: inline-flex;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: #f4eef5;
  color: var(--maroon-700);
  font-size: 1.15rem;
}

.community-card h3,
.community-record-card h3 {
  margin: 20px 0 8px;
  font-size: 1.5rem;
  font-weight: 600;
}

.community-card p,
.community-record-card > p:not(.community-record-label) {
  margin: 0;
  color: #6b5f52;
  line-height: 1.75;
}

.community-governance,
.community-principles {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(30px, 7vw, 96px);
}

.community-governance-copy > p:not(.eyebrow),
.community-principles > div > p:not(.eyebrow) {
  max-width: 560px;
  margin: 18px 0 22px;
  color: #6b5f52;
  line-height: 1.8;
}

.community-text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--maroon-700);
  font-weight: 600;
}

.community-text-link:hover { color: #8a5d20; }

.community-roster {
  overflow: hidden;
  border: 1px solid #eee7df;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(42,20,51,.045);
}

.community-roster-row {
  display: flex;
  align-items: center;
  gap: 17px;
  padding: 24px;
}

.community-roster-row + .community-roster-row { border-top: 1px solid #eee7df; }
.community-roster-row h3 { margin: 0 0 5px; font-size: 1.25rem; font-weight: 600; }
.community-roster-row p { margin: 0; color: #786f78; font-size: .93rem; line-height: 1.55; }
.community-roster-members { display: grid; gap: 9px; margin: 10px 0 0; }
.community-roster-members li { display: flex; flex-wrap: wrap; gap: 8px; color: #786f78; font-size: .9rem; }
.community-roster-members strong { color: var(--maroon-900); }
.community-roster-arrow { margin-left: auto; color: #b69a6e; }

.community-feature-band {
  padding: 52px 0;
  background:
    radial-gradient(ellipse at 90% 0%, rgba(201,162,75,.2), transparent 42%),
    var(--maroon-900);
}

.community-feature-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.community-feature-inner > div { max-width: 690px; }
.community-feature-inner .eyebrow { color: var(--gold-light); }
.community-feature-inner h2 { margin: 0 0 8px; color: #fff; font-size: clamp(1.8rem, 4vw, 2.7rem); font-weight: 600; }
.community-feature-inner p:not(.eyebrow) { margin: 0; color: rgba(255,255,255,.72); }
.community-feature-inner .btn { flex: 0 0 auto; }

.community-record-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.community-record-card { padding: 32px; }
.community-record-label {
  margin: 19px 0 7px;
  color: #987637;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .14em;
}

.community-record-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  padding: 7px 12px;
  border-radius: 99px;
  background: #f5f0e8;
  color: #765f35;
  font-size: .8rem;
  font-weight: 600;
}

.community-notice {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 28px;
  padding: 24px;
  border: 1px solid rgba(201,162,75,.35);
  border-radius: 16px;
  background: #fffcf5;
}

.community-notice > div { flex: 1; }
.community-notice h3 { margin: 0 0 5px; font-size: 1.22rem; font-weight: 600; }
.community-notice p { margin: 0; color: #6b5f52; line-height: 1.65; }
.community-notice .btn { flex: 0 0 auto; padding: 12px 20px; }
.community-notice-icon { background: #f8f0dc; color: #8a6721; }

.community-principles { grid-template-columns: 1fr 1fr; }
.community-principle-link {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 24px;
  border: 1px solid #eee7df;
  border-radius: 16px;
  background: #fff;
  color: var(--maroon-700);
}

.community-principle-link > i:first-child { font-size: 1.5rem; }
.community-principle-link > i:last-child { margin-left: auto; }
.community-principle-link span { display: grid; gap: 5px; }
.community-principle-link strong { color: var(--maroon-900); }
.community-principle-link small { color: #786f78; line-height: 1.5; }

.community-donation-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  align-items: stretch;
  gap: 22px;
}

.community-campaign-card,
.community-upi-card {
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid #eee7df;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 14px 42px rgba(42,20,51,.055);
}

.community-campaign-card {
  background:
    radial-gradient(ellipse at 100% 0%, rgba(201,162,75,.14), transparent 42%),
    #fff;
}

.community-campaign-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.community-campaign-tag { color: #987637; font-size: .72rem; font-weight: 600; letter-spacing: .14em; }
.community-campaign-card h2,
.community-upi-card h2,
.community-feedback-card h2 { margin: 22px 0 8px; font-size: clamp(1.8rem, 3vw, 2.35rem); font-weight: 600; }
.community-campaign-card > p:not(.community-data-note),
.community-upi-card > div > p:not(.eyebrow) { color: #6b5f52; line-height: 1.7; }
.community-campaign-figures { display: flex; flex-wrap: wrap; gap: 30px; margin: 28px 0 17px; }
.community-campaign-figures > div { display: grid; gap: 4px; }
.community-campaign-figures strong { color: var(--maroon-800); font-size: clamp(1.65rem, 3.3vw, 2.2rem); font-weight: 600; }
.community-campaign-figures span { color: #786f78; font-size: .87rem; }

.community-progress-track {
  height: 9px;
  overflow: hidden;
  border-radius: 99px;
  background: #eee8ee;
}

.community-progress-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #8b6840, var(--gold)); }
.community-progress-caption { margin: 8px 0 0; color: #786f78; font-size: .82rem; }
.community-data-note { display: flex; align-items: flex-start; gap: 8px; margin: 25px 0 0; color: #786f78; font-size: .82rem; line-height: 1.5; }
.community-data-note i { padding-top: 3px; color: #9b7c42; }

.community-upi-card { display: flex; flex-direction: column; align-items: flex-start; }
.community-upi-card h2 { margin-top: 12px; }
.community-upi-card > div > p:not(.eyebrow) { margin-bottom: 12px; }
.community-upi-qr { width: 164px; height: 164px; align-self: center; margin: 10px 0 18px; object-fit: contain; border: 1px solid #eee7df; border-radius: 12px; }
.community-upi-recipient {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  border: 1px solid #eee7df;
  border-radius: 10px;
  background: #fcfaf7;
}

.community-upi-recipient > span { color: #786f78; font-size: .8rem; }
.community-upi-recipient strong { overflow-wrap: anywhere; color: var(--maroon-900); }
.community-copy-button { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; color: var(--maroon-700); font-size: .8rem; font-weight: 600; }
.community-upi-name { margin: 10px 0 18px; color: #786f78; font-size: .88rem; }
.community-upi-name strong { color: var(--maroon-900); }
.community-upi-open { width: 100%; }
.community-payment-note { margin: 16px 0 0; color: #786f78; font-size: .81rem; line-height: 1.6; }
.community-seva-grid { margin-top: 22px; }
.community-seva-grid .community-card { padding: 24px; }
.community-seva-grid .community-card h3 { font-size: 1.3rem; }
.community-notice-text { color: #6b5f52; line-height: 1.7; }

.community-contact-grid {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  align-items: start;
  gap: 24px;
}

.community-contact-details { display: grid; gap: 13px; }
.community-contact-card,
.community-location-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border: 1px solid #eee7df;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(42,20,51,.04);
}

.community-contact-card > span:nth-child(2) { display: grid; min-width: 0; gap: 4px; }
.community-contact-card small,
.community-location-card small { color: #987637; font-size: .7rem; font-weight: 600; letter-spacing: .12em; }
.community-contact-card strong { overflow-wrap: anywhere; color: var(--maroon-900); font-size: 1.03rem; }
.community-contact-card > span:nth-child(2) > span { color: #786f78; font-size: .83rem; }
.community-contact-card--static { cursor: default; }
.community-contact-arrow { margin-left: auto; color: #a58a60; }
.community-location-card { align-items: flex-start; }
.community-location-card > div { min-width: 0; }
.community-location-card p { margin: 7px 0 10px; color: #6b5f52; line-height: 1.7; }

.community-feedback-card {
  padding: clamp(24px, 4vw, 36px);
  border: 1px solid #eee7df;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 14px 42px rgba(42,20,51,.055);
}

.community-feedback-card h2 { margin-top: 0; }
.community-feedback-card > p:not(.eyebrow) { color: #6b5f52; line-height: 1.65; }
.community-feedback-card form { display: grid; gap: 10px; margin-top: 22px; }
.community-feedback-card label { color: var(--maroon-900); font-size: .88rem; font-weight: 600; }
.community-feedback-card input,
.community-feedback-card textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #e5dfe7;
  border-radius: 8px;
  background: #fdfcfd;
  color: var(--ink);
}

.community-feedback-card textarea { resize: vertical; }
.community-feedback-card input:focus,
.community-feedback-card textarea:focus { border-color: var(--gold); outline: 2px solid rgba(201,162,75,.16); }
.community-feedback-submit { justify-self: start; margin-top: 8px; }
.community-form-note { margin: 2px 0 0; color: #786f78; font-size: .82rem; line-height: 1.6; }
.community-form-note a { color: var(--maroon-700); text-decoration: underline; }
.community-form-message { padding: 11px 14px; border-radius: 8px; line-height: 1.5; }
.community-form-message--error { background: #fff0f1; color: #8f3040; }
.community-form-message--success { background: #edf8f0; color: #285a39; }

.community-history-section { padding-top: 68px; }
.community-history-layout { display: grid; grid-template-columns: minmax(200px, .65fr) minmax(0, 1.35fr); gap: clamp(36px, 8vw, 110px); }
.community-history-aside { position: sticky; top: 132px; align-self: start; padding: 26px; border: 1px solid #eee7df; border-radius: 16px; background: #fcfaf7; }
.community-history-mark { display: inline-flex; width: 54px; height: 54px; align-items: center; justify-content: center; border-radius: 50%; background: #f4eef5; color: var(--maroon-700); font-size: 1.35rem; }
.community-history-aside .eyebrow { margin-top: 24px; }
.community-history-aside > p:not(.eyebrow) { color: #6b5f52; line-height: 1.75; }
.community-timeline { display: grid; gap: 0; }
.community-timeline-item { position: relative; display: grid; grid-template-columns: 50px minmax(0,1fr); gap: 20px; padding-bottom: 42px; }
.community-timeline-item:not(:last-child)::before { position: absolute; top: 47px; bottom: 0; left: 23px; width: 1px; background: #e7dcc8; content: ""; }
.community-timeline-dot { position: relative; z-index: 1; display: inline-flex; width: 48px; height: 48px; align-items: center; justify-content: center; border: 1px solid #e6d8b9; border-radius: 50%; background: #fffcf5; color: #8a6721; font-size: .8rem; font-weight: 600; }
.community-timeline-item .community-record-label { margin: 3px 0 7px; }
.community-timeline-item h2 { margin: 0 0 11px; font-size: clamp(1.45rem, 2.4vw, 1.9rem); font-weight: 600; }
.community-timeline-item p:not(.community-record-label) { margin: 0; color: #6b5f52; line-height: 1.85; }
.community-history-epilogue { display: flex; align-items: flex-start; gap: 16px; padding: 24px; border: 1px solid rgba(201,162,75,.35); border-radius: 14px; background: #fffcf5; color: #6b5f52; }
.community-history-epilogue > i { padding-top: 4px; color: #8a6721; font-size: 1.25rem; }
.community-history-epilogue p { margin: 0; line-height: 1.8; }
.community-hero--history { padding-bottom: 58px; }

.community-footer { padding: 36px 0 24px; }
.community-footer .footer-inner { gap: 16px; }
.community-footer-brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; font-weight: 600; }
.community-footer-brand img { width: 46px; height: 46px; border-radius: 50%; object-fit: contain; }
.community-footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 24px; color: rgba(255,255,255,.8); font-size: .88rem; }
.community-footer-links a:hover { color: var(--gold-light); }
.community-footer .copyright { color: rgba(255,255,255,.55); }
.nav-item > a[aria-current="page"] { color: var(--gold-light); }

@media (min-width: 961px) {
  .community-main { padding-top: 106px; }
}

@media (max-width: 960px) {
  .community-main { padding-top: 0; }
  .community-history-aside { position: static; }
}

@media (max-width: 760px) {
  .community-intro-grid,
  .community-governance,
  .community-principles,
  .community-contact-grid,
  .community-history-layout,
  .community-donation-grid { grid-template-columns: 1fr; }
  .community-card-grid--three { grid-template-columns: 1fr; }
  .community-record-grid { grid-template-columns: 1fr; }
  .community-intro-grid { gap: 14px; margin-bottom: 26px; }
  .community-feature-inner { align-items: flex-start; flex-direction: column; }
  .community-notice { align-items: flex-start; flex-wrap: wrap; }
  .community-notice > div { flex-basis: calc(100% - 70px); }
  .community-notice .btn { margin-left: 68px; }
}

@media (max-width: 480px) {
  .community-hero { padding-top: 48px; }
  .community-card,
  .community-record-card { padding: 23px; }
  .community-campaign-figures { gap: 20px; }
  .community-upi-recipient { flex-wrap: wrap; }
  .community-upi-recipient strong { flex: 1 1 calc(100% - 65px); }
  .community-copy-button { margin-left: 0; }
  .community-timeline-item { grid-template-columns: 40px minmax(0,1fr); gap: 14px; }
  .community-timeline-dot { width: 40px; height: 40px; }
  .community-timeline-item:not(:last-child)::before { top: 39px; left: 19px; }
  .community-feedback-submit { width: 100%; }
  .community-footer-brand { flex-direction: column; text-align: center; }
}
