/* Home page design samples — scoped; does not replace main site.css */

/* Prayer strip — base layout */
.hds-prayer-strip {
  width: 100%;
}
.hds-prayer-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
  gap: 8px;
}
.hds-prayer-item {
  padding: 10px 12px;
  border-radius: 10px;
  text-align: center;
}
.hds-prayer-name {
  display: block;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.hds-prayer-times {
  display: block;
  font-size: 0.8rem;
  margin-top: 2px;
}
.hds-prayer-times .muted {
  opacity: 0.75;
  margin-right: 4px;
}

/* ---- Modern ---- */
.home-sample-modern-banner {
  position: relative;
  min-height: clamp(320px, 58vh, 620px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(6, 78, 59, 0.92) 0%, rgba(15, 118, 110, 0.88) 45%, rgba(17, 94, 89, 0.9) 100%),
    url("../images/banner-img-1.png") center/cover no-repeat;
}
.home-sample-modern-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.08) 0, transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.06) 0, transparent 40%);
  pointer-events: none;
}
.home-sample-modern-banner .home-sample-modern-banner__inner {
  position: relative;
  z-index: 1;
  padding: 32px 15px 24px;
  max-width: 1140px;
  margin: 0 auto;
}
.home-sample-modern-banner .kalma-badge {
  display: inline-block;
  margin-bottom: 16px;
}
.home-sample-modern-banner .kalma-badge img {
  max-height: 48px;
  width: auto;
  opacity: 0.95;
}
.home-sample-modern-banner h1 {
  color: #ecfdf5;
  font-size: clamp(1.35rem, 4vw, 2.05rem);
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 12px;
  max-width: 52rem;
}
.home-sample-modern-banner .lead {
  color: rgba(236, 253, 245, 0.92);
  font-size: clamp(1rem, 2.5vw, 1.125rem);
  margin: 0 0 20px;
}
.home-sample-modern-banner .cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.home-sample-modern-banner .btn-teal {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  background: #fff;
  color: #065f46 !important;
  font-weight: 600;
  text-decoration: none !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.home-sample-modern-banner .btn-teal:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}
.home-sample-modern-banner .btn-ghost {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #fff !important;
  font-weight: 600;
  text-decoration: none !important;
}
.home-sample-modern-banner .hds-prayer-strip {
  margin-top: 28px;
}
.home-sample-modern .hds-prayer-item {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  color: #ecfdf5;
}
.home-sample-modern .hds-prayer-times .muted {
  opacity: 0.8;
}

.home-sample-modern section {
  padding: 56px 15px;
}
.home-sample-modern .section-heading {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 36px;
}
.home-sample-modern .section-heading h2 {
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  color: #0f172a;
  margin: 0 0 8px;
}
.home-sample-modern .section-heading p {
  margin: 0;
  color: #64748b;
}
.home-sample-modern .card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  max-width: 1140px;
  margin: 0 auto;
}
.home-sample-modern .glass-card {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.06);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.home-sample-modern .glass-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.1);
}
.home-sample-modern .glass-card time {
  font-size: 0.8rem;
  color: #64748b;
}
.home-sample-modern .glass-card h3 {
  margin: 10px 0 8px;
  font-size: 1.15rem;
  color: #0f172a;
}
.home-sample-modern .glass-card p {
  color: #475569;
  margin: 0 0 14px;
}
.home-sample-modern .glass-card .btn-soft {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 8px;
  background: #ecfdf5;
  color: #047857 !important;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none !important;
}

.home-sample-modern .split-welcome {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  max-width: 1140px;
  margin: 0 auto;
  align-items: center;
}
@media (min-width: 768px) {
  .home-sample-modern .split-welcome {
    grid-template-columns: 1fr 1fr;
  }
}
.home-sample-modern .split-welcome img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.12);
}

.home-sample-modern .pillars-modern {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}
.home-sample-modern .pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 16px;
  max-width: 960px;
  margin: 0 auto;
}
.home-sample-modern .pillar-modern {
  text-align: center;
  padding: 18px 12px;
  background: #fff;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
}
.home-sample-modern .pillar-modern img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}
.home-sample-modern .pillar-modern h3 {
  margin: 10px 0 0;
  font-size: 1rem;
  color: #334155;
}

.home-sample-modern .gallery-mosaic {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  max-width: 1140px;
  margin: 0 auto;
}
.home-sample-modern .gallery-mosaic a {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4/3;
}
.home-sample-modern .gallery-mosaic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.home-sample-modern .gallery-mosaic a:hover img {
  transform: scale(1.05);
}

.home-sample-modern .donate-band {
  background: linear-gradient(120deg, #0d9488 0%, #047857 100%);
  color: #ecfdf5;
  text-align: center;
  padding: 48px 15px;
}
.home-sample-modern .donate-band h2 {
  margin: 0 0 12px;
  font-size: clamp(1.45rem, 3vw, 1.75rem);
}
.home-sample-modern .donate-band p {
  max-width: 560px;
  margin: 0 auto 20px;
  opacity: 0.95;
}
.home-sample-modern .donate-band .btn-light {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  background: #fff;
  color: #065f46 !important;
  font-weight: 700;
  text-decoration: none !important;
}

/* ---- Serene (~150% type scale on prior sizes) ---- */
.home-sample-serene {
  background: #faf8f5;
  color: #3d3832;
  font-size: 1.6875rem;
  line-height: 1.65;
}

/* Serene top: Owl banner (same markup as Index) + intro band */
.home-sample-serene-top {
  float: none;
  width: 100%;
  /* Do not use overflow: hidden here — it clips the intro eyebrow when white-space: nowrap + fluid type extends wide */
}
.home-sample-serene-top #banner {
  overflow-x: hidden;
}
.home-sample-serene-top #banner .caption h1 {
  font-size: clamp(2.025rem, 3.8vw, 3.225rem) !important;
  line-height: 1.35 !important;
}
@media (max-width: 767px) {
  .home-sample-serene-top #banner .caption {
    top: 180px;
  }
  .home-sample-serene-top #banner .caption span img {
    margin-bottom: 40px;
  }
}

