/* CSS for Content & Image Block Layout */

.acf-layout-content-image-block {
  position: relative;
  overflow-x: clip;
  overflow-y: visible;
  z-index: 1;
}

.content-image-header-row {
  margin-bottom: 50px;
}

.content-image-heading {
  text-align: center;
}

.content-image-row {
  row-gap: 30px;
}

/* Image container & sizing constraints */
.content-image-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  background-color: var(--color-5);
}

.content-image-img {
  width: 100%;
  height: auto;
  display: block;
}

@media (min-width: 992px) {
  .content-image-container {
    height: auto;
	  width: 100%;
  }
  .content-image-img {
    height: 100%;
    object-fit: cover;
    object-position: bottom center;
  }
}

.content-image-placeholder {
  width: 100%;
  height: 400px;
  background: linear-gradient(135deg, var(--color-5), var(--color-dark));
}

/* Accent Corner Squares */
.content-image-corner-square {
  position: absolute;
  width: 12px;
  height: 12px;
  z-index: 5;
  background-color: #ed9d21;
}

/* Glassmorphic Statistic Overlay Badge */
.content-image-stat-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  padding: 25px 35px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 10;
}

.stat-badge-value-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stat-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  background-color: #ed9d21;
}

.stat-badge-number {
  font-family: var(--font-secondary);
  font-weight: 800;
  font-size: 48px;
  line-height: 100%;
  letter-spacing: 0%;
  text-transform: capitalize;
  padding-bottom: 15px;
}

/* Text Content Area Styling */
.content-image-text p {
  font-family: var(--font-primary);
  font-weight: 400;
  line-height: 120%;
  letter-spacing: 0%;
  font-size: clamp(0.875rem, 0.7821rem + 0.381vw, 1.125rem);
  opacity: 0.8;
  margin-bottom: 20px;
}

.content-image-text p:last-child {
  margin-bottom: 0;
}

/* Lists styling inside the content block */
.content-image-text ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 25px;
}

.content-image-text ol {
  margin-bottom: 25px;
  padding-left: 20px;
}

.content-image-text li {
  font-family: var(--font-primary);
  font-weight: 400;
  line-height: 120%;
  letter-spacing: 0%;
  font-size: clamp(1rem, 0.9071rem + 0.381vw, 1.25rem);
  opacity: 0.8;
  margin-bottom: 20px;
}

.content-image-text ul li {
  position: relative;
  padding-left: 24px;
}

.content-image-text ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.5em;
  transform: translateY(-50%) rotate(45deg);
  width: 10px;
  height: 10px;
  background-color: #ffffff;
  display: inline-block;
}

.content-image-text li:last-child {
  margin-bottom: 0;
}

/* Heading tags styling inside the content block */
.content-image-text h1,
.content-image-text h2,
.content-image-text h3,
.content-image-text h4,
.content-image-text h5,
.content-image-text h6 {
  font-family: var(--font-secondary);
  line-height: 120%;
  letter-spacing: 0%;
  text-transform: capitalize;
  font-weight: 600;
  font-size: 24px;
  margin-top: 30px;
  margin-bottom: 15px;
}

.content-image-text h1:first-child,
.content-image-text h2:first-child,
.content-image-text h3:first-child,
.content-image-text h4:first-child,
.content-image-text h5:first-child,
.content-image-text h6:first-child {
  margin-top: 0;
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .content-image-row {
    row-gap: 40px;
  }

  /* Make sure columns stack in source order (image then text) on mobile */
  .content-image-col-img {
    order: 1 !important;
  }

  .content-image-col-text {
    order: 2 !important;
  }

  /* Mobile height constraint for the image container */
  .content-image-container {
    height: 300px;
  }

  .content-image-img {
    height: 100%;
    object-fit: cover;
    object-position: bottom center;
  }
  .content-image-text li {
    margin-bottom: 15px;
    font-weight: 400;
    font-size: 14px;
    line-height: 120%;
    letter-spacing: 0%;
  }
  .content-image-header-row {
    margin-bottom: 35px;
  }
}

/* Ambient Glow Gradients (W-524px, H-524px) */
.content-image-glow-tr,
.content-image-glow-tl {
  position: absolute;
  width: 524px;
  height: 524px;
  border-radius: 50%;
  filter: blur(150px);
  -webkit-filter: blur(150px);
  opacity: 0.25;
  pointer-events: none;
  z-index: 0;
}

.content-image-glow-tr {
  top: 0;
  right: 0;
}

.content-image-glow-tl {
  top: 0;
  left: 0;
}
