/**
 * Services Template Styles
 */

/* Services Grid Layout */
.services-grid {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 60px 0;
  background-color: #000;
  color: #fff;
}
.page-template-template-services .site-content {
  padding-top: 0;
  background-color: #000;
}
.page-template-template-services .pulsar-page-title {
  padding: 72px 0 40px;
}
/* Service Item */
.service-item-link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.3s ease;
}

.service-item-link:hover {
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.service-item {
  display: flex;
  align-items: stretch;
  gap: 40px;
}

/* Service Image */
.service-image {
  flex: 0 0 400px;
  height: 200px;
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.service-item-link:hover .service-image img {
  transform: scale(1.05);
}

/* Service Content */
.service-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.title-wrapper {
  display: inline-block;
  margin-bottom: 12px;
}

.service-title {
  font-family: "AktivGrotesk", sans-serif;
  font-size: 36px;
  line-height: 48px;
  font-weight: 400;
  margin: 0;
  color: #fff;
  position: relative;
  display: inline-block;
  transition: border-color 0.3s ease;
}

.service-title::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: #fff;
  transition: width 0.3s ease;
}

.service-item-link:hover .service-title::before {
  width: 100%;
}

.service-title::after {
  content: "";
  position: absolute;
  right: -40px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  background-image: url("../images/arrow.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transition: transform 0.3s ease, opacity 0.3s ease;
  filter: brightness(0) invert(1);
  opacity: 0;
}

.service-item-link:hover .service-title::after {
  transform: translateY(-50%) translateX(5px);
  opacity: 1;
}

.service-description {
  font-family: "AktivGrotesk", sans-serif;
  font-size: 20px;
  line-height: 28px;
  font-weight: normal;
  color: #fff;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .service-item {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .service-image {
    flex: 0 0 auto;
    width: 100%;
    max-width: auto;
    margin: 0 auto;
  }
  .service-title {
    text-align: left;
    font-size: 24px;
    display: block;
  }
  .title-wrapper {
    text-align: left;
    margin-bottom: 0;
  }
  .service-description {
    font-size: 16px;
    line-height: 24px;
    text-align: left;
  }
  .service-title::after {
    right: 0;
    opacity: 1;
  }
  .page-template-template-services .pulsar-page-title {
    padding: 40px 0 28px;
  }
  .services-grid {
    padding: 28px 0;
  }
}

/* Container */
.services-grid .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Dark Background */
.site-main {
  background-color: #000;
}

/* Page Title Adjustments */
.page-title {
  margin-bottom: 0;
}
