@use "../variables" as *;

.workAreas {
  padding: 4rem 0;
  background-color: $workingAreasBg;

  .container {
    display: grid;
    gap: 2rem;
    max-width: 70%;
    margin: 0 auto;

    grid-template-columns: repeat(3, 1fr);

    @media (max-width: 1024px) {
      grid-template-columns: repeat(2, 1fr);
    }

    @media (max-width: 768px) {
      grid-template-columns: 1fr;
    }
  }

  .card {
    background-color: $workingAreasCardBg;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 10px $workingAreasCardBoxShadow;
    transition: box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;

    &:hover {
      box-shadow: 0 8px 16px $workingAreasCardBoxHoverShadow;
    }

    .imageWrapper {
      width: 100%;
      height: 220px;
      overflow: hidden;

      .image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.4s ease;

        &:hover {
          transform: scale(1.08);
        }
      }
    }

    .textWrapper {
      padding: 1.5rem;
      text-align: left;

      h3 {
        font-size: 1.5rem;
        font-weight: 700;
        color: $workingAreasPrimaryColor;
        margin-bottom: 0.5rem;
      }

      p {
        font-size: 1rem;
        color: $workingAreasSecondaryTextColor;
        line-height: 1.6;
      }
    }
  }
}

@media (max-width: 768px) {
  .container {
    gap: 1.5rem;
  }

  .textWrapper {
    text-align: center;
    padding: 1rem;

    h3 {
      font-size: 1.4rem;
    }

    p {
      font-size: 0.95rem;
    }
  }
}
