@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;700&family=Tajawal:wght@400;700&display=swap');

:root{
  --primaryColor:#E63A27;
  --middleColor:#393E46;
  --helperColor:#1C1C27;
  --lightHelper:#dce2f8;
  --hrColor: #A9B5DF;
  --transparentColor:rgba(0, 0, 0, 0.699);
  --shadow:rgba(189, 188, 188, 0.514);
 /* --------------------------------- */
  --whatsappColor:#25D366;
  --white:#ffff;
  --blue: #1877F2;
  --green: #25D366;
  --gray:  #f8f8f8;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', 'Tajawal', sans-serif;
}
a{
  text-decoration: none;
}
.services-title{
  text-align: center;
  margin-bottom: 60px;
}
.services-title h2,.services-title h1 {
  font-size: 40px;
  margin-bottom: 15px;
  display: inline-block;
  position: relative;
  padding-bottom: 8px;
}
.services-title h2::after,.services-title h1::after{
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  border: var(--helperColor) ;
  height: 3px;
  background: var(--primaryColor);
  border-radius: 2px;
}
.services-section {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 كروت جنب بعض */
  gap: 30px;
  max-width: 90%;
  margin: 40px auto;
}

.services-col {
  display: contents; /* عشان نشيل فكرة الأعمدة ونخلي الكروت تتوزع في الشبكة */
}
  
  .service-card {
    background: #fff;
    justify-items: center;
    /* align-content: center; */
    text-align: center;
    border-radius:100px 10px 100px 10px;;
    /* padding: 30px; */
    box-shadow:  0 8px 20px rgba(0,0,0,0.08);
    flex: 1; /* يخلي الكروت كلها نفس الارتفاع */
  }
  .card-data{
    padding: 30px;
  }
  .last-serv{
    grid-template-columns: repeat(2, 1fr); /* 3 كروت جنب بعض */
    max-width: 50%;

  }
  .service-card h3 {
    font-size: 29px;
    margin: 12px 0 10px;
    color: var(--helperColor);
  }
  
 .service-card p {
    font-size: 18px;
    font-weight: 500;
    color: #333 ;
    margin: 0;
  }
  
  .featured-card {
    background: var(--helperColor);
    color: #fff;
  }
  
  .featured-card p ,.featured-card h3{
    color: #fff;
  }
  .featured-card  .icon-box img{
    object-fit:contain;
  }
  
  .icon-box {
    width:100%;
    height: 250px;
    border-radius:100px 10px 10px 10px;
    background: transparent;
  }
  .icon-box img {
    width:100%;
    object-fit: cover;
    height: 250px;
    border-radius:100px 10px 10px 10px;
    background: transparent;
  }
  /* -------- Responsive -------- */
@media (max-width: 992px) {
    
    .services-section {
      grid-template-columns: repeat(1, 1fr); /* صف فيه كرتين */

      }
      .middle-col {
        margin-top: 0;
      }
      .featured-card{
          order: 0;
      }
      .service-card h3 {
        font-size: 47px;
        margin: 32px 0 30px;
      }
      
      .service-card p {
        font-size: 36px;
      }
      .icon-box {
        height: 420px;
      }
      .icon-box img {
        height: 420px;
      }
      .last-serv{
        grid-template-columns: repeat(1, 1fr); /* 3 كروت جنب بعض */
        max-width: 100%;
    
      }
}
@media (max-width: 576px) {
    
    .service-card h3 {
        font-size: 22px;
        margin: 10px 0 ;
      }
      
      .service-card p {
        font-size: 16px;
      }
      .services-section {
        grid-template-columns: 1fr; /* كارت واحد تحت التاني */
      }
      .icon-box {
        height: 220px;
      }
      .icon-box img {
        height: 220px;
      }
    }