/* Hero section background for services page */
.services-hero-bg {
  background-image: url('../img/service/bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 70vh;
}

.card-img-top {
    height: 200px;
    width: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
  }

  /* حجم الصورة 250px للكاردات الخاصة */
  .card-large-img .card-img-top {
    height: 250px;
  }

  /* جعل hr أبيض للكاردات الخاصة */
  .card-white-hr hr {
    border-color: white;
    color: white;
    background-color: white;
  }

  /* تخطيط أفقي للكارد - الصورة على اليمين والنص على اليسار */
  .card-horizontal-layout {
    border: none;
  }

  .card-horizontal-layout .card-body {
    color: white;
  }

  .card-horizontal-layout .card-img-horizontal {
    height: 250px;
    width: 100%;
    object-fit: contain;
    box-shadow: none;
    filter: none;
  }

  .card-horizontal-layout .read-more {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
  }

  .card-horizontal-layout .read-more:hover {
    color: #fff;
    text-decoration: underline;
  }

  .card-horizontal-layout .read-more .arrow {
    display: inline-block;
    margin-right: 0.5rem;
    transition: transform 0.3s ease;
  }

  .card-horizontal-layout .read-more:hover .arrow {
    transform: translateX(-5px);
  }

  .card {
    position: relative;
    z-index: 1;
    overflow: hidden;
    transition: 0.5s;
  }
  .container-fluid {
    
    background-position: center;
    background-size: cover;
  }

/* تأثير رفع العنوان والنص فوق الصورة - Class قابل للإضافة */
.hover-lift-effect .card-body {
  transition: all 0.5s ease;
  position: relative;
  z-index: 1;
}

.hover-lift-effect:hover .card-body {
  transform: translateY(-100px);
  z-index: 3;
}

/* إخفاء العنوان والخط عند hover في الكاردات التي تحتوي على hover-lift-effect */
.hover-lift-effect .card-body h1,
.hover-lift-effect .card-body h2,
.hover-lift-effect .card-body h3,
.hover-lift-effect .card-body h4,
.hover-lift-effect .card-body h5,
.hover-lift-effect .card-body h6,
.hover-lift-effect .card-body hr {
  opacity: 1;
  transition: opacity 0.5s ease;
}

.hover-lift-effect:hover .card-body h1,
.hover-lift-effect:hover .card-body h2,
.hover-lift-effect:hover .card-body h3,
.hover-lift-effect:hover .card-body h4,
.hover-lift-effect:hover .card-body h5,
.hover-lift-effect:hover .card-body h6,
.hover-lift-effect:hover .card-body hr {
  opacity: 0;
}

/* إخفاء النص الوصفي بشكل أولي وإظهاره عند hover */
.hover-lift-effect .card-description-content {
  position: absolute;
  bottom: -120px;
  left: 0;
  right: 0;
  padding: 1rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease;
  z-index: 2;
}

.hover-lift-effect:hover .card-description-content {
  bottom: 0;
  opacity: 1;
  transform: translateY(0);
}

/* تنسيق النص الوصفي */
.card-description-content p {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  line-height: 1.6;
}

/* تنسيق زر اقرأ المزيد - تأثير مشابه لـ service-blog-card */
.card-description-content .read-more {
  display: inline-block;
  color: #10B981;
  font-weight: 600;
  transition: color 0.3s ease;
  text-decoration: none;
  margin-top: 0.5rem;
}

.card-description-content .read-more .arrow {
  display: inline-block;
  margin-right: 0.5rem;
  transition: transform 0.3s ease;
}

.card-description-content .read-more:hover {
  color: #0e8f6b;
}

.card-description-content .read-more:hover .arrow {
  transform: translateX(-4px);
}

/* تأثير zoom للصورة */
.hover-lift-effect:hover .card-img-top {
  transform: scale(1.05);
}

/* تأثير الخلفية */
.hover-lift-effect.card::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -100%;
  background: #153517;
  opacity: 0.2;
  width: 100%;
  height: 100%;
  transition: 0.5s;
  z-index: 0;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.hover-lift-effect.card:hover::before {
  bottom: 0;
  z-index: 1;
  opacity: 0.8;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.hover-lift-effect.card:hover {
  color: white;
}

/* تنسيق البطاقات في صفحات التأمين - متناسق مع style.rtl.css */
.service-content .card {
  border: none;
  border-radius: 0;
  box-shadow: 0 5px 63.7px 6.3px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  background-color: #fff;
}

.service-content .card:hover {
  transform: translateY(-5px);
  box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.1);
}

.service-content .card .card-body {
  padding: 30px 25px;
}

/* تنسيق العنوان الفرعي داخل البطاقات */
.service-content .card .in-sv-section-title {
  margin-bottom: 20px;
}

.service-content .card .in-sv-section-title .in-sv-subtitle {
  margin-bottom: 20px;
  font-size: 15px;
  padding: 3px 12px;
  color: #fff;
  background-color: var(--main-sv-color);
  display: inline-block;
  font-family: var(--sv-heading-font);
}

/* تنسيق القوائم داخل البطاقات */
.service-content .card .card-body ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-content .card .card-body ul li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #e9ecef;
  font-size: 15px;
  line-height: 1.6;
  color: #202020;
  text-align: right;
  direction: rtl;
}

.service-content .card .card-body ul li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.service-content .card .card-body ul li i {
  margin-left: 12px;
  margin-right: 0;
  font-size: 16px;
  margin-top: 3px;
  flex-shrink: 0;
}

.service-content .card .card-body ul li span {
  flex: 1;
  line-height: 1.6;
}

.service-content .card .card-body ul li .text-success {
  color: var(--base-sv-color);
}

.service-content .card .card-body ul li .text-info {
  color: var(--main-sv-color);
}

.service-content .card .card-body ul li .text-primary {
  color: var(--main-sv-color);
}

/* تنسيق responsive */
@media (max-width: 768px) {
  .service-content .card .card-body {
    padding: 25px 20px;
  }
  
  .service-content .card .card-body ul li {
    font-size: 14px;
    margin-bottom: 12px;
    padding-bottom: 12px;
  }
}
