.services-section {
  width: 100%;
  padding: 70px 0;
  background: #870708;
  color: #ffffff;
  position: relative;
}

.services-section .container {
  max-width: 1392px;
  margin: 0 auto;
  position: relative;
}

/* Heading Section */
.services-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 60px;
}

.title-container {
  max-width: 800px;
}

.title-container h4 {
  font-family: PPNeueMontreal-Regular, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 150%;
  color: #000000;
  margin: 0;
}

.title-container h2 {
  font-family: PPNeueMontreal-Regular, sans-serif;
  font-weight: 500;
  font-size: 24px;
  line-height: 150%;
  color: #000000;
  margin: 0;
}

.title-container1 h4 {
  font-family: PPNeueMontreal-Regular, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 150%;
  color: #ffffff;
  margin: 0;
}

.title-container1 h2 {
  font-family: PPNeueMontreal-Regular, sans-serif;
  font-weight: 500;
  font-size: 24px;
  line-height: 150%;
  color: #ffffff;
  margin: 0;
}

.btn-contact {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  background: #ffffff;
  border-radius: 8px;
  color: #870708;
  font-family: PPNeueMontreal-Regular, sans-serif;
  font-weight: 500;
  font-size: 20px;
  text-decoration: none;
  gap: 10px;
  transition: all 0.3s ease;
}

.btn-contact:hover {
  background: #f6e3d0;
  color: #870708;
}

.arrow-right {
  display: inline-block;
  width: 20px;
  height: 20px;
  position: relative;
}

.arrow-right:before {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  border-top: 1.5px solid #ad2324;
  border-right: 1.5px solid #ad2324;
  top: 50%;
  right: 6px;
  transform: translateY(-50%) rotate(45deg);
}

/* Cards Section */
.services-cards {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.card {
  flex: 1;
  min-width: 300px;
  height: 508px;
  background: #f6e3d0;
  border-radius: 20px;
  padding: 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.card-category {
  font-family: PPNeueMontreal-Regular, sans-serif;
  font-weight: 600;
  font-size: 24px;
  line-height: 22px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #581111;
}

.card-number {
  font-family: PPNeueMontreal-Regular, sans-serif;
  font-weight: 600;
  font-size: 20px;
  line-height: 140%;
  color: #581111;
  opacity: 0.5;
}

.card-icon {
  width: 180px;
  height: 180px;
  margin-bottom: 40px;
  position: relative;
}

.icon-info,
.icon-users,
.icon-history {
  background-color: rgba(173, 35, 36, 0.5);
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
}

.icon-info {
  mask-image: url("/assets/images/SolutionIcon.svg");
  -webkit-mask-image: url("/assets/images/SolutionIcon.svg");
}

.icon-users {
  mask-image: url("/assets/images/commenitIcon.svg");
  -webkit-mask-image: url("/assets/images/commenitIcon.svg");
}

.icon-history {
  mask-image: url("/assets/images/HistoryIcon.svg");
  -webkit-mask-image: url("/assets/images/HistoryIcon.svg");
}

.card-title {
  font-family: PPNeueMontreal-Regular, sans-serif;
  font-weight: 500;
  font-size: 20px;
  line-height: 120%;
  color: #581111;
  margin-bottom: 20px;
}

.card-btn {
  width: auto;
  height: auto;
  background: #581111;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  text-decoration: none;
  color: #ffffff;
  font-family: PPNeueMontreal-Regular, sans-serif;
  font-weight: 500;
  font-size: 16px;
  margin-top: 20px;
  align-self: flex-end;
  transition: all 0.3s ease;
  gap: 10px;
}

.card-btn:hover {
  background: #ad2324;
}

.card-btn img {
  width: 20px;
  height: 20px;
}

/* Responsive Styles */
@media (max-width: 1200px) {
  .services-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 30px;
  }

  .title-container h2 {
    font-size: 42px;
  }

  .services-cards {
    flex-direction: column;
  }

  .card {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .title-container h2 {
    font-size: 32px;
  }

  .card-title {
    font-size: 32px;
  }

  .card-category {
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .services-section {
    padding: 40px 0;
  }
  .card-icon {
    width: 71px;
    height: 79px;
  }
  .title-container h4 {
    font-size: 18px;
  }

  .title-container h2 {
    font-size: 28px;
  }

  .btn-contact {
    width: 100%;
    font-size: 18px;
  }

  .card {
    height: auto;
    min-height: 450px;
  }

  .card-title {
    font-size: 28px;
  }
}
