.community-home {
  background: #fff;
  --community-paper: #fffdf9;
  --community-cream: #f0e4d2;
  --community-ink: #30271f;
  --community-brown: #493321;
  --community-accent: #805633;
  --community-muted: #725f4c;
  width: min(calc(100% - 48px), 1312px);
  margin: 42px auto 54px;
  color: var(--community-ink);
  font: inherit;
}

.community-home,
.community-home * { box-sizing: border-box; }

.community-profile {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 148px;
  margin-bottom: 26px;
  padding: 20px 26px;
  overflow: hidden;
  border: 1px solid #e7d3b8;
  border-radius: 22px;
  background:
    radial-gradient(ellipse at 83% 45%, #ead8bd80 0, transparent 34%),
    linear-gradient(112deg, #fffefa 0%, #fbf4e9 54%, #f1e2cd 100%);
  box-shadow: 0 18px 44px #49332112, inset 0 1px #fff;
}

.community-profile::before {
  position: absolute;
  z-index: -1;
  top: -90px;
  right: 20%;
  width: 310px;
  height: 310px;
  border: 1px solid #caa77b30;
  border-radius: 50%;
  content: "";
  box-shadow: 0 0 0 24px #caa77b0c, 0 0 0 48px #caa77b08;
}

.community-profile-photo {
  flex: 0 0 104px;
  width: 104px;
  height: 104px;
  object-fit: cover;
  object-position: center top;
  border: 5px solid #fffdf9;
  border-radius: 24px;
  box-shadow: 0 0 0 1px #d9bd99, 0 18px 34px #49332124;
  transform: rotate(1.5deg);
}

.community-profile-content { min-width: 0; }
.community-eyebrow,
.community-poet-label {
  color: var(--community-accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
}

.community-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  border: 1px solid #dfc8a9;
  border-radius: 999px;
  background: #fffaf2c9;
  font-size: 10px;
  letter-spacing: 2.2px;
}

.community-eyebrow::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #a26e3e;
  content: "";
  box-shadow: 0 0 0 3px #a26e3e1c;
}

.community-profile h2 {
  margin: 16px 0 10px;
  color: var(--community-brown);
  font-family: inherit;
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 750;
  letter-spacing: -1.2px;
  line-height: 1.12;
}

.community-profile p {
  max-width: 570px;
  margin: 0 0 22px;
  color: var(--community-muted);
  font-size: 16px;
  line-height: 1.75;
}

.community-profile-link {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 13px 18px;
  border: 1px solid #9a704b;
  border-radius: 999px;
  color: var(--community-accent);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  background: #fffdf9d9;
  box-shadow: 0 5px 14px #4933210d;
  transition: color .2s, background .2s, transform .2s, box-shadow .2s;
}
.community-profile-link:hover {
  color: #fffaf2;
  background: var(--community-brown);
  box-shadow: 0 9px 20px #49332124;
  transform: translateY(-2px);
}
.community-profile-link span { transition: transform .2s; }
.community-profile-link:hover span { transform: translateX(3px); }

.community-poet {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr);
  align-items: center;
  gap: clamp(24px, 5vw, 64px);
  overflow: hidden;
  padding: clamp(28px, 5vw, 58px);
  border: 1px solid #68492f;
  border-radius: 22px;
  color: var(--community-paper);
  background: radial-gradient(ellipse at 10% 0%, #65472f 0%, transparent 48%), linear-gradient(125deg, #493321, #2c1e14);
  box-shadow: 0 18px 42px #49332120;
}

.community-poet-label { color: #e5c99f; letter-spacing: 2.5px; }
.community-poet-content h2 {
  margin: 14px 0 12px;
  color: var(--community-paper);
  font-family: inherit;
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 700;
  line-height: 1.15;
}
.community-poet-content p {
  max-width: 560px;
  margin: 0;
  color: #e6dacc;
  font-size: 15px;
  line-height: 1.75;
}
.community-poet-features {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 22px 0;
}
.community-poet-features span {
  padding: 8px 12px;
  border: 1px solid #92775e;
  border-radius: 999px;
  color: #f3e8d9;
  font-size: 12px;
}
.community-poet-button {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  padding: 12px 19px;
  border: 1px solid #dfc394;
  border-radius: 999px;
  color: #382516;
  background: #e8d3ad;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: transform .2s, background .2s;
}
.community-poet-button:hover { transform: translateY(-2px); background: #f1dfbf; }

.community-poet-art {
  position: relative;
  min-width: 0;
  min-height: 270px;
  align-self: stretch;
  overflow: hidden;
  border: 1px solid #d9c4a4;
  border-radius: 17px;
  background: #d9b991;
}
.community-poet-art::after {
  position: absolute;
  inset: 35% 0 0;
  content: "";
  background: linear-gradient(transparent, #25180edb);
}
.community-poet-art img { width: 100%; height: 100%; min-height: 270px; object-fit: cover; object-position: center; display: block; }
.community-poet-quote {
  position: absolute;
  z-index: 1;
  right: 14px;
  bottom: 14px;
  left: 14px;
  padding: 14px 16px;
  border: 1px solid #fff5;
  border-radius: 12px;
  color: #fffaf1;
  background: #302014a8;
  font-size: 17px;
  font-style: italic;
  line-height: 1.5;
  text-align: center;
  backdrop-filter: blur(5px);
}

@media (max-width: 760px) {
  .community-home { width: calc(100% - 28px); margin: 30px auto 40px; }
  .community-profile { gap: 15px; min-height: 0; padding: 18px; border-radius: 18px; }
  .community-profile-photo { flex-basis: 78px; width: 78px; height: 78px; }
  .community-profile h2 { margin: 10px 0 7px; font-size: 22px; }
  .community-profile p { margin-bottom: 14px; font-size: 13px; }
  .community-poet { grid-template-columns: 1fr; gap: 24px; padding: 27px 22px; border-radius: 18px; }
  .community-poet-content h2 { font-size: clamp(29px, 8vw, 38px); }
  .community-poet-content p { font-size: 14px; }
  .community-poet-art, .community-poet-art img { min-height: 220px; height: 220px; }
}

@media (max-width: 420px) {
  .community-home { width: calc(100% - 20px); }
  .community-profile { align-items: flex-start; gap: 12px; padding: 16px 12px; }
  .community-profile-photo { flex-basis: 62px; width: 62px; height: 62px; }
  .community-eyebrow { font-size: 9px; letter-spacing: 1.3px; }
  .community-profile h2 { font-size: 18px; letter-spacing: -.4px; }
  .community-profile p { font-size: 12px; }
  .community-profile-link { gap: 9px; padding: 10px 12px; font-size: 11px; }
  .community-poet { padding: 24px 18px; }
  .community-poet-label { font-size: 9px; letter-spacing: 1.7px; }
  .community-poet-features span { font-size: 11px; }
}

/* Desktop scroll stack: one card stays pinned while the next rises over it. */
@media (min-width: 901px) {
  .community-home { margin-top: 56px; margin-bottom: 70px; }
  .community-stack { position: relative; display: grid; gap: 22px; perspective: 1200px; }
  .community-stack-card { position: relative; width: 100%; margin: 0; }
  .community-stack.is-scroll-stacked { height: var(--community-stack-height, clamp(500px, 70svh, 660px)); display: block; }
  .community-stack.is-scroll-stacked .community-stack-card { position: absolute; inset: 0; height: 100%; }
  .community-profile {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, .62fr);
    padding: clamp(42px, 6vw, 82px);
    border-radius: 28px;
  }
  .community-profile-photo {
    width: min(100%, 340px);
    height: min(48vh, 390px);
    max-height: 390px;
    justify-self: end;
    border-radius: 28px;
  }
  .community-profile-content h2 { margin: 12px 0; font-size: clamp(30px, 4vw, 48px); }
  .community-profile-content p { max-width: 560px; margin-bottom: 18px; font-size: 17px; }
  .community-profile-link { display: inline-flex; align-items: center; gap: 10px; padding: 12px 17px; border: 1px solid #c8a986; border-radius: 999px; background: #fffdf9b8; }
  .community-poet { z-index: 2; }
  .community-poet-art, .community-poet-art img { height: 100%; min-height: 0; }
}

@media (max-width: 900px) {
  .community-stack { display: grid; height: auto; gap: 16px; }
  .community-stack-card { position: relative; inset: auto; width: auto; height: auto; }
  .community-profile { display: grid; grid-template-columns: minmax(0, 1fr) 104px; align-items: center; }
  .community-profile-photo { grid-column: 2; grid-row: 1; width: 78px; height: 92px; border-radius: 14px; }
  .community-profile-content { grid-column: 1; grid-row: 1; }
}

/* Dr Pathik's profile details and ten-poem scroll deck. */
.community-profile-content p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  text-wrap: pretty;
}
.community-profile-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 20px;
}
.community-profile-facts span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 6px 11px;
  border: 1px solid #dfcdb5;
  border-radius: 999px;
  color: #6e5238;
  background: #fffaf2c9;
  font-size: 12px;
  font-weight: 650;
}
.community-profile-facts i { color: #9a704b; font-size: 14px; font-style: normal; }

.community-poem {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(220px, .72fr);
  align-items: center;
  gap: clamp(22px, 5vw, 70px);
  overflow: hidden;
  padding: clamp(32px, 6vw, 78px);
  border: 1px solid #805633;
  border-radius: 28px;
  color: #fffaf2;
  background:
    radial-gradient(ellipse at 86% 10%, #8c6240a8 0, transparent 38%),
    linear-gradient(125deg, #493321 0%, #302014 100%);
  box-shadow: 0 24px 58px #49332124, inset 0 1px #fff3;
}
.community-poem::before {
  position: absolute;
  z-index: -1;
  top: -100px;
  right: 19%;
  width: 360px;
  aspect-ratio: 1;
  border: 1px solid #f1dfbf20;
  border-radius: 50%;
  content: "";
  box-shadow: 0 0 0 24px #f1dfbf08, 0 0 0 50px #f1dfbf06;
}
.community-poem-copy { min-width: 0; }
.community-poem-topline { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.community-poem-label {
  color: #e8cfaa;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.community-poem-category {
  padding: 6px 11px;
  border: 1px solid #d9bd995c;
  border-radius: 999px;
  color: #f5e8d7;
  background: #fff1df10;
  font-size: 11px;
}
.community-poem-copy h2 {
  margin: 17px 0 5px;
  color: #fffaf2;
  font-family: "Noto Serif Devanagari", Georgia, serif;
  font-size: clamp(27px, 3.7vw, 43px);
  font-weight: 700;
  line-height: 1.35;
  text-wrap: balance;
}
.community-poem-date { margin: 0 0 20px; color: #d2bda5; font-size: 13px; }
.community-poem-lines {
  position: relative;
  margin: 0 0 22px;
  padding: 18px 22px;
  border-left: 2px solid #ddb980;
  border-radius: 0 14px 14px 0;
  background: #fffaf20b;
}
.community-poem-lines::before {
  position: absolute;
  top: -16px;
  left: 16px;
  color: #d7b58d;
  content: "“";
  font: 700 48px/1 Georgia, serif;
}
.community-poem-lines p {
  margin: 0;
  color: #f6eee3;
  font-family: "Noto Serif Devanagari", Georgia, serif;
  font-size: clamp(16px, 2vw, 21px);
  line-height: 1.85;
  overflow-wrap: anywhere;
}
.community-poem-lines p:first-child { padding-top: 8px; }
.community-poem-lines .community-poem-locked { margin-top: 8px; color: #e9c995; font-family: inherit; font-size: 13px; }
.community-poem-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 17px;
  border: 1px solid #e4cda9;
  border-radius: 999px;
  color: #3d291a;
  background: #ead8ba;
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
  margin: 4px 0 0;
  transition: transform .2s ease, background .2s ease;
}
.community-poem-link:hover { transform: translateY(-2px); background: #f3e4ca; }
.community-poem-art {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #dfc39b7d;
  border-radius: 22px;
  background: linear-gradient(145deg, #755337 0%, #4a3220 68%, #2f2118 100%);
  box-shadow: inset 0 1px #fff3, 0 22px 44px #130c0780;
  color: inherit;
  text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease;
}
.community-poem-art:hover { transform: translateY(-3px); box-shadow: inset 0 1px #fff3, 0 27px 48px #130c078c; }
.community-poem-art:focus-visible { outline: 3px solid #f0d4a8; outline-offset: 4px; }

/* Tasveer ka manch: peeche wahi tasveer dhundhli (jagah bharne ko), aage poori tasveer -- kuch kata nahi */
.community-poem-art-stage {
  position: relative;
  flex: 1 1 auto;
  min-height: clamp(260px, 40vh, 420px);
  overflow: hidden;
}
.community-poem-art-bg,
.community-poem-art-image { position: absolute; display: block; }
.community-poem-art-bg {
  inset: -24px;
  width: calc(100% + 48px);
  height: calc(100% + 48px);
  object-fit: cover;
  filter: blur(22px) brightness(.62) saturate(1.15);
}
.community-poem-art-image {
  inset: 14px 14px 10px;
  width: calc(100% - 28px);
  height: calc(100% - 24px);
  object-fit: contain;
  filter: drop-shadow(0 12px 22px #130c0770);
}

/* Tasveer na ho to: site-theme ka designed card (quote chinh + kavita ka naam) */
.community-poem-art-fallback {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; padding: 28px 30px; text-align: center;
  background:
    radial-gradient(circle at 20% 15%, #b5694a55 0, transparent 46%),
    radial-gradient(circle at 85% 90%, #f0e4d230 0, transparent 50%),
    linear-gradient(160deg, #805633 0%, #5b3d27 55%, #3a281b 100%);
}
.community-poem-art-fallback::before {
  content: ""; position: absolute; inset: 14px; border: 1px solid #f0e4d24a; border-radius: 16px; pointer-events: none;
}
.community-poem-art-fallback .fb-mark { font: 700 96px/0.7 Georgia, serif; color: #e9c9a0; opacity: .85; font-style: normal; height: 48px; }
.community-poem-art-fallback .fb-title { font-size: clamp(20px, 2.2vw, 28px); line-height: 1.4; color: #fff8ed; font-weight: 700; }
.community-poem-art-fallback .fb-rule { width: 54px; height: 2px; background: #e9c9a0; border-radius: 2px; }
.community-poem-art-fallback .fb-cat { color: #ead7b9; letter-spacing: .12em; font-size: 12px; text-transform: uppercase; }

/* Neeche ki patti: naam + sootradhar page ka button */
.community-poem-art-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 18px;
  border-top: 1px solid #f5e4c326;
  background: #2a1b11;
}
.community-poem-art-name { display: grid; gap: 2px; min-width: 0; color: #fff8ed; }
.community-poem-art-name b {
  overflow: hidden;
  font: 700 clamp(15px, 1.5vw, 18px)/1.35 "Noto Serif Devanagari", Georgia, serif;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.community-poem-art-name small { color: #ead7b9; font-size: 11px; letter-spacing: .06em; }
.community-poem-art-cta {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border: 1px solid #f5e4c36b;
  border-radius: 999px;
  color: #fff8ed;
  font-size: 12px;
  font-weight: 700;
  transition: background .2s ease, color .2s ease;
}
.community-poem-art:hover .community-poem-art-cta { color: #3d291a; background: #f3e4ca; }
.community-poem-art-cta b { font-size: 14px; }

@media (max-width: 900px) {
  .community-profile-content p { -webkit-line-clamp: 6; }
  .community-poem { grid-template-columns: minmax(0, 1fr) minmax(180px, .55fr); gap: 22px; padding: 28px; }
  .community-poem-art { min-height: 0; }
}
@media (max-width: 600px) {
  .community-profile-facts { gap: 6px; margin-bottom: 14px; }
  .community-profile-facts span { min-height: 28px; padding: 5px 8px; font-size: 10px; }
  .community-poem { grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 22px 18px; border-radius: 20px; }
  .community-poem-copy h2 { margin-top: 13px; font-size: clamp(24px, 7vw, 32px); }
  .community-poem-lines { padding: 16px; }
  .community-poem-lines p { font-size: 16px; line-height: 1.8; }
  .community-poem-art-stage { min-height: 300px; }
  .community-poem-art-cta { font-size: 11px; }
}

/* Mobile/tablet: native sticky layering gives the same card-to-card scroll feel without pinning the page. */
@media (max-width: 900px) and (prefers-reduced-motion: no-preference) {
  .community-stack { display: block; position: relative; perspective: none; }
  .community-stack-card { position: sticky; top: 72px; width: 100%; margin: 0 0 16px; }
  .community-profile { z-index: 1; }
  .community-poem { z-index: 2; }
}
