/* ============================================================
   ebpt10 — Management Consulting Services
   Namespace  : ebpt10
============================================================ */

@import url('https://fonts.googleapis.com/css2?family=El+Messiri:wght@400..700&display=swap');

/* 1. Variables & Colors */
.ebpt10 {
  --ebpt10-bg:            #ffffff;
  --ebpt10-text:          #444444;
  --ebpt10-title:         #204A7B;
  --ebpt10-border:        #204A7B;

  --ebpt10-card-bg:       #204A7B;
  --ebpt10-card-icon:     #ffffff;
  --ebpt10-card-label:    #204A7B;

  --ebpt10-divider-color: #204A7B;

  --ebpt10-padding-top:    2rem;
  --ebpt10-padding-bottom: 2rem;
}

/* 2. Reset داخل الـ namespace */
.ebpt10 *,
.ebpt10 *::before,
.ebpt10 *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* 3. Base Styles — Mobile */
.ebpt10 {
  font-family: "El Messiri", sans-serif;
  background-color: var(--ebpt10-bg);
  padding-top: var(--ebpt10-padding-top);
  padding-bottom: var(--ebpt10-padding-bottom);
  width: 100%;
}

.ebpt10__container {
  width: 90%;
  max-width: 70rem;
  margin: 0 auto;
}

/* Header */
.ebpt10__header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.ebpt10__title {
  font-size: clamp(1.4rem, 5vw, 2.2rem);
  font-weight: 700;
  color: var(--ebpt10-title);
  margin-bottom: 0.75rem;
}

.ebpt10__divider {
  width: 5rem;
  height: 0.2rem;
  background-color: var(--ebpt10-divider-color);
  margin: 0 auto 1.25rem auto;
  border-radius: 0.1rem;
}

.ebpt10__desc {
  font-size: clamp(0.82rem, 2.5vw, 0.97rem);
  color: var(--ebpt10-text);
  line-height: 1.8;
  max-width: 52rem;
  margin: 0 auto;
}

/* Grid — Mobile: 2 columns */
.ebpt10__grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.5rem 1rem;
  justify-items: center;
}

/* Card */
.ebpt10__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  /* max-width: 10rem; */
}

/* Icon wrap */
.ebpt10__icon-wrap {
  width: 7rem;
  height: 7rem;
  background-color: var(--ebpt10-card-bg);
  border-radius: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  flex-shrink: 0;
}

.ebpt10__icon {
  font-size: clamp(1.6rem, 4vw, 2rem);
  color: var(--ebpt10-card-icon);
}

/* Label */
.ebpt10__label {
  font-size: clamp(1.1rem, 3.5vw, 1.2rem);
  font-weight: 600;
  color: var(--ebpt10-card-label);
  text-align: center;
  line-height: 1.4;
}

/* 4. Breakpoints */

@media (min-width: 481px) {
  .ebpt10__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem 1.5rem;
  }

  .ebpt10__icon-wrap {
    width: 5.5rem;
    height: 5.5rem;
  }
}

@media (min-width: 601px) {
  .ebpt10__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .ebpt10__card {
    max-width: 9rem;
  }
}

@media (min-width: 769px) {
  .ebpt10__grid {
    grid-template-columns: repeat(4, 1fr);
    gap:  1.5rem;
  }

  .ebpt10__icon-wrap {
    width: 6rem;
    height: 6rem;
    border-radius: 1.4rem;
  }

  .ebpt10__icon {
    font-size: 2.1rem;
  }

  .ebpt10__card {
    max-width: 10rem;
  }
}

@media (min-width: 1025px) {
  .ebpt10__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem 1.5rem;
  }

  .ebpt10__icon-wrap {
    width: 6.2rem;
    height: 6.2rem;
    border-radius: 1.5rem;
  }

  .ebpt10__card {
    max-width: 11rem;
  }

  /* Last row: 3 cards centered */
  .ebpt10__card:nth-child(9),
  .ebpt10__card:nth-child(10),
  .ebpt10__card:nth-child(11) {
    grid-column: auto;
  }


  .ebpt10__grid {
    grid-template-columns: repeat(12, 1fr);
  }

  .ebpt10__card:nth-child(1)  { grid-column: 1 / 4; }
  .ebpt10__card:nth-child(2)  { grid-column: 4 / 7; }
  .ebpt10__card:nth-child(3)  { grid-column: 7 / 10; }
  .ebpt10__card:nth-child(4)  { grid-column: 10 / 13; }
  .ebpt10__card:nth-child(5)  { grid-column: 1 / 4; }
  .ebpt10__card:nth-child(6)  { grid-column: 4 / 7; }
  .ebpt10__card:nth-child(7)  { grid-column: 7 / 10; }
  .ebpt10__card:nth-child(8)  { grid-column: 10 / 13; }
  /* Last 3 centered */
  .ebpt10__card:nth-child(9)  { grid-column: 3 / 6; }
  .ebpt10__card:nth-child(10) { grid-column: 6 / 9; }
  .ebpt10__card:nth-child(11) { grid-column: 9 / 12; }
}

@media (min-width: 1281px) {
  .ebpt10__icon-wrap {
    width: 6.5rem;
    height: 6.5rem;
  }

  .ebpt10__label {
    font-size: 0.92rem;
  }
}

@media (min-width: 1441px) {
  .ebpt10__container {
    max-width: 75rem;
  }
}