/* Support Services Section */
section#support-services {
  padding: 4rem 0;
  background: #fff;
}

section#support-services .lgd-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

section#support-services .lgd-row {
  margin: 0;
  padding: 0;
}

/* Hide any duplicate headers from views in support services */
section#support-services .view header {
  display: none;
}

/* Only override the nested region containers, not the main section container */
section#support-services .lgd-region--content-bottom .lgd-container {
  max-width: none;
  margin: 0;
  padding: 0;
}

section#support-services .lgd-region__inner {
  margin: 0;
  padding: 0;
}

/* Service Landing Page Cards */
.service-landing-page__services {
  padding: 4rem 0;
  background: #fff;
}

.service-landing-page__services .lgd-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.service-landing-page__services .lgd-row {
  margin: 0;
  padding: 0;
}

/* Override the field items container to use grid */
.service-landing-page__services .field__items {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 2rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Override the individual service items */
.service-landing-page__services .service-landing-page__service {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Remove the lgd-row__one-third class effects */
.service-landing-page__services .lgd-row__one-third {
  width: 100% !important;
  flex: none !important;
}

/* Support Services Card Layout */
section#support-services ul,
.service-landing-page__services ul {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Tablet breakpoint - 2 cards per row */
@media (max-width: 1024px) {
  section#support-services ul,
  .service-landing-page__services ul,
  .service-landing-page__services .field__items {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

/* Mobile breakpoint - 1 card per row */
@media (max-width: 768px) {
  section#support-services ul,
  .service-landing-page__services ul,
  .service-landing-page__services .field__items {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  section#support-services .lgd-container,
  .service-landing-page__services .lgd-container {
    padding: 0 16px;
  }
}

/* Make the entire card a flex container */
section#support-services ul li,
.service-landing-page__services ul li {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

section#support-services ul li:hover,
.service-landing-page__services ul li:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

section#support-services ul li a,
.service-landing-page__services ul li a {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}

/* Image styling for support services cards */
section#support-services .field--name-field-teaser-image,
.service-landing-page__services .field--name-field-teaser-image {
  position: relative;
  overflow: hidden;
  height: 200px;
}

section#support-services .field--name-field-teaser-image img,
.service-landing-page__services .field--name-field-teaser-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

section#support-services ul li:hover .field--name-field-teaser-image img,
.service-landing-page__services ul li:hover .field--name-field-teaser-image img {
  transform: scale(1.05);
}

/* Card content styling for support services */
section#support-services .card-info,
.service-landing-page__services .card-info {
  display: flex;
  flex-direction: row;
  padding: 1.5rem;
  justify-content: space-between;
  align-items: flex-start;
}

section#support-services .text-wrapper,
.service-landing-page__services .text-wrapper {
  flex: 1;
  margin-right: 1rem;
}

section#support-services .text-wrapper h2,
.service-landing-page__services .text-wrapper h2 {
  margin: 0 0 0.5rem 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  line-height: 1.3;
  transition: color 0.3s ease;
}

section#support-services ul li:hover .text-wrapper h2,
.service-landing-page__services ul li:hover .text-wrapper h2 {
  color: #fff;
}

section#support-services .text-wrapper p,
.service-landing-page__services .text-wrapper p {
  margin: 0 0 1rem 0;
  color: #666;
  font-size: 0.9rem;
  line-height: 1.4;
}

section#support-services .card-icon,
.service-landing-page__services .card-icon {
  flex-shrink: 0;
  margin-top: 0.5rem;
}

section#support-services .card-icon svg,
.service-landing-page__services .card-icon svg {
  width: 24px;
  height: 24px;
  fill: #218649;
  transition: fill 0.2s ease;
}

section#support-services ul li:hover .card-icon svg,
.service-landing-page__services ul li:hover .card-icon svg {
  fill: #fff;
}

/* Make cards relative for absolute positioning */
section#support-services article,
.service-landing-page__services article {
  position: relative;
} 