.services-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(3, 1fr);
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

/* Dynamic overrides */
{% if module.layout.gap_size %}
.services-grid {
  gap: rem;
}
{% endif %}

{% if module.layout.columns_desktop %}
.services-grid {
  grid-template-columns: repeat(, 1fr);
}
{% endif %}

{% if module.layout.max_width %}
.services-grid {
  max-width: px;
}
{% endif %}

{% if module.layout.padding %}
.services-grid {
  padding: rem;
}
{% endif %}

.service-item {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
}

/* Dynamic styling overrides */
{% if module.styling.card_background.color %}
.service-item {
  background: ;
}
{% endif %}

{% if module.styling.card_border_radius %}
.service-item {
  border-radius: px;
}
{% endif %}

{% if module.styling.card_shadow_enabled == false %}
.service-item {
  box-shadow: none;
}
{% endif %}

.service-item[data-link]:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 8px 16px rgba(0, 0, 0, 0.15);
}

{% if module.styling.card_shadow_enabled == false %}
.service-item[data-link]:hover {
  box-shadow: none;
}
{% endif %}

.service-image {
  height: 200px;
  background-size: cover;
  background-position: center;
}

{% if module.styling.image_height %}
.service-image {
  height: px;
}
{% endif %}

.service-item h3 {
  padding: 1rem;
  margin: 0;
  font-size: 1.75rem;
  color: #bcd45b;
  font-family: neue-aachen-pro, sans-serif;
  font-weight: 300;
  font-style: normal;
}

/* Dynamic title styling */
{% if module.styling.title_padding %}
.service-item h3 {
  padding: rem;
}
{% endif %}

{% if module.styling.title_font_size %}
.service-item h3 {
  font-size: rem;
}
{% endif %}

{% if module.styling.title_color.color %}
.service-item h3 {
  color: ;
}
{% endif %}

.description {
  padding: 0 1rem 1rem;
  color: #666;
}

/* Dynamic description styling */
{% if module.styling.description_padding_top or module.styling.description_padding_horizontal or module.styling.description_padding_bottom %}
.description {
  padding: rem rem rem;
}
{% endif %}

{% if module.styling.description_color.color %}
.description {
  color: ;
}
{% endif %}

/* Mobile Accordion Styles */
@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
    padding: 1rem;
  }
  
  .service-item {
    cursor: pointer;
    transition: all 0.3s ease;
  }
  
  .description {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 1rem;
  }
  
  .service-item.active .description {
    max-height: 500px; /* Adjust based on content needs */
    padding-bottom: 1rem;
  }
}
