/* Services Page Styling */

/* Services Introduction Section */
.services-intro {
  padding: 80px 0;
}

.services-img {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
}

.services-img img {
  border-radius: 10px;
  transition: all 0.5s ease;
}

.services-img:hover img {
  transform: scale(1.05);
}

/* Services Section */
.services {
  padding: 80px 0;
  background: linear-gradient(rgba(0, 141, 210, 0.05), rgba(0, 141, 210, 0.05)), #f8f9fa;
}

.services .row {
  display: flex;
  flex-wrap: wrap;
}

.services .col-lg-4,
.services .col-md-6 {
  display: flex;
  margin-bottom: 30px;
  padding: 0 15px;
}

.service-box {
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
  height: 100%;
  width: 100%;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  border-bottom: 4px solid var(--accent-color);
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
}

.service-box:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 141, 210, 0.2);
}

.service-box:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 0;
  background: var(--primary-color);
  transition: all 0.5s ease;
  z-index: -1;
}

.service-box:hover:before {
  height: 100%;
}

.icon-container {
  width: 70px;
  height: 70px;
  background: rgba(0, 141, 210, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.service-box:hover .icon-container {
  background: var(--accent-color);
}

.icon-container i {
  font-size: 30px;
  color: var(--primary-color);
  transition: all 0.3s ease;
}

.service-box:hover .icon-container i {
  color: var(--dark-color);
}

.service-box h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--primary-color);
  position: relative;
  padding-bottom: 10px;
  transition: all 0.3s ease;
}

.service-box h3:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--accent-color);
  transition: all 0.3s ease;
}

.service-box:hover h3:after {
  width: 60px;
}

.service-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  flex-grow: 1;
}

.service-list li {
  padding: 8px 0;
  font-size: 15px;
  color: #666;
  border-bottom: 1px dashed #eee;
  transition: all 0.3s ease;
}

.service-list li:last-child {
  border-bottom: none;
}

.service-list li i {
  color: var(--accent-color);
  margin-right: 10px;
  font-size: 14px;
}

.service-box:hover .service-list li {
  padding-left: 5px;
}

.read-more {
  display: inline-block;
  font-weight: 600;
  color: var(--primary-color);
  transition: all 0.3s ease;
  text-decoration: none;
  margin-top: auto;
}

.read-more i {
  margin-left: 5px;
  transition: all 0.3s ease;
}

.read-more:hover {
  color: var(--accent-color);
}

.read-more:hover i {
  transform: translateX(5px);
}

/* CTA Section */
.cta {
  background: linear-gradient(rgba(0, 141, 210, 0.9), rgba(0, 160, 227, 0.9)), url("../images/cta-bg.jpg") fixed center center;
  background-size: cover;
  padding: 60px 0;
  color: #fff;
}

.cta h3 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 20px;
}

.cta p {
  font-size: 16px;
  margin-bottom: 0;
}

.cta-btn {
  font-family: "Raleway", sans-serif;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 1px;
  display: inline-block;
  padding: 12px 30px;
  border-radius: 50px;
  transition: 0.5s;
  margin: 10px;
  color: var(--dark-color);
  background: var(--accent-color);
  box-shadow: 0 5px 15px rgba(176, 203, 31, 0.4);
}

.cta-btn:hover {
  background: #fff;
  color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.3);
}

.cta-btn-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Responsive Styles */
@media (max-width: 1199px) {
  .service-box h3 {
    font-size: 20px;
  }
  
  .icon-container {
    width: 60px;
    height: 60px;
  }
  
  .icon-container i {
    font-size: 25px;
  }
}

@media (max-width: 991px) {
  .services-intro, .services {
    padding: 60px 0;
  }
  
  .cta {
    text-align: center;
  }
  
  .cta .text-lg-start {
    text-align: center !important;
  }
  
  .cta-btn-container {
    margin-top: 20px;
  }
}

@media (max-width: 767px) {
  .services-intro, .services {
    padding: 50px 0;
  }
  
  .services-img {
    margin-bottom: 30px;
  }
  
  .service-box {
    margin-bottom: 30px;
    height: auto;
  }
  
  .services .col-lg-4,
  .services .col-md-6 {
    padding: 0 10px;
  }
  
  .cta {
    padding: 40px 0;
  }
  
  .cta h3 {
    font-size: 24px;
  }
}

@media (max-width: 575px) {
  .service-box {
    padding: 20px;
  }
  
  .service-box h3 {
    font-size: 18px;
  }
  
  .icon-container {
    width: 50px;
    height: 50px;
  }
  
  .icon-container i {
    font-size: 20px;
  }
}
