.swiper-carousel {
    align-items: stretch;
    overflow-x: clip;
    width: 100%;
    max-width: 100%!important;
  .swiper-slide {
      height: auto;
      aspect-ratio: 16 / 9; /* or whatever ratio your images are */
      span {
          
          color: #fff;
          font-size: 24px;
          font-weight: 600;
          line-height: 24px;
          max-width: 90%;
          z-index: 1;
      }
      .swiper-slide-image-wrapper {
          position: relative;
          height: 100%;
          overflow: hidden;
          min-height: 262px;
          img {
            width: 100%;
            height: 100%;
            object-fit: cover;
          }
          .swiper-slide-image-overlay {
              position: absolute;
              top: 0;
              left: 0;
              width: 100%;
              height: 100%;
              background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.5) 100%);
              z-index: 0;
          }
      }
      .swiper-slide-content {
          position: absolute;
          bottom: 2rem;
          left: 1.2em;
          z-index: 1;
          .swiper-slide-cta-icon {
            width: 20px;
            height: 20px;
            background: #2F6FC7;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-left: 1rem;
            padding: 0.15rem;
            border-radius: 100%;
          }
          a {
            text-decoration: none;
          }
         .swiper-slide-cta {
            display: flex;
            align-items: center;
            color: #fff;
            text-decoration: none;
            font-size: 16px;
            margin-top: 0.5rem;
        }
      }
      
      
  }
  
  /* Swiper — width set to (viewport right − block left) by JS */
  .swiper-carousel__swiper {
    overflow: visible;
  }

  /* ---- Slide & Card ---- */
  .swiper-wrapper .swiper-slide {
    align-self: stretch;
    height: auto;
  }

  .swiper-carousel__card {
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    height: -webkit-fill-available;
    gap: 40px;
    padding: 24px;
  }

  .swiper-carousel__card--navy-blue {
    background: var(--wp--preset--color--navy-blue, #0C2853);

    .swiper-carousel__author-name,
    .swiper-carousel__author-meta {
      color: var(--wp--preset--color--white, #ffffff);
    }
  }

  .swiper-carousel__card--cool-grey-light {
    background: var(--wp--preset--color--cool-grey-light, #EEF3FB);
  }

  @media (min-width: 1024px) {
    .swiper-carousel__card {
      padding: 40px;
    }
  }

  /* ---- Quote icon ---- */

  .swiper-carousel__quote-icon {
    height: 20px;
    width: 25px;
  }

  .swiper-carousel__quote-icon svg {
    display: block;
    height: 100%;
    width: 100%;
  }

  /* ---- Quote text ---- */

  .swiper-carousel__quote {
    color: var(--wp--preset--color--navy-blue, #000000);
    font-size: var(--wp--preset--font-size--heading-4, 1.5rem);
    font-weight: 400;
    margin: 0 0 40px;
  }

  @media (min-width: 1024px) {
    .swiper-carousel__quote {
      margin: 0 0 60px;
    }
  }

  /* ---- Navy Blue card text overrides ---- */

  .swiper-carousel__card--navy-blue .swiper-carousel__quote {
    color: var(--wp--preset--color--white, #ffffff);
  }

  .swiper-carousel__card--navy-blue .swiper-carousel__author-name {
    color: var(--wp--preset--color--white, #ffffff);
  }

  .swiper-carousel__card--navy-blue .swiper-carousel__author-meta {
    color: var(--wp--preset--color--cool-grey-light, #EEF3FB);
  }

  /* ---- Author ---- */

  .swiper-carousel__author {
    align-items: center;
    display: flex;
    gap: 20px;
    margin-top: auto;
  }

  .swiper-carousel__author-image {
    flex-shrink: 0;
  }

  .swiper-carousel__author-image img {
    border-radius: 50%;
    display: block;
    height: 60px;
    object-fit: cover;
    width: 60px;
  }

  .swiper-carousel__author-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .swiper-carousel__author-name {
    color: var(--wp--preset--color--navy-blue, #000000);
    font-size: var(--wp--preset--font-size--body-2, 1rem);
    font-weight: 600;
    margin: 0;
  }

  .swiper-carousel__author-meta {
    color: var(--wp--preset--color--cool-grey-dark, #555);
    font-size: var(--wp--preset--font-size--body-2, 1rem);
    font-weight: 400;
    margin: 0;
  }

  /* ---- Controls row (progress left, arrows right) ---- */

  /*
  * Controls are capped to the original container width (set as a CSS
  * custom property by JS) so progress + arrows stay aligned with the
  * content, not the full-width swiper.
  */
  .swiper-carousel__controls {
    align-items: center;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin-top: 40px;
    max-width: var(--controls-max-width, 100%);
    max-width: 100%;
    padding: 0 2rem 0 0;
  }

  @media (min-width: 1024px) {
    .swiper-carousel__controls {
      margin-top: 60px;
    }
  }

  /* Swiper progressbar pagination — override defaults for inline layout */

  .swiper-carousel__pagination.swiper-pagination-progressbar.swiper-pagination-horizontal {
    flex: 1;
    height: 2px;
    max-width: 60%;
    position: relative; /* override Swiper's absolute positioning */
  }

  @media (min-width: 1024px) {
    .swiper-carousel__pagination.swiper-pagination-progressbar.swiper-pagination-horizontal {
      max-width: 20%;
    }
  }

  .swiper-carousel__pagination.swiper-pagination-progressbar {
    background: var(--wp--preset--color--cool-grey-medium, #e0e0e0);
    border-radius: 2px;
    inset: auto; /* clear Swiper's top/left/right/bottom */
  }

  .swiper-carousel__pagination .swiper-pagination-progressbar-fill {
    background: var(--wp--preset--color--navy-blue, #001d3d);
    border-radius: 2px;
  }

  /* Nav buttons */

  .swiper-carousel__nav {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
  }

  .swiper-carousel__nav-btn {
    align-items: center;
    background: var(--wp--preset--color--royal-blue, #001d3d);
    border: 0;
    color: var(--wp--preset--color--white, #FFFFFF);
    cursor: pointer;
    display: flex;
    height: 48px;
    justify-content: center;
    padding: 0;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    width: 48px;
    border-radius: 100%;
  }

  .swiper-carousel__nav-btn:hover {
    background: var(--wp--preset--color--royal-blue, #2F6FC7);
    border-color: var(--wp--preset--color--royal-blue, #2F6FC7);
    color: #fff;
  }

  .swiper-carousel__nav-btn.swiper-button-disabled {
    cursor: default;
    opacity: 0.35;
    pointer-events: none;
  }
  
}




