body {
  background: #f5f5f5;
}

.services-section {
  padding: 112px 0px;
}

@media (max-width: 767px) {
  .services-section {
    padding: 40px 0px;
  }
}

/* Responsive Grid Layout */
.services-section .grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.services-section .grid-column {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Cards */
.services-section .card-sm,
.services-section .card-lg {
  position: relative;
  color: white;
  padding: 1.5rem;
  border-bottom: 4px solid #E84F3B;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background-color: #000;
  overflow: hidden;
  cursor: default;

  /* Smooth entry animation */
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: transform, opacity;
}

.services-section .card-sm.animate,
.services-section .card-lg.animate {
  opacity: 1;
  transform: translateY(0);
}

/* Background image effect */
.services-section .card-sm.bg-image,
.services-section .card-lg.bg-image {
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  color: white;
  transition: background-size 0.4s ease-in-out;
}

.services-section .card-sm.bg-image::before,
.services-section .card-lg.bg-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 0;
}

.services-section .card-sm > *,
.services-section .card-lg > * {
  position: relative;
  z-index: 1;
}

/* Hover Effects */
.services-section .card-sm.bg-image:hover,
.services-section .card-lg.bg-image:hover {
  background-size: 110%;
}

.services-section .card-sm:hover,
.services-section .card-lg:hover {
  transform: scale(1.02);
}

/* Card Heights */
.services-section .card-sm {
  height: 200px;
}

.services-section .card-lg {
  height: 420px;
}

/* Card Row Layout */
.services-section .card-row {
  display: flex;
  gap: 1rem;
}

.services-section .card-row .card-sm {
  flex: 1;
}

/* Typography */
.services-section .card-title {
  font-size: 1.2rem;
  font-weight: 600;
}

.services-section .card-meta {
  font-size: 0.9rem;
  color: #ccc;
}

.services-section .card-link {
  font-size: 0.9rem;
  color: #fff;
  text-decoration: underline;
  margin-top: 8px;
  display: inline-block;
}

/* Section Header Layout for Elementor (no Bootstrap) */
.services-section .section-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
}

.services-section .section-header-left,
.services-section .section-header-right {
  flex: 1 1 48%;
}

.services-section .section-subtitle {
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 150%;
  color: #343434;
  margin-bottom: 8px;
}

.services-section .section-title {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 40px;
  line-height: 120%;
  letter-spacing: -0.02em;
  color: #343434;
}

.services-section .section-description {
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 150%;
  color: #343434;
  margin-top: 40px;
}

/* Responsive */
@media (max-width: 991px) {
  .services-section .grid {
    grid-template-columns: 1fr;
  }

  .services-section .card-row {
    flex-direction: column;
  }

  .services-section .card-sm,
  .services-section .card-lg {
    height: 220px !important;
  }

  .services-section .section-header {
    flex-direction: column;
  }
}

/* Swiper Overrides */
.swiper {
  display: block !important;
}

.services-section .swiper-wrapper {
  display: flex !important;
}

.services-section .swiper-slide {
  width: 100% !important;
  flex-shrink: 0 !important;
  opacity: 0.3;
  transform: scale(0.95);
  transition: all 0.5s ease-in-out;
}

.services-section .swiper-slide-active {
  opacity: 1;
  transform: scale(1);
}

.services-section .swiper-pagination-bullet {
  background: #e84f3b;
  opacity: 1;
}

.services-section .swiper-pagination-bullet-active {
  background: #000;
}
.services-section .card-link-wrapper {
  display: block;
  text-decoration: none;
  color: inherit;
}
.services-section .card-link-wrapper:hover {
  text-decoration: none;
}
.services-section .card-meta a {
  text-decoration: none !important;
}


.services-section .swiper-pagination {
  display: flex;
  gap: 0px;
  flex-grow: 1;
}

.services-section .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: #EF4C3A;
  opacity: 0.2;
  border-radius: 50%;
}

.services-section .swiper-pagination-bullet-active {
  opacity: 1;
}
.services-section .swiper-buttons {
  display: flex;
  gap: 16px;
  position: absolute;
  right: 0px;
  bottom: 5px;
}

.services-section .swiper-button-prev,
.services-section .swiper-button-next {
  width: 32px;
  height: 32px;
  background: #fff;
  border: 1px solid #EF4C3A;
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #EF4C3A;
}

.services-section .swiper-button-prev::after,
.services-section .swiper-button-next::after {
  font-size: 16px;
  font-weight: bold;
}

.services-section .swiper-button-prev,
.services-section .swiper-rtl .swiper-button-next {
  left: auto;
  right: 43px;
}

.services-section .swiper-button-next,
.services-section .swiper-rtl .swiper-button-prev {
  right: 0;
  left: auto;
}
