.p__wrapper {
  display: flex;
  flex-direction: column; 
  gap: 1rem;
}
.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 2rem;
}
.p__item {
  display: flex;
  flex-direction: column; 
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  padding: 1rem;
  width: 80%;
  margin: 0 auto;
  border-radius: 8px;
}
.item__category img {
  width: 5rem; 
}
.image-container {
  width: 6rem; 
  height: 6rem; 
  background-color: var(--first-color); 
  border-radius: 50%; 
  display: flex;
  align-items: center;
  justify-content: center; 
  overflow: hidden;
}
.item__category h2 {
  margin-left: 1rem;
  font-size: 1.5rem;
}
.item__category {
  display: flex;
  justify-content: left;
  align-items: center;
  padding: 0.5rem 3rem;
  border-bottom: 3px solid var(--first-color);
}

.item__service_card {
  justify-content: space-between;
  display: flex;
  background-color: #fff;
  border-bottom: 0.1rem solid hsla(222, 23%, 83%, 0.727);
  box-sizing: border-box;
}

.item__service_card h3 {
  color: var(--definition-text);
  font-size: 1.3rem;
}

.item__service_card p {
  margin: 0.5rem 0.5rem;
  display: flex;
  justify-content: flex-start;
  font-size: 1.1rem;
  text-align: justify;
}

.item__service_card p strong {
  margin-right: 0.5rem; 
  font-weight: bold;
}

.text_service {
  width: 70%;
}

.img_service {
  height: 22vh;
  padding: 0.75rem;
  width: 30%;
}

.no-categories {
  font-size: 2.5rem;
  color: var(--text-color);
  margin: 0 auto;
  padding: 5rem;
}

@media (min-width: 1800px) {
  .p__item {
    width: 100%;
  }
  .item__service_card h3 {
    font-size: 1.5rem;
  }
  .item__service_card p {
    font-size: 1.3rem;
  }
}
@media (min-width: 1250px) {
  .p__wrapper {
    gap: 2rem;
    width: 75rem;
  }
}

@media (max-width: 1000px) {
  .p__item {
    width: 90%;
  }
  .img_service {
    height: 20vh;
    padding: 0.5rem;
    width: 25%;
  }
}

@media (max-width: 750px) {
  .item__category img {
    width: 4rem;
  }
  .image-container {
    width: 4.5rem;
    height: 4.5rem;
  }
  .img_service {
    display: none;
  }
  .p__item {
    width: 87%;
  }
  .text_service {
    width: 100%;
  }
  .item__service_card p { 
    font-size: 1rem;
    display: flow;
  }
}
@media (max-width: 450px) {
  .section-title {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
  }
  .no-categories {
      font-size: 2.2rem;
      padding: 4.5rem 3rem;
  }
}
@media (max-width: 400px) {
  .section-title {
    font-size: 2rem;
    margin: 1rem;
  }
  .no-categories {
    font-size: 1.75rem;
    padding: 5.5rem 1rem;
  }
  .item__service_card p {
    font-size: 0.97rem;
  }
  .item__category {
    padding: 0.5rem 2rem;
  }
}
@media (max-width: 375px) {
  .item__category h2 {
    margin-left: 0.1rem;
  }
  .p__item {
    padding: 0.75rem;
  }
  .item__service_card p {
    font-size: 0.95rem;
  }
  .item__service_card h3 {
    margin: 0.75rem;
  }
  .item__category img {
    width: 2.75rem;
  }
  .image-container {
    width: 4rem;
    height: 4rem;
  }
}
@media (max-width: 340px) {
  .p__item {
    padding: 0.5rem;
  }
  .item__category img {
    width: 2.5rem;
  }
  .image-container {
    width: 3.5rem;
    height: 3.5rem;
  }
  .item__service_card p {
    font-size: 0.9rem;
  }
}