.home-sample-serene-intro {
  width: 100%;
  padding: 40px 18px 36px;
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
  background: #faf8f5;
  box-sizing: border-box;
  position: relative;
  z-index: 2;
  container-type: inline-size;
  container-name: serene-intro;
}
.home-sample-serene-intro .eyebrow {
  /* One line: scale with intro width (cqw) where supported; vw fallback avoids nested min/max/calc parse issues */
  white-space: nowrap;
  font-size: clamp(0.65rem, 4.2vw + 0.45rem, 4.5rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #6b5b4b;
  margin-bottom: 14px;
  line-height: 1.22;
}
@supports (font-size: 1cqw) {
  .home-sample-serene-intro .eyebrow {
    font-size: clamp(0.65rem, 8.2cqw, 4.5rem);
  }
}
@media (max-width: 767px) {
  .home-sample-serene-intro .eyebrow {
    /* Keep one line on small screens by shrinking roughly 50% vs previous mobile scale */
    font-size: clamp(0.4rem, 2vw + 0.2rem, 2.25rem);
    letter-spacing: 0.08em;
  }
  @supports (font-size: 1cqw) {
    .home-sample-serene-intro .eyebrow {
      font-size: clamp(0.4rem, 4.1cqw, 2.25rem);
    }
  }
}
@media (min-width: 768px) and (max-width: 900px) {
  .home-sample-serene-intro .eyebrow {
    /* Tablet band: reduce size so the line stays single-row around 768-850 widths */
    font-size: clamp(1.25rem, 3.1vw, 2.35rem);
    letter-spacing: 0.08em;
  }
  @supports (font-size: 1cqw) {
    .home-sample-serene-intro .eyebrow {
      font-size: clamp(1.25rem, 4.6cqw, 2.35rem);
    }
  }
}
@media (max-width: 420px) {
  .home-sample-serene-intro .eyebrow {
    letter-spacing: 0.06em;
  }
}
.home-sample-serene-intro__title {
  font-family: "Cormorant Garamond", Georgia, serif;
  /* Swapped with .eyebrow: was clamp(3rem, 5.5vw, 4.5rem) */
  font-size: 1.3125rem;
  font-weight: 600;
  color: #2c241c;
  margin: 0 0 16px;
  line-height: 1.22;
}
@media (min-width: 901px) {
  .home-sample-serene-intro__title {
    font-size: 1.640625rem; /* +25% for larger screens */
  }
}
.home-sample-serene-intro .verse {
  font-style: italic;
  color: #5c5248;
  margin: 0 0 22px;
  font-size: 1.8rem;
}
.home-sample-serene-intro .hds-prayer-strip {
  margin-top: 10px;
  text-align: left;
}
.home-sample-serene-intro .hds-prayer-inner {
  grid-template-columns: repeat(auto-fit, minmax(195px, 1fr));
  gap: 10px;
}
.home-sample-serene-intro .hds-prayer-item {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid #e8e0d5;
  color: #3d3832;
  padding: 12px 14px;
}

.home-sample-serene .hds-prayer-inner {
  grid-template-columns: repeat(auto-fit, minmax(195px, 1fr));
  gap: 10px;
}
.home-sample-serene-intro .hds-prayer-name,
.home-sample-serene .hds-prayer-name {
  font-size: 1.5rem;
}
.home-sample-serene-intro .hds-prayer-times,
.home-sample-serene .hds-prayer-times {
  font-size: 1.40625rem;
}

.home-sample-serene .hds-prayer-item {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid #e8e0d5;
  color: #3d3832;
  padding: 12px 14px;
}
.home-sample-serene-intro .hds-prayer-item--jumuah,
.home-sample-serene .hds-prayer-item--jumuah {
  background: #f3eee6;
  border-color: #d8c7ad;
}
.home-sample-serene-intro .hds-prayer-item--jumuah .hds-prayer-name,
.home-sample-serene .hds-prayer-item--jumuah .hds-prayer-name {
  color: #6f4f18;
}

/* Medium/large screens: force even 3x2 prayer grid, including 866-990 range */
@media (min-width: 866px) {
  .home-sample-serene-intro .hds-prayer-inner,
  .home-sample-serene .hds-prayer-inner {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }

  .home-sample-serene-intro .hds-prayer-item,
  .home-sample-serene .hds-prayer-item {
    padding: 16px 18px;
  }

  .home-sample-serene-intro .hds-prayer-name,
  .home-sample-serene .hds-prayer-name {
    font-size: 1.625rem;
  }

  .home-sample-serene-intro .hds-prayer-times,
  .home-sample-serene .hds-prayer-times {
    font-size: 1.5rem;
  }
}

.home-sample-serene section {
  padding: 56px 18px;
}
.home-sample-serene .section-heading {
  text-align: center;
  margin-bottom: 36px;
}
.home-sample-serene .section-heading h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.85rem, 3.8vw, 3.675rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: normal;
  text-transform: none;
  color: #2c241c;
  margin: 0 0 10px;
}
.home-sample-serene .section-heading .sub {
  color: #7a6f63;
  margin: 0;
  font-size: 1.59375rem;
}
.home-sample-serene .section-heading .sub .serene-section-link-btn {
  display: inline-block;
  margin-top: 8px;
  padding: 9px 18px;
  border-radius: 999px;
  background: #f3eee6;
  border: 1px solid #d8c7ad;
  color: #6f4f18 !important;
  font-size: 1.125rem;
  font-weight: 600;
  text-decoration: none !important;
  line-height: 1.2;
}
.home-sample-serene .section-heading .sub .serene-section-link-btn:hover,
.home-sample-serene .section-heading .sub .serene-section-link-btn:focus {
  background: #eadfcd;
  color: #5b3f13 !important;
}

.home-sample-serene .serene-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
  max-width: 1100px;
  margin: 0 auto;
}
.home-sample-serene .serene-card {
  background: #fff;
  border-radius: 20px;
  padding: 24px 24px 22px;
  box-shadow: 0 8px 32px rgba(44, 36, 28, 0.06);
  border: 1px solid #efe8df;
}
.home-sample-serene .serene-card time {
  display: inline-block;
  font-size: 1.35rem;
  color: #5c5248;
  background: rgba(255, 255, 255, 0.92);
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid #e8e0d5;
}
.home-sample-serene .serene-card h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2.25rem;
  margin: 12px 0 10px;
  color: #2c241c;
}
.home-sample-serene .serene-card p {
  color: #5c534a;
  margin: 0 0 16px;
  font-size: 1.59375rem;
}
.home-sample-serene .serene-card a.more {
  color: #8b6914 !important;
  font-weight: 600;
  font-size: 1.59375rem;
  text-decoration: none !important;
  border-bottom: 1px solid rgba(139, 105, 20, 0.35);
}

.home-sample-serene .event-card-serene {
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #efe8df;
  box-shadow: 0 8px 28px rgba(44, 36, 28, 0.06);
}
.home-sample-serene .event-card-serene .thumb {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
}
.home-sample-serene .event-card-serene .thumb .event-card-serene__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.home-sample-serene .event-card-serene .thumb .event-card-serene__date-icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
  display: inline-block;
  flex: 0 0 auto;
}
.home-sample-serene .event-card-serene .thumb time {
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: rgba(255, 255, 255, 0.92);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 1.35rem;
}
.home-sample-serene .event-card-serene .body {
  padding: 20px 22px 24px;
}
.home-sample-serene .event-card-serene h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  margin: 0 0 10px;
  font-size: 2.175rem;
}
.home-sample-serene .event-card-serene h3 a {
  color: #2c241c !important;
  text-decoration: none !important;
}

.home-sample-serene-event-summary {
  color: #5c534a;
  font-size: 1.59375rem;
  line-height: 1.55;
}

.home-sample-serene .welcome-panel {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
}
@media (min-width: 768px) {
  .home-sample-serene .welcome-panel {
    grid-template-columns: 1.1fr 0.9fr;
  }
}
.home-sample-serene .welcome-panel .copy {
  padding: 8px 4px;
}
.home-sample-serene .welcome-panel .copy > p {
  font-size: 1.59375rem;
  line-height: 1.75;
  color: #5c534a;
}
.home-sample-serene .welcome-panel img {
  width: 100%;
  border-radius: 20px;
  border: 6px solid #fff;
  box-shadow: 0 12px 40px rgba(44, 36, 28, 0.1);
}

.home-sample-serene .pillars-serene {
  background: #fff;
  border-top: 1px solid #efe8df;
  border-bottom: 1px solid #efe8df;
}
.home-sample-serene .pillars-flow {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 28px;
  max-width: 960px;
  margin: 0 auto;
}
.home-sample-serene .pillar-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: #faf8f5;
  border-radius: 999px;
  border: 1px solid #e8e0d5;
}
.home-sample-serene .pillar-chip img {
  width: 32px;
  height: 32px;
}
.home-sample-serene .pillar-chip span {
  font-weight: 600;
  color: #4a4238;
  font-size: 1.59375rem;
}

.home-sample-serene-gallery-title {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2.025rem;
  color: #2c241c;
}

.home-sample-serene-donate-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.775rem, 4vw, 3.525rem);
  color: #2c241c;
  margin: 0 0 14px;
}

.home-sample-serene .donate-serene .inner p {
  font-size: 1.59375rem;
  line-height: 1.6;
  color: #5c534a;
  margin: 0 0 12px;
}

.home-sample-serene .donate-serene {
  text-align: center;
  background: #f3eee6;
  padding: 52px 18px;
}
.home-sample-serene .donate-serene .inner {
  max-width: 620px;
  margin: 0 auto;
}
.home-sample-serene .donate-serene .btn-gold {
  display: inline-block;
  margin-top: 14px;
  padding: 14px 32px;
  border-radius: 999px;
  background: #8b6914;
  color: #fff !important;
  font-weight: 600;
  font-size: 1.59375rem;
  text-decoration: none !important;
}

.home-sample-serene .serene-empty-msg {
  grid-column: 1 / -1;
  text-align: center;
  color: #7a6f63;
  font-size: 1.59375rem;
}

.home-sample-serene .event-card-serene .body a.more {
  font-size: 1.59375rem;
  margin-top: 10px;
  display: inline-block;
}

.home-sample-serene .welcome-panel .copy .more {
  font-size: 1.59375rem;
  margin-top: 12px;
  display: inline-block;
}

/* Bottom only: top spacing comes from .home-sample-serene section (avoid double 56px gap under banner). */
.announcement-serene-page {
  padding: 0 0 18px;
}

