.global-imagetext {
  position: relative;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.global-imagetext.has-bg-image {
  background-image: var(--bg-mobile);
}

.global-imagetext.has-bg-image::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.global-imagetext.theme-blue.has-bg-image::before {
  background-color: rgba(0, 44, 71, 0.6);
}

.global-imagetext .container {
  position: relative;
  z-index: 2;
}

.imagetext-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
}

.global-imagetext.image_right .imagetext-wrapper {
  grid-template-columns: 1fr 1fr;
}

.global-imagetext.image_right .imagetext-image {
  order: 2;
}

.global-imagetext.image_right .imagetext-text {
  order: 1;
}

.imagetext-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--border-radius-lg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.imagetext-text {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.imagetext-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.imagetext-cards {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.imagetext-card {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md);
  border-radius: var(--border-radius-md);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.imagetext-card .card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.imagetext-card .icon-left,
.imagetext-card .icon-right {
  font-size: 2.4rem;
  flex-shrink: 0;
}

.imagetext-wrapper-v3 {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.imagetext-wrapper-v3 h2 {
  margin-bottom: 0;
}

.imagetext-wrapper-v3 .imagetext-image {
  width: 100%;
}

.imagetext-wrapper-v3 .imagetext-content {
  text-align: left;
  width: 100%;
  background-color: #f3f4f6;
  padding: var(--space-lg);
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--nv-orange-light);
}

.global-imagetext.version_3 .imagetext-content blockquote {
  background-color: var(--nv-blue);
  border-left: 4px solid var(--nv-orange);
  padding: var(--space-md);
  margin: 0 0 var(--space-md) 0;
  border-radius: var(--border-radius-md);
  font-style: italic;
  color: var(--nv-white);
}

.global-imagetext.version_3 .imagetext-content blockquote:last-of-type {
  margin-bottom: var(--space-lg);
}

.global-imagetext.version_3 .imagetext-content blockquote p {
  margin-bottom: var(--space-sm);
  line-height: 1.8;
  color: var(--nv-white);
}

.global-imagetext.version_3 .imagetext-content blockquote p:last-child {
  margin-bottom: 0;
}

.global-imagetext.version_3 .imagetext-content > p {
  margin: 0;
}

.global-imagetext.version_3 .imagetext-content p[style*="text-align: center"] {
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 2px solid var(--nv-orange);
  color: var(--nv-blue);
}

.global-imagetext.theme-white {
  background-color: var(--background-color);
}

.global-imagetext.theme-white h2,
.global-imagetext.theme-white h3 {
  color: var(--nv-blue);
}

.global-imagetext.theme-white p {
  color: var(--text-color);
}

.global-imagetext.theme-white .imagetext-card {
  background-color: var(--nv-blue);
}

.global-imagetext.theme-white .imagetext-card h3,
.global-imagetext.theme-white .imagetext-card p,
.global-imagetext.theme-white .imagetext-card i {
  color: var(--nv-white);
}

.global-imagetext.theme-blue {
  background-color: var(--nv-blue);
}

.global-imagetext.theme-blue h2,
.global-imagetext.theme-blue h3,
.global-imagetext.theme-blue p {
  color: var(--nv-white);
}

.global-imagetext.theme-blue .imagetext-card {
  background-color: var(--nv-white);
}

.global-imagetext.theme-blue .imagetext-card h3,
.global-imagetext.theme-blue .imagetext-card p,
.global-imagetext.theme-blue .imagetext-card i {
  color: var(--nv-blue);
}

.global-imagetext.theme-blue.version_3 .imagetext-content {
  background-color: rgba(0, 0, 0, 0.2);
}

.global-imagetext.theme-blue.version_3 .imagetext-content blockquote {
  background-color: rgba(255, 255, 255, 0.15);
  border-left-color: var(--nv-orange-light);
}

.global-imagetext .imagetext-content blockquote strong {
  font-weight: 700;
}

@media (min-width: 768px) {
  .global-imagetext.has-bg-image {
    background-image: var(--bg-desktop);
  }
}

@media (max-width: 900px) {
  .imagetext-wrapper {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .global-imagetext.image_right .imagetext-image {
    order: 1;
  }

  .global-imagetext.image_right .imagetext-text {
    order: 2;
  }

  .imagetext-card .icon-left,
  .imagetext-card .icon-right {
    font-size: 2rem;
  }
}