/* IMAGES */
.img-logos {
    padding: 5px 40px;
    width: 100%;
    max-width: 200px;
    height: auto;
}

.logo-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 15px; /* ✅ Ensures even spacing */
    max-width: 100%;
    padding: 10px 0;
}

.img-logos-sm {
    padding: 0px 10px;
    flex: 1 1 auto;  /* Allow logos to resize dynamically */
    max-width: 150px;  /* ✅ Set a max-width instead of max-height */
    height: auto;  /* Maintain aspect ratio */
    object-fit: contain; /* Prevent distortion */
}

.main-banner-img {
    display: block;
    width: 80%;  /* Makes it responsive */
    max-width: 1200px; /* Prevents it from growing beyond original size */
    height: auto;  /* Maintains aspect ratio */
    object-fit: contain; /* Ensures image scales properly without distortion */
    margin: 0 auto;
}

.mobile-img {
    display:none;
}

.desktop-img {
    display: block;
}

/*Containers and Displays*/

.xpad-wide-banner{
    padding-left: 80px;
    padding-right:80px;
    padding-top: 70px;
}

.center-head-col-sect {
    padding-top: 80px;
    padding-left: 10px;
    padding-right: 10px;
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.center-head-col-sect .center-item {
    text-align: center;
    align-self: center;
    justify-self: center;
}

.inline-table {
  display:inline-table;
}

.inline-block-rel {
  position: relative;
  display:inline-block;
}

.white-boxed-content {
   padding: 20px;
}

.white-boxed-content .boxed-image {
    padding: 0px;
    max-width: 100%;
    height: auto;
    justify-content: center;
}

.white-boxed-content .boxed-text {
    padding: 10px;
}

.bg-gradient-purple {
    background: linear-gradient(298deg, #F3F2F3 -0.02%, #E3DEFF 86.22%);
}

/*overlapping image sections*/


/* The parent container that holds both elements */
.overlap-container {
    position: relative;  /* so we can position children absolutely if desired */
    display: flex;
    align-items: flex-end; /* image is higher, text box is lower */
    justify-content: center;
    padding: 40px;
    /* If you want a maximum width and center on large screens: */
    max-width: 1200px;
    margin: 0 auto; 
  }
  
  /* The image on the left */
  .scanner-image {
    position: relative; 
    z-index: 1;
    margin-right: -10px;
    margin-bottom: 100px;
    width: 450px; 
    height: auto;
    max-width: 100%;
    flex-shrink: 0; /* Prevent image from shrinking */
  }
  
  .scanner-image img {
    display: block;
    width: 100%;
    height: auto;
  }
  
  /* The gradient text box on the right */
  .scanner-text-box {
    position: relative;
    z-index: 2; /* tweak if you want it above or below the image */
    width: 580px;    /* or flex: 1 to fill the remaining space */
    max-width: 100%;
    padding: 45px 70px;
    margin-left: -50px; /* to overlap behind or in front of the image */
    border: 1px solid #fafafa;
    border-radius: 30px;
    box-shadow: 0px 4px 56px rgba(9, 9, 9, 0.15);
    background: 
      linear-gradient(
        243deg,
        #EFF5FF 12%,
        rgba(239, 203, 255, 0.11) 100%
      ),
      linear-gradient(
        0deg,
        rgba(255, 255, 255, 0.09) 0%,
        rgba(255, 255, 255, 0.09) 100%
      );
  }

  .relationships-image {
    position: relative; 
    z-index: 1;
    margin-left: -27px;
    margin-bottom: 130px;
    width: 500px; 
    height: auto;
    max-width: 100%;
    flex-shrink: 0; /* Prevent image from shrinking */
  }
  
  .relationships-image img {
    display: block;
    width: 100%;
    height: auto;
  }

  .relationships-text-box {
    position: relative;
    z-index: 2; 
    width: 580px;  
    max-width: 100%;
    padding: 45px 70px;
    margin-right: -27px; /* to overlap behind or in front of the image */
    border: 1px solid #fafafa;
    border-radius: 30px;
    box-shadow: 0px 4px 56px rgba(9, 9, 9, 0.15);
    background: 
      linear-gradient(
        43deg,
        #EFF5FF 12%,
        rgba(239, 203, 255, 0.11) 100%
      ),
      linear-gradient(
        0deg,
        rgba(255, 255, 255, 0.09) 0%,
        rgba(255, 255, 255, 0.09) 100%
      );
  }


/* GRID */

.grid-container-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    grid-auto-flow: row; /* Changed from column to row for better responsive behavior */
    width: 100%;
    max-width: 1200px;
    margin: 0px 20px;
    gap: 20px;
}

.grid-container-2col .grid-image-container {
    grid-column: 1/1;
}

.grid-container-2col .grid-text-container {
    grid-column: 2/2;
}

.grid-image-container-2col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px; /* Adjust the gap between images */
    max-width: 1200px;
    margin: auto;
}