/* Tighter under inner banner than generic .home-sample-serene section (56px top). */
.home-sample-serene.announcement-serene-page > section,
.home-sample-serene.event-serene-page > section {
  padding-top: 22px;
}

.announcement-serene-page .section-heading {
  max-width: 860px;
  margin: 0 auto 26px;
}

.announcement-serene-tags-row {
  margin: 0 0 22px;
  text-align: center;
}

.announcement-serene-tags-title {
  margin: 0 0 10px;
  color: #5c534a;
  font-weight: 600;
  font-size: 1.25rem;
}

.announcement-serene-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.announcement-serene-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid #dfd4c4;
  background: #fff;
  color: #5c534a !important;
  text-decoration: none !important;
  font-size: 0.95rem;
  font-weight: 600;
}

.announcement-serene-tag-date {
  color: #2c241c;
}

.announcement-serene-tag-title {
  color: #5c534a;
  opacity: 0.95;
}

.announcement-serene-tag:hover,
.announcement-serene-tag:focus {
  background: #f5eee2;
  border-color: #c9b699;
  color: #2c241c !important;
}

.announcement-serene-tag--pinned {
  border-color: #c9a227;
  box-shadow: 0 0 0 1px rgba(201, 162, 39, 0.25);
}

.announcement-serene-tag-pin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(145deg, #8b6914 0%, #6b5010 100%);
  color: #fff;
  box-shadow: 0 1px 3px rgba(44, 36, 28, 0.25);
}

.announcement-serene-tag-pin__icon {
  width: 14px;
  height: 14px;
  display: block;
}

.announcement-serene-tag--pinned .announcement-serene-tag-pin {
  background: linear-gradient(145deg, #a67c0a 0%, #8b6914 100%);
}

.announcement-serene-page .serene-cards.announcement-serene-list {
  grid-template-columns: 1fr !important;
  gap: 24px;
}

.announcement-serene-page .announcement-serene-card {
  max-width: none;
  margin: 0;
  overflow: visible;
}

.announcement-serene-page .announcement-serene-card--featured {
  max-width: 100%;
}

.announcement-serene-summary,
.announcement-serene-details {
  color: #5c534a;
  font-size: 1.59375rem;
  line-height: 1.65;
}

.announcement-serene-summary > *:last-child,
.announcement-serene-details > *:last-child {
  margin-bottom: 0;
}

.announcement-serene-divider {
  margin: 18px 0 18px;
  border: 0;
  border-top: 1px solid #e7ddcf;
}

.announcement-serene-pagination {
  margin-top: 26px;
}

.announcement-serene-pagination .pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.announcement-serene-page .announcement-serene-card .announcement-serene-card-sticky-row {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin: -6px 0 12px;
  padding: 8px 10px;
  border: 1px solid #e7ddcf;
  border-radius: 10px;
  background: rgba(250, 248, 245, 0.97);
  color: #5c534a;
  font-weight: 600;
}

.announcement-serene-page .announcement-serene-card .announcement-serene-card-sticky-date-line {
  display: flex;
  align-items: center;
  gap: 8px;
}

.announcement-serene-page .announcement-serene-card .announcement-serene-card-sticky-row img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.announcement-serene-page .announcement-serene-card .announcement-serene-card-sticky-title {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2rem;
  line-height: 1.2;
  color: #2c241c;
}

.event-serene-page {
  padding: 0 0 18px;
}

.event-serene-page .section-heading {
  max-width: 860px;
  margin: 0 auto 26px;
}

.event-serene-date-tags-row {
  margin: 0 0 22px;
  text-align: center;
}

.event-serene-date-tags-title {
  margin: 0 0 10px;
  color: #5c534a;
  font-weight: 600;
  font-size: 1.25rem;
}

.event-serene-date-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.event-serene-date-tag {
  display: inline-block;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid #dfd4c4;
  background: #fff;
  color: #5c534a !important;
  text-decoration: none !important;
  font-size: 0.95rem;
  font-weight: 600;
}

.event-serene-date-tag:hover,
.event-serene-date-tag:focus {
  background: #f5eee2;
  border-color: #c9b699;
  color: #2c241c !important;
}

.event-serene-page .serene-cards.event-serene-list {
  grid-template-columns: 1fr !important;
  gap: 24px;
}

.event-serene-page .event-serene-card {
  width: 100%;
  overflow: visible;
}

.event-serene-page .event-card-serene .body {
  padding: 20px 22px 24px;
}

.event-serene-page .event-serene-inline-thumb {
  float: left;
  width: clamp(280px, 48vw, 440px);
  margin: 2px 14px 8px 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e7ddcf;
  background: #fff;
  box-shadow: 0 4px 14px rgba(44, 36, 28, 0.08);
}

.event-serene-page .event-serene-inline-thumb__image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.event-serene-page .event-card-serene .body::after {
  content: "";
  display: table;
  clear: both;
}

.event-serene-page .event-card-serene .thumb time {
  top: 12px;
  bottom: auto;
}

.event-serene-page .event-serene-card .event-serene-card-sticky-date-row {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin: -6px 0 12px;
  padding: 8px 10px;
  border: 1px solid #e7ddcf;
  border-radius: 10px;
  background: rgba(250, 248, 245, 0.97);
  color: #5c534a;
  font-weight: 600;
}

.event-serene-page .event-serene-card .event-serene-card-sticky-date-line {
  display: flex;
  align-items: center;
  gap: 8px;
}

.event-serene-page .event-serene-card .event-serene-card-sticky-date-row img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.event-serene-page .event-serene-card .event-serene-card-sticky-title {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2rem;
  line-height: 1.2;
  color: #2c241c;
}

.event-serene-page .event-serene-list .event-serene-card:nth-child(odd) {
  background: #fff;
}

.event-serene-page .event-serene-list .event-serene-card:nth-child(even) {
  background: #faf6ef;
}

/* Serene home: header/footer match intro cream (#faf8f5); body class from ViewData["BodyClass"] */
body.serene-home #header {
  background: #faf8f5 !important;
  border-bottom-color: #e8e0d5 !important;
}
body.serene-home .top-menu li a,
body.serene-home .search-holder button {
  color: #3d3832 !important;
}
body.serene-home .top-menu li a:focus,
body.serene-home .top-menu li a:active {
  outline: none !important;
  box-shadow: none !important;
}
body.serene-home #nav li a,
body.serene-home #nav li.active a {
  color: #2c241c !important;
}
body.serene-home .navigation-row .navbar-inverse .navbar-nav > li > a:focus,
body.serene-home .navigation-row .navbar-inverse .navbar-nav > li > a:active,
body.serene-home #nav > li > a:focus,
body.serene-home #nav > li > a:active {
  outline: none !important;
  box-shadow: none !important;
}
body.serene-home .navigation-row .navbar-inverse .navbar-nav#nav > li > a:hover,
body.serene-home .navigation-row .navbar-inverse .navbar-nav#nav > li > a:focus,
body.serene-home .navigation-row .navbar-inverse .navbar-nav > .active > a:hover,
body.serene-home .navigation-row .navbar-inverse .navbar-nav > .active > a:focus,
body.serene-home #nav > li > a:hover,
body.serene-home #nav > li > a:focus,
body.serene-home #nav > li:hover > a {
  color: #8b7355 !important;
}
body.serene-home .navigation-row .navbar-inverse .navbar-nav > .active > a,
body.serene-home .navigation-row .navbar-inverse .navbar-nav > .active > a:hover,
body.serene-home .navigation-row .navbar-inverse .navbar-nav > .active > a:focus {
  border-bottom-color: #8b7355 !important;
}
body.serene-home #banner .owl-carousel .owl-nav button.owl-prev,
body.serene-home #banner .owl-carousel .owl-nav button.owl-next {
  border: 0 !important;
  background: rgba(250, 248, 245, 0.9) !important;
  border-radius: 999px !important;
  width: 44px;
  height: 44px;
}
body.serene-home #banner .owl-carousel .owl-nav button.owl-prev:before,
body.serene-home #banner .owl-carousel .owl-nav button.owl-next:before {
  color: #5c5248 !important;
}
body.serene-home .navbar-inverse .navbar-toggle {
  border-color: #c4b8a8 !important;
}
body.serene-home .navbar-inverse .navbar-toggle:hover,
body.serene-home .navbar-inverse .navbar-toggle:focus {
  background-color: #e8e0d5 !important;
}
body.serene-home .navbar-inverse .navbar-toggle .icon-bar {
  background-color: #3d3832 !important;
}
body.serene-home .navbar-inverse .navbar-collapse {
  border-color: #e8e0d5 !important;
}
body.serene-home #nav li ul li a:hover,
body.serene-home #nav li ul li:hover > a {
  color: #222 !important;
}
body.serene-home #footer {
  background: #faf8f5 none !important;
}
body.serene-home .footer-box p,
body.serene-home .footer-box h3,
body.serene-home .footer-box address ul li {
  color: #3d3832 !important;
}
body.serene-home .footer-box p a,
body.serene-home .footer-box address ul li a {
  color: #6b5b4b !important;
}
body.serene-home .footer-section-2 {
  background: transparent !important;
  border-top-color: #e8e0d5 !important;
}
body.serene-home .footer-section-2 strong.copyright {
  color: #5c5248 !important;
}
body.serene-home .footer-box input[type="text"],
body.serene-home .footer-box input[type="name"],
body.serene-home .footer-box input[type="email"] {
  color: #2c241c !important;
  border-bottom-color: #c4b8a8 !important;
}
body.serene-home .footer-box input:-webkit-input-placeholder {
  color: #8b7355 !important;
  opacity: 1 !important;
}
body.serene-home .footer-box input:-moz-placeholder {
  color: #8b7355 !important;
  opacity: 1 !important;
}
body.serene-home .footer-box input:-ms-input-placeholder {
  color: #8b7355 !important;
}

