/* Home Services Section */
.home-services {
  padding: 4rem 0;
  background-color: #000;
  color: #fff;
}

.home-services__inner {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

/* Hero Section */
.home-services__hero {
  max-width: 50rem;
  margin: 0 auto;
}

.home-services__hero-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  align-items: center;
}

.home-services__title {
  font-size: 2.5rem;
  margin: 0 0 0.9375rem; /* 15px to 0.9375rem */
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

.home-services__description {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.25rem; /* 20px to 1.25rem */
  text-align: center;
  max-width: 40rem;
}


/* Services Grid */
.home-services__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9375rem; /* 15px to 0.9375rem */
}

.home-services__item {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 5px;
  overflow: hidden;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.home-services__item:hover {
  transform: translateY(-0.3125rem); /* 5px to 0.3125rem */
}

.home-services__image {
  width: 100%;
  aspect-ratio: 7/8;
  object-fit: cover;
  display: block;
}

.home-services__item-content {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
}

.home-services__item-title {
  font-size: 1.25rem;
  margin: 0 0 0.625rem;
  font-weight: 600;
}

.home-services__item-text {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  margin: 0 0 1.25rem;
  line-height: 1.5;
  flex: 1;
}

.home-services__item-button {
  display: inline-block;
  background-color: #fff;
  color: #000;
  padding: 0.625rem 1.25rem;
  text-decoration: none;
  font-size: 0.875rem;
  border-radius: 5px;
  font-weight: 600;
  transition: all 0.3s ease;
  text-align: center;
}

.home-services__item-button:hover {
  background-color: #f0f0f0;
  transform: translateY(-0.125rem); /* 2px to 0.125rem */
}

/* RTL Support - Not needed as content is centered */

/* Responsive adjustments */
@media (max-width: 62rem) { /* 992px to 62rem */
  .home-services__list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 48rem) { /* 768px to 48rem */
  .home-services__hero {
    padding: 0 1rem;
  }
  
  .home-services__title {
    font-size: 2rem;
  }
}

@media (max-width: 36rem) { /* 576px to 36rem */
  .home-services__list {
    grid-template-columns: 1fr;
  }
  
  .home-services__title {
    font-size: 2rem;
  }
}