.grid-image-container-2col .img-column {
    display: flex;
    flex-direction: column;
    gap: 10px; /* Adjust the gap between images in the same column */
}

.grid-image-container-2col img {
    width: 100%; /* Makes images responsive */
    height: auto; /* Keeps image aspect ratio intact */
    object-fit: cover; /* Ensures images cover the area without distorting */
}

/* REVIEWS */

.reviews .box {
    position: relative;
    border-radius: 12px;
    border: 1px solid #efefef;
    background: -webkit-linear-gradient(135deg, rgba(122, 175, 255, 0.15) 7%, rgba(239, 239, 239, 0.6) 37%, rgba(250, 250, 250, 0.6) 71%, rgba(192, 162, 222, 0.2) 100%);
    background-blend-mode: overlay, normal;
    backdrop-filter: blur(40px);
    padding: 35px;
    height: 355px;
    box-shadow: 10px 10px 5px #efefef;
    overflow: hidden; /* Ensure the pseudo-element does not overflow the box */
}

.reviews .box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('/images/noise.webp');
    opacity: 0.02; /* Adjust the opacity to get the desired intensity of the grain effect */
    pointer-events: none; /* Prevent the pseudo-element from interfering with interactions */
}

.reviews .box p {
    right: 29px;
}

.reviews .box p, h1, h2, h3, h4, h5 {
    margin-top: 5px;
    margin-bottom: 5px;
}


@keyframes scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%); /* Adjust based on total logo count */
    }
}


/* EFFECTS */
.fade-up {
    opacity: 0 !important;
    transform: translateY(40px) !important;
    transition: opacity 0.9s ease, transform 0.8s ease !important;
    animation: none !important; /* Disable conflicting boxicons animation */
}
  
