/* =========================================================
   Services List / Service Detail Page Styles
   File: css/services/services-list.css
   ========================================================= */

/* Wrapper spacing */
.service-detail-wrapper {
  padding-top: 0;
}

.service-detail-wrapper .container-fluid {
  max-width: 1600px; /* keeps content wide but not infinite */
}

/* Main content column */
.service-detail-content {
  display: block;
}

/* Headings inside service sections */
.service-section-heading {
  font-size: 1.75rem;
  line-height: 1.2;
  font-weight: 700;
  margin: 0 0 1rem 0;
}

/* =========================================================
   Grid Sections (Image + Content)
   ========================================================= */

.service-grid-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 3rem;
  align-items: start;
}

.service-grid-image {
  width: 100%;
}

.service-grid-content {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.service-grid-content h2 {
  margin-top: 0;
}

/* Two-column layout on lg+ */
@media (min-width: 992px) {
  .service-grid-section {
    grid-template-columns: 1fr 1.15fr;
    gap: 2.5rem;
    align-items: start;
  }

  /* Image left */
  .service-grid-section-image-left .service-grid-image {
    order: 1;
  }
  .service-grid-section-image-left .service-grid-content {
    order: 2;
  }

  /* Image right */
  .service-grid-section-image-right .service-grid-content {
    order: 1;
  }
  .service-grid-section-image-right .service-grid-image {
    order: 2;
  }
}

/* Images */
.service-detail-image {
  width: 100%;
  height: 300px;
  display: block;
  border-radius: 14px;
  object-fit: cover;
  object-position: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

/* Taller images on large screens to better match text content height */
@media (min-width: 992px) {
  .service-grid-section .service-detail-image {
    height: 600px;
  }
}

/* Responsive height adjustments */
@media (max-width: 767.98px) {
  .service-detail-image {
    height: 250px;
  }
}

@media (max-width: 575.98px) {
  .service-detail-image {
    height: 200px;
  }
}

/* Lead paragraph in intro */
.service-detail-content .lead {
  font-size: 1.1rem;
  line-height: 1.6;
}

/* Content sections without grid */
.service-content-section {
  margin-bottom: 2.5rem;
}

/* Intro section spacing */
.service-intro-section {
  margin-bottom: 3rem;
}

/* =========================================================
   Lists (checklists / services / benefits)
   ========================================================= */

.services-list,
.benefits-list,
.facilities-list,
.custom-list-style-1 {
  margin: 0;
  padding: 0;
}

.services-list li,
.benefits-list li,
.facilities-list li,
.custom-list-style-1 li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}

.services-list li i,
.benefits-list li i,
.facilities-list li i,
.custom-list-style-1 li i {
  margin-top: 0.25rem;
  font-size: 0.95rem;
}

/* Make FontAwesome check icon readable even with theme colors */
.services-list li i.fa-check,
.benefits-list li i.fa-check,
.facilities-list li i.fa-check,
.custom-list-style-1 li i.fa-check {
  opacity: 0.9;
}

/* =========================================================
   Sidebar Cards
   ========================================================= */

.service-sidebar-card {
  border: 0;
  border-radius: 16px;
  overflow: hidden;
}

.service-sidebar-title {
  margin-bottom: 1.25rem;
}

/* Reduce empty space in sidebar area */
@media (min-width: 992px) {
  .col-lg-3.order-lg-1 {
    padding-right: 1.5rem;
  }
  
  .col-lg-9.order-lg-2 {
    padding-left: 1.5rem;
  }
}

/* "All Services" nav list */
.custom-nav-list-effect-1 li a {
  display: block;
  padding: 0.25rem 0;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.custom-nav-list-effect-1 li a:hover {
  transform: translateX(4px);
  opacity: 0.95;
}

.custom-nav-list-effect-1 li.active a {
  position: relative;
}

.custom-nav-list-effect-1 li.active a::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 70%;
  border-radius: 10px;
  background: currentColor;
  opacity: 0.25;
}

/* Callback form spacing */
.custom-form-style-1 .form-control {
  border-radius: 12px;
  height: 48px;
}

.custom-form-style-1 select.form-control {
  height: 48px;
}

.custom-form-style-1 .btn {
  border-radius: 14px;
}

/* =========================================================
   Responsive tweaks
   ========================================================= */

@media (max-width: 991.98px) {
  .service-detail-wrapper .container-fluid {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .service-grid-section {
    margin-bottom: 2.25rem;
  }

  .service-section-heading {
    font-size: 1.5rem;
  }
}

@media (max-width: 575.98px) {
  .service-detail-image {
    border-radius: 12px;
  }

  .service-detail-content .lead {
    font-size: 1.05rem;
  }
}
