.comparison-container {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 auto;
}

.card {
  border-radius: calc(0.625rem + 4px);
  border-width: 2px;
  padding: 16px;
  flex: 1;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card-problem {
  border-color: lab(86.017% 19.8815 7.75869);
}

.card-solution {
  border-color: lab(92.4222 -26.4702 12.9427);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #eee;
}

.card-title {
  font-weight: bold;
  font-size: 1.25rem;
}

.card-badge {
  padding: 4px 12px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.9rem;
}

.badge-problem {
  background-color: lab(48.4493 77.4328 61.5452);
  color: #fff;
}

.badge-solution {
  background-color: lab(59.0978 -58.6621 41.2579);
  color: #fff;
}

.card-image {
  width: 100%;
  border-radius: 8px;
  cursor: pointer;
  transition: opacity 0.3s ease;
  margin: 16px 0;
  display: block;
}

.card-image:hover {
  opacity: 0.9;
}

.card-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.card-list li {
  padding: 8px 0;
  padding-left: 28px;
  position: relative;
  font-size: 1.05rem;
}

.card-list li:before {
  content: attr(data-icon);
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* Modal styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal.active {
  display: flex;
  opacity: 1;
}

.modal-content {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.8);
}

.close-button {
  position: absolute;
  top: 25px;
  right: 35px;
  color: white;
  font-size: 48px;
  font-weight: bold;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    color 0.2s ease;
  z-index: 1001;
  width: 50px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  /* background-color: rgba(0, 0, 0, 0.5); */
}

.close-button:hover {
  transform: rotate(90deg);
  color: #ff4d4d;
  /* background-color: rgba(0, 0, 0, 0.7); */
}

.close-button:active {
  transform: scale(0.9);
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

/* Responsive design */
@media (max-width: 768px) {
  .comparison-container {
    flex-direction: column;
    align-items: stretch;
  }

  .card {
    width: 100%;
  }

  .close-button {
    top: 15px;
    right: 20px;
    font-size: 40px;
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 480px) {
  .card {
    padding: 18px;
  }

  .card-title {
    font-size: 1.15rem;
  }

  .card-list li {
    font-size: 1rem;
    padding-left: 24px;
  }

  .close-button {
    top: 10px;
    right: 15px;
    font-size: 36px;
    width: 40px;
    height: 40px;
  }
}

.section-title {
  text-align: center;
  margin: 40px 0 30px;
  font-size: 2.2rem;
  color: #2c3e50;
  position: relative;
}

.section-title:after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(
    90deg,
    lab(48.4493 77.4328 61.5452),
    lab(59.0978 -58.6621 41.2579)
  );
  margin: 12px auto 0;
  border-radius: 2px;
}
