/* بداية whyus-modern عصري */
.whyus-modern-row {
  --bs-gutter-x: 28px;
  --bs-gutter-y: 28px;
  row-gap: 28px;
  column-gap: 28px;
  justify-content: flex-start;
  display: flex;
  flex-wrap: wrap;
  margin-left: -14px;
  margin-right: -14px;
}
.whyus-modern-row > .col-lg-3 {
  flex: 0 0 25%;
  max-width: 25%;
  padding-left: 14px;
  padding-right: 14px;
  margin-bottom: 0;
}
@media (max-width: 991.98px) {
  .whyus-modern-row > .col-lg-3 {
    flex: 0 0 50%;
    max-width: 50%;
  }
}
@media (max-width: 575.98px) {
  .whyus-modern-row > .col-lg-3 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

.whyus-modern-card {
  background: linear-gradient(135deg,#fafdff 65%,#e3f2fd 100%);
  border-radius: 24px;
  box-shadow: 0 8px 32px #00bcd433, 0 2px 12px #1976d233;
  padding: 50px 16px 18px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: box-shadow 0.23s, transform 0.23s, background 0.23s;
  min-height: 220px;
  position: relative;
  overflow: hidden;
}

.whyus-modern-section {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

.whyus-modern-section h2,
.whyus-modern-section .section-title {
  margin-top: 0 !important;
  padding-top: 0 !important;
}


/* تقليل المسافة بين الأقسام بشكل عام */
.section,
.section + .whyus-modern-section {
  margin-bottom: 8px !important;
}


@media (max-width: 575.98px) {
  .whyus-modern-card {
    padding: 12px 8px 14px 8px;
    min-height: 180px;
  }
  .whyus-modern-section {
    padding-top: 10px !important;
  }
}

.whyus-modern-card::before {
  content: '';
  display: block;
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 7px;
  border-radius: 24px 24px 0 0;
  background: linear-gradient(90deg,#1976d2 0%,#00bcd4 100%);
  opacity: 0.85;
  z-index: 2;
  pointer-events: none;
}
.whyus-modern-card:hover {
  box-shadow: 0 16px 48px #00bcd455, 0 4px 24px #1976d244;
  transform: translateY(-8px) scale(1.045);
  background: linear-gradient(135deg,#fafdff 80%,#e1f5fe 100%);
}
.whyus-modern-img-wrap {
  background: linear-gradient(135deg,#7f9cf5 0%,#00bcd4 100%);
  border-radius: 50%;
  padding: 6px;
  margin-bottom: 18px;
  box-shadow: 0 2px 18px #00bcd433;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 3;
}
.whyus-modern-img {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 2px 10px #00bcd422;
  border: 4px solid #fff;
  background: #fff;
}
.whyus-modern-text {
  font-weight: 800;
  color: #1a237e;
  font-size: 1.17rem;
  text-align: center;
  margin-top: 12px;
  margin-bottom: 0;
  letter-spacing: 0.01em;
  line-height: 1.55;
  text-shadow: 0 1px 0 #fff9, 0 2px 8px #00bcd422;
  z-index: 3;
}
@media (max-width: 600px) {
  .whyus-modern-card {
    min-height: 180px;
    padding: 18px 4px 10px 4px;
  }
  .whyus-modern-img {
    width: 54px;
    height: 54px;
  }
  .whyus-modern-img-wrap {
    margin-bottom: 8px;
    padding: 2px;
  }
  .whyus-modern-row {
    --bs-gutter-x: 8px;
    --bs-gutter-y: 8px;
    row-gap: 8px;
    column-gap: 8px;
  }
}

.whyus-modern-card:hover {
  box-shadow: 0 12px 36px #00bcd455, 0 3px 20px #1976d244;
  transform: translateY(-6px) scale(1.035);
  background: rgba(255,255,255,0.96);
}
.whyus-modern-img-wrap {
  background: linear-gradient(135deg,#7f9cf5 0%,#00bcd4 100%);
  border-radius: 50%;
  padding: 5px;
  margin-bottom: 18px;
  box-shadow: 0 2px 16px #00bcd433;
  display: flex;
  align-items: center;
  justify-content: center;
}
.whyus-modern-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 2px 8px #00bcd422;
  border: 4px solid #fff;
  background: #fff;
}
.whyus-modern-text {
  font-weight: 700;
  color: #1a237e;
  font-size: 1.18rem;
  text-align: center;
  margin-top: 10px;
  margin-bottom: 0;
  letter-spacing: 0.01em;
  line-height: 1.5;
  text-shadow: 0 1px 0 #fff9, 0 2px 8px #00bcd422;
}
@media (max-width: 600px) {
  .whyus-modern-card {
    min-height: 180px;
    padding: 18px 4px 10px 4px;
  }
  .whyus-modern-img {
    width: 54px;
    height: 54px;
  }
  .whyus-modern-img-wrap {
    margin-bottom: 8px;
    padding: 2px;
  }
  .whyus-modern-row {
    --bs-gutter-x: 8px;
    --bs-gutter-y: 8px;
    row-gap: 8px;
    column-gap: 8px;
  }
}
/* نهاية whyus-modern */
