/* ===============================================
   Services Section - Medium Screens Fix
   Specific CSS for tablet and medium screen sizes
   =============================================== */

/* Medium screens (768px to 1199px) - Force compact design */
@media screen and (min-width: 768px) and (max-width: 1199px) {
  
  /* Container adjustments */
  .features_area {
    padding: 50px 0 !important;
  }
  
  .features_area .main_title {
    margin-bottom: 40px !important;
  }
  
  .features_area .main_title h2 {
    font-size: 2rem !important;
    margin-bottom: 20px !important;
  }
  
  .features_area .main_title p {
    font-size: 0.9rem !important;
    max-width: 500px !important;
  }
  
  /* Grid adjustments */
  .row.feature_inner {
    margin-bottom: 20px !important;
  }
  
  /* Force small card design */
  .features_area .feature_item {
    background: #ffffff !important;
    border-radius: 10px !important;
    padding: 12px 8px !important;
    margin-bottom: 12px !important;
    min-height: 160px !important;
    max-height: 180px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
    border: 1px solid #f0f0f0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    overflow: hidden !important;
    position: relative !important;
  }
  
  /* Icon container */
  .features_area .service-icon {
    margin-bottom: 8px !important;
    flex-shrink: 0 !important;
  }
  
  .features_area .service-icon img,
  .features_area .feature_item img {
    width: 32px !important;
    height: 32px !important;
    margin-bottom: 0 !important;
    object-fit: contain !important;
  }
  
  /* Content area */
  .features_area .service-content {
    flex-grow: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
  }
  
  /* Title styling */
  .features_area .service-content h4,
  .features_area .feature_item h4 {
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    margin-bottom: 4px !important;
    line-height: 1.2 !important;
    color: #333 !important;
    text-transform: none !important;
  }
  
  /* Description styling */
  .features_area .service-content p,
  .features_area .feature_item p {
    font-size: 0.65rem !important;
    line-height: 1.1 !important;
    margin-bottom: 0 !important;
    color: #666 !important;
    overflow: hidden !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
  }
  
  /* Hover effects - minimal */
  .features_area .feature_item:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.1) !important;
  }
  
  .features_area .feature_item:hover .service-content h4,
  .features_area .feature_item:hover h4 {
    color: #4f46e5 !important;
    background: none !important;
    -webkit-text-fill-color: #4f46e5 !important;
  }
  
  /* Remove number badge for cleaner look */
  .features_area .feature_item::after {
    display: none !important;
  }
  
  /* Column adjustments for better spacing */
  .col-md-6 {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }
  
  /* Ensure cards don't exceed container */
  .features_area .feature_item {
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* Specific adjustments for different medium screen ranges */

/* Large tablets (992px to 1199px) */
@media screen and (min-width: 992px) and (max-width: 1199px) {
  .features_area .feature_item {
    min-height: 170px !important;
    max-height: 190px !important;
    padding: 14px 10px !important;
  }
  
  .features_area .service-icon img,
  .features_area .feature_item img {
    width: 36px !important;
    height: 36px !important;
  }
  
  .features_area .service-content h4,
  .features_area .feature_item h4 {
    font-size: 0.8rem !important;
  }
  
  .features_area .service-content p,
  .features_area .feature_item p {
    font-size: 0.7rem !important;
    -webkit-line-clamp: 4 !important;
  }
}

/* Medium tablets (768px to 991px) */
@media screen and (min-width: 768px) and (max-width: 991px) {
  .features_area .feature_item {
    min-height: 150px !important;
    max-height: 170px !important;
    padding: 10px 6px !important;
  }
  
  .features_area .service-icon img,
  .features_area .feature_item img {
    width: 28px !important;
    height: 28px !important;
  }
  
  .features_area .service-content h4,
  .features_area .feature_item h4 {
    font-size: 0.7rem !important;
  }
  
  .features_area .service-content p,
  .features_area .feature_item p {
    font-size: 0.6rem !important;
    -webkit-line-clamp: 3 !important;
  }
}

/* Force override any conflicting styles */
@media screen and (min-width: 768px) and (max-width: 1199px) {
  .features_area .feature_item {
    transition: all 0.2s ease !important;
  }
  
  /* Remove any background gradients or complex styling */
  .features_area .feature_item::before {
    display: none !important;
  }
  
  /* Ensure text is readable */
  .features_area .service-content h4,
  .features_area .feature_item h4 {
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: unset !important;
    background-clip: unset !important;
  }
}