body.conscious-sexuality-community-page {
  background: #ffffff;
  color: #1a1210;
  font-family: 'Roboto', sans-serif;
  font-weight: 300;
  line-height: 1.7;
  --accent: rgba(160, 80, 60, 0.9);
  --accent-glow: rgba(160, 80, 60, 0.15);
  --accent-solid: rgb(160, 80, 60);
  --bg-warm: #fdfaf5;
  --bg-soft: #faf7f2;
  --text-muted: rgba(30, 20, 15, 0.62);
}

.conscious-sexuality-community-page #main-content {
  padding: 0;
}

/* ── Hero Banner (replaces background-image version) */
.community-banner {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 40px 40px;
  background:
    radial-gradient(circle at 18% 20%, rgba(88, 183, 164, 0.24), transparent 30%),
    radial-gradient(circle at 82% 18%, rgba(214, 168, 92, 0.20), transparent 34%),
    linear-gradient(160deg, rgba(8, 12, 13, 0.92), rgba(5, 7, 8, 0.98)),
    url('/Media/community1.jpeg');
  background-size: auto, auto, auto, cover;
  background-position: center;
  text-align: left;
  color: #f0ece5;
}

.community-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.045;
  pointer-events: none;
}

.community-banner__overlay {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: 0 auto;
  text-align: left;
}

.community-banner__figure {
  position: absolute;
  right: max(-110px, calc((100vw - 1040px) / 2 - 130px));
  bottom: -74px;
  z-index: 1;
  margin: 0;
  opacity: 0.62;
}

.community-banner__figure img {
  display: block;
  width: min(40vw, 430px);
  min-width: 300px;
  height: auto;
}

.community-banner__overlay h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 300;
  letter-spacing: 0.04em;
  line-height: 1.15;
  color: #f0ece5;
  margin: 0 0 20px;
  text-shadow: none;
}

.community-banner__overlay h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.3rem, 2.5vw, 2rem);
  font-weight: 300;
  line-height: 1.3;
  color: #ffffff;
  margin: 0;
  text-shadow: none;
}

.community-banner__thin {
  display: block;
  font-weight: 300;
  font-style: italic;
}

/* ── Page Eyebrow ─────────────────────────── */
.page-eyebrow {
  font-family: 'Roboto', sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(117, 218, 198, 0.82);
  margin-bottom: 20px;
}

/* ── Content Section ──────────────────────── */
.community-section {
  padding: 80px 24px 100px;
  background: #ffffff;
}

.community-shell {
  max-width: 960px;
  margin: 0 auto;
}

.community-box {
  max-width: 760px;
  margin: 0 auto;
  padding: 0;
  background: transparent;
}

/* ── Headings ─────────────────────────────── */
.conscious-sexuality-community-page h2,
.conscious-sexuality-community-page h3 {
  font-family: 'Cormorant Garamond', serif;
  color: #1a1210;
}

.conscious-sexuality-community-page h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 300;
  line-height: 1.25;
  margin: 0 0 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(160, 80, 60, 0.1);
}

/* Banner overlay h2 must stay white — higher specificity beats the page-level rule above */
.conscious-sexuality-community-page .community-banner__overlay h2,
.conscious-sexuality-community-page .community-banner__overlay h2 strong {
  color: #ffffff;
}

.conscious-sexuality-community-page h3 {
  font-size: clamp(1.2rem, 2.5vw, 1.7rem);
  font-weight: 400;
  line-height: 1.3;
  margin: 48px 0 16px;
}

/* ── Body Text ────────────────────────────── */
.paragraph-large {
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 20px;
}

.paragraph-standard {
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 14px;
}

/* ── Community Images ─────────────────────── */
.community-image {
  display: block;
  width: 100%;
  max-width: 760px;
  aspect-ratio: 16 / 9;
  height: auto;
  margin: 40px auto;
  border-radius: 2px;
  object-fit: cover;
}

/* ── Community List ───────────────────────── */
.community-list {
  max-width: 760px;
  margin: 20px auto;
  text-align: left;
  color: var(--text-muted);
  line-height: 1.8;
}

