.rpsb-site-header {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--rp-color-border, #d9e2de);
  position: sticky;
  top: 0;
  z-index: 70;
}

.admin-bar .rpsb-site-header {
  top: 32px;
}

.rpsb-site-footer {
  background: var(--rp-color-ink, #102027);
  color: #dfe8e4;
  padding: 48px 0;
}

.rpsb-site-footer .rp-footer-inner {
  margin: 0 auto;
  max-width: var(--rp-max-width, 1180px);
}

.rpsb-builder-page .rp-page-hero {
  display: none;
}

.rpsb-builder-page .rp-page-content {
  background: transparent;
  padding: 0;
}

.rpsb-builder-page .rp-page-content > .rp-page-shell,
.rpsb-builder-page .rp-page-content .entry-content {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

.rpsb-builder-page .rp-page-content .entry-content {
  margin: 0;
}

.rpsb-hero {
  background: var(--rp-color-navy, #12324a);
  color: #fff;
  min-height: 520px;
  overflow: hidden;
  position: relative;
}

.rpsb-hero::before {
  background: linear-gradient(90deg, rgba(18, 50, 74, 0.94), rgba(18, 50, 74, 0.58), rgba(18, 50, 74, 0.1));
  content: "";
  inset: 0;
  position: absolute;
  z-index: 1;
}

.rpsb-hero img {
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  width: 100%;
}

.rpsb-hero-content {
  align-items: center;
  display: grid;
  min-height: 520px;
  position: relative;
  z-index: 2;
}

.rpsb-hero-copy {
  max-width: 720px;
  padding: 76px 0;
}

.rpsb-hero h2,
.rpsb-section h2,
.rpsb-cta h2 {
  color: inherit;
  font-size: clamp(2rem, 4.4vw, 3.35rem);
  font-weight: 900;
  line-height: 1.12;
  margin: 0 0 18px;
}

.rpsb-hero p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.18rem;
  margin: 0 0 28px;
  max-width: 660px;
}

.rpsb-section {
  padding: 68px 0;
}

.rpsb-padding-compact {
  padding-bottom: 42px;
  padding-top: 42px;
}

.rpsb-padding-spacious {
  padding-bottom: 92px;
  padding-top: 92px;
}

.rpsb-section-white {
  background: #fff;
}

.rpsb-section-soft {
  background: var(--rp-color-soft, #f4f7f5);
}

.rpsb-section-navy,
.rpsb-theme-navy {
  background: var(--rp-color-navy, #12324a);
  color: #fff;
}

.rpsb-section-green,
.rpsb-theme-green {
  background: var(--rp-color-green, #176b52);
  color: #fff;
}

.rpsb-theme-white {
  background: #fff;
  color: var(--rp-color-ink, #102027);
}

.rpsb-section h2 {
  color: var(--rp-color-navy, #12324a);
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
}

.rpsb-section-navy h2,
.rpsb-section-green h2,
.rpsb-theme-navy h2,
.rpsb-theme-green h2 {
  color: #fff;
}

.rpsb-align-center {
  text-align: center;
}

.rpsb-align-right {
  text-align: right;
}

.rpsb-align-center .rpsb-rich-text,
.rpsb-align-center .rpsb-hero-copy,
.rpsb-align-center .rpsb-cta p {
  margin-left: auto;
  margin-right: auto;
}

.rpsb-align-right .rpsb-rich-text,
.rpsb-align-right .rpsb-hero-copy {
  margin-left: auto;
}

.rpsb-width-wide .rp-section-inner {
  max-width: 1360px;
}

.rpsb-width-full .rp-section-inner {
  max-width: none;
}

.rpsb-rich-text {
  color: var(--rp-color-ink, #102027);
  font-size: 1.04rem;
  line-height: 1.78;
  max-width: 900px;
}

.rpsb-section-navy .rpsb-rich-text,
.rpsb-section-green .rpsb-rich-text {
  color: rgba(255, 255, 255, 0.9);
}

.rpsb-image-text {
  align-items: center;
  display: grid;
  gap: 38px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.rpsb-image-text-media img {
  aspect-ratio: 4 / 3;
  border-radius: var(--rp-radius, 8px);
  display: block;
  object-fit: cover;
  width: 100%;
}

.rpsb-image-text-copy .rp-button {
  margin-top: 18px;
}

.rpsb-image-figure {
  margin: 0 auto;
  max-width: 1024px;
  text-align: center;
}

.rpsb-image-figure img {
  border-radius: var(--rp-radius, 8px);
  display: block;
  height: auto;
  margin: 0 auto;
  max-width: 100%;
}

.rpsb-image-figure figcaption {
  color: var(--rp-color-muted, #53666f);
  font-size: 0.95rem;
  margin-top: 10px;
}

.rpsb-align-right .rpsb-image-text-media {
  order: 2;
}

.rpsb-card-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(var(--rpsb-columns, 3), minmax(0, 1fr));
}

.rpsb-card-grid .rpsb-card {
  background: var(--rp-color-surface, #fff);
  border: 1px solid var(--rp-color-border, #d9e2de);
  border-left: 5px solid var(--rp-color-green, #176b52);
  border-radius: var(--rp-radius, 8px);
  box-shadow: 0 8px 24px rgba(16, 32, 39, 0.07);
  box-sizing: border-box;
  min-height: 0;
  padding: 24px;
  transition: box-shadow 160ms ease, transform 160ms ease;
}

.rpsb-card-grid .rpsb-card:hover {
  box-shadow: 0 12px 30px rgba(16, 32, 39, 0.12);
  transform: translateY(-2px);
}

.rpsb-card-grid .rpsb-card h3 {
  color: var(--rp-color-navy, #12324a);
  font-size: 1.15rem;
  font-weight: 900;
  line-height: 1.3;
  margin: 0 0 10px;
  min-height: 0;
  overflow: visible;
}

.rpsb-card-grid .rpsb-card p {
  color: var(--rp-color-muted, #53666f);
  display: block;
  font-size: 0.95rem;
  line-height: 1.58;
  margin: 0;
  min-height: 0;
  overflow: visible;
}

.rpsb-cta {
  background: var(--rp-color-navy, #12324a);
  color: #fff;
  padding: 58px 0;
  text-align: center;
}

.rpsb-cta.rpsb-theme-green {
  background: var(--rp-color-green, #176b52);
}

.rpsb-cta p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.08rem;
  margin: 0 auto 24px;
  max-width: 720px;
}

.rpsb-shortcode-block {
  width: 100%;
}

@media (max-width: 900px) {
  .rpsb-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .rpsb-hero,
  .rpsb-hero-content {
    min-height: 460px;
  }

  .rpsb-hero-copy {
    padding: 56px 0;
  }

  .rpsb-card-grid,
  .rpsb-image-text,
  .rpsb-site-footer .rp-footer-inner {
    grid-template-columns: 1fr;
  }

  .rpsb-align-right .rpsb-image-text-media {
    order: 0;
  }
}
