/* ═══════════════════════════════════════════════
   HOME PAGE — SPECIFIC STYLES ONLY
   (Shared styles are in global.css)
═══════════════════════════════════════════════ */
.background {
  width: 100%;
}

/* ─── Who Section ─── */
.who-section {
  width: 100%;
  padding: 32px 16px;
  gap: 60px;
}

.who-container {
  display: flex;
  flex-direction: column;
  justify-content: start;
  gap: 16px;
}

.who-container .who-pop {
  width: 115px;
  height: 32px;
  padding: 4px 8px;
  text-align: center;
  font-weight: 500;
  font-size: 14px;
  line-height: 24px;
  color: #fff;
  border-radius: 16px;
  border: 1px solid #e3e8ef;
}

.who-title {
  font-weight: 600;
  font-size: 20px;
  color: #fff;
  line-height: 26px;
  letter-spacing: 0;
  text-transform: capitalize;
}

.who-text {
  font-weight: 300;
  font-size: 16px;
  color: #e3e8ef;
  line-height: 24px;
}

/* ─── Why IBS Section ─── */
.why-ips-section {
  width: 100%;
  padding: 32px 16px;
}

.why-ips-container {
  display: flex;
  flex-direction: column;
  gap: 40px;
  border-radius: 32px;
}

.why-img img {
  width: 100%;
  height: auto;
  border-radius: 32px;
}
.why-img-desk {
  width: 343px;
  height: auto;
  border: none;
}

.why-img-desk img {
  width: 100%;
  height: 100%;
  border-radius: 32px;
  border: none;
}

.why-pop {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 40px;
}

