/* 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;
}

/* Neutralise lgd-row grid on homepage so it doesn't break layout (flex/width/margin) */
section#support-services .lgd-row {
  display: block;
  margin: 0;
  padding: 0;
}
section#support-services .lgd-row > * {
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
}

/* Projects slider (like achieve-homepage.surge.sh) */
section#support-services .projects-slider__intro {
  margin-bottom: 1.5rem;
  color: #505a5f;
}

section#support-services .projects-slider {
  position: relative;
  margin: 0 -24px;
  padding: 0 48px;
}

section#support-services .projects-slider__viewport {
  overflow: hidden;
}

section#support-services .projects-slider__track {
  padding: 0.5rem 0 1rem;
  margin: 0 -24px;
  padding-left: 24px;
  padding-right: 24px;
  transition: transform 0.35s ease;
}

section#support-services .projects-slider__track ul {
  display: flex;
  flex-wrap: nowrap;
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
  min-width: min-content;
}

section#support-services .projects-slider__track ul li {
  flex: 0 0 auto;
  width: 320px;
  max-width: 320px;
}

section#support-services .projects-slider__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 2px solid #218649;
  border-radius: 50%;
  background: #fff;
  color: #218649;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

section#support-services .projects-slider__btn:hover {
  background: #218649;
  color: #fff;
}

section#support-services .projects-slider__btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  border-color: #b1b4b6;
  color: #b1b4b6;
}

section#support-services .projects-slider__btn:disabled:hover {
  background: #fff;
  color: #b1b4b6;
}

section#support-services .projects-slider__prev {
  left: 0;
}

section#support-services .projects-slider__next {
  right: 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; slider keeps flex with smaller cards */
@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;
  }
  
  section#support-services .projects-slider {
    margin: 0 -16px;
    padding: 0 44px;
  }
  
  section#support-services .projects-slider__track ul li {
    width: 280px;
    max-width: 280px;
  }
}

@media (max-width: 480px) {
  section#support-services .projects-slider__track ul li {
    width: 260px;
    max-width: 260px;
  }
}

/* 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;
} 