/* --------------- Custom Fixes for Services, Testimonials, Clients --------------- */

/* --------------- Services --------------- */
.services-ds .item {
  padding: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  -webkit-transition: all .4s;
  -o-transition: all .4s;
  transition: all .4s; }
  .services-ds .item:last-of-type {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
  .services-ds .item .title h2 {
    font-size: 48px;
    line-height: 56px;
    letter-spacing: -2px;
    font-weight: 600; }
  .services-ds .item .icon {
    width: 60px;
    height: 60px;
    line-height: 60px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-left: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0; }
    .services-ds .item .icon img {
      width: 28px; }
  .services-ds .item .title {
    position: relative;
    margin-bottom: -70px;
    -webkit-transition: all .4s;
    -o-transition: all .4s;
    transition: all .4s; }
  .services-ds .item:hover {
    background: var(--main-color2, #b70e80); }
    .services-ds .item:hover .title {
      margin-bottom: 0;
      color: #fff; }
    .services-ds .item:hover .icon {
      border-color: rgba(255,255,255,0.3); }

/* --------------- Box Dark (Testimonials container) --------------- */
.box-dark .box {
  background: var(--bg-color, #151515);
  border-radius: 15px;
  padding: 100px 80px;
  position: relative; }
  .box-dark .box .layers {
    position: absolute;
    top: 5px;
    left: 30px;
    right: 30px;
    bottom: -10px;
    background: var(--bg-color, #151515);
    border-radius: 15px;
    opacity: .7;
    z-index: -1; }
    .box-dark .box .layers:after {
      content: '';
      position: absolute;
      top: 5px;
      left: 20px;
      right: 20px;
      bottom: -10px;
      background: var(--bg-color, #151515);
      border-radius: 15px;
      opacity: .7;
      z-index: -1; }

/* --------------- Testimonials --------------- */
.testimonials-ds .qoute-icon {
  position: relative;
  width: -webkit-max-content;
  width: -moz-max-content;
  width: max-content; }
  .testimonials-ds .qoute-icon .text {
    width: 240px;
    -webkit-animation: rotate-text 15s linear infinite;
    animation: rotate-text 15s linear infinite; }
  .testimonials-ds .qoute-icon .icon {
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translateX(-50%) translateY(-50%);
    -ms-transform: translateX(-50%) translateY(-50%);
    transform: translateX(-50%) translateY(-50%);
    width: 80px; }
    .testimonials-ds .qoute-icon .icon img {
      width: 60px;
      display: block;
      margin: auto; }

@-webkit-keyframes rotate-text {
  0% { -webkit-transform: rotate(0deg); transform: rotate(0deg); }
  100% { -webkit-transform: rotate(360deg); transform: rotate(360deg); }
}
@keyframes rotate-text {
  0% { -webkit-transform: rotate(0deg); transform: rotate(0deg); }
  100% { -webkit-transform: rotate(360deg); transform: rotate(360deg); }
}

.testimonials-ds .item .text h4 {
  font-size: 28px;
  line-height: 40px;
  letter-spacing: -1px;
  font-weight: 400; }

.testimonials-ds .item .info .img-author {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden; }
  .testimonials-ds .item .info .img-author img {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover; }

.testimonials-ds .item .info .info-text {
  padding-left: 20px; }
  .testimonials-ds .item .info .info-text span {
    font-weight: 500; }
  .testimonials-ds .item .info .info-text p {
    font-size: 14px;
    color: #BBBBBB;
    margin-top: 5px; }

.testimonials-ds .swiper {
  position: relative;
  padding-bottom: 60px; }
  .testimonials-ds .swiper .swiper-pagination {
    position: absolute;
    bottom: 0;
    right: 0;
    left: auto !important;
    width: -webkit-max-content !important;
    width: -moz-max-content !important;
    width: max-content !important;
    padding: 5px 15px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1); }
    .testimonials-ds .swiper .swiper-pagination .swiper-pagination-bullet {
      margin: 0 7px;
      background: #BBBBBB; }
      .testimonials-ds .swiper .swiper-pagination .swiper-pagination-bullet.swiper-pagination-bullet-active {
        background: var(--main-color2, #b70e80); }

/* --------------- Sponsor Logos (clients-ds) --------------- */
.clients-ds .sec-head {
  margin-bottom: 50px; }
  .clients-ds .sec-head .sub-head {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 14px; }

.clients-ds .item {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 80px;
  height: 105px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  -webkit-transition: all .4s;
  -o-transition: all .4s;
  transition: all .4s; }
  .clients-ds .item .img {
    height: 60px; /* Increased slightly to allow taller logos */
    display: flex;
    align-items: center;
    justify-content: center;
    margin: auto; }
    .clients-ds .item .img img {
      width: auto;
      height: auto;
      -webkit-filter: brightness(0) invert(1);
      filter: brightness(0) invert(1);
      opacity: 0.6;
      -o-object-fit: contain;
      object-fit: contain;
      -webkit-transition: all .4s;
      -o-transition: all .4s;
      transition: all .4s; }
    /* Personalized logo dimensions for visual balance */
    .clients-ds .item .img img[src*="logo-morocco"] {
      max-width: 60px;
      max-height: 55px; }
    .clients-ds .item .img img[src*="logo-alomrane"] {
      max-width: 70px;
      max-height: 50px; }
    .clients-ds .item .img img[src*="logo-radeema"] {
      max-width: 50px;
      max-height: 65px; }
    .clients-ds .item .img img[src*="logo-chaabi-bank"] {
      max-width: 95px;
      max-height: 35px; }
    .clients-ds .item .img img[src*="logo-bouderka"] {
      max-width: 95px;
      max-height: 30px; }
  .clients-ds .item:hover {
    border-color: rgba(255, 255, 255, 0.3); }
    .clients-ds .item:hover .img img {
      opacity: 1; }

.clients-ds .row > [class*="col-"] {
  margin-bottom: 15px; }

/* --------------- Responsive --------------- */
@media screen and (max-width: 992px) {
  .services-ds .item .title h2 {
    font-size: 36px;
    line-height: 1.2; }
  .clients-ds .item {
    padding: 35px 20px;
    border-radius: 60px; }
  .clients-ds .item .img {
    max-width: 80px; }
}

@media screen and (max-width: 768px) {
  .services-ds .item {
    display: block !important; }
  .services-ds .item .title {
    margin-bottom: 0; }
  .services-ds .item .title h2 {
    font-size: 28px;
    line-height: 1.2;
    letter-spacing: -1px;
    margin-bottom: 10px; }
  .services-ds .item .icon {
    margin-left: 15px; }
  .box-dark .box {
    padding: 60px 20px; }
  .testimonials-ds .qoute-icon .text {
    width: 180px; }
  .testimonials-ds .qoute-icon .icon {
    width: 60px; }
    .testimonials-ds .qoute-icon .icon img {
      width: 40px; }
  .testimonials-ds .item .text h4 {
    font-size: 22px;
    line-height: 32px;
    letter-spacing: normal; }
  .clients-ds .item {
    padding: 25px 15px;
    border-radius: 40px; }
  .clients-ds .item .img {
    max-width: 60px; }
  .clients-ds .row {
    gap: 0; }
}

@media screen and (max-width: 480px) {
  .clients-ds .item {
    padding: 20px 10px;
    border-radius: 30px; }
  .clients-ds .item .img {
    max-width: 50px; }
}