body.serene-home #prayer-timings-section .timing-box h3 {
  font-size: 2.25rem !important;
  line-height: 1.2 !important;
}
body.serene-home #prayer-timings-section .timing-box span,
body.serene-home #prayer-timings-section .timing-box b {
  font-size: 1.59375rem !important;
}
body.serene-home #prayer-timings-section.home-sample-serene-intro .section-heading {
  text-align: center;
  margin-bottom: 10px;
}
body.serene-home #ser-prayer-timings {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.85rem, 3.8vw, 3.675rem);
  color: #2c241c;
  margin: 0 0 10px;
}

/* ---- Editorial ---- */
.home-sample-editorial {
  background: #ffffff;
  color: #111;
}
.home-sample-editorial-banner {
  border-bottom: 1px solid #e5e5e5;
  padding: clamp(40px, 10vw, 100px) 15px 32px;
  max-width: 1200px;
  margin: 0 auto;
}
.home-sample-editorial-banner .label {
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #737373;
  margin-bottom: 16px;
}
.home-sample-editorial-banner h1 {
  font-size: clamp(2rem, 6vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 16px;
  max-width: 14ch;
}
.home-sample-editorial-banner .subtitle {
  font-size: clamp(1rem, 2.4vw, 1.2rem);
  color: #525252;
  max-width: 38rem;
  margin: 0 0 28px;
  line-height: 1.55;
}
.home-sample-editorial-banner .meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
}
.home-sample-editorial-banner .meta-row a {
  color: #111 !important;
  font-weight: 600;
  text-decoration: underline !important;
  text-underline-offset: 4px;
}
.home-sample-editorial-banner .gold-rule {
  width: 72px;
  height: 4px;
  background: #c9a227;
  margin-top: 28px;
}
.home-sample-editorial .hds-prayer-strip {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid #e5e5e5;
}
.home-sample-editorial .hds-prayer-item {
  background: #fafafa;
  border: 1px solid #e5e5e5;
  color: #171717;
}

.home-sample-editorial section {
  padding: 48px 15px;
}
.home-sample-editorial .editorial-head {
  max-width: 1200px;
  margin: 0 auto 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.home-sample-editorial .editorial-head h2 {
  margin: 0;
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.home-sample-editorial .editorial-head a {
  font-size: 0.9rem;
  color: #c9a227 !important;
  font-weight: 600;
  text-decoration: none !important;
  border-bottom: 2px solid #c9a227;
}

.home-sample-editorial .news-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: #e5e5e5;
  border: 1px solid #e5e5e5;
}
@media (min-width: 768px) {
  .home-sample-editorial .news-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.home-sample-editorial .news-cell {
  background: #fff;
  padding: 24px 20px;
  min-height: 180px;
  display: flex;
  flex-direction: column;
}
.home-sample-editorial .news-cell.feature {
  grid-column: 1 / -1;
  min-height: auto;
}
@media (min-width: 768px) {
  .home-sample-editorial .news-cell.feature {
    grid-column: span 2;
  }
}
.home-sample-editorial .news-cell time {
  font-size: 0.75rem;
  color: #737373;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.home-sample-editorial .news-cell h3 {
  margin: 12px 0 8px;
  font-size: 1.15rem;
  font-weight: 700;
}
.home-sample-editorial .news-cell p {
  margin: 0;
  color: #525252;
  font-size: 0.95rem;
  line-height: 1.5;
  flex: 1;
}
.home-sample-editorial .news-cell a.cta {
  margin-top: 14px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #111 !important;
  text-decoration: none !important;
}

.home-sample-editorial .events-editorial {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.home-sample-editorial .event-ed {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  border: 1px solid #e5e5e5;
  padding: 16px;
  background: #fafafa;
}
@media (max-width: 480px) {
  .home-sample-editorial .event-ed {
    grid-template-columns: 1fr;
  }
}
.home-sample-editorial .event-ed img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  filter: grayscale(0.2);
}
.home-sample-editorial .event-ed h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}
.home-sample-editorial .event-ed time {
  font-size: 0.8rem;
  color: #737373;
}

.home-sample-editorial .welcome-editorial {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 992px) {
  .home-sample-editorial .welcome-editorial {
    grid-template-columns: 2fr 1fr;
  }
}
.home-sample-editorial .welcome-editorial .prose p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #404040;
}
.home-sample-editorial .welcome-editorial .side-img img {
  width: 100%;
  border: 1px solid #e5e5e5;
}

.home-sample-editorial .pillars-ed {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.home-sample-editorial .pillars-ed span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid #e5e5e5;
  font-size: 0.85rem;
  font-weight: 600;
}
.home-sample-editorial .pillars-ed img {
  width: 22px;
  height: 22px;
}

.home-sample-editorial .gallery-ed {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
  max-width: 1200px;
  margin: 0 auto;
}
@media (max-width: 767px) {
  .home-sample-editorial .gallery-ed {
    grid-template-columns: repeat(2, 1fr);
  }
}
.home-sample-editorial .gallery-ed a {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
}
.home-sample-editorial .gallery-ed img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-sample-editorial .donate-ed {
  background: #111;
  color: #fafafa;
  padding: 40px 15px;
  text-align: center;
}
.home-sample-editorial .donate-ed h2 {
  margin: 0 0 10px;
  font-size: 1.5rem;
}
.home-sample-editorial .donate-ed p {
  margin: 0 auto 18px;
  max-width: 480px;
  color: #a3a3a3;
}
.home-sample-editorial .donate-ed a {
  display: inline-block;
  padding: 12px 26px;
  background: #c9a227;
  color: #111 !important;
  font-weight: 800;
  text-decoration: none !important;
}

/* —— About page (serene theme) —— */
.about-serene-page {
  padding: 0 0 56px;
}

/* Match announcements/events: tighter under inner banner (see .home-sample-serene section). */
.home-sample-serene.about-serene-page > .about-serene-welcome-section {
  padding-top: 22px;
}

.home-sample-serene.about-serene-page .about-serene-main-heading,
.home-sample-serene.community-serene-page .community-serene-main-heading {
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 28px;
}

/* —— Community page (serene heading + existing product grid) —— */
.community-serene-page {
  padding: 0 0 56px;
}

.home-sample-serene.community-serene-page > .community-serene-section {
  padding-top: 22px;
}

.home-sample-serene.community-serene-page .community-serene-section.product-section {
  float: none;
  width: 100%;
  box-sizing: border-box;
}

.community-serene-page .community-directory-controls {
  margin: 0 auto 20px;
  max-width: 1100px;
}

.community-serene-page .community-directory-controls__grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.5fr) auto auto;
  gap: 10px;
  align-items: center;
}

