@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;700&family=Tajawal:wght@400;700&display=swap');

.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(2, 1fr);
  gap: 150px;
  max-width: 90%;
  margin: 40px auto;
}

.services-col {
  display: contents;
}
  
.service-card {
  background: #fff;
  justify-items: center;
  text-align: center;
  border-radius:20px;
  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);
  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(--primaryColor);
  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:20px;
  background: transparent;
}
.icon-box img {
  width:100%;
  object-fit: cover;
  height: 250px;
  border-radius:20px;
  background: transparent;
}
.icon-box-2 {
  width:100%;
  height: 500px;
  border-radius:10px;
  background: transparent;
}
.icon-box-2 img {
  width:100%;
  object-fit: cover;
  height: 100%;
  border-radius:10px;
  background: transparent;
}

@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);
    max-width: 100%;
  }
}

@media (max-width: 576px) {
  .service-card h3 {
    font-size: 22px;
    margin: 10px 0 ;
  }
  .service-card p {
    font-size: 16px;
  }
  .services-section {
    gap: 20px;
    grid-template-columns: 1fr;
  }
  .icon-box {
    height: 220px;
  }
  .icon-box img {
    height: 220px;
  }
}

:root {
  --primaryColor: #174D76;
  --secondaryColor: #F39C12; /* لون أصفر/برتقالي يعكس هوية المعدات الثقيلة والهدم */
  --helperColor: #292C33;
  --lightBg: #f4f6f8;
}

/* تأثير النبض (Pulse) لأزرار الواتساب والاتصال لجذب عين العميل */
.btn-whatsapp, .aside-link-whats .whatsappp {
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
  70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* أضف هذا في ملف may_services.css */
.service-card {
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  border-bottom: 4px solid transparent; /* تهيئة للحد السفلي */
}

.service-card:hover {
  transform: translateY(-12px); /* رفع البطاقة */
  box-shadow: 0 15px 35px rgba(23, 77, 118, 0.15); /* ظل بلون الهوية الأساسي */
  border-bottom: 4px solid var(--secondaryColor); /* خط برتقالي مميز يظهر عند اللمس */
}

/* تأثير التكبير (Zoom) لصورة الخدمة */
.service-card .icon-box {
  overflow: hidden;
}

.service-card .icon-box img {
  transition: transform 0.6s ease;
}

.service-card:hover .icon-box img {
  transform: scale(1.1);
}

.service-card h3 {
  color: var(--primaryColor);
  transition: color 0.3s ease;
}

.service-card:hover h3 {
  color: var(--secondaryColor); /* تغيير لون العنوان عند الهوفر */
}

/* ================= TESTIMONIALS STYLES (آراء العملاء) ================= */
.testimonials-section {
  padding: 80px 20px;
  background-color: var(--lightBg, #f4f6f8);
  position: relative;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.testi-card {
  background: #fff;
  padding: 40px 30px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  position: relative;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  border-bottom: 4px solid transparent;
  z-index: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.testi-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(23, 77, 118, 0.12);
  border-bottom: 4px solid var(--secondaryColor, #F39C12);
}

/* علامة الاقتباس الكبيرة في الخلفية */
.quote-icon {
  position: absolute;
  top: 20px;
  left: 20px; /* لليسار لأن اتجاه الموقع RTL */
  font-size: 80px;
  color: rgba(23, 77, 118, 0.04); /* لون خفيف جداً في الخلفية */
  z-index: -1;
  transition: color 0.4s ease, transform 0.4s ease;
}

.testi-card:hover .quote-icon {
  color: rgba(243, 156, 18, 0.1);
  transform: scale(1.1) rotate(-10deg);
}

/* نجوم التقييم */
.stars {
  color: #FFD700; /* لون ذهبي للنجوم */
  margin-bottom: 20px;
  font-size: 15px;
  letter-spacing: 2px;
}

/* نص التقييم */
.testi-text {
  color: var(--helperColor, #666);
  font-size: 16px;
  line-height: 1.9;
  margin-bottom: 25px;
  font-style: italic;
  flex-grow: 1; /* لجعل بطاقات التقييم بنفس الطول حتى لو اختلف النص */
}

/* بيانات العميل */
.testi-author {
  border-top: 1px solid #eee;
  padding-top: 15px;
}

.testi-author h4 {
  color: var(--primaryColor, #174D76);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

.testi-author span {
  color: #888;
  font-size: 14px;
  font-weight: 600;
}

/* التجاوب مع الشاشات الصغيرة (الجوال) */
@media (max-width: 768px) {
  .testimonials-section {
    padding: 60px 15px;
  }
  .testimonials-grid {
    grid-template-columns: 1fr; /* عرض البطاقات تحت بعضها في الجوال */
  }
}