/* Features section horizontal layout */
.features {
  padding: 60px 0;
  background: #f8f9fa;
}

.features-horizontal-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.features .feature-item {
  flex: 1;
  min-width: 150px;
  max-width: 200px;
}

.features .feature-box {
  background: #fff;
  padding: 20px 15px;
  text-align: center;
  border-radius: 8px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease-in-out;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.features .feature-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
}

.features .feature-box i {
  font-size: 24px;
  color: var(--color-primary);
  margin-bottom: 10px;
}

.features .feature-box h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-secondary);
  margin: 0;
  line-height: 1.2;
}

/* Services section specific - Updated with properly targeted icon selectors */
.services .service-box {
  padding: 30px 20px;
  text-align: center;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 0 29px 0 rgba(18, 66, 101, 0.08);
  transition: all 0.3s ease-in-out;
  border-bottom: 3px solid #fff;
  height: 100%;
}

.services .service-box:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 40px rgba(18, 66, 101, 0.15);
}

.services .service-box i.icon {
  font-size: 64px; /* Much larger icons for better visibility */
  color: var(--color-primary);
  margin-bottom: 20px;
  display: block;
  transition: 0.5s;
}

.services .service-box h3 {
  font-weight: 700;
  margin: 10px 0 15px 0;
  font-size: 20px;
  color: var(--color-secondary);
  line-height: 1.3;
}

.services .service-box p {
  line-height: 1.5;
  font-size: 14px;
  margin-bottom: 15px;
  color: color-mix(in srgb, var(--color-default), transparent 20%);
}

.services .service-box ul {
  list-style: none;
  padding: 0;
  text-align: left;
  margin-bottom: 20px;
}

.services .service-box ul li {
  padding: 5px 0;
  font-size: 13px;
  color: color-mix(in srgb, var(--color-default), transparent 30%);
  line-height: 1.4;
  position: relative;
  padding-left: 20px;
}

.services .service-box ul li:before {
  content: "\f00c";
  font-family: "bootstrap-icons";
  color: var(--color-primary);
  margin-right: 6px;
  font-size: 10px;
  position: absolute;
  left: 0;
  top: 6px;
}

/* Color variations for service boxes */
.services .service-box.blue {
  border-bottom-color: #007bff;
}

.services .service-box.blue:hover {
  border-bottom-color: #007bff;
}

.services .service-box.orange {
  border-bottom-color: #fd7e14;
}

.services .service-box.orange:hover {
  border-bottom-color: #fd7e14;
}

.services .service-box.green {
  border-bottom-color: #28a745;
}

.services .service-box.green:hover {
  border-bottom-color: #28a745;
}

.services .service-box.red {
  border-bottom-color: #dc3545;
}

.services .service-box.red:hover {
  border-bottom-color: #dc3545;
}

.services .service-box.purple {
  border-bottom-color: #6f42c1;
}

.services .service-box.purple:hover {
  border-bottom-color: #6f42c1;
}

.services .service-box.pink {
  border-bottom-color: #e83e8c;
}

.services .service-box.pink:hover {
  border-bottom-color: #e83e8c;
}

.services .service-box.teal {
  border-bottom-color: #20c997;
}

.services .service-box.teal:hover {
  border-bottom-color: #20c997;
}

.services .service-box.yellow {
  border-bottom-color: #ffc107;
}

.services .service-box.yellow:hover {
  border-bottom-color: #ffc107;
}

/* Button styling */
.services .service-box .btn {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  background: transparent;
}

.services .service-box .btn:hover {
  background: var(--color-primary);
  color: white;
}

/* Responsive design for smaller screens */
@media (max-width: 768px) {
  .features-horizontal-container {
    justify-content: center;
    gap: 15px;
  }
  
  .features .feature-item {
    min-width: 120px;
    max-width: 150px;
  }
  
  .features .feature-box {
    padding: 15px 10px;
  }
  
  .features .feature-box h3 {
    font-size: 12px;
  }

  .services .service-box {
    padding: 25px 15px;
    margin-bottom: 30px;
  }

  .services .service-box i.icon {
    font-size: 50px; /* Proportional for tablet */
  }

  .services .service-box h3 {
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .features-horizontal-container {
    flex-direction: column;
    gap: 10px;
  }
  
  .features .feature-item {
    width: 100%;
    max-width: none;
  }

  .services .service-box i.icon {
    font-size: 43px; /* Proportional for mobile */
  }
}