/* Services Block Styles */
.services-block {
  width: 100%;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 0;
  padding-right: 0;
}

.services-block.alignfull {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: clamp(20px, 5vw, 40px) clamp(20px, 6vw, 60px);
  border-radius: 20px;
  background: linear-gradient(to bottom, #1D1D1D, #141414);
  overflow: hidden;
  font-family: Raleway, sans-serif;
  margin-bottom: 40px;
  width: 100%;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  min-height: 375px;
}

/* Container for services block */
.services-block-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.service-border {
  position: absolute;
  top: 0; 
  left: 0; 
  right: 0; 
  bottom: 0;
  padding: 1px;
  border-radius: 20px;
  background: linear-gradient(to bottom, #898989, #494949);
  -webkit-mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  pointer-events: none;
}

.service-content {
  display: flex;
  flex-direction: row;
  gap: 40px;
  flex-wrap: wrap;
}

.service-text-col {
  flex: 1;
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  min-width: 280px;
}

.service-title {
  font-size: clamp(20px, 3vw, 24px);
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 16px;
}

.service-description {
  font-size: clamp(16px, 2.5vw, 18px);
  font-weight: 400;
  color: #A0A0A0;
  line-height: 1.6;
  margin-bottom: 20px;
}

.service-image-col {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-width: 280px;
}

.service-animation-container,
.service-image-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.service-image {
  max-width: 100%;
  height: auto;
  max-height: 450px;
  object-fit: contain;
  border-radius: 8px;
}

/* Responsive styles */
@media (max-width: 992px) {
  .service-content {
    flex-direction: column !important;
  }
  
  .service-image-col {
    order: 2; /* force image below text */
  }
  
  .service-card {
    min-height: auto; /* Remove fixed min-height on mobile */
    padding: clamp(15px, 4vw, 30px) clamp(15px, 5vw, 40px); /* Reduce padding on mobile */
  }
}

/* Small mobile devices */
@media (max-width: 576px) {
  .service-card {
    min-height: 0; /* Completely remove min-height on small devices */
    padding: 20px 25px; /* Fixed smaller padding on small devices */
  }
  
  .service-title {
    font-size: 20px; /* Smaller title on mobile */
    margin-bottom: 10px;
  }
  
  .service-description {
    font-size: 16px; /* Smaller description text on mobile */
    margin-bottom: 15px;
  }
  
  .service-animation-container,
  .service-image-container {
    max-height: 180px; /* Limit media height on small devices */
    overflow: hidden;
  }
  
  .service-image {
    max-height: 180px;
  }
}
