.hero-2-service {
  padding: 80px 0;
  min-height: 600px;
  position: relative;
}

.hero-2-service__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.hero-2-service__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

.hero-2-service__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  min-height: 500px;
}

.hero-2-service__image-section {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-2-service__image-wrapper {
  position: relative;
  width: 100%;
  max-width: 500px;
}

.hero-2-service__image {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.hero-2-service__text-section {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.hero-2-service__header {
  margin-bottom: 20px;
}

.hero-2-service__title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.2;
}

.hero-2-service__subtitle {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 16px;
  opacity: 0.9;
}

.hero-2-service__description {
  font-size: 1rem;
  line-height: 1.6;
  opacity: 0.8;
  margin-bottom: 0;
}

.hero-2-service__blocks {
  display: grid;
  gap: 20px;
  /* Default layout (1x3 - single column) */
  grid-template-columns: 1fr;
}

/* Layout variations - all single column layouts */
.hero-2-service__blocks--1x1 {
  grid-template-columns: 1fr !important;
  max-width: 400px;
}

.hero-2-service__blocks--1x2 {
  grid-template-columns: 1fr !important;
  max-width: 400px;
}

.hero-2-service__blocks--1x3 {
  grid-template-columns: 1fr !important;
  max-width: 400px;
}

/* Multi-column layouts */
.hero-2-service__blocks--2x1 {
  grid-template-columns: 1fr 1fr !important;
  gap: 16px;
}

.hero-2-service__blocks--2x2 {
  grid-template-columns: 1fr 1fr !important;
  gap: 16px;
}

.hero-2-service__blocks--2x3 {
  grid-template-columns: 1fr 1fr !important;
  gap: 16px;
}

.hero-2-service__blocks--3x1 {
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 16px;
}

.hero-2-service__blocks--3x2 {
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 16px;
}

/* Reverse layout styles */
.hero-2-service--reverse .hero-2-service__content {
  grid-template-columns: 1fr 1fr;
}

.hero-2-service--reverse .hero-2-service__image-section {
  order: 2;
}

.hero-2-service--reverse .hero-2-service__text-section {
  order: 1;
}

/* Full width image styles */
.hero-2-service--full-width-image .hero-2-service__content {
  grid-template-columns: 1fr 1fr;
}

.hero-2-service--full-width-image .hero-2-service__image-section {
  position: relative;
  margin: -80px -20px -80px 0; /* Extend beyond container padding */
  padding: 80px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-2-service--full-width-image .hero-2-service__image-wrapper {
  width: 100%;
  height: 100%;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-2-service--full-width-image .hero-2-service__image {
  width: 100%;
  height: 100%;
  min-height: 500px;
  object-fit: contain;
}

/* When reversed, extend to the right instead */
.hero-2-service--full-width-image.hero-2-service--reverse .hero-2-service__image-section {
  margin: -80px 0 -80px -20px; /* Extend to the right when reversed */
}

.hero-2-service__block {
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.hero-2-service__block:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.hero-2-service__block-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: #333;
  line-height: 1.3;
}

.hero-2-service__block-description {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #666;
  margin: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero-2-service {
    padding: 60px 0;
  }

  .hero-2-service__content {
    gap: 40px;
  }

  .hero-2-service__title {
    font-size: 2.2rem;
  }
  
  /* Adjust layouts for tablet */
  .hero-2-service__blocks--3x1,
  .hero-2-service__blocks--3x2 {
    grid-template-columns: 1fr 1fr;
  }

  /* Responsive adjustments for full width */
  .hero-2-service--full-width-image .hero-2-service__image-section {
    margin: -60px -20px -60px 0;
    padding: 60px 0;
  }

  .hero-2-service--full-width-image .hero-2-service__image-wrapper {
    min-height: 400px;
  }

  .hero-2-service--full-width-image .hero-2-service__image {
    min-height: 400px;
    object-fit: contain;
  }

  .hero-2-service--full-width-image.hero-2-service--reverse .hero-2-service__image-section {
    margin: -60px 0 -60px -20px;
  }
}

@media (max-width: 768px) {
  .hero-2-service {
    padding: 40px 0;
  }

  .hero-2-service__content {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero-2-service__title {
    font-size: 2rem;
  }

  .hero-2-service__subtitle {
    font-size: 1.1rem;
  }

  .hero-2-service__description {
    font-size: 0.95rem;
  }

  .hero-2-service__image-wrapper {
    max-width: 400px;
  }
  
  /* All layouts become single column on mobile */
  .hero-2-service__blocks--2x1,
  .hero-2-service__blocks--2x2,
  .hero-2-service__blocks--2x3,
  .hero-2-service__blocks--3x1,
  .hero-2-service__blocks--3x2 {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Full width adjustments for mobile */
  .hero-2-service--full-width-image .hero-2-service__image-section {
    margin: -40px -16px 0 -16px; /* Full width on mobile */
    padding: 40px 0;
  }

  .hero-2-service--full-width-image .hero-2-service__image-wrapper {
    min-height: 300px;
  }

  .hero-2-service--full-width-image .hero-2-service__image {
    min-height: 300px;
    object-fit: contain;
  }

  .hero-2-service--full-width-image.hero-2-service--reverse .hero-2-service__image-section {
    margin: -40px -16px 0 -16px;
  }
}

@media (max-width: 480px) {
  .hero-2-service {
    padding: 30px 0;
  }

  .hero-2-service__container {
    padding: 0 16px;
  }

  .hero-2-service__title {
    font-size: 1.75rem;
  }

  .hero-2-service__subtitle {
    font-size: 1rem;
  }

  .hero-2-service__block {
    padding: 20px;
  }

  .hero-2-service__block-title {
    font-size: 1rem;
  }

  .hero-2-service__block-description {
    font-size: 0.9rem;
  }
}