.community-serene-page .community-directory-search-input,
.community-serene-page .community-directory-filter-select {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  margin: 0;
  border: 1px solid #e8e0d5;
  border-radius: 10px;
  background: #fff;
  color: #3d3832;
  font-size: 1.3225rem;
  line-height: 1;
  box-sizing: border-box;
  align-self: center;
}

.community-serene-page .community-directory-filter-button,
.community-serene-page .community-directory-clear-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  height: 44px;
  padding: 0 10px;
  margin: 0;
  border-radius: 999px;
  text-decoration: none !important;
  font-weight: 600;
  line-height: 1;
  vertical-align: middle;
  border: 1px solid #d8c7ad;
  box-sizing: border-box;
  white-space: nowrap;
}

.community-serene-page .community-directory-filter-button {
  background: #8b6914;
  color: #fff;
  appearance: none;
}

.community-serene-page .community-directory-clear-link {
  background: #fff;
  color: #5c534a !important;
}

.community-serene-page .community-directory-meta {
  margin: 10px 2px 0;
  text-align: center;
  color: #6b5b4b;
  font-size: 1rem;
}

.community-serene-page .community-directory-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.community-serene-page .community-directory-card {
  background: #fff;
  border: 1px solid #efe8df;
  border-radius: 18px;
  padding: 14px 14px 16px;
  box-shadow: 0 8px 28px rgba(44, 36, 28, 0.06);
  text-align: center;
}

.community-serene-page .community-directory-card__link {
  color: inherit;
  text-decoration: none !important;
}

.community-serene-page .community-directory-card__image-box {
  width: 252px;
  height: 144px;
  margin: 0 auto 12px;
  border: 1px solid #e7ddcf;
  border-radius: 12px;
  overflow: hidden;
  background: #faf8f5;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.community-serene-page .community-directory-card__image-box img {
  width: 252px;
  height: 144px;
  max-width: none;
  object-fit: cover;
  object-position: center;
}

.community-serene-page .community-directory-card__image-box span {
  display: block;
  color: #5c534a;
  font-weight: 600;
  font-size: 3.15rem;
  line-height: 1.35;
}

.community-serene-page .community-directory-card__image-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border-radius: 0;
}

.community-serene-page .community-directory-card__image-fallback--texture-1 {
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.45) 0 10%, transparent 11%),
    radial-gradient(circle at 78% 70%, rgba(255, 255, 255, 0.35) 0 12%, transparent 13%),
    repeating-linear-gradient(
      135deg,
      rgba(139, 105, 20, 0.1) 0px,
      rgba(139, 105, 20, 0.1) 6px,
      rgba(255, 255, 255, 0.22) 6px,
      rgba(255, 255, 255, 0.22) 12px
    ),
    linear-gradient(145deg, #e9e0d2 0%, #d9ccb7 100%);
}

.community-serene-page .community-directory-card__image-fallback--texture-2 {
  background:
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.4) 0 12%, transparent 13%),
    radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.3) 0 10%, transparent 11%),
    repeating-linear-gradient(
      45deg,
      rgba(107, 91, 75, 0.12) 0px,
      rgba(107, 91, 75, 0.12) 5px,
      rgba(255, 255, 255, 0.18) 5px,
      rgba(255, 255, 255, 0.18) 11px
    ),
    linear-gradient(135deg, #ded3c2 0%, #ccbca4 100%);
}

.community-serene-page .community-directory-card__image-fallback--texture-3 {
  background:
    radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.42) 0 9%, transparent 10%),
    radial-gradient(circle at 70% 65%, rgba(255, 255, 255, 0.32) 0 11%, transparent 12%),
    repeating-linear-gradient(
      90deg,
      rgba(139, 105, 20, 0.1) 0px,
      rgba(139, 105, 20, 0.1) 7px,
      rgba(255, 255, 255, 0.16) 7px,
      rgba(255, 255, 255, 0.16) 13px
    ),
    linear-gradient(120deg, #e3d8c9 0%, #d2c2ac 100%);
}

