/* General Section Styling */
.xactimate-estimating-services {
  background-color: #f8f9fa;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
  padding: 60px 0;
}

.xactimate-estimating-services .container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Header Section */
.xactimate-estimating-services .header-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.xactimate-estimating-services .header-content {
  text-align: center;
  margin-bottom: 30px;
}

.xactimate-heading {
  font-weight: 700;
  font-size: 2.5rem;
  color: #2a3f55;
  margin-bottom: 20px;
  text-transform: uppercase;
  position: relative;
}

.xactimate-heading::after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  background-color: #007bff;
  margin-top: 10px;
  border-radius: 2px;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

.xactimate-description {
  font-size: 1.2rem;
  color: #555;
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto;
}

/* Image Styling */
.xactimate-estimating-services .header-image {
  margin-top: 20px; /* Reduced gap between image and text */
}

.xactimate-estimating-services .header-image img {
  width: 400px; /* Set fixed width for image */
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.xactimate-estimating-services .header-image img:hover {
  transform: scale(1.05);
}

/* Mobile and Desktop Layout */
@media (min-width: 768px) {
  .header-section {
    flex-direction: row;
    justify-content: space-between;
  }
  
  .header-content {
    text-align: left;
    max-width: 60%;
  }
  
  .header-image {
    max-width: 40%; /* Reduce image width on large screens */
    margin-top: 0;
  }
}

/* Service Categories Section */
.xactimate-estimating-services .service-categories {
  text-align: center;
  margin: 60px 0;
}

.xactimate-estimating-services .service-heading {
  font-weight: 700;
  font-size: 2rem;
  color: #007bff;
  margin-bottom: 20px;
}

.xactimate-estimating-services .service-description {
  font-size: 1.2rem;
  color: #555;
  margin-bottom: 40px;
}

.xactimate-estimating-services .service-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.xactimate-estimating-services .service-item {
  background: #e1ecf9;
  padding: 15px 30px;
  border-radius: 30px;
  font-size: 1.2rem;
  color: #2a3f55;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(30, 47, 77, 0.1);
  transition: background-color 0.3s ease;
  cursor: pointer;
}

.xactimate-estimating-services .service-item:hover {
  background-color: #007bff;
  color: #fff;
}

/* Why Choose Us Section */
.xactimate-estimating-services .why-choose-us {
  text-align: center;
  margin: 50px 0;
}

.xactimate-estimating-services .why-choose-heading {
  font-weight: 700;
  font-size: 2rem;
  color: #2a3f55;
  margin-bottom: 20px;
}

.xactimate-estimating-services .why-choose-description {
  font-size: 1.2rem;
  color: #555;
  line-height: 1.8;
  margin-bottom: 30px;
  max-width: 50%;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}


.xactimate-estimating-services .why-choose-list {
  list-style: none;
  padding-left: 0;
  color: #555;
  font-weight: 500;
}

.xactimate-estimating-services .why-choose-list li {
  margin-bottom: 10px;
  font-size: 1.1rem;
}

/* Call to Action Button */
.xactimate-estimating-services .cta-section {
  text-align: center;
  margin: 50px 0;
}

.xactimate-estimating-services .cta-button {
  background-color: #007bff;
  color: #fff;
  font-size: 1rem;
  padding: 14px 14px;
  border-radius: 30px;
  text-decoration: none;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.xactimate-estimating-services .cta-button:hover {
  background-color: #0056b3;
  box-shadow: 0 4px 10px rgba(0, 123, 255, 0.3);
}

/* Contact Information */
.xactimate-estimating-services .contact-info {
  text-align: center;
  font-size: 1rem;
  color: #6c7a8a;
}

.xactimate-estimating-services .contact-info a {
  color: #007bff;
  font-weight: 600;
  transition: color 0.3s ease;
}

.xactimate-estimating-services .contact-info a:hover {
  color: #0056b3;
  text-decoration: underline;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .xactimate-estimating-services .header-section {
    flex-direction: column;
    text-align: center;
  }

  .xactimate-estimating-services .header-content {
    max-width: 100%;
  }

  .xactimate-estimating-services .header-image {
    max-width: 100%;
    margin-top: 20px;
  }
}
