/* ============================================================
   ebpt8 — Automated Quality Systems Section
   Namespace  : ebpt8
============================================================ */

@import url('https://fonts.googleapis.com/css2?family=El+Messiri:wght@400;500;600;700&display=swap');

/* 1. Variables & Colors */
.ebpt8 {
  --ebpt8-bg:              #ffffff;
  --ebpt8-text:            #333333;
  --ebpt8-title:           #1a3a6b;
  --ebpt8-border:          #d0daea;

  --ebpt8-desc-text:       #444444;

  --ebpt8-item-text:       #333333;
  --ebpt8-dot-color:       #1a3a6b;

  --ebpt8-img-radius:      0;

  --ebpt8-padding-top:     2rem;
  --ebpt8-padding-bottom:  2rem;
}

/* 2. Reset داخل الـ namespace */
*,
.ebpt8 *,
.ebpt8 *::before,
.ebpt8 *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* 3. Base Styles — Mobile */
.ebpt8 {
  font-family: "El Messiri", sans-serif;
  background-color: var(--ebpt8-bg);
  color: var(--ebpt8-text);
  /* direction: ltr; */
  padding-top: var(--ebpt8-padding-top);
  padding-bottom: var(--ebpt8-padding-bottom);
  width: 100%;
}

/* Container — stacked on mobile */
.ebpt8__container {
  width: 94%;
  max-width: 78rem;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Image */
.ebpt8__img-wrap {
  width: 100%;
  flex-shrink: 0;
}

.ebpt8__img {
  display: block;
  width: 100%;
  height: auto;
  /* aspect-ratio: 4 / 3; */
  /* object-fit: cover; */
  object-position: center;
  border-radius: var(--ebpt8-img-radius);
}

/* Content */
.ebpt8__content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Title */
.ebpt8__title {
  font-size: clamp(1.1rem, 4.5vw, 1.55rem);
  font-weight: 700;
  color: var(--ebpt8-title);
  line-height: 1.35;
  font-family: "El Messiri", sans-serif;
}

/* Description paragraph — justified like original */
.ebpt8__desc {
  font-size: clamp(0.78rem, 2.8vw, 0.88rem);
  color: var(--ebpt8-desc-text);
  line-height: 1.85;
  text-align: justify;
  font-family: "El Messiri", sans-serif;
}

/* Bullets grid — single column mobile */
.ebpt8__bullets {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem 2rem;
}

/* List */
.ebpt8__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Item */
.ebpt8__item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

/* Dot icon */
.ebpt8__dot {
  color: var(--ebpt8-dot-color);
  font-size: 0.55rem;
  margin-top: 0.35rem;
  flex-shrink: 0;
}

/* Item text */
.ebpt8__item-text {
  font-size: clamp(0.78rem, 2.8vw, 0.88rem);
  color: var(--ebpt8-item-text);
  line-height: 1.6;
  font-family: "El Messiri", sans-serif;
}

/* 4. Breakpoints */

@media (min-width: 481px) {
  .ebpt8__desc {
    font-size: clamp(0.8rem, 2vw, 0.9rem);
  }

  .ebpt8__item-text {
    font-size: clamp(0.8rem, 2vw, 0.9rem);
  }
}

@media (min-width: 601px) {
  .ebpt8__bullets {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 769px) {
  /* Side by side layout */
  .ebpt8__container {
    flex-direction: row;
    align-items: flex-start;
    gap: 3rem;
  }

  .ebpt8__img-wrap {
    width: 45%;
    flex-shrink: 0;
  }

  .ebpt8__img {
    aspect-ratio: 1 / 1;
    height: 100%;
    /* object-fit: cover; */
  }

  .ebpt8__content {
    flex: 1;
    gap: 1.25rem;
  }

  .ebpt8__bullets {
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem 1.5rem;
  }

  .ebpt8__title {
    font-size: clamp(1.1rem, 2.2vw, 1.5rem);
  }

  .ebpt8__desc {
    font-size: clamp(0.78rem, 1.2vw, 0.88rem);
  }

  .ebpt8__item-text {
    font-size: clamp(0.78rem, 1.1vw, 0.88rem);
  }
}

@media (min-width: 1025px) {
  .ebpt8__container {
    width: 88%;
    gap: 3.5rem;
  }

  .ebpt8__img-wrap {
    width: 42%;
  }

  .ebpt8__title {
    font-size: clamp(1.2rem, 1.8vw, 1.55rem);
  }

  .ebpt8__desc {
    font-size: 0.88rem;
    line-height: 1.9;
  }

  .ebpt8__item-text {
    font-size: 0.88rem;
  }

  .ebpt8__list {
    gap: 0.85rem;
  }
}

@media (min-width: 1281px) {
  .ebpt8__container {
    width: 85%;
    gap: 4rem;
  }

  .ebpt8__img-wrap {
    width: 40%;
  }

  .ebpt8__title {
    font-size: 1.6rem;
  }

  .ebpt8__desc {
    font-size: 0.9rem;
  }

  .ebpt8__item-text {
    font-size: 0.9rem;
  }
}

@media (min-width: 1441px) {
  .ebpt8__container {
    width: 80%;
    max-width: 82rem;
    gap: 4.5rem;
  }

  .ebpt8__title {
    font-size: 1.7rem;
  }

  .ebpt8__desc {
    font-size: 0.93rem;
    line-height: 2;
  }

  .ebpt8__item-text {
    font-size: 0.93rem;
  }

  .ebpt8__list {
    gap: 1rem;
  }
}

@media (min-width: 1921px) {
  .ebpt8__container {
    max-width: 95rem;
  }

  .ebpt8__title {
    font-size: 1.9rem;
  }

  .ebpt8__desc {
    font-size: 1rem;
  }

  .ebpt8__item-text {
    font-size: 1rem;
  }

  .ebpt8__dot {
    font-size: 0.65rem;
  }
}