/**
 * Services Section Specific Styles
 * Path: styles/services.css
 */

/* Hero Cards */
#services .service-card {
  border-top: 3px solid transparent;
  transition: all 0.3s ease;
  background: var(--bs-body-bg);
}

#services .service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
  border-top-color: #bf2626;
}

#services .service-icon {
  color: #bf2626;
  transition: all 0.3s ease;
  display: inline-block;
}

#services .service-card:hover .service-icon {
  transform: scale(1.1);
  color: #1a8dea;
}

/* RTL Support */
[dir="rtl"] #services .service-card:hover {
  border-top-color: #1a8dea;
}

[dir="rtl"] #services .service-card:hover .service-icon {
  color: #bf2626;
}

/* ============================================
   OFFERING CARDS - IMAGE FITTING FIX
   ============================================ */
#services .offering-item {
  transition: all 0.3s ease;
  border: 1px solid var(--bs-border-color);
  overflow: hidden;
}

#services .offering-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12) !important;
  border-color: #bf2626;
}

[dir="rtl"] #services .offering-item:hover {
  border-color: #1a8dea;
}

/* Image Wrapper - Fixed Height Container */
#services .card-img-wrapper {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: var(--bs-secondary-bg);
}

/* Image Fitting */
#services .card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
}

/* Alternative: Use object-fit: contain if you want to see the whole image with padding */
/*
#services .card-img-wrapper img {
  object-fit: contain;
  padding: 1rem;
  background: var(--bs-light);
}
*/

#services .offering-item:hover .card-img-wrapper img {
  transform: scale(1.05);
}

/* Card Body */
#services .offering-item .card-body {
  padding: 1.25rem;
}

#services .offering-item .card-title {
  color: var(--bs-body-color);
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

#services .offering-item .card-text {
  line-height: 1.5;
  font-size: 0.875rem;
}

/* Section Header */
#services .section-title {
  position: relative;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}

#services .section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #bf2626, #1a8dea);
  border-radius: 2px;
}

[dir="rtl"] #services .section-title::after {
  background: linear-gradient(90deg, #1a8dea, #bf2626);
}

/* Dark Mode Support */
[data-bs-theme="dark"] #services .service-card,
[data-bs-theme="dark"] #services .offering-item {
  background: var(--bs-secondary-bg);
}

[data-bs-theme="dark"] #services .card-img-wrapper {
  background: var(--bs-dark-bg-subtle);
}

/* Responsive */
@media (max-width: 767.98px) {
  #services .service-card {
    margin-bottom: 1rem;
  }
  
  #services .card-img-wrapper {
    height: 160px;
  }
}

@media (max-width: 575.98px) {
  #services .card-img-wrapper {
    height: 140px;
  }
}

/* Print Styles */
@media print {
  #services .service-card,
  #services .offering-item {
    break-inside: avoid;
    box-shadow: none !important;
    border: 1px solid #ddd !important;
    transform: none !important;
  }
  
  #services .card-img-wrapper img {
    transform: none !important;
  }
}