.why-ips-pop-container {
  gap: 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
.lang-ar .why-ips-pop-container {
  gap: 24px;
}

.why-ips-pop-container .why-ips-pop {
  width: 147px;
  height: 32px;
  border: 1px solid #e3e8ef;
  padding: 4px 8px;
  border-radius: 16px;
  color: #fff;
  text-align: center;
  font-weight: 500;
  font-size: 14px;
  line-height: 24px;
}

.why-ips-title {
  font-weight: 600;
  font-size: 24px;
  color: #fff;
  line-height: 30px;
  letter-spacing: -1px;
  text-transform: capitalize;
  white-space: pre-line;
}

.why-ips-text-container {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.why-ips-text1,
.why-ips-text2 {
  font-weight: 300;
  color: #e3e8ef;
  font-size: 20px;
  line-height: 140%;
}

.why-btn {
  width: 190px;
  height: 54px;
  padding: 12px 24px;
  gap: 10px;
  color: #0e1109;
  background-color: #f0fef6;
  border-radius: 16px;
  font-weight: 600;
  font-size: 18px;
  line-height: 30px;
  border: none;
  cursor: pointer;
}

/* ─── What Section ─── */
.what-section {
  width: 100%;
  padding: 32px 16px;
}

.what-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.img-what {
  border-radius: 32px;
}

.img-what img {
  width: 100%;
  height: 100%;
}

.what-pop-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 16px;
}

.what-pop {
  width: 129px;
  height: 32px;
  padding: 4px 8px;
  border: 1px solid #e3e8ef;
  color: #e3e8ef;
  text-align: center;
  border-radius: 16px;
  font-size: 14px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.what-title {
  font-weight: 600;
  font-size: 24px;
  color: #ffffff;
  line-height: 30px;
  letter-spacing: -1px;
  text-transform: capitalize;
}

.cores {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.cores ol {
  display: flex;
  flex-direction: column;
  gap: 16px;
  list-style: disc;
  padding-left: 20px;
}

.cores ol li {
  color: #e3e8ef;
  font-weight: 500;
  font-size: 16px;
  line-height: 20px;
}

.what-btn {
  width: 240px;
  height: 54px;
  padding: 12px 24px;
  border-radius: 16px;
  font-weight: 600;
  font-size: 18px;
  line-height: 30px;
  margin-top: 32px;
  background-color: #f0fef6;
  color: #0e1109;
  border: none;
  cursor: pointer;
}
.btn-home {
    width: 200px;
    min-height: 44px;
    font-size: 15px;
    margin: 0 auto;
    padding: 12px 24px;
    border-radius: 16px;
    background: #50f995;
    font-weight: 600;
    cursor: pointer;
    border: none;
  }

/* ─── Represent Section ─── */
.represent-section {
  width: 100%;
  padding: 32px 16px;
}

.represent-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.img-represent img {
  width: 100%;
  height: 100%;
}

.represent-pop-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 16px;
}

.represent-pop {
  width: 165px;
  height: 32px;
  font-size: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 4px 8px;
  border: 1px solid #e3e8ef;
  color: #e3e8ef;
  text-align: center;
  border-radius: 16px;
}

.represent-title {
  font-weight: 600;
  font-size: 24px;
  color: #ffffff;
  line-height: 30px;
  letter-spacing: -1px;
  text-transform: capitalize;
}

.represent-cores {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.represent-cores ol {
  display: flex;
  flex-direction: column;
  gap: 16px;
  list-style: disc;
  padding-left: 20px;
}

.represent-cores ol li {
  color: #e3e8ef;
  font-weight: 500;
  font-size: 16px;
  line-height: 20px;
}
.img-what-desk img {
  width: 100%;
  height: auto;
  border-radius: 20px;
}
.img-represent-desk img {
  border-radius: 20px;
  width: 100%;
  height: auto;
}
.represent-btn {
  width: 231px;
  height: 54px;
  padding: 12px 24px;
  background-color: #50f995;
  color: #0e1109;
  border-radius: 16px;
  font-weight: 600;
  font-size: 18px;
  line-height: 30px;
  margin-top: 32px;
  border: none;
  cursor: pointer;
}

/* ─── Arabic overrides ─── */
.lang-ar .represent-cores ol {
  padding-right: 20px;
}

.lang-ar .cores ol {
  padding-right: 12px;
}
.logos-home {
  direction: ltr;
  width: 100%;
  overflow: hidden;
  margin: 0 auto;
  padding: 40px 0;
  mask-image: linear-gradient(
    to right,
    transparent,
    black 10%,
    black 90%,
    transparent
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    black 10%,
    black 90%,
    transparent
  );
}

.logos-track-home {
  display: flex;
  width: max-content;
  animation: infiniteScroll 25s linear infinite;
  gap: 40px;
}

.logos-group-home {
  display: flex;
  align-items: center;
  gap: 40px;
}

@keyframes infiniteScroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.logos-home:hover .logos-track-home {
  animation-play-state: paused;
}

/* ═══════════════════════════════════════════════
   TABLET (376px → 1023px)
═══════════════════════════════════════════════ */
@media (min-width: 768px) and (max-width: 1024px) {
  .who-section {
    width: 80%;
    margin: 0 auto;
    padding: 48px 40px;
  }
  .why-img-desk img {
    width: 100%;
    height: auto;
  }
  .why-img-desk {
    width: 570px;
    height: auto;
  }

  .who-container {
    max-width: 700px;
    margin: 0 auto;
    align-items: flex-start;
  }

  .who-title {
    font-size: 28px;
    line-height: 36px;
  }

  .who-text {
    font-size: 18px;
  }

  .why-ips-section {
    width: 80%;
    margin: 0 auto;
    padding: 48px 40px;
  }

  .why-ips-container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    flex-direction: column;
    align-items: center;
    gap: 32px;
  }

  .why-img img {
    width: 100%;
    height: auto;
    border-radius: 24px;
  }

  .why-pop {
    width: 100%;
    height: auto;
    margin-top: 0;
  }

  .why-ips-pop-container {
    width: 100%;
    height: auto;
  }

  .why-ips-title {
    font-size: 28px;
    line-height: 36px;
  }

  .why-ips-text-container {
    width: 100%;
  }

  .why-ips-text1,
  .why-ips-text2 {
    font-size: 18px;
  }

  .what-section {
    width: 80%;
    margin: 0 auto;
    padding: 48px 40px;
  }

  .what-container {
    max-width: 700px;
    margin: 0 auto;
    flex-direction: column;
    gap: 32px;
  }

  .img-what {
    width: 100%;
    height: auto;
  }

  .img-what img {
    width: 100%;
    height: auto;
    border-radius: 24px;
  }

  .what-pop-container {
    width: 100%;
    height: auto;
  }

  .what-title {
    font-size: 28px;
  }

  .cores ol li {
    font-size: 16px;
  }

  .what-btn {
    width: 100%;
    max-width: 280px;
  }
  .nav-button {
    display: none;
  }

  .represent-section {
    width: 80%;
    margin: 0 auto;
    padding: 48px 40px;
  }

  .represent-container {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    flex-direction: column;
    gap: 32px;
  }

  .img-represent {
    width: 100%;
    height: auto;
  }

  .img-represent img {
    width: 100%;
    height: auto;
    border-radius: 24px;
  }

  .represent-pop-container {
    width: 100%;
    height: auto;
  }

  .represent-title {
    font-size: 28px;
  }

  .represent-cores {
    width: 100%;
    margin-top: 0;
  }
  .logos-home {
    background-color: #041319;
    padding: 30px 0;
    overflow: hidden;
    max-width: 870px;
  }

  .logo img {
    height: 45px;
  }

  .represent-cores ol li {
    font-size: 16px;
  }

  .represent-btn {
    width: 100%;
    max-width: 280px;
    margin-top: 16px;
  }
}

/* ═══════════════════════════════════════════════
   DESKTOP (1024px+)
═══════════════════════════════════════════════ */
@media (min-width: 1025px) {
  /* Who */
  .who-section {
    padding: 64px 120px;
  }

  .who-container {
    width: 1200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    gap: 16px;
  }

  .who-title {
    font-weight: 600;
    width: 956px;
    font-size: 36px;
    line-height: 42px;
    letter-spacing: -1px;
    text-align: center;
  }

  .who-text {
    font-weight: 300;
    font-size: 20px;
    width: 904px;
    line-height: 140%;
    text-align: center;
  }

  /* Why IBS */
  .why-ips-section {
    padding: 64px 120px;
  }

  .why-ips-container {
    width: 1200px;
    gap: 60px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
  }

  .why-img {
    display: none;
  }

  .why-img-desk {
    display: block;
    min-width: 570px;
    min-height: 409px;
  }

  .why-img-desk img {
    width: 100%;
    height: 100%;
  }

  .why-ips-pop-container {
    gap: 16px;
    width: 570px;
  }

  .why-pop {
    width: 570px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-top: 0;
  }

  .why-ips-title {
    font-size: 36px;
    line-height: 42px;
    letter-spacing: -1px;
    white-space: pre-line;
  }

  .why-ips-text-container {
    width: 570px;
    height: 156px;
  }

  .why-ips-text-container p {
    font-size: 20px;
    line-height: 140%;
  }

  .why-btn {
    width: 183px;
  }

  /* What */
  .what-section {
    padding: 64px 120px;
    align-items: center;
    justify-content: center;
    display: flex;
    flex-direction: column;
  }

  .what-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 60px;
  }

  .img-what {
    display: none;
  }

  .img-what-desk {
    display: block;
    width: 570px;
    height: 480px;
    border: none;
  }

  .what-pop-container {
    margin-top: -10px;
    height: 90px;
    gap: 32px;
  }

  .cores {
    margin-top: 0;
  }

  .what-pop-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    width: 570px;
    height: 480px;
    gap: 32px;
  }

  .what-btn {
    margin-top: 0;
    width: 243px;
  }

  .represent-title {
    font-size: 36px;
    line-height: 42px;
    letter-spacing: -1px;
  }
  .logos-home {
    max-width: 1200px;
    margin: -380px auto 32px auto;
    padding: 20px 0;
  }

  .logos-track-home {
    gap: 60px;
    animation-duration: 35s;
  }

  .logos-group-home {
    gap: 50px;
  }

  .logo img {
    height: 40px;
  }

  /* Represent */
  .represent-section {
    padding: 64px 120px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .represent-container {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: center;
    width: 1200px;
    height: 448px;
  }

  .img-represent {
    display: none;
  }

  .img-represent-desk {
    display: block;
    width: 570px;
    height: 448px;
  }

  .represent-pop-section {
    width: 570px;
    height: 448px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 32px;
  }

  .represent-pop-container {
    gap: 24px;
    width: 570px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
  }

  .represent-cores {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    width: 570px;
    gap: 16px;
    margin-top: 0;
  }

  .represent-pop {
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .represent-btn {
    margin-top: 0;
  }

  /* Arabic desktop */
  .lang-ar .represent-cores ol {
    padding: 0;
  }

  .lang-ar .cores ol {
    padding: 0;
  }

  .lang-ar .represent-cores ol li {
    margin-right: 16px;
  }

  .lang-ar .cores ol li {
    margin-right: 16px;
  }

  .lang-ar .what-title {
    width: 471px;
  }

  .lang-ar .sub-heading {
    text-align: center;
    width: 526px;
    font-size: 20px;
  }

  .last-li {
    display: none;
  }
}

/* ═══════════════════════════════════════════════
   DESKTOP MEDIUM (1024px → 1440px)
═══════════════════════════════════════════════ */
@media (min-width: 1025px) and (max-width: 1440px) {
  .who-section {
    padding: 64px 80px;
    height: auto;
  }
  .lang-ar .who-container .who-pop {
    width: 78px;
  }

  .who-container {
    width: 100%;
    max-width: 800px;
  }
  .lang-ar .who-title {
    font-size: 36px;
    width: 108%;
  }

  .who-title {
    font-size: 30px;
    line-height: 38px;
    width: 100%;
  }
  .lang-ar .who-text {
    font-size: 20px;
    width: 81%;
  }
  .lang-ar .who-container {
    gap: 32px;
  }

  .who-text {
    font-size: 18px;
    width: 100%;
  }

  .why-ips-section {
    padding: 64px 80px;
  }

  .why-ips-container {
    width: 100%;
    max-width: 1100px;
  }

  .why-img-desk {
    width: 570px;
    height: 409px !important;
  }

  .why-img-desk img {
    width: 100%;
    height: 100%;
  }

  .why-ips-pop-container {
    gap: 16px;
    width: 480px;
  }

  .why-ips-title {
    line-height: 38px;
  }
  .logos-home {
    max-width: 1100px;
    margin: -305px auto 32px auto;
  }
  .lang-ar .logos-home {
    margin: -352px auto 32px auto;
  }

  .why-ips-text-container {
    width: 480px;
    height: auto;
  }

  .what-section {
    padding: 64px 80px;
  }

  .what-container {
    gap: 48px;
  }

  .img-what-desk {
    width: 570px;
    height: auto;
  }

  .img-what-desk img {
    width: 100%;
    height: auto;
  }

  .what-pop-section {
    width: 480px;
    height: auto;
  }

  .what-pop-container {
    width: 100%;
    height: auto;
  }

  .what-title {
    font-size: 28px;
    line-height: 36px;
  }

  .lang-ar .cores {
    gap: 32px;
    margin-top: 20px;
  }
  .cores {
    margin-top: 20px;
  }

  .cores ol li {
    font-size: 14px;
    line-height: 20px;
  }

  .represent-section {
    padding: 64px 80px;
  }

  .represent-container {
    width: 100%;
    max-width: 1100px;
    height: auto;
    gap: 48px;
  }

  .img-represent-desk {
    width: 570px;
    height: auto;
  }

  .img-represent-desk img {
    border-radius: 32px;
    width: 100%;
    height: auto;
  }

  .represent-pop-section {
    width: 480px;
    height: auto;
  }

  .represent-pop-container {
    width: 480px;
  }

  .represent-cores {
    width: 480px;
  }

  .lang-ar .cores ol li {
    margin-right: 0 !important;
  }
  .btn-home {
    width: 204px;
    height: 44px;
    gap: 10px;
    margin: 0 auto;
    padding: 12px 24px;
    border-radius: 16px;
    background: #50f995;
    font-weight: 600;
    cursor: pointer;
    border: none;
  }
}

/* ═══════════════════════════════════════════════
   SMALL MOBILE (max-width: 375px)
═══════════════════════════════════════════════ */
@media (min-width: 320px) and (max-width: 375px) {
  .who-section {
    padding: 24px 12px;
  }

  .who-container .who-pop {
    font-size: 12px;
  }

  .who-title {
    font-size: 18px;
    line-height: 24px;
  }

  .who-text {
    font-size: 14px;
    line-height: 22px;
  }

  .why-ips-section {
    padding: 24px 12px;
  }

  .why-ips-container {
    width: 100%;
    gap: 24px;
  }

  .why-img img {
    width: 100%;
    height: auto;
  }

  .why-pop {
    width: 100%;
    height: auto;
    margin-top: 0;
    gap: 20px;
  }

  .why-ips-pop-container {
    gap: 12px;
    width: 100%;
    height: auto;
  }

  .why-ips-title {
    font-size: 20px;
    line-height: 28px;
  }

  .why-ips-text-container {
    width: 100%;
  }
  .why-img-desk {
    width: 100%;
    height: 290px;
    border: none;
  }

  .why-ips-text1,
  .why-ips-text2 {
    font-size: 14px;
    line-height: 22px;
  }

  .why-btn {
    width: 100%;
    max-width: 183px;
    font-size: 16px;
    height: 48px;
    font-weight: 600;
  }

  .what-section {
    width: 100%;
    padding: 24px 12px;
  }

  .what-container {
    gap: 24px;
  }

  .img-what img {
    width: 100%;
    height: auto;
    border-radius: 20px;
  }
  .img-represent-desk {
    width: 100%;
    height: 296px;
  }
  .img-represent-desk img {
    width: 100%;
    height: 100%;
    border-radius: 20px;
  }
  .btn-home {
    width: 200px;
    min-height: 44px;
    font-size: 15px;
    margin: 0 auto;
    padding: 12px 24px;
    border-radius: 16px;
    background: #50f995;
    font-weight: 600;
    cursor: pointer;
    border: none;
  }
  .what-pop-container {
    width: 100%;
    height: auto;
  }

  .what-title {
    font-size: 20px;
    line-height: 28px;
  }

  .cores {
    margin-top: 16px;
  }

  .cores ol li {
    font-size: 14px;
    line-height: 20px;
  }

  .what-btn {
    width: 100%;
    max-width: 220px;
    font-size: 16px;
    margin-top: 16px;
  }

  .img-what-desk img {
    width: 100%;
    height: auto;
  }

  .represent-section {
    padding: 24px 12px;
  }

  .represent-container {
    gap: 24px;
  }

  .img-represent img {
    width: 100%;
    height: auto;
    border-radius: 20px;
  }
  .logos {
    padding: 24px 0;
  }

  .represent-pop-container {
    width: 100%;
    height: auto;
  }

  .represent-title {
    font-size: 20px;
    line-height: 28px;
  }

  .represent-cores {
    width: 100%;
    margin-top: 16px;
  }

  .represent-cores ol li {
    font-size: 14px;
    line-height: 20px;
  }

  .represent-btn {
    width: 100%;
    max-width: 220px;
    font-size: 16px;
    margin-top: 16px;
  }
}
/* ═══════════════════════════════════════════════
   MOBILE MEDIUM (376px → 767px)
═══════════════════════════════════════════════ */
@media (min-width: 376px) and (max-width: 767px) {
  .who-section {
    width: 100%;
    padding: 32px 20px;
  }
  .who-container {
    width: 100%;
    gap: 14px;
  }
  .who-title {
    font-size: 22px;
    line-height: 30px;
  }
  .who-text {
    font-size: 15px;
    line-height: 23px;
  }
  .why-ips-section {
    width: 100%;
    padding: 32px 20px;
  }
  .btn-home {
    width: 200px;
    min-height: 44px;
    font-size: 15px;
    margin: 0 auto;
    padding: 12px 24px;
    border-radius: 16px;
    background: #50f995;
    font-weight: 600;
    cursor: pointer;
    border: none;
  }
  .why-ips-container {
    width: 100%;
    gap: 28px;
  }
  .why-img img {
    width: 100%;
    height: auto;
    border-radius: 24px;
  }
  .why-img-desk {
    width: 100%;
    height: auto;
  }
  .why-pop {
    width: 100%;
    height: auto;
    margin-top: 0;
    gap: 24px;
  }
  .why-ips-pop-container {
    width: 100%;
    gap: 14px;
  }
  .why-ips-title {
    font-size: 22px;
    line-height: 30px;
  }
  .why-ips-text-container {
    width: 100%;
  }
  .why-ips-text1,
  .why-ips-text2 {
    font-size: 15px;
    line-height: 23px;
  }
  .why-btn {
    width: 100%;
    max-width: 190px;
    font-size: 16px;
    height: 50px;
  }
  .what-section {
    width: 100%;
    padding: 32px 20px;
  }
  .what-container {
    width: 100%;
    gap: 28px;
  }
  .img-what img {
    width: 100%;
    height: auto;
    border-radius: 24px;
  }
  .img-what-desk img {
    width: 100%;
    height: auto;
    border-radius: 20px;
  }
  .what-pop-container {
    width: 100%;
    height: auto;
  }
  .what-title {
    font-size: 22px;
    line-height: 30px;
  }
  .cores ol li {
    font-size: 15px;
    line-height: 22px;
  }
  .what-btn {
    width: 100%;
    max-width: 230px;
    font-size: 16px;
    margin-top: 20px;
  }
  .represent-section {
    width: 100%;
    padding: 32px 20px;
  }
  .represent-container {
    width: 100%;
    gap: 28px;
  }
  .img-represent img {
    width: 100%;
    height: auto;
    border-radius: 20px;
  }
  .img-represent-desk {
    width: 100%;
    height: auto;
  }
  .img-represent-desk img {
    border-radius: 20px;
    width: 100%;
    height: auto;
  }
  .represent-pop-container {
    width: 100%;
    height: auto;
  }
  .represent-title {
    font-size: 22px;
    line-height: 30px;
  }
  .represent-cores ol li {
    font-size: 15px;
    line-height: 22px;
  }
  .represent-btn {
    width: 100%;
    max-width: 230px;
    font-size: 16px;
    margin-top: 20px;
  }
}
