.sf-service-hero-block-editor {
  position: relative;
  margin: 0 0 16px;
  padding: 36px 28px 40px;
  overflow: hidden;
  border-radius: 5px;
  background: linear-gradient(135deg, #0a1f44 0%, #1a5fa8 100%);
  color: #fff;
  max-width: none !important;
}

.sf-service-hero-block-editor.is-solid {
  background: #0a1f44;
}

.sf-service-hero-block-editor.is-solid
  .sf-service-hero-block-editor__bg {
  display: none;
}

.sf-service-hero-block-editor__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.35;
  pointer-events: none;
}

.sf-service-hero-block-editor__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    #0a1f44 0%,
    #0a1f44 28%,
    rgba(10, 31, 68, 0.72) 55%,
    rgba(10, 31, 68, 0.25) 100%
  );
}

.sf-service-hero-block-editor__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  gap: 28px;
  align-items: center;
}

.sf-service-hero-block-editor__crumbs {
  margin: 0;
  font-family: Montserrat, sans-serif;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
}

.sf-service-hero-block-editor__crumb {
  color: rgba(255, 255, 255, 0.8);
}

.sf-service-hero-block-editor__bg-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.95);
  color: #0a1f44;
  font-family: Montserrat, sans-serif;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}

.sf-service-hero-block-editor:hover .sf-service-hero-block-editor__bg-btn,
.sf-service-hero-block-editor.is-selected .sf-service-hero-block-editor__bg-btn,
.sf-service-hero-block-editor__bg-btn.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.sf-service-hero-block-editor__title {
  margin: 14px 0 0;
  font-family: Montserrat, sans-serif;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.sf-service-hero-block-editor__title.rich-text,
.sf-service-hero-block-editor__lead.rich-text,
.sf-service-hero-block-editor__num.rich-text,
.sf-service-hero-block-editor__label.rich-text {
  outline: none;
}

.sf-service-hero-block-editor__title:focus,
.sf-service-hero-block-editor__lead:focus,
.sf-service-hero-block-editor__crumb:focus,
.sf-service-hero-block-editor__num:focus,
.sf-service-hero-block-editor__label:focus,
.sf-service-hero-block-editor__btn-primary .rich-text:focus,
.sf-service-hero-block-editor__btn-outline .rich-text:focus {
  box-shadow: 0 0 0 2px rgba(77, 184, 232, 0.55);
  border-radius: 2px;
}

.sf-service-hero-block-editor__lead {
  margin: 14px 0 0;
  max-width: 420px;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.65);
}

.sf-service-hero-block-editor__actions {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.sf-service-hero-block-editor__btn-primary {
  display: inline-flex;
  align-items: center;
  height: 42px;
  padding: 0 18px;
  border-radius: 5px;
  background: #ff6b2b;
  color: #fff;
  font-family: Montserrat, sans-serif;
  font-size: 13px;
  font-weight: 800;
}

.sf-service-hero-block-editor__btn-outline {
  display: inline-flex;
  align-items: center;
  height: 42px;
  padding: 0 18px;
  border-radius: 5px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  font-family: Montserrat, sans-serif;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
}

.sf-service-hero-block-editor__stats {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sf-service-hero-block-editor__stat {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.sf-service-hero-block-editor__num {
  flex: 0 0 48px;
  font-family: Montserrat, sans-serif;
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  color: #fff;
}

.sf-service-hero-block-editor__num.is-orange {
  color: #ff6b2b;
}

.sf-service-hero-block-editor__num.is-sky {
  color: #4db8e8;
}

.sf-service-hero-block-editor__label {
  font-family: Montserrat, sans-serif;
  font-size: 12px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.55);
}

.sf-service-hero-block-editor__panel {
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e2e8f0;
}

.sf-service-hero-block-editor__panel strong {
  display: block;
  margin-bottom: 8px;
}

.sf-service-hero-block-editor__media img {
  display: block;
  width: 100%;
  max-height: 120px;
  object-fit: cover;
  border-radius: 4px;
}

.sf-service-hero-block-editor__media-empty {
  padding: 16px;
  text-align: center;
  font-size: 12px;
  color: #646970;
  background: #f0f0f1;
  border-radius: 4px;
}

.wp-block-swim-family-service-hero {
  max-width: none !important;
  width: 100% !important;
}

.sf-service-content {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.sf-service-content > .wp-block-swim-family-service-hero:first-child,
.sf-service-content > .wp-block:first-child {
  margin-top: 0;
}

.sf-service-content .wp-block-swim-family-service-hero,
.sf-service-content .sf-shero,
.sf-service-content .sf-mshero {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  box-sizing: border-box;
}

@media (max-width: 782px) {
  .sf-service-hero-block-editor__inner {
    grid-template-columns: 1fr;
  }
}
