/* Alert Block */
.sb-alert {
  padding: 1rem;
  margin-bottom: 1rem;
  border: 1px solid transparent;
  border-radius: 0.375rem;
  font-size: 1rem;
  line-height: 1.5;
  max-width: 90%;
  margin: auto;
  margin-bottom: 1rem;
}

.sb-alert-icon {
  display: inline-block;
  margin-right: 0.5rem;
}

.sb-alert-info {
  background-color: color-mix(in srgb, var(--info-color) 15%, white);
  border-color: color-mix(in srgb, var(--info-color) 25%, white);
  color: color-mix(in srgb, var(--info-color) 70%, black);
}

.sb-alert-warning {
  background-color: color-mix(in srgb, var(--warning-color) 15%, white);
  border-color: color-mix(in srgb, var(--warning-color) 25%, white);
  color: color-mix(in srgb, var(--warning-color) 70%, black);
}

.sb-alert-success {
  background-color: color-mix(in srgb, var(--success-color) 15%, white);
  border-color: color-mix(in srgb, var(--success-color) 25%, white);
  color: color-mix(in srgb, var(--success-color) 70%, black);
}

.sb-alert-danger {
  background-color: color-mix(in srgb, var(--error-color) 15%, white);
  border-color: color-mix(in srgb, var(--error-color) 25%, white);
  color: color-mix(in srgb, var(--error-color) 70%, black);
}

.sb-alert-primary {
  background-color: color-mix(in srgb, var(--primary-color) 15%, white);
  border-color: color-mix(in srgb, var(--primary-color) 25%, white);
  color: color-mix(in srgb, var(--primary-color) 70%, black);
}

.sb-alert-secondary {
  background-color: color-mix(in srgb, var(--secondary-color) 15%, white);
  border-color: color-mix(in srgb, var(--secondary-color) 25%, white);
  color: color-mix(in srgb, var(--secondary-color) 70%, black);
}

/* Card Block */
.sb-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-width: 90%;
  margin: auto;
  word-wrap: break-word;
  background-color: white;
  background-clip: border-box;
  border: 1px solid color-mix(in srgb, var(--neutral-color) 15%, transparent);
  border-radius: 0.375rem;
  transition: all 0.3s ease-in-out;
  box-shadow: 0 0.125rem 0.25rem color-mix(in srgb, black 7.5%, transparent);
}

.sb-card:hover {
  box-shadow: 0 0.5rem 1rem color-mix(in srgb, black 15%, transparent);
  transform: translateY(-2px);
}

.sb-card-header {
  padding: 0.75rem 1rem;
  margin-bottom: 0;
  background-color: color-mix(in srgb, var(--neutral-color) 3%, white);
  border-bottom: 1px solid
    color-mix(in srgb, var(--neutral-color) 15%, transparent);
}

.sb-card-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 500;
  color: color-mix(in srgb, var(--neutral-color) 99%, black);
}

.sb-card-body {
  flex: 1 1 auto;
  padding: 1rem;
}

.sb-card-footer {
  padding: 0.75rem 1rem;
  background-color: color-mix(in srgb, var(--neutral-color) 3%, white);
  border-top: 1px solid
    color-mix(in srgb, var(--neutral-color) 33%, transparent);
}
/* Quote Block */
.sb-blockquote {
  position: relative;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  background-color: color-mix(in srgb, var(--neutral-color) 3%, white);
  border-left: 4px solid var(--accent-color);
  border-radius: 0.375rem;
  max-width: 90%;
  margin: auto;
  margin-bottom: 1.5rem;
  box-shadow: 0 0.125rem 0.25rem color-mix(in srgb, black 5%, transparent);
  transition: all 0.2s ease-in-out;
}

.sb-blockquote:hover {
  box-shadow: 0 0.25rem 0.5rem color-mix(in srgb, black 7.5%, transparent);
  border-left-width: 6px;
}

.sb-blockquote p {
  font-style: italic;
  color: color-mix(in srgb, var(--neutral-color) 90%, black);
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.sb-blockquote footer {
  font-size: 0.875rem;
  color: color-mix(in srgb, var(--neutral-color) 70%, black);
}

.sb-blockquote cite {
  font-weight: 600;
  font-style: normal;
}
/* Quote block styles with image support */
.sb-quote-with-image .sb-quote-inner {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.sb-quote-image-wrapper {
  flex-shrink: 0;
}

.sb-quote-image {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.sb-quote-content {
  flex-grow: 1;
  min-width: 0; /* Prevents text from overflowing */
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .sb-quote-with-image .sb-quote-inner {
      flex-direction: column;
      align-items: center;
      text-align: center;
  }
  
  .sb-quote-image {
      margin-bottom: 0.75rem;
  }
}

/* Practice Block */
.sb-practice-block {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-width: 90%;
  margin: auto;
  margin-bottom: 2rem;
  word-wrap: break-word;
  background-color: white;
  background-clip: border-box;
  border: 1px solid color-mix(in srgb, var(--neutral-color) 20%, transparent);
  border-radius: 0.5rem;
  transition: all 0.3s ease-in-out;
  box-shadow: 0 0.125rem 0.375rem color-mix(in srgb, black 10%, transparent);
}

.sb-practice-block:hover {
  box-shadow: 0 0.5rem 1rem color-mix(in srgb, black 15%, transparent);
  transform: translateY(-3px);
}

.sb-practice-metadata {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 1rem;
  background-color: color-mix(in srgb, var(--neutral-color) 5%, white);
  border-bottom: 1px solid color-mix(in srgb, var(--neutral-color) 15%, transparent);
  border-top-left-radius: 0.5rem;
  border-top-right-radius: 0.5rem;
}

.sb-practice-content {
  padding: 1.25rem;
}

.sb-practice-content h3 {
  margin-top: 0;
  color: color-mix(in srgb, var(--primary-color) 80%, black);
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.sb-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1;
  border-radius: 9999px;
  background-color: color-mix(in srgb, var(--neutral-color) 10%, white);
  color: color-mix(in srgb, var(--neutral-color) 70%, black);
  transition: all 0.2s ease;
}

.sb-badge strong {
  margin-right: 0.25rem;
}

/* Difficulty badges */
.sb-difficulty-level[data-difficulty="beginner"] {
  background-color: color-mix(in srgb, var(--success-color) 15%, white);
  color: color-mix(in srgb, var(--success-color) 70%, black);
}

.sb-difficulty-level[data-difficulty="intermediate"] {
  background-color: color-mix(in srgb, var(--warning-color) 15%, white);
  color: color-mix(in srgb, var(--warning-color) 70%, black);
}

.sb-difficulty-level[data-difficulty="advanced"] {
  background-color: color-mix(in srgb, var(--error-color) 15%, white);
  color: color-mix(in srgb, var(--error-color) 70%, black);
}

/* Impact badges */
.sb-impact-level[data-impact="high"] {
  background-color: color-mix(in srgb, var(--info-color) 15%, white);
  color: color-mix(in srgb, var(--info-color) 70%, black);
}

.sb-impact-level[data-impact="transformative"] {
  background-color: color-mix(in srgb, var(--primary-color) 15%, white);
  color: color-mix(in srgb, var(--primary-color) 70%, black);
}

/* Focus badges */
.sb-focus-area {
  background-color: color-mix(in srgb, var(--secondary-color) 15%, white);
  color: color-mix(in srgb, var(--secondary-color) 70%, black);
}

/* Timeframe badges */
.sb-time-commitment {
  background-color: color-mix(in srgb, var(--accent-color) 15%, white);
  color: color-mix(in srgb, var(--accent-color) 70%, black);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .sb-practice-metadata {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .sb-badge {
    width: 100%;
  }
}

/* Metadata Component */
.sb-metadata {
  position: relative;
  margin-bottom: 1.5rem;
  transition: all 0.2s ease-in-out;
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
}

.sb-metadata:hover {
  box-shadow: 0 0.25rem 0.5rem color-mix(in srgb, black 7.5%, transparent);
}

.sb-metadata-user {
  border-color: color-mix(in srgb, var(--secondary-color) 25%, transparent);
  background-color: color-mix(in srgb, var(--secondary-color) 5%, white);
}

.sb-metadata-dev {
  border-color: color-mix(in srgb, var(--info-color) 25%, transparent);
  background-color: color-mix(in srgb, var(--info-color) 5%, white);
}

.sb-metadata-title {
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.sb-metadata-grid {
  display: grid;
  gap: 0.5rem;
}

.sb-metadata-item {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.sb-metadata-label {
  font-weight: 600;
  color: color-mix(in srgb, var(--secondary-color) 70%, black);
  white-space: nowrap;
}

.sb-metadata-value {
  word-break: break-word;
}

.sb-metadata-code {
  font-family: monospace;
  background-color: color-mix(in srgb, black 5%, transparent);
  padding: 0.125rem 0.25rem;
  border-radius: 0.25rem;
  word-break: break-all;
}

.sb-metadata-tags {
  margin-top: 0.5rem;
}

.sb-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  border-radius: 9999px;
  background-color: color-mix(in srgb, var(--primary-color) 10%, white);
  color: color-mix(in srgb, var(--primary-color) 70%, black);
  margin-right: 0.25rem;
  margin-bottom: 0.25rem;
  transition: all 0.2s ease;
}

.sb-tag:hover {
  background-color: color-mix(in srgb, var(--primary-color) 15%, white);
}

.sb-metadata-navigation {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid color-mix(in srgb, var(--secondary-color) 15%, transparent);
  display: flex;
  justify-content: space-between;
}

.sb-metadata-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.2s ease;
}

.sb-metadata-nav-link:hover {
  color: color-mix(in srgb, var(--primary-color) 70%, black);
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .sb-metadata-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
  
  .sb-metadata-code {
    width: 100%;
    overflow-x: auto;
  }
}

/* Accordion Block */
.sb-accordion {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-width: 90%;
  margin: auto;
  margin-bottom: 1.5rem;
  background-color: white;
  border: 1px solid color-mix(in srgb, var(--neutral-color) 15%, transparent);
  border-radius: 0.375rem;
  transition: all 0.5s ease-in-out;
  box-shadow: 0 0.125rem 0.25rem color-mix(in srgb, black 7.5%, transparent);
  overflow: hidden;
}

.sb-accordion:hover {
  box-shadow: 0 0.25rem 0.5rem color-mix(in srgb, black 10%, transparent);
}

.sb-accordion-toggle {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-weight: 500;
  color: color-mix(in srgb, var(--neutral-color) 90%, black);
  text-align: left;
  background-color: color-mix(in srgb, var(--neutral-color) 5%, white);
  border: none;
  border-bottom: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.3s ease-in-out;
}

.sb-accordion-toggle:hover {
  background-color: color-mix(in srgb, var(--neutral-color) 10%, white);
}

.sb-accordion-toggle[aria-expanded="true"] {
  background-color: color-mix(in srgb, var(--neutral-color) 15%, white);
  border-bottom: 1px solid color-mix(in srgb, var(--neutral-color) 15%, transparent);
}

.sb-accordion-title {
  font-weight: 500;
}

.sb-accordion-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.sb-accordion-icon .sb-icon-plus {
  display: block;
}

.sb-accordion-icon .sb-icon-minus {
  display: none;
}

.sb-accordion-toggle[aria-expanded="true"] .sb-icon-plus {
  display: none;
}

.sb-accordion-toggle[aria-expanded="true"] .sb-icon-minus {
  display: block;
}

.sb-accordion-content {
  max-height: 0;
  overflow: scroll;
  transition: max-height 0.7s ease-in-out;
}

.sb-accordion-toggle[aria-expanded="true"] + .sb-accordion-content {
  /* max-height: dynamically set based on content height */
  max-height: 30rem;
}

@media (max-width: 768px) {
  .sb-accordion-toggle[aria-expanded="true"] + .sb-accordion-content {
    /* max-height: dynamically set based on content height */
    max-height: 24rem;
  }
}

/* ==========================================================================
   ProgressBar Component
   ========================================================================== */

.sb-accordion-body {
  padding: 1rem;
}

.sb-progress-container {
  /* Primary container, width is handled by sb-w-full utility */
  transition: all 0.2s ease-in-out;
}

.sb-progress-container:hover {
  font-weight: bold;
}

.sb-progress-label-external {
  /* Styling for label displayed above the bar */
  /* font-size, margin-bottom handled by sb-text-sm, sb-mb-1 utilities */
}

.sb-progress {
  /* The track/background of the progress bar */
  display: flex; /* Ensures children (the fill) behave as expected */
  /* width, height, bg-color, border-radius handled by utility classes */
  /* sb-overflow-hidden is crucial to clip the sb-progress-bar if rounded corners are used */
}

.sb-progress-bar {
  /* The colored fill part of the progress bar */
  /* height, bg-color, border-radius handled by utility classes */
  /* sb-flex, sb-items-center, sb-justify-center for positioning the internal label */
  color: #ffffff; /* Default text color for internal label, assuming dark fill. Adjust if needed. */
  text-align: center;
  transition: width 0.6s ease;
  position: relative; /* Helps contain absolutely positioned children if ever needed, though not used here. */
}

.sb-progress-label-internal {
  /* Styling for label displayed INSIDE the bar */
  /* font-size, font-weight, padding handled by sb-text-xs, sb-font-semibold, sb-px-1 utilities */
  /* sb-whitespace-nowrap, sb-overflow-hidden, sb-text-ellipsis ensure text behaves well if too long for the bar */
  line-height: 1; /* Helps with vertical centering and consistency */
  display: inline-block; /* Allows text-ellipsis to work with overflow:hidden */
  max-width: 100%; /* Ensures the label doesn't try to be wider than its parent bar */
}

/* Striped Effect */
.sb-progress-bar-striped {
  background-image: linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.15) 25%,
    transparent 25%,
    transparent 50%,
    rgba(255, 255, 255, 0.15) 50%,
    rgba(255, 255, 255, 0.15) 75%,
    transparent 75%,
    transparent
  );
  background-size: 1rem 1rem; /* Adjust size of stripes */
}

/* Animation for Striped Bars */
.sb-progress-bar-animated {
  animation: sb-progress-bar-stripes 1s linear infinite;
}

@keyframes sb-progress-bar-stripes {
  from { background-position-x: 1rem; }
  to { background-position-x: 0; }
}

.sb-progress-container:hover {
  font-weight: bold;
  cursor: default;
  scale: 1.05;
}


.sb-progress-popover-content {
  transition: all 0.2s ease-in-out;
  position: fixed;
  z-index: 1000;
  border: 2px solid rgb(87, 87, 87);
  border-radius: 5px;
  padding: 0.75rem; /* sb-p-3 */
  box-shadow: 0 0.25rem 0.5rem rgba(0,0,0,0.15); /* var(--sb-shadow-md) */
  max-width: 90%; /* Or whatever max-width is suitable */
  pointer-events: none; /* So the popover itself doesn't interfere with mouse events on elements below it */
  /* display: none; is handled by JS and inline style */
}

.sb-animate-fade-in {
  animation: fadeIn 0.2s ease-in-out;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(-10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
    /* ==========================================================================
   Hero SpellBlock Styles (MVP)
   ========================================================================== */

/* --- I. Main Hero Container --- */
.sb-hero {
  position: relative; /* For potential absolute positioned children like overlays */
  display: flex; /* Default to flex for content alignment, can be overridden by layout specifics */
  width: 100%;
  overflow: hidden; /* Prevents content from spilling, especially with background images */
  padding: 2rem 1rem; /* Default padding, adjust as needed (e.g., var(--sb-spacing-8) var(--sb-spacing-4)) */
  box-sizing: border-box;
  /* min-height will be set by inline style from parameter, or by .sb-min-h-screen if used */
}



/* --- Layout Modifier Classes (applied to .sb-hero) --- */

/* 1. Layout: Text Left, Image Right */
.sb-hero-layout--text-left-image-right .sb-hero-content-wrapper {
  display: grid;
  grid-template-columns: 1fr; /* Mobile: single column */
  gap: 2rem; /* Default gap, (e.g., var(--sb-spacing-8)) */
  align-items: center; /* Vertically align columns if they have different heights */
  width: 100%;
  max-width: var(--sb-breakpoint-lg, 1024px); /* Example max-width for content */
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 768px) { /* md breakpoint, adjust as per your theme */
  .sb-hero-layout--text-left-image-right .sb-hero-content-wrapper {
    grid-template-columns: repeat(2, minmax(0, 1fr)); /* Two equal columns on medium screens and up */
  }
}

.sb-hero-layout--text-left-image-right .sb-hero-text-column {
  /* Specific styles if text column needs them beyond what content wrapper provides */
  /* e.g., text alignment for mobile might be here if not handled by utilities */
}
/* Style for when text background is applied */
.sb-hero-text-column[class*="sb-bg-"] { /* Selects if any sb-bg-* class is present */
  padding: 1rem; /* Or var(--sb-spacing-4) - adjust as needed */
  border-radius: var(--sb-border-radius-sm, 0.25rem); /* Optional: slightly round the text background */
}

.sb-hero-layout--text-left-image-right .sb-hero-media-column {
  display: flex; /* To help center or align the image if needed */
  justify-content: center; /* Example alignment */
  align-items: center;
}

/* 2. Layout: Text Centered, Image Background */
.sb-hero-layout--text-center-image-background {
  /* The main .sb-hero itself will often carry the background image via inline style or a class */
  background-size: cover;
  background-position: center center;
  display: flex; /* Ensure it remains a flex container for vertical alignment */
  justify-content: center; /* Horizontally center the .sb-hero-content-wrapper */
  /* Vertical alignment is handled by .sb-items-* on .sb-hero */
  padding: 4rem 1rem; /* Larger default padding for this layout (e.g., var(--sb-spacing-16) var(--sb-spacing-4)) */
}

.sb-hero-layout--text-center-image-background .sb-hero-background-image-wrapper {
  /* This is an alternative if you want a dedicated div for the background image
     instead of putting it on the main .sb-hero section.
     If used, it would need absolute positioning to fill .sb-hero. */
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background-size: cover;
  background-position: center center;
}
.sb-hero-layout--text-center-image-background .sb-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3); /* Default overlay, make this configurable */
  z-index: 2;
}

.sb-hero-layout--text-center-image-background .sb-hero-content-wrapper {
  position: relative; /* To sit on top of the background/overlay */
  z-index: 3;
  text-align: center;
  max-width: var(--sb-breakpoint-md, 768px); /* Constrain text width for readability */
  margin-left: auto;
  margin-right: auto;
}

/* 3. Layout: Text Only, Centered */
.sb-hero-layout--text-only-centered {
  display: flex; /* Ensure it remains a flex container for vertical alignment */
  justify-content: center; /* Horizontally center the .sb-hero-content-wrapper */
  text-align: center; /* Center text within the content wrapper by default */
  padding: 3rem 1rem; /* Default padding (e.g., var(--sb-spacing-12) var(--sb-spacing-4)) */
}

.sb-hero-layout--text-only-centered .sb-hero-content-wrapper {
  max-width: var(--sb-breakpoint-md, 768px); /* Constrain text width */
  width: 100%;
}


/* --- II. Content Wrappers & Columns (General styles if not layout-specific) --- */
.sb-hero-content-wrapper {
  width: 100%;
  box-sizing: border-box;
  /* Basic styles if needed, specific layouts will override or add to this */
}

.sb-hero-text-column {
  /* Styles for the text column, e.g., ensuring proper flow of Hx, P, buttons */
}

.sb-hero-text-column > :first-child {
  margin-top: 0; /* Remove top margin from the first element (e.g. h1) */
}
.sb-hero-text-column > :last-child {
  margin-bottom: 0; /* Remove bottom margin from the last element (e.g. last button) */
}

.sb-hero-media-column {
  /* Styles for the media column */
}

/* --- III. Media Elements --- */
.sb-hero-image {
  display: block; /* Remove extra space below image */
  max-width: 100%;
  height: auto;
  border-radius: var(--sb-border-radius-md, 0.375rem); /* Optional default rounding for images */
}

/* --- IV. Height Utilities (Example) --- */
/* You might have these as global utilities already */
.sb-min-h-screen {
  min-height: 100vh; /* Consider 100dvh for better mobile behavior if supported */
}
/* Other specific height utilities like .sb-min-h-50vh, .sb-min-h-400px
   are better handled by inline styles as the number of variations can be large.
   If `min_height` parameter directly sets `style="min-height: {{ min_height }};"`,
   then only special values like "screen" might need a class. */

/* --- CTA Area (Optional, for styling button groups) --- */
.sb-hero-cta-area {
  margin-top: 1.5rem; /* e.g., var(--sb-spacing-6) */
  display: flex;
  flex-wrap: wrap; /* Allow buttons to wrap on small screens */
  gap: 0.75rem; /* e.g., var(--sb-spacing-3) */
  /* Default alignment for buttons (start, center, end) could be set here or by utilities */
}


/* Layout: Text Right, Image Left */
.sb-hero-layout--text-right-image-left .sb-hero-content-wrapper {
  display: grid;
  grid-template-columns: 1fr; /* Mobile: single column */
  gap: 2rem;
  align-items: center;
  width: 100%;
  max-width: var(--sb-breakpoint-lg, 1024px);
  margin-left: auto;
  margin-right: auto;
}
@media (min-width: 768px) { /* md breakpoint */
  .sb-hero-layout--text-right-image-left .sb-hero-content-wrapper {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sb-hero-layout--text-right-image-left .sb-hero-media-column {
    order: 1; /* Image first */
  }
  .sb-hero-layout--text-right-image-left .sb-hero-text-column {
    order: 2; /* Text second */
  }
}

/* Layout: Image Top, Text Bottom */
.sb-hero-layout--image-top-text-bottom .sb-hero-content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center; /* Or stretch, depending on desired text width */
  width: 100%;
}
.sb-hero-layout--image-top-text-bottom .sb-hero-media-fullwidth {
  width: 100%;
  margin-bottom: 1.5rem; /* e.g., var(--sb-spacing-6) */
}
.sb-hero-layout--image-top-text-bottom .sb-hero-media-fullwidth .sb-hero-image {
  width: 100%;
  height: auto; /* Or a fixed aspect ratio / max-height */
  object-fit: cover; /* If you set a specific height */
}
.sb-hero-layout--image-top-text-bottom .sb-hero-text-bottom-content {
  width: 100%;
  max-width: var(--sb-breakpoint-md, 768px); /* Constrain text width for readability */
  text-align: center; /* Default, can be overridden by utilities */
}
.sb-hero-text-bottom-content[class*="sb-bg-"] { /* If text_bg_color is applied */
    padding: 1rem 1.5rem;
    border-radius: var(--sb-border-radius-md);
}
.sb-hero-full-bleed-image { /* Used in image_only_full layout if using an <img> tag */
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensures the image covers the entire area, cropping if necessary */
  object-position: center center; /* Centers the image within its bounds */
  z-index: 1; /* Typically behind any overlaid content */
  /* No border-radius here usually, as it's meant to be edge-to-edge */
}

/* Layout: Image Only Full */
.sb-hero-layout--image-only-full {
  padding: 0; /* No padding on the main hero for full bleed */
  display: grid; /* Allows easy centering of overlaid content */
  place-items: center; /* Default to center overlay; can be overridden by content_align_vertical */
  /* The background image can be set on .sb-hero itself using bg_color/image_src
     OR by including an <img class="sb-hero-full-bleed-image"> inside.
     If using the <img> tag method, .sb-hero itself might just need position:relative.
  */
}

.sb-hero-layout--image-only-full .sb-hero-content-overlay {
  position: relative; /* If .sb-hero is display:grid and this is the grid item */
                      /* Or position:absolute if .sb-hero is just position:relative */
  z-index: 2; /* Above the sb-hero-full-bleed-image */
  padding: var(--sb-spacing-8, 2rem); /* Example padding */
  text-align: center; /* Default text alignment for overlay */
  width: 100%;
  max-width: var(--sb-breakpoint-md, 768px); /* Constrain overlay content width */
  box-sizing: border-box;
}

/* If text_bg_color is applied to the overlay content itself */
.sb-hero-layout--image-only-full .sb-hero-content-overlay[class*="sb-bg-"] {
    border-radius: var(--sb-border-radius-md, 0.375rem); /* Optional rounded background for the text block */
    padding: 1.5rem; /* Adjust padding if it has its own background */
    /* display: inline-block; /* If you want the background to wrap tightly around the text content */
    /* max-width: fit-content; /* If display: inline-block and you want it to shrink to text */
}

.sb-hero-content-overlay[class*="sb-bg-"] { /* If text_bg_color is applied */
    border-radius: var(--sb-border-radius-md);
    /* display: inline-block; /* If you want the background to wrap tightly */
}