.community-guides-callout {
  position: relative;
  overflow: hidden;
  margin: 42px 0;
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(circle at top left, rgba(88, 183, 164, 0.22), transparent 32%),
    radial-gradient(circle at bottom right, rgba(214, 168, 92, 0.16), transparent 36%),
    linear-gradient(160deg, #0d1111 0%, #070909 100%);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
  color: #f0ece5;
}

.community-guides-callout > *:not(.community-guides-callout__image) {
  position: relative;
  z-index: 1;
}

.community-guides-callout__image {
  position: absolute;
  right: -90px;
  top: -90px;
  width: min(34vw, 320px);
  min-width: 230px;
  height: auto;
  opacity: 0.18;
  pointer-events: none;
}

.community-guides-callout__eyebrow,
.community-guides-card__label {
  margin: 0 0 10px;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(117, 218, 198, 0.82);
}

.community-guides-callout h3 {
  margin-top: 0;
}

.community-guides-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.community-guides-card {
  display: block;
  min-height: 100%;
  padding: 22px 20px;
  text-decoration: none;
  color: #f0ece5;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.055);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.community-guides-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 18px rgba(88, 183, 164, 0.22);
  border-color: rgba(117, 218, 198, 0.34);
}

.community-guides-card h4 {
  margin: 0 0 10px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.2;
}

.community-guides-card p:last-child {
  margin-bottom: 0;
  color: rgba(240, 236, 229, 0.66);
}

.community-guides-callout h3,
.community-guides-card h4,
.community-guides-callout .paragraph-large {
  color: #f0ece5;
}

/* ── Actions ──────────────────────────────── */
.community-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin: 40px 0;
}

/* ── Buttons ──────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 14px 36px;
  background: rgba(180, 60, 60, 0.85);
  color: #fff;
  border: none;
  border-radius: 2px;
  font-family: 'Roboto', sans-serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 0;
}

.btn-primary:hover {
  background: rgba(200, 70, 70, 1);
  box-shadow: 0 0 18px rgba(200, 70, 70, 0.4);
}

.community-closing {
  margin-top: 24px;
  text-align: center;
  font-style: italic;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ── Application Modal ────────────────────── */
.community-application-modal__content {
  max-width: 700px;
}

.community-application-intro {
  margin-bottom: 28px;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.community-application-form label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.9rem;
  font-weight: 400;
  font-family: 'Roboto', sans-serif;
  color: #1a1210;
}

.community-application-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.community-application-field {
  margin-bottom: 20px;
}

.community-application-form input,
.community-application-form textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid rgba(30, 20, 15, 0.2);
  border-radius: 2px;
  font-family: 'Roboto', sans-serif;
  font-size: 0.95rem;
  font-weight: 300;
  color: #1a1210;
  background: #ffffff;
}

.community-application-form textarea {
  resize: vertical;
}

.community-application-questions.is-hidden {
  display: none;
}

.community-application-consent {
  margin-bottom: 25px;
}

.community-application-consent label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}

.community-application-consent input {
  width: 18px;
  height: 18px;
  margin-top: 4px;
  cursor: pointer;
}

.community-application-consent span {
  font-size: 13px;
  color: var(--text-muted);
}

.community-application-consent a {
  color: var(--accent-solid);
}

.community-application-actions {
  text-align: center;
}

.community-application-submit {
  font-size: 0.95rem;
}

.community-application-status {
  display: none;
  margin-top: 20px;
  padding: 15px;
  border-radius: 2px;
  text-align: center;
}

.community-application-status--success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.community-application-status--error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* ── Responsive ───────────────────────────── */
@media (max-width: 768px) {
  .community-banner {
    isolation: isolate;
    padding: 80px 20px 60px;
    min-height: var(--osl-public-hero-min-height-mobile);
  }

  .community-banner__figure {
    right: -130px;
    bottom: -48px;
    z-index: -1;
    opacity: 0.36;
  }

  .community-banner__figure img {
    width: min(78vw, 360px);
    min-width: 0;
  }

  .community-guides-callout {
    padding: 24px 20px;
  }

  .community-guides-callout__image {
    width: 230px;
    min-width: 0;
    opacity: 0.13;
  }

  .community-guides-grid {
    grid-template-columns: 1fr;
  }

  .community-application-grid {
    grid-template-columns: 1fr;
  }

  .community-box {
    padding: 0;
  }
}