.community-serene-page .community-directory-card__image-fallback--ad-texture-1 {
  background:
    repeating-linear-gradient(30deg, rgba(31, 58, 147, 0.18) 0 8px, rgba(255, 255, 255, 0.2) 8px 16px),
    linear-gradient(135deg, #d9e6ff 0%, #b8d1ff 100%);
}

.community-serene-page .community-directory-card__image-fallback--ad-texture-2 {
  background:
    radial-gradient(circle at 20% 25%, rgba(255, 255, 255, 0.5) 0 12%, transparent 13%),
    repeating-linear-gradient(145deg, rgba(22, 101, 52, 0.14) 0 7px, rgba(255, 255, 255, 0.22) 7px 14px),
    linear-gradient(145deg, #d8f3dc 0%, #b7e4c7 100%);
}

.community-serene-page .community-directory-card__image-fallback--ad-texture-3 {
  background:
    repeating-linear-gradient(90deg, rgba(107, 70, 193, 0.16) 0 6px, rgba(255, 255, 255, 0.24) 6px 12px),
    linear-gradient(120deg, #efe0ff 0%, #dac2ff 100%);
}

.community-serene-page .community-directory-card__image-fallback--ad-texture-4 {
  background:
    radial-gradient(circle at 75% 25%, rgba(255, 255, 255, 0.45) 0 11%, transparent 12%),
    repeating-linear-gradient(45deg, rgba(190, 24, 93, 0.16) 0 7px, rgba(255, 255, 255, 0.22) 7px 14px),
    linear-gradient(130deg, #ffd6e8 0%, #ffb3d1 100%);
}

.community-serene-page .community-directory-card__image-fallback--ad-texture-5 {
  background:
    repeating-linear-gradient(135deg, rgba(12, 74, 110, 0.14) 0 10px, rgba(255, 255, 255, 0.2) 10px 20px),
    linear-gradient(150deg, #d9f4ff 0%, #b7e7ff 100%);
}

.community-serene-page .community-directory-card__image-fallback--ad-texture-6 {
  background:
    radial-gradient(circle at 25% 70%, rgba(255, 255, 255, 0.4) 0 10%, transparent 11%),
    repeating-linear-gradient(60deg, rgba(161, 98, 7, 0.16) 0 8px, rgba(255, 255, 255, 0.22) 8px 16px),
    linear-gradient(135deg, #ffe9c7 0%, #ffd59e 100%);
}

.community-serene-page .community-directory-card__image-fallback--ad-texture-7 {
  background:
    repeating-linear-gradient(0deg, rgba(17, 94, 89, 0.15) 0 6px, rgba(255, 255, 255, 0.24) 6px 12px),
    linear-gradient(120deg, #d6fff6 0%, #b3f5e8 100%);
}

.community-serene-page .community-directory-card__image-fallback--ad-texture-8 {
  background:
    radial-gradient(circle at 80% 75%, rgba(255, 255, 255, 0.42) 0 13%, transparent 14%),
    repeating-linear-gradient(120deg, rgba(76, 29, 149, 0.14) 0 8px, rgba(255, 255, 255, 0.2) 8px 16px),
    linear-gradient(130deg, #eadcff 0%, #d2b8ff 100%);
}

.community-serene-page .community-directory-card__image-fallback--ad-texture-9 {
  background:
    repeating-linear-gradient(75deg, rgba(127, 29, 29, 0.14) 0 9px, rgba(255, 255, 255, 0.22) 9px 18px),
    linear-gradient(145deg, #ffe0dc 0%, #ffc4bb 100%);
}

.community-serene-page .community-directory-card__image-fallback--ad-texture-10 {
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.38) 0 10%, transparent 11%),
    repeating-linear-gradient(30deg, rgba(30, 64, 175, 0.14) 0 7px, rgba(255, 255, 255, 0.22) 7px 14px),
    linear-gradient(140deg, #e0ecff 0%, #c4d9ff 100%);
}

.community-serene-page .community-directory-card__heading {
  margin: 0 0 10px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2rem;
  line-height: 1.15;
  color: #2c241c;
}

.community-serene-page .community-directory-card__body p {
  margin: 0 0 6px;
  color: #5c534a;
  font-size: 1.2rem;
  line-height: 1.35;
  word-break: break-word;
}

.community-serene-page .community-directory-card__body p:last-child {
  margin-bottom: 0;
}

.community-serene-page .community-directory-card--advertise .community-directory-card__image-fallback span {
  font-size: 2.35rem;
  font-weight: 700;
  animation: community-ad-blink-slow 5.5s ease-in-out infinite;
}

.community-serene-page .community-directory-card__body--advertise {
  text-align: center;
}

.community-serene-page .community-directory-ad-title {
  font-weight: 700;
  margin-bottom: 8px;
}

.community-serene-page .community-directory-card__body--advertise .glyphicon {
  margin-right: 6px;
  color: #6f4f18;
}

@keyframes community-ad-blink-slow {
  0% {
    color: #6f4f18;
    opacity: 1;
  }
  25% {
    color: #1d4ed8;
    opacity: 0.8;
  }
  50% {
    color: #047857;
    opacity: 1;
  }
  75% {
    color: #b45309;
    opacity: 0.82;
  }
  100% {
    color: #6f4f18;
    opacity: 1;
  }
}

.community-serene-page .community-directory-card__body a {
  color: #6f4f18;
  text-decoration: none;
  border-bottom: 1px solid rgba(111, 79, 24, 0.35);
}

@media (max-width: 991px) {
  .community-serene-page .community-directory-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .community-serene-page .community-directory-controls__grid {
    grid-template-columns: 1fr auto auto;
  }
}

@media (max-width: 767px) {
  .community-serene-page .community-directory-grid {
    grid-template-columns: 1fr;
  }

  .community-serene-page .community-directory-controls__grid {
    grid-template-columns: 1fr;
  }
}

/* Welcome: flex so the image cell is only as wide as the photo (no half-empty column). */
.home-sample-serene .about-serene-welcome-wrap {
  box-sizing: border-box;
}

.home-sample-serene .about-serene-welcome--split {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  /* Small gap: text starts near the image without Bootstrap 15+15px gutters. */
  column-gap: 0.65rem;
  row-gap: 1rem;
  width: 100%;
}

/* Image: 18.75% / 13.875rem, then +50% → 28.125% / 20.8125rem. No frame/border on wrapper. */
.home-sample-serene .about-serene-welcome__media {
  flex: 0 0 auto;
  width: 28.125%;
  max-width: 20.8125rem;
  min-width: 0;
  line-height: 0;
  text-align: left;
  box-sizing: border-box;
}

.home-sample-serene .about-serene-welcome__text {
  flex: 1 1 12rem;
  min-width: 0;
  overflow-wrap: break-word;
  word-wrap: break-word;
  padding: 4px 2px 8px;
}

@media (max-width: 767px) {
  .home-sample-serene .about-serene-welcome--split {
    flex-direction: column;
  }

  .home-sample-serene .about-serene-welcome__media {
    width: auto;
    max-width: 20.8125rem;
  }
}

.home-sample-serene .about-serene-welcome__text > p {
  font-size: 1.59375rem;
  line-height: 1.75;
  color: #5c534a;
  margin: 0 0 0.9rem;
}

.home-sample-serene .about-serene-welcome__media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
  border: 0;
  box-shadow: none;
  box-sizing: border-box;
}

.home-sample-serene .about-serene-welcome__heading {
  text-align: left;
  margin-bottom: 0.5rem;
}

.home-sample-serene .about-serene-welcome__title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.85rem, 2.8vw, 2.65rem) !important;
  line-height: 1.2;
  color: #2c241c;
  margin: 0 0 8px;
  text-align: left !important;
  text-transform: none;
  font-weight: 600;
}

.home-sample-serene .about-serene-welcome__kicker {
  text-align: left !important;
  margin: 0;
  color: #7a6f63;
  font-size: 1.59375rem;
  line-height: 1.4;
}

.home-sample-serene .about-serene-lead {
  color: #4a4238;
  font-size: 1.59375rem;
  margin: 0 0 1rem;
}

/* Vision strip: off-white band between sections */
.about-serene-vision {
  background: #fff;
  border-top: 1px solid #efe8df;
  border-bottom: 1px solid #efe8df;
}

.home-sample-serene .about-serene-vision-grid {
  max-width: 1100px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

@media (min-width: 900px) {
  .home-sample-serene .about-serene-vision-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.home-sample-serene .about-serene-vision-card {
  text-align: center;
  padding-top: 28px;
}

.home-sample-serene .about-serene-vision-card h3 {
  margin: 0 0 10px;
}

.home-sample-serene .about-serene-vision-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: #f3eee6;
  border: 1px solid #d8c7ad;
  color: #6f4f18;
  font-size: 1.5rem;
}

/* Board of directors */
.about-serene-team {
  padding-bottom: 0;
}

.about-serene-team-grid {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-evenly;
  align-items: stretch;
  column-gap: 1.5rem;
  row-gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 4px;
  box-sizing: border-box;
}

.home-sample-serene .about-serene-team-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(44, 36, 28, 0.06);
  border: 1px solid #efe8df;
  flex: 0 1 280px;
  min-width: 0;
  max-width: min(100%, 300px);
  box-sizing: border-box;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.home-sample-serene .about-serene-team-card:hover,
.home-sample-serene .about-serene-team-card:focus-within {
  box-shadow: 0 12px 40px rgba(44, 36, 28, 0.1);
  transform: translateY(-2px);
}

.home-sample-serene .about-serene-team-link {
  display: block;
  color: inherit;
  text-decoration: none !important;
}

.home-sample-serene .about-serene-team-photo {
  aspect-ratio: 1;
  overflow: hidden;
  background: #f0ebe3;
}

.home-sample-serene .about-serene-team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-sample-serene .about-serene-team-link h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2rem;
  color: #2c241c;
  margin: 0;
  padding: 16px 18px 0;
  text-align: center;
}

.home-sample-serene .about-serene-team-role {
  text-align: center;
  color: #7a6f63;
  font-size: 1.35rem;
  margin: 0;
  padding: 6px 18px 22px;
  font-weight: 600;
}

/* —— Board of Directors (About → BoardOfDirectors) —— */
.board-directors-serene-page {
  padding: 0 0 40px;
}

.home-sample-serene .bod-hero {
  width: 100%;
  margin: 0 0 0;
  line-height: 0;
  overflow: hidden;
}

.home-sample-serene .bod-hero img {
  display: block;
  width: 100%;
  max-height: min(48vh, 420px);
  object-fit: cover;
  object-position: center;
}

@media (min-width: 768px) {
  .home-sample-serene .bod-hero {
    max-width: 1100px;
    margin: 0 auto 28px;
    border-radius: 0 0 20px 20px;
  }

  .home-sample-serene .bod-hero img {
    border-radius: 0 0 20px 20px;
  }
}

.home-sample-serene .bod-bismillah {
  text-align: center;
  color: #6b5b4b;
  font-size: 1.35rem;
  font-style: italic;
  margin: 0 0 0.5rem;
}

.home-sample-serene .bod-section-heading-tight {
  margin-bottom: 0.5rem;
}

.home-sample-serene .bod-prose p,
.home-sample-serene .bod-prose li {
  color: #5c534a;
  font-size: 1.59375rem;
  line-height: 1.7;
  margin: 0 0 0.9rem;
}

.home-sample-serene .bod-prose ul {
  margin: 0 0 0.5rem 1.25em;
  padding: 0;
  list-style: disc;
}

.home-sample-serene .bod-prose a {
  color: #6f4f18;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(111, 79, 24, 0.35);
}

.home-sample-serene .bod-prose a:hover,
.home-sample-serene .bod-prose a:focus {
  color: #5b3f13;
  border-bottom-color: rgba(91, 63, 19, 0.5);
}

.home-sample-serene .bod-intro {
  padding: 18px 0 40px;
}

.home-sample-serene .bod-exec-section {
  background: #fff;
  border-top: 1px solid #efe8df;
  border-bottom: 1px solid #efe8df;
  padding: 32px 0 40px;
  margin: 0 0 0;
}

.home-sample-serene .bod-subheading {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.5rem, 2.2vw, 1.9rem);
  color: #2c241c;
  margin: 0 0 1rem;
  text-align: left;
  text-transform: none;
  font-weight: 600;
  line-height: 1.3;
}

.home-sample-serene .bod-list-section {
  padding: 28px 0 0;
}

.home-sample-serene .bod-list-section--last {
  padding-bottom: 20px;
}

.home-sample-serene .bod-name-list {
  list-style: disc;
  list-style-position: outside;
  margin: 0 0 0.5rem 0.35rem;
  padding: 0 0 0 1.4rem;
  color: #5c534a;
  font-size: 1.59375rem;
  line-height: 1.6;
  columns: 1;
}

@media (min-width: 600px) {
  .home-sample-serene .bod-name-list {
    column-count: 2;
    column-gap: 2rem;
  }
}

.home-sample-serene .bod-name-list li {
  margin: 0 0 0.4rem 0;
  break-inside: avoid;
  padding-left: 0.15rem;
}

.home-sample-serene .bod-name-list li::marker {
  color: #c9a227;
}

.home-sample-serene .bod-table {
  width: 100%;
  max-width: 100%;
  margin: 0;
  color: #5c534a;
  font-size: 1.35rem;
  border: 1px solid #e8e0d5;
  background: #faf8f5;
  border-radius: 16px;
  overflow: hidden;
  border-collapse: collapse;
}

.home-sample-serene .bod-table th,
.home-sample-serene .bod-table td {
  border: 1px solid #efe8df;
  padding: 12px 16px;
  text-align: left;
  vertical-align: top;
  text-decoration: none;
}

.home-sample-serene .bod-table thead th {
  background: #f3eee6;
  color: #2c241c;
  font-weight: 600;
  font-family: "Source Sans 3", system-ui, sans-serif;
}

.home-sample-serene .bod-table tbody th[scope="row"] {
  color: #4a4238;
  background: #faf8f5;
  font-weight: 600;
  min-width: 7.5rem;
}

.home-sample-serene .bod-table td a {
  color: #6f4f18;
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid rgba(111, 79, 24, 0.35);
}

/* Executive table: no horizontal scroll; e-mail under name in second column */
.home-sample-serene .bod-exec-table-outer {
  width: 100%;
  max-width: 100%;
  overflow: visible;
}

.home-sample-serene .bod-exec-table {
  table-layout: fixed;
  width: 100%;
  max-width: 100%;
}

.home-sample-serene .bod-exec-col-role {
  width: 32%;
}

.home-sample-serene .bod-exec-col-contact {
  width: 68%;
}

.home-sample-serene .bod-exec-table .bod-exec-name {
  display: block;
  color: #5c534a;
  font-weight: 600;
  line-height: 1.35;
  margin: 0 0 0.4rem 0;
}

.home-sample-serene .bod-exec-table .bod-exec-mail {
  display: block;
  color: #6f4f18;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95em;
  line-height: 1.4;
  border-bottom: 1px solid rgba(111, 79, 24, 0.35);
  padding: 0 0 0.1rem 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

@media (min-width: 768px) {
  .home-sample-serene .bod-exec-table .bod-exec-mail {
    font-size: 1em;
  }
}

.home-sample-serene .bod-exec-table .bod-exec-mail:hover,
.home-sample-serene .bod-exec-table .bod-exec-mail:focus {
  color: #5b3f13;
  border-bottom-color: rgba(91, 63, 19, 0.5);
}

@media (max-width: 540px) {
  .home-sample-serene .bod-exec-table tbody th[scope="row"] {
    min-width: 0;
    width: 32%;
  }
}

/* —— Contact page (serene theme) —— */
.contact-serene-page {
  padding: 32px 0 0;
}

/* Hero + form must stack above the map; absolute Google-map iframes can otherwise sit on top. */
.home-sample-serene .contact-serene-hero {
  position: relative;
  z-index: 2;
  padding: 20px 18px 40px;
}

.home-sample-serene .contact-serene-hero .section-heading .sub {
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.home-sample-serene .contact-serene-row {
  margin-top: 8px;
}

.home-sample-serene .contact-serene-col {
  margin-bottom: 1.5rem;
}

@media (min-width: 992px) {
  .home-sample-serene .contact-serene-col {
    margin-bottom: 0;
  }
}

.home-sample-serene .contact-serene-info,
.home-sample-serene .contact-serene-form {
  background: #fff;
  border: 1px solid #efe8df;
  border-radius: 20px;
  padding: 26px 22px 28px;
  box-shadow: 0 8px 32px rgba(44, 36, 28, 0.06);
  box-sizing: border-box;
}

.home-sample-serene .contact-serene-form {
  position: relative;
  z-index: 0;
  isolation: isolate;
}

.home-sample-serene .contact-serene-info h3,
.home-sample-serene .contact-serene-form h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.9rem, 2.2vw, 2.4rem);
  color: #2c241c;
  margin: 0 0 1.1rem;
  text-transform: none;
  font-weight: 600;
  text-align: left;
}

.home-sample-serene .contact-serene-info > ul {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 0;
}

.home-sample-serene .contact-serene-info > ul > li {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 0.9rem;
  margin: 0 0 1.15rem 0;
  position: relative;
}

.home-sample-serene .contact-serene-info > ul > li:last-child {
  margin-bottom: 0;
}

.home-sample-serene .contact-serene-info__icon {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f3eee6;
  border: 1px solid #d8c7ad;
  border-radius: 50%;
  line-height: 0;
  margin-top: 2px;
}

.home-sample-serene .contact-serene-info__icon img {
  display: block;
  max-width: 28px;
  max-height: 28px;
  width: auto;
  height: auto;
}

.home-sample-serene .contact-serene-info__body {
  min-width: 0;
  flex: 1;
  padding: 0;
  overflow: hidden;
}

.home-sample-serene .contact-serene-info__body p {
  margin: 0;
  color: #5c534a;
  font-size: 1.35rem;
  line-height: 1.55;
}

.home-sample-serene .contact-serene-info__body a {
  color: #6f4f18;
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid rgba(111, 79, 24, 0.35);
}

.home-sample-serene .contact-serene-info__body a:hover,
.home-sample-serene .contact-serene-info__body a:focus {
  color: #5b3f13;
  border-bottom-color: rgba(91, 63, 19, 0.5);
}

.home-sample-serene .contact-serene-form form .row {
  margin-left: -8px;
  margin-right: -8px;
}

.home-sample-serene .contact-serene-form form .row > [class*="col-"] {
  padding-left: 8px;
  padding-right: 8px;
}

.home-sample-serene .contact-serene-input,
.home-sample-serene .contact-serene-textarea {
  float: none;
  position: relative;
  z-index: 1;
  -webkit-user-select: text;
  user-select: text;
  pointer-events: auto;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin-bottom: 14px;
  padding: 12px 14px;
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-size: 1.25rem;
  line-height: 1.4;
  color: #3d3832;
  background: #faf8f5;
  border: 1px solid #e8e0d5;
  border-radius: 12px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  cursor: text;
}

.home-sample-serene .contact-serene-textarea {
  min-height: 140px;
  resize: vertical;
}

.home-sample-serene .contact-serene-input:focus,
.home-sample-serene .contact-serene-textarea:focus {
  outline: none;
  border-color: #c9a227;
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.2);
  background: #fff;
}

/* reCAPTCHA + submit: one row, side by side; overrides site.css .contact-form-recaptcha { float: right } */
.home-sample-serene .contact-serene-captcha-actions {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  width: 100%;
  box-sizing: border-box;
  clear: both;
}

.home-sample-serene .contact-serene-captcha-actions .contact-form-recaptcha#recaptcha_element,
.home-sample-serene .contact-serene-captcha-actions .contact-serene-recaptcha,
.home-sample-serene .contact-serene-captcha-actions .contact-form-recaptcha {
  float: none !important;
  flex: 1 1 260px;
  min-width: 0;
  min-height: 78px;
  margin: 0;
  padding-bottom: 0;
  text-align: left;
}

.home-sample-serene .contact-serene-submit-wrap {
  flex: 0 0 auto;
  align-self: flex-end;
  padding-bottom: 2px;
}

.home-sample-serene .contact-serene-page .message-content-block {
  margin: 0 0 0.75rem 0;
  width: 100%;
  float: none;
  padding: 0;
  box-sizing: border-box;
}

.home-sample-serene .contact-serene-page .message-content-block button,
.home-sample-serene .contact-serene-page .message-content-block .close {
  float: right;
  height: auto;
  min-height: 28px;
  padding: 0 8px;
  line-height: 1.2;
  opacity: 0.7;
  font-size: 1.25rem;
}

.home-sample-serene .contact-serene-flash {
  text-align: left;
  font-size: 1.2rem;
  line-height: 1.5;
  border-radius: 12px;
  border: 1px solid transparent;
}

.home-sample-serene .contact-serene-flash--warning {
  color: #5c4a1c;
  background: #fbf5e3;
  border-color: #e5d4a0;
}

.home-sample-serene .contact-serene-flash--success {
  color: #1f4d3a;
  background: #ecf8f0;
  border-color: #b8d9c6;
}

.home-sample-serene .contact-serene-submit {
  float: none;
  display: inline-block;
  margin-top: 4px;
  padding: 14px 32px;
  border-radius: 999px;
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-size: 1.4rem;
  font-weight: 600;
  cursor: pointer;
  border: 0;
  color: #fff;
  background: #8b6914;
  text-transform: none;
  letter-spacing: 0.01em;
  box-shadow: 0 4px 14px rgba(44, 36, 28, 0.12);
  transition: background 0.15s ease, transform 0.12s ease, box-shadow 0.12s ease;
}

.home-sample-serene .contact-serene-submit:hover,
.home-sample-serene .contact-serene-submit:focus {
  color: #fff;
  background: #765c12;
  outline: none;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(44, 36, 28, 0.16);
}

.contact-serene-map {
  position: relative;
  z-index: 0;
  background: #fff;
  border-top: 1px solid #efe8df;
  padding: 36px 18px 48px;
  margin-top: 8px;
  isolation: isolate;
  overflow: hidden;
}

.home-sample-serene .contact-serene-map__title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.85rem, 2.2vw, 2.25rem);
  color: #2c241c;
  text-align: center;
  margin: 0 0 1.25rem;
  text-transform: none;
  font-weight: 600;
}

.home-sample-serene .contact-serene-map-embed {
  position: relative;
  width: 100%;
  max-width: 100%;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #e8e0d5;
  line-height: 0;
  box-shadow: 0 8px 32px rgba(44, 36, 28, 0.06);
  min-height: 240px;
}

@media (min-width: 768px) {
  .home-sample-serene .contact-serene-map-embed {
    min-height: 320px;
  }
}

/* Block layout: avoids absolutely positioned map iframe painting above the form. */
.home-sample-serene .contact-serene-map-embed iframe {
  position: static;
  display: block;
  width: 100% !important;
  height: min(420px, 55vh) !important;
  min-height: 240px;
  max-width: 100% !important;
  border: 0;
  vertical-align: top;
}

/* —— Community member detail page (serene) —— */
.community-member-serene-page {
  padding: 0 0 18px;
}

.home-sample-serene.community-member-serene-page > section {
  padding-top: 22px;
}

.community-member-serene-page .community-member-serene-main-heading {
  max-width: 860px;
  margin: 0 auto 26px;
}

.community-member-serene-page .community-member-serene-card {
  width: 100%;
  overflow: visible;
}

.community-member-serene-page .community-member-serene-body {
  padding: 20px 22px 24px;
}

.community-member-serene-page .community-member-serene-media-stack {
  float: left;
  width: 315px;
  margin: 2px 14px 8px 0;
}

.community-member-serene-page .community-member-serene-inline-thumb {
  width: 315px;
  height: 180px;
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e7ddcf;
  background: #fff;
  box-shadow: 0 4px 14px rgba(44, 36, 28, 0.08);
}

.community-member-serene-page .community-member-serene-inline-thumb__image {
  display: block;
  width: 315px;
  height: 180px;
  max-width: none;
  object-fit: cover;
  object-position: center;
  background: #fff;
}

.community-member-serene-page .community-member-serene-inline-thumb__fallback {
  width: 315px;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.45) 0 10%, transparent 11%),
    radial-gradient(circle at 78% 70%, rgba(255, 255, 255, 0.35) 0 12%, transparent 13%),
    repeating-linear-gradient(
      135deg,
      rgba(139, 105, 20, 0.1) 0px,
      rgba(139, 105, 20, 0.1) 6px,
      rgba(255, 255, 255, 0.22) 6px,
      rgba(255, 255, 255, 0.22) 12px
    ),
    linear-gradient(145deg, #e9e0d2 0%, #d9ccb7 100%);
}

