/* CTA with Logos Section Styles */

.cta-with-logos {
  position: relative;
  overflow: hidden;
}

/* Background image support */
.cta-with-logos.has-bg-image {
  background-size: cover;
  background-position: top right;
  background-repeat: no-repeat;
}

.cta-logos-inner {
  position: relative;
}

/* Content Wrapper */
.cta-with-logos .cta-content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
  text-align: center;
  max-width: 1000px;
  margin: 0 auto;
}

/* Left-aligned variant */
.cta-with-logos.cta-left-aligned .cta-content-wrapper {
  align-items: flex-start;
  text-align: left;
  max-width: 550px;
  margin: 0;
}

.cta-with-logos.cta-left-aligned .cta-heading {
  max-width: 100%;
}

.cta-with-logos.cta-left-aligned .cta-description {
  max-width: 100%;
}

.cta-with-logos.cta-left-aligned .cta-button-wrapper {
  justify-content: flex-start;
}

/* Left-aligned with background image - ensure content has contrast */
.cta-with-logos.cta-left-aligned.has-bg-image {
  min-height: 400px;
  display: flex;
  align-items: center;
}

@media (min-width: 768px) {
  .cta-with-logos.cta-left-aligned.has-bg-image {
    min-height: 500px;
  }
  
  .cta-with-logos.cta-left-aligned .cta-content-wrapper {
    max-width: 50%;
  }
}

@media (max-width: 767px) {
  .cta-with-logos.cta-left-aligned.has-bg-image {
    background-position: center center;
    min-height: auto;
  }
  
  .cta-with-logos.cta-left-aligned .cta-content-wrapper {
    max-width: 100%;
    position: relative;
    z-index: 2;
  }
  
  /* Add semi-transparent overlay on mobile for readability */
  .cta-with-logos.cta-left-aligned.has-bg-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.7) 60%, rgba(255,255,255,0.3) 100%);
    z-index: 1;
  }
  
  .cta-with-logos.cta-left-aligned.has-bg-image .container {
    position: relative;
    z-index: 2;
  }
}

/* Heading */
.cta-with-logos .cta-heading {
  max-width: 720px;
}

.cta-with-logos .cta-heading h2 {
  margin: 0;
}

/* Description */
.cta-with-logos .cta-description {
  max-width: 968px;
}

.cta-with-logos .cta-description p {
  margin: 0;
  line-height: 1.625;
}

/* Button */
.cta-with-logos .cta-button-wrapper {
  display: flex;
  justify-content: center;
}

.cta-with-logos .cta-button-wrapper .btn {
  border-radius: 999px;
}

/* Logos Section */
.cta-with-logos .logos-section {
  margin-top: var(--space-3xl);
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(50, 45, 160, 0.2);
}

@media (max-width: 767px) {
  .cta-with-logos .logos-section {
    margin-top: var(--space-2xl);
  }
}

/* Logos Wrapper */
.cta-with-logos .logos-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2xl);
  flex-wrap: wrap;
}

@media (max-width: 1023px) {
  .cta-with-logos .logos-wrapper {
    gap: var(--space-xl);
  }
}

@media (max-width: 767px) {
  .cta-with-logos .logos-wrapper {
    gap: var(--space-lg);
  }
}

/* Logo Items */
.cta-with-logos .logo-item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 200px;
}

.cta-with-logos .logo-item img {
  width: auto;
  height: auto;
  max-height: 80px;
  max-width: 100%;
  object-fit: contain;
  mix-blend-mode: luminosity;
  opacity: 0.53;
  transition: opacity 0.3s ease;
}

.cta-with-logos .logo-item  {
    height:100%;
  max-height:100px;
}
.cta-with-logos .logo-item:hover img {
  opacity: 0.8;
}

@media (max-width: 767px) {
  .cta-with-logos .logo-item {
    max-width: 120px;
  }
  
  .cta-with-logos .logo-item img {
    max-height: 60px;
  }
}

/* Responsive Content */
@media (max-width: 767px) {
  .cta-with-logos .cta-content-wrapper {
    gap: var(--space-md);
  }
  
  .cta-with-logos .cta-heading {
    max-width: 100%;
  }
  
  .cta-with-logos .cta-description {
    max-width: 100%;
  }
}

