/* ==========================================================================
   RUANG THERAPY — MODULE 4: THE COMMUNITY & MOVEMENT ENGINE
   Experiential Workshops, Matcha Circles, Harbour Walks & 12-Page Workbook Hub
   ========================================================================== */

.community-section {
  padding: 100px 0;
  background: #FFFFFF;
  border-top: 1px solid var(--c-border);
}

.community-header-block {
  text-align: center;
  max-width: 740px;
  margin: 0 auto 56px;
}
.community-header-block p {
  color: var(--c-muted);
  font-size: 1.08rem;
  margin-top: 14px;
  line-height: 1.8;
}

/* EVENT CARDS GRID */
.events-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 70px;
}

.event-wonder-card {
  background: var(--c-sand);
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--c-border);
  padding: 32px 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.35s var(--ease-smooth);
  position: relative;
  overflow: hidden;
}
.event-wonder-card:hover {
  transform: translateY(-5px);
  background: #FFFFFF;
  border-color: var(--c-primary-dark);
  box-shadow: var(--shadow-medium);
}

.event-card-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 14px;
}
.pill-matcha { background: var(--c-matcha-pale); color: var(--c-matcha); }
.pill-rose { background: #FCECE8; color: var(--c-secondary-dark); }
.pill-amber { background: #FFF4E5; color: #C27803; }

.event-title {
  font-size: 1.35rem;
  margin-bottom: 8px;
}

.event-meta-list {
  font-size: 0.82rem;
  color: var(--c-muted);
  line-height: 1.6;
  margin-bottom: 16px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-sm);
  border: 1px solid var(--c-border);
}

.event-description-text {
  font-size: 0.86rem;
  color: var(--c-charcoal-light);
  line-height: 1.7;
  margin-bottom: 24px;
}

/* 12-PAGE WORKBOOK DOWNLOAD HUB */
.workbook-hub-banner {
  background: linear-gradient(145deg, var(--c-matcha-pale), #FFFFFF);
  border-radius: var(--radius-lg);
  border: 1.5px solid rgba(139, 155, 120, 0.35);
  padding: 48px 40px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  box-shadow: var(--shadow-medium);
}

.workbook-feature-bullets {
  list-style: none;
  font-size: 0.85rem;
  color: var(--c-charcoal-light);
  margin: 18px 0 24px;
}
.workbook-feature-bullets li {
  padding: 6px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.workbook-mockup-badge {
  background: #FFFFFF;
  border-radius: var(--radius-md);
  border: 1px solid var(--c-border);
  padding: 28px;
  text-align: center;
  box-shadow: var(--shadow-subtle);
}

/* ==========================================================================
   LUXURY EVENT BRIDGE & CAFE QR CARD
   ========================================================================== */
.luxury-event-bridge-card {
  margin-top: 48px;
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--c-border);
  padding: 40px 36px;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 40px;
  align-items: center;
  box-shadow: var(--shadow-medium);
  position: relative;
  overflow: hidden;
}

.luxury-event-bridge-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  background: linear-gradient(to bottom, var(--c-matcha), var(--c-primary-dark));
}

.event-bridge-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  background: var(--c-matcha-pale);
  color: var(--c-matcha);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
}

.event-bridge-title {
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  color: var(--c-charcoal);
  margin-bottom: 10px;
  line-height: 1.3;
}

.event-bridge-desc {
  font-size: 0.9rem;
  color: var(--c-charcoal-light);
  line-height: 1.75;
  margin-bottom: 20px;
}

.event-bridge-perks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.perk-pill {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: var(--c-sand);
  border: 1px solid var(--c-border);
  color: var(--c-charcoal);
}

.event-bridge-qr-panel {
  display: flex;
  justify-content: center;
}

.qr-stand-frame {
  background: var(--c-sand);
  border-radius: var(--radius-md);
  border: 1.5px solid var(--c-border);
  padding: 24px 20px;
  text-align: center;
  box-shadow: var(--shadow-subtle);
  max-width: 240px;
  width: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.qr-stand-frame:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-medium);
}

.qr-svg-mockup {
  width: 120px;
  height: 120px;
  margin: 0 auto 12px;
  background: #FFFFFF;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid var(--c-border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-stand-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--c-primary-dark);
}

.qr-stand-sub {
  font-size: 0.7rem;
  color: var(--c-muted);
  margin-top: 2px;
}

@media (max-width: 900px) {
  .luxury-event-bridge-card {
    grid-template-columns: 1fr !important;
    padding: 28px 20px !important;
    gap: 28px !important;
    text-align: center;
  }
  .event-bridge-perks {
    justify-content: center;
  }
}

/* EVENT RSVP MODAL */
.rsvp-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(26, 23, 20, 0.78);
  backdrop-filter: blur(16px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.rsvp-modal-backdrop.active { display: flex; }

.rsvp-window {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  border: 1px solid var(--c-border);
  max-width: 520px;
  width: 100%;
  padding: 36px;
  position: relative;
  box-shadow: var(--shadow-dark-card);
}

@media (max-width: 1024px) {
  .events-cards-grid { grid-template-columns: 1fr; }
  .workbook-hub-banner { grid-template-columns: 1fr; padding: 32px 24px; }
}
