/* ================================================
   LAMBANO - Services Section with News Structure
   Uniform cards like the news section
   ================================================ */

/* Clean service section background */
.service-section {
  background: #fafafa !important;
  padding: 80px 0 !important;
}

.service-section .outer-container {
  background: transparent !important;
  padding: 0 !important;
}

/* Hide fake backgrounds */
.service-section .bg-color,
.service-section .bg-color-2,
.service-section .outer-container:before,
.service-section .big-text {
  display: none !important;
}

/* Service cards with news structure */
.service-section .row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.service-section .service-block {
  width: 100%;
}

.service-block-one .inner-box {
  background: #ffffff;
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  border: 1px solid #e8e8e8;
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-block-one:hover .inner-box {
  transform: translateY(-8px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  border-color: var(--theme-color);
}

/* Image on top - exactly like news cards */
.service-block-one .inner-box figure.image-box {
  width: 100%;
  height: 280px;
  overflow: hidden;
  margin: 0;
  position: relative;
  background: #f5f5f5;
  order: -1;
}

.service-block-one .inner-box figure.image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s ease;
}

.service-block-one:hover .inner-box figure.image-box img {
  transform: scale(1.08);
}

/* Content area - same padding as news */
.service-block-one .inner-box h3 {
  padding: 28px 28px 0;
  margin-bottom: 15px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  order: 1;
}

.service-block-one .inner-box h3 a {
  color: #1a1a1a;
  transition: color 0.3s;
}

.service-block-one:hover .inner-box h3 a {
  color: var(--theme-color);
}

.service-block-one .inner-box p {
  padding: 0 28px;
  margin-bottom: 25px;
  font-size: 15px;
  line-height: 1.7;
  color: #666;
  flex-grow: 1;
  order: 2;
}

.service-block-one .inner-box .link-box {
  padding: 0 28px 28px;
  margin-top: auto;
  order: 3;
}

.service-block-one .inner-box .link-box a {
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--theme-color);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  transition: all 0.3s;
}

.service-block-one .inner-box .link-box a span {
  position: relative;
}

.service-block-one .inner-box .link-box a span::after {
  content: ' →';
  margin-left: 6px;
  transition: margin-left 0.3s;
}

.service-block-one:hover .inner-box .link-box a span::after {
  margin-left: 10px;
}

/* Top accent bar on hover */
.service-block-one .inner-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--theme-color);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s;
  z-index: 1;
}

.service-block-one:hover .inner-box::before {
  transform: scaleX(1);
}

/* Tablet - 3 columns */
@media (min-width: 768px) and (max-width: 1199px) {
  .service-section .row {
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
  }
}

/* Mobile - 2 columns */
@media (min-width: 576px) and (max-width: 767px) {
  .service-section .row {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .service-block-one .inner-box figure.image-box {
    height: 220px;
  }
}

/* Small mobile - 1 column */
@media (max-width: 575px) {
  .service-section .row {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .service-block-one .inner-box figure.image-box {
    height: 240px;
  }
}
