/* Problems Block Styles */
/* Full width styles */
.problems-block-full-width {
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  padding: 0 !important;
}

/* Main block container */
div.problems-block {
  width: 100% !important;
  max-width: 100% !important;
  margin: 60px 0 !important;
  padding: 0 !important;
  background-color: #000;
}

/* Problems container - the direct parent of the cards */
div.problems-block .problems-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  width: 95%;
  max-width: 1800px;
  margin: 0 auto;
  padding: 40px 0;
}

/* Individual problem card */
div.problems-block .problem-card {
  display: flex;
  width: 345px;
  height: 320px;
  padding: 24px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  border-radius: 12px;
  background-color: #111213;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

div.problems-block .problem-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

div.problems-block .problem-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

div.problems-block .problem-card-content {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: flex-start;
}

.problem-icon {
  width: 60px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
  align-self: flex-start;
}

.problem-icon img {
  max-width: 100%;
  max-height: 100%;
}

.problem-text {
  color: #f5f4f6;
  font-family: Roboto, sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.5;
  align-self: flex-start;
  margin-top: 0; /* Remove top margin */
  text-align: left;
  width: 100%;
  letter-spacing: 0.01em;
  min-height: 100px;
  position: absolute;
  bottom: 24px; /* Position at the bottom with the same padding as the card */
}

.no-problems {
  color: #666;
  font-style: italic;
}

/* Responsive styles */
@media (max-width: 1600px) {
  div.problems-block .problems-container {
    width: 98% !important;
  }
}

@media (max-width: 1400px) {
  div.problems-block .problems-container {
    gap: 15px;
  }
  
  div.problems-block .problem-card {
    width: 340px;
    height: 300px;
  }
}

@media (max-width: 991px) {
  div.problems-block .problems-container {
    gap: 20px;
    padding: 30px 10px;
  }
  
  div.problems-block .problem-card {
    width: 320px;
    height: 280px;
  }
}

@media (max-width: 767px) {
  div.problems-block .problems-container {
    width: 100%;
    padding: 20px 15px;
    flex-direction: column;
    align-items: center;
  }
  
  div.problems-block .problem-card {
    width: 100%;
    max-width: 365px;
    height: 280px;
  }
  
  div.problems-block .problem-text {
    font-size: 15px;
  }
}