.community-member-serene-page .community-member-serene-inline-thumb__fallback span {
  display: block;
  text-align: center;
  color: #5c534a;
  font-weight: 600;
  font-size: 1.8rem;
  line-height: 1.3;
  word-break: break-word;
}

.community-member-serene-page .community-member-serene-body::after {
  content: "";
  display: table;
  clear: both;
}

.community-member-serene-page .community-member-serene-content {
  overflow: hidden;
}

.community-member-serene-page .community-member-serene-info-title {
  margin: 0 0 12px;
  text-align: center;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.9rem, 2.6vw, 2.4rem);
  line-height: 1.2;
  color: #2c241c;
}

.community-member-serene-page .community-member-serene-info-title--secondary {
  margin-top: 22px;
}

.community-member-serene-page .community-member-serene-gallery-stack {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 8px;
}

.community-member-serene-page .community-member-serene-gallery-item {
  border: 1px solid #e7ddcf;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 14px rgba(44, 36, 28, 0.08);
}

.community-member-serene-page .community-member-serene-gallery-item img {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
  object-position: center;
  background: #fff;
}

.community-member-serene-page .community-member-serene-summary-block {
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid #efe8df;
  border-radius: 12px;
  background: #fff;
  color: #5c534a;
  font-size: 1.653125rem;
  line-height: 1.55;
}

