  .hide-scrollbar {
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}
.hide-scrollbar::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}
  .news-slider-track {
    scroll-behavior: smooth;
  }
  @media (min-width: 768px) {
    .news-card {
      width: calc((100% - 2rem) / 2);
    }
  }
  @media (min-width: 992px) {
    .news-card {
      width: calc((100% - 4rem) / 3);
    }
  }

  /* Boutons Slider */
  .news-slider-outer {
    padding: 0 20px;
  }
  .btn-arrow {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s;
  }
  .btn-arrow:hover {
    background: #E2001A;
    color: #fff;
    transform: translateY(-50%) scale(1.05);
  }
  @media (max-width: 767.98px) {
    .btn-arrow {
      display: none !important;
    }
    .news-slider-outer {
      padding: 0;
    }
  }

.p2-cards {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
  }

  .p2-card {
    flex: 1 1 280px;
    max-width: 340px;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 3px 14px rgba(0, 0, 0, .1);
    display: flex;
    flex-direction: column;
    transition: transform .3s, box-shadow .3s;
  }

  .p2-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .15);
  }

  .p2-card__img-wrap {
    height: 190px;
    overflow: hidden;
    flex-shrink: 0;
  }

  .p2-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s;
  }

  .p2-card:hover .p2-card__img {
    transform: scale(1.06);
  }

  .p2-card__body {
    padding: 16px 18px 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
    background: linear-gradient(to bottom, #fff 0%, #f4f4f4 55%, #d8d8d8 100%);
    min-height: 200px;
  }

  .p2-card__title {
    font-size: 15px;
    font-weight: 800;
    color: #1a1a1a;
    text-transform: uppercase;
    letter-spacing: 0px;
    margin-bottom: 8px;
    font-family: 'Gotham', 'Montserrat', 'Cairo', sans-serif;
    text-align: start;
  }

  .p2-card__text {
    font-size: 11px;
    color: #606060;
    line-height: 1.6;
    flex: 1;
    margin-bottom: 10px;
    text-align: start;
  }

  .p2-card__footer {
    text-align: right;
    margin-top: auto;
  }

  .p2-card__link {
    font-size: 12px;
    font-weight: 700;
    color: #E2001A;
    text-decoration: none;
  }

  .p2-card__link:hover {
    text-decoration: underline;
  }

/* Swiper pagination positioning */
.swiper-pagination {
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  text-align: center;
  z-index: 10;
}

/* Ensure Swiper container and all slides have equal height */
.mySwiper {
  position: relative;
  padding-bottom: 40px;
}

.mySwiper .swiper-wrapper {
  align-items: stretch;
}

.mySwiper .swiper-slide {
  height: auto;
  display: flex;
  justify-content: center;
}

.mySwiper .swiper-slide .p2-card {
  height: 100%;
  width: 100%;
}