.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 columns */
  grid-gap: 40px; /* gap between cards */
  max-width: 800px;
  margin: 40px auto;
  padding: 20px;
}

.rotated-card {
  display: flex;
  width: 100%; /* adjust as needed */
  min-height: 150px; /* adjust height */
  max-height: 250px;
  border: 1px solid #ccc;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(90deg, var(--purple-color), rgb(255, 140, 0));
  transition: all 0.2s ease; /* smooth hover effect */
}

.rotated-card:hover {
  transform: translateY(-4px);
}

.rotated-text {
  width: 10%; /* left section width */
  min-width: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
}

.rotated-text p {
  transform: rotate(270deg);
  transform-origin: center;
  font-weight: 600;
  font-size: 1.2rem;
  margin: 0;
}

.image-container {
  width: 80%; /* right section width */
  padding-left: 5%;
  overflow: hidden;
  position: relative;
}

.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 1000px) {
  .cards-grid {
    grid-gap: 30px; /* gap between cards */
    margin: 0 10%;
  }
}

@media (max-width: 568px) {
  .cards-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr); /* 2 columns */
    grid-gap: 30px; /* gap between cards */
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
  }
}
