  /* =========================================================
     P3 — DÉCOUVREZ NOS SERVICES

     Visual language:
     - Light grey → white gradient
     - White cards
     - Soft shadows
     - Djezzy Red for interaction
     - Blue for subtle secondary accent
     - No imagery to avoid redundancy with
       "Vous pouvez être intéressé par..."
     ========================================================= */

  .p3-services {
    background: linear-gradient(
      to bottom,
      #eaeaea 0%,
      #f5f5f5 40%,
      #ffffff 100%
    );

    padding: 44px 0 52px;
  }


  /* =========================================================
     SECTION HEADER
     ========================================================= */

  .p3-services .p2-section-hd {
    text-align: center;
    margin-bottom: 30px;
  }

  .p3-services .p2-section-hd__title {
    font-size: clamp(26px, 4.5vw, 42px);
    font-weight: 800;

    color: #444;

    text-transform: uppercase;
    line-height: 1.1;
    letter-spacing: -0.5px;

    margin-bottom: 14px;

    font-family:
      'Gotham',
      'Montserrat',
      'Cairo',
      sans-serif;
  }

  .p3-services .p2-section-hd__sub {
    font-size: 11.5px;
    color: #777;

    max-width: 700px;
    margin: 0 auto;

    line-height: 1.7;
  }


  /* =========================================================
     SERVICES GRID
     ========================================================= */

  .p3-services__grid {
    display: grid;

    grid-template-columns:
      repeat(3, minmax(0, 1fr));

    gap: 20px;

    max-width: 980px;

    margin: 0 auto;
  }


  /* =========================================================
     SERVICE CARD
     ========================================================= */

  .p3-service {
    position: relative;

    display: flex;
    flex-direction: column;

    min-height: 178px;

    padding: 22px 21px 18px;

    background: #fff;

    border-radius: 12px;

    overflow: hidden;

    box-shadow:
      0 3px 14px rgba(0, 0, 0, .10);

    text-decoration: none;

    transition:
      transform .3s ease,
      box-shadow .3s ease;
  }

  .p3-service:hover {
    transform: translateY(-5px);

    box-shadow:
      0 12px 28px rgba(0, 0, 0, .15);
  }


  /* =========================================================
     TOP RED ACCENT
     ========================================================= */

  .p3-service::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 3px;

    background: #E2001A;

    transform: scaleX(0);

    transform-origin: left;

    transition:
      transform .3s ease;
  }

  .p3-service:hover::before {
    transform: scaleX(1);
  }


  /* =========================================================
     CATEGORY
     ========================================================= */

  .p3-service__category {
    display: inline-block;

    margin-bottom: 17px;

    font-size: 9px;
    font-weight: 700;

    letter-spacing: .8px;

    text-transform: uppercase;

    color: #123A63;
  }


  /* =========================================================
     TITLE + ICON
     ========================================================= */

  .p3-service__title-wrap {
    display: flex;

    align-items: center;

    gap: 11px;

    margin-bottom: 9px;
  }


  .p3-service__icon {
    display: flex;

    align-items: center;
    justify-content: center;

    flex: 0 0 auto;

    width: 36px;
    height: 36px;

    border-radius: 50%;

    background: #f1f3f5;

    color: #123A63;

    transition:
      background .25s ease,
      color .25s ease,
      transform .25s ease;
  }


  .p3-service__icon svg {
    width: 17px;
    height: 17px;

    fill: none;

    stroke: currentColor;

    stroke-width: 1.7;

    stroke-linecap: round;
    stroke-linejoin: round;
  }


  .p3-service:hover .p3-service__icon {
    background: #f9e8ea;

    color: #E2001A;

    transform: translateY(-1px);
  }


  .p3-service__title {
    margin: 0;

    font-family:
      'Gotham',
      'Montserrat',
      'Cairo',
      sans-serif;

    font-size: 15px;

    font-weight: 800;

    line-height: 1.2;

    text-transform: uppercase;

    color: #1a1a1a;

    transition:
      color .2s ease;
  }

  .p3-service:hover .p3-service__title {
    color: #E2001A;
  }


  /* =========================================================
     DESCRIPTION
     ========================================================= */

  .p3-service__text {
    margin: 0;

    max-width: 275px;

    font-size: 10.5px;

    line-height: 1.65;

    color: #666;
  }


  /* =========================================================
     FOOTER / LINK
     ========================================================= */

  .p3-service__footer {
    display: flex;

    align-items: center;
    justify-content: flex-end;

    margin-top: auto;

    padding-top: 17px;
  }


  .p3-service__link {
    display: inline-flex;

    align-items: center;

    gap: 4px;

    font-size: 10.5px;

    font-weight: 800;

    color: #E2001A;

    text-decoration: none;

    transition:
      gap .2s ease;
  }

  .p3-service:hover .p3-service__link {
    gap: 8px;
  }


  .p3-service__arrow {
    font-size: 15px;

    line-height: 1;
  }


  /* =========================================================
     VIEW ALL SERVICES
     ========================================================= */

  .p3-services__all {
    display: flex;

    justify-content: center;

    margin-top: 23px;
  }


  .p3-services__all-link {
    display: inline-flex;

    align-items: center;

    gap: 6px;

    padding-bottom: 4px;

    border-bottom: 1px solid #E2001A;

    font-family:
      'Gotham',
      'Montserrat',
      'Cairo',
      sans-serif;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: .3px;

    text-transform: uppercase;

    color: #E2001A;

    text-decoration: none;

    transition:
      gap .2s ease,
      color .2s ease;
  }


  .p3-services__all-link:hover {
    gap: 9px;

    color: #b80015;
  }


  .p3-services__all-arrow {
    font-size: 14px;

    line-height: 1;
  }


  /* =========================================================
     TABLET
     ========================================================= */

  @media (max-width: 800px) {

    .p3-services__grid {
      grid-template-columns:
        repeat(2, minmax(0, 1fr));

      max-width: 680px;
    }
  }


  /* =========================================================
     MOBILE
     ========================================================= */

  @media (max-width: 600px) {

    .p3-services {
      padding: 42px 0 48px;
    }

    .p3-services .p2-section-hd {
      margin-bottom: 24px;
    }

    .p3-services .p2-section-hd__title {
      font-size: 29px;
    }

    .p3-services .p2-section-hd__sub {
      max-width: 90%;

      font-size: 11px;
    }

    .p3-services__grid {
      grid-template-columns: 1fr;

      gap: 13px;

      max-width: 480px;
    }

    .p3-service {
      min-height: 155px;

      padding: 20px 18px 18px;
    }

    .p3-service__category {
      margin-bottom: 15px;
    }

    .p3-service__icon {
      width: 34px;
      height: 34px;
    }

    .p3-service__icon svg {
      width: 16px;
      height: 16px;
    }

    .p3-service__title {
      font-size: 14px;
    }
  }

  /* Swiper Pagination Styles for Services */
  .services-swiper {
    padding-top: 15px; /* Prevent hover animation cutoff */
    padding-bottom: 40px; /* Space for pagination */
    margin-top: -15px; /* Offset the visual padding */
    margin-left: 10px;
  }
  .services-swiper .swiper-pagination-bullet {
    background: #ccc;
    opacity: 1;
  }
  .services-swiper .swiper-pagination-bullet-active {
    background: #E2001A;
  }
