/** Shopify CDN: Minification failed

Line 191:0 All "@import" rules must come first

**/
/* section-image-with-text-box.css */

.image-with-text-box-section {
  width: 100%;
  position: relative;
  display: flex; /* Keep flex for desktop alignment */
  align-items: center; /* Vertical alignment for desktop */
  justify-content: center; /* Horizontal alignment for desktop */
  min-height: var(--section-min-height-desktop, 500px);
    background-color: #000000;
}

/* New: The actual background image container */
.image-with-text-box-background {
  position: absolute; /* Position absolutely to cover the whole section */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  z-index: 0; /* Ensure it's behind the content box */
}

/* Content Box Container - handles the absolute positioning for desktop */
.content-box-container {
  position: absolute;
  display: flex;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  padding: 40px;
  z-index: 1; /* Ensure content box is above the background image */
}

/* Specific positioning classes for .content-box-container */
/* ... (unchanged - these classes control general alignment) ... */
.content-box-position-top-left {
  align-items: flex-start;
  justify-content: flex-start;
}
.content-box-position-top-center {
  align-items: flex-start;
  justify-content: center;
}
.content-box-position-top-right {
  align-items: flex-start;
  justify-content: flex-end;
}

/* Center positions */
.content-box-position-center-left {
  align-items: center;
  justify-content: flex-start;
}
.content-box-position-center-center {
  align-items: center;
  justify-content: center;
}
.content-box-position-center-right {
  align-items: center;
  justify-content: flex-end;
}

/* Bottom positions */
.content-box-position-bottom-left {
  align-items: flex-end;
  justify-content: flex-start;
}
.content-box-position-bottom-center {
  align-items: flex-end;
  justify-content: center;
}
.content-box-position-bottom-right {
  align-items: flex-end;
  justify-content: flex-end;
}


/* The actual content box */
.content-box {
  box-sizing: border-box;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  border-radius: 8px;
  max-width: clamp(300px, var(--content-box-max-width-setting), 60%);
  width: 100%;
  z-index: 1;
}

/* Heading styles */
.content-box-heading {
  margin-top: 0;
  margin-bottom: 15px;
  line-height: 1.2;
}

/* Paragraph styles */
.content-box-paragraph {
  margin-top: 0;
  margin-bottom: 20px;
  line-height: 1.5;
}

/* Button styles */
.content-box-button {
  display: inline-block;
  padding: 12px 25px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.content-box-button:hover {
  filter: brightness(1.2);
}

/* Mobile Styles */
@media screen and (max-width: 767px) {
  .image-with-text-box-section {
    min-height: auto; /* Let content define height on mobile */
    display: block; /* Stack image and content box */
  }

  /* The actual background image container on mobile */
  .image-with-text-box-background {
    position: relative; /* Change to relative positioning */
    width: 100%;
    height: var(--section-min-height-mobile, 300px); /* Use setting for mobile image height */
    /* Use the mobile background image if available, else desktop */
    background-image: var(--mobile-background-image, var(--background-image, url('{{ section.settings.background_image | img_url: 'master' }}'))) !important;
    background-size: cover;
    background-position: center top; /* Center horizontally, align to top vertically */
    background-repeat: no-repeat;
    z-index: auto; /* Reset z-index */
  }

  .content-box-container {
    position: relative; /* Change to relative positioning */
    display: block; /* Stack items vertically */
    width: 100%;
    height: auto;
    padding: 20px; /* Adjust mobile padding here */
    box-sizing: border-box;
    z-index: auto; /* Reset z-index */
  }

  /* Resetting explicit absolute positioning for mobile */
  .content-box-position-top-left,
  .content-box-position-top-center,
  .content-box-position-top-right,
  .content-box-position-center-left,
  .content-box-position-center-center,
  .content-box-position-center-right,
  .content-box-position-bottom-left,
  .content-box-position-bottom-center,
  .content-box-position-bottom-right {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    align-items: initial;
    justify-content: initial;
  }

  .content-box {
    width: 100%;
    max-width: 100%; /* Ensure it takes full width within its container */
    margin: 0 auto;
    box-shadow: none;
  }

  .content-box-heading {
    font-size: 1.8em;
  }

  .content-box-paragraph {
    font-size: 0.95em;
  }
}

/* Google Fonts Import (if you select Montserrat or Roboto) */
/* You should ideally put these imports in your theme's base.css or similar global CSS file
   to avoid redundant imports if multiple sections use them. */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&family=Roboto:wght@400;700&display=swap');