.community-member-serene-page .community-member-serene-summary-block > *:last-child {
  margin-bottom: 0;
}

.community-member-serene-page .community-member-serene-details-block {
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid #efe8df;
  border-radius: 12px;
  background: #fff;
  color: #5c534a;
  font-size: 1.653125rem;
  line-height: 1.55;
}

.community-member-serene-page .community-member-serene-details-block > *:last-child {
  margin-bottom: 0;
}

.community-member-serene-page .community-member-serene-details-block {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.community-member-serene-page .community-member-serene-details-block * {
  max-width: 100%;
  box-sizing: border-box;
}

.community-member-serene-page .community-member-serene-details-block img,
.community-member-serene-page .community-member-serene-details-block video,
.community-member-serene-page .community-member-serene-details-block iframe {
  max-width: 100% !important;
  height: auto !important;
}

.community-member-serene-page .community-member-serene-details-block table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
}

.community-member-serene-page .community-member-serene-details-block pre,
.community-member-serene-page .community-member-serene-details-block code {
  white-space: pre-wrap;
  word-break: break-word;
}

.community-member-serene-page .community-member-serene-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #e8e0d5;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.community-member-serene-page .community-member-serene-table td {
  border: 1px solid #efe8df;
  padding: 10px 14px;
  vertical-align: top;
  color: #5c534a;
  font-size: 1.4375rem;
  line-height: 1.45;
}

.community-member-serene-page .community-member-serene-table td:first-child {
  width: 34%;
  min-width: 180px;
  font-weight: 700;
  color: #2c241c;
  background: #faf8f5;
}

.community-member-serene-page .community-member-serene-table a {
  color: #6f4f18;
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid rgba(111, 79, 24, 0.35);
}

.community-member-serene-page .community-member-serene-table a:hover,
.community-member-serene-page .community-member-serene-table a:focus {
  color: #5b3f13;
  border-bottom-color: rgba(91, 63, 19, 0.5);
}

.community-member-serene-page .community-member-serene-empty-msg {
  margin: 0;
  text-align: center;
  color: #7a6f63;
  font-size: 1.35rem;
}

@media (max-width: 767px) {
  .community-member-serene-page .community-member-serene-inline-thumb {
    float: none;
    width: 100%;
    height: 180px;
    max-width: 315px;
    margin: 0 auto 14px;
  }

  .community-member-serene-page .community-member-serene-media-stack {
    float: none;
    width: 100%;
    max-width: 315px;
    margin: 0 auto 14px;
  }

  .community-member-serene-page .community-member-serene-content {
    overflow: visible;
  }

  .community-member-serene-page .community-member-serene-table td:first-child {
    width: 42%;
    min-width: 120px;
  }
}