/* When we add .animate, it transitions to fully visible, y=0 */
.fade-up.animate {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/*--------------------------------------------------------------
# SCREEN ADAPTATIONS
--------------------------------------------------------------*/

@media screen and (max-width: 480px) {
    .xpad-wide-banner{
        padding-left: 5px;
        padding-right:5px;
        padding-top:50px;
    }
    .center-head-col-sect {
        padding-top: 30px;
        padding-left: 10px;
        padding-right: 10px;
        padding-bottom: 10px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
    }
    .grid-container-2col {
        grid-template-columns: 1fr;
        grid-auto-flow: row !important; /* Ensure proper stacking */
        align-items: center;
        justify-content: center;
        margin: 0px 5px;
        padding: 0px;
    }
      .grid-container-2col .grid-image-container,
      .grid-container-2col .grid-text-container,
      .grid-container-2col .box-column {
        grid-column: 1 / -1 !important; /* Stack on smaller screens - full width */
        justify-content: center;
        align-items: center;
        width: 100%;
    }
    
}

@media screen and (max-width: 600px) {
    .logo-container {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    .img-logos-sm {
        max-width: 120px;  /* ✅ Make sure they don’t become too small */
        max-height: 80px;
    }
}

@media (max-width: 768px) {
    .mobile-img{
        display: block;
    }
    .desktop-img {
        display: none;
    }
    
    .grid-image-container-2col{
        grid-template-columns: 1fr; /* Stack images vertically on smaller screens */
    }
  
    .grid-box-container-2col {
      grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 780px) {
  .xpad-wide-banner{
    padding-left: 15px;
    padding-right:15px;
  }
  /* Stack vertically */
  .overlap-container {
    flex-direction: column;
    align-items: center; 
    justify-content: center;
    padding: 20px; /* or whatever you prefer for mobile */
  }

  /* Text box on top */
  .scanner-text-box {
    order: 1;            /* text above image */
    width: 90%;          /* same width as the image below, or 100% if you like */
    max-width: 600px;    /* optional constraint */
    margin: 0 auto 20px !important; /* bottom margin to separate from the image */
    position: static;    /* no special positioning needed */
    z-index: auto;       /* no overlap, so no need for z-index */
  }

  /* Image below */
  .scanner-image {
    order: 2;           /* image below text */
    width: 90%;         /* same width as text box */
    max-width: 600px;
    margin: 0 auto !important;    /* center it */
    height: auto;       /* keep aspect ratio */
    position: static;   /* no special positioning needed */
    z-index: auto;
    align-items: center;
    justify-self: center;
  }

  .scanner-image img {
    display: block;      /* make the image behave like a block */
    margin: 0 auto;      /* center the image horizontally */
    width: 100%;         /* fill the parent container’s width */
    height: auto; 
  }

  /* Text box on top */
  .relationships-text-box {
    order: 1;            /* text above image */
    width: 90%;          /* same width as the image below, or 100% if you like */
    max-width: 600px;    /* optional constraint */
    margin: 0 auto 20px !important; /* bottom margin to separate from the image */
    position: static;    /* no special positioning needed */
    z-index: auto;    /* no overlap, so no need for z-index */
  }

  /* Image below */
  .relationships-image {
    order: 2;           /* image below text */
    width: 90%;         /* same width as text box */
    max-width: 600px;   /* optional constraint */
    margin: 0 auto !important;
    height: auto;       /* keep aspect ratio */
    position:static;   /* no special positioning needed */
    z-index: auto;
    align-items: center;
    justify-content: center;
  }
  .relationships-image img {
    display: block;      /* make the image behave like a block */
    margin: 0 auto;      /* center the image horizontally */
    width: 100%;         /* fill the parent container’s width */
    height: auto; 
  }
}

@media screen and (max-width: 990px) {
    .xpad-wide-banner{
        padding-left: 15px;
        padding-right:15px;
    }
}

@media (max-width: 1024px) {
    .grid-container-2col {
      grid-template-columns: 1fr;
      grid-auto-flow: row !important; /* Ensure proper stacking */
      align-items: center;
      justify-content: center;
      margin: 0px 10px;
      padding: 0px 20px;
    }
    .grid-container-2col .grid-image-container,
    .grid-container-2col .grid-text-container,
    .grid-container-2col .box-columnn {
      grid-column: 1 / -1 !important; /* Stack on smaller screens - full width */
      justify-content: center;
      align-items: center;
      width: 100%;
    }
    .scanner-text-box {
        width: 450px;  
        max-width: 100%;
        padding: 35px 50px;
        margin-left: -40px; 
    }
    .scanner-image {
        margin-right: -40px; /* negative margin to pull text box to the left overlap */
        margin-bottom: 150px;  /* raise the image higher than the text box */
        width: 500px; 
        height: auto;
        max-width: 100%;
    }
    .relationships-text-box {
        width: 450px;  
        max-width: 100%;
        padding: 35px 50px;
        margin-right: -27px; 
    }
    .relationships-image {
        margin-left: -27px; /* negative margin to pull text box to the left overlap */
        margin-bottom: 200px;  /* raise the image higher than the text box */
        width: 500px; 
        height: auto;
        max-width: 100%;
    }
}

@media screen and (max-width: 1200px) { 
    .xpad-wide-banner{
        padding-left: 15px;
        padding-right:15px;
        justify-content: center;
  }
}