
.work_content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-top: 65px;
}

.work_content .component-text {
  width: 350px;
  height: 315px;
  border-radius: 15px;
}

.work_content .component-text p {
  font-family: var(---gilroy);
  font-size: var(--font-size);
  text-align: justify;
  padding: 10px;
}

.work_content .component {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: justify;
  width: 350px;
  height: 315px;
  padding: 32px;
  border-radius: 15px;
  color: white;
  background-color: var(---main-color);
  transition: background-color 0.3s ease;
}

.work_content .component:hover {
  background-color: var(---hover-color);
  cursor: pointer;
}

.work_content .component .number {
  font-size: 64px;
  font-family: var(---nexa);
  font-weight: bold;
}

.work_content .component .description {
  font-family: var(---gilroy);
  font-size: var(--font-size);
}

/* Smaller Screen */
@media (max-width: 479px) {
  .work_content {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .work_content .component,
  .work_content .component-text {
    width: 100%;
    height: auto;
    padding: 20px;
  }

  .work-title {
    text-align: center;
  }
}

/* Medium Screen */
@media (min-width: 480px) and (max-width: 767px) {
  .work_content {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 40px;
  }

  .work_content .component,
  .work_content .component-text {
    width: 100%;
    height: auto;
    padding: 25px;
  }

  .work_content .component .number {
    font-size: 56px;
  }

  .work_content .component .description {
    font-size: calc(var(--font-size) - 1px);
  }
}

/* Smaller Laptop and Tablet */
@media (min-width: 768px) and (max-width: 1024px) {
  .work_content {
    /* border: 3px solid red; */
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    /* margin-top: 50px; */
  }

  .work_content .component {
    width: 290px;
  }

  .work_content .component,
  .work_content .component-text {
    /* width: 80%;
    height: 80%; */
  }

  .work_content .component .number {
    font-size: 60px;
  }

  .work_content .component .description {
    font-size: var(--font-size);
  }
}

/* Small Desktops */
@media (min-width: 1024px) and (max-width: 1280px) {
  .work_content {
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 60px;
  }

  .work_content .component {
    width: 80%;
  }

  .work_content .component-text {
    width: 80%;
    height: 100%;
  }

  .work_content .component .number {
    font-size: 64px;
  }
}

/* Larger Desktop */
@media (min-width: 1280px) {
  .work_content {
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 30px;
  }

  .work_content .component,
  .work_content .component-text {
    width: 100%;
    height: 380px;
  }

  .work_content .component .number {
    font-size: 64px;
  }
}