.themes-img_cards-wrap {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 100%;
  max-width: 1440px;
  margin: 8rem auto 12rem auto;
  padding: 0 9rem;
}

.themes-img_cards-wrap .themes-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.themes-img_cards-wrap .themes-cards .theme-card {
  height: 35rem;
  flex: 0 0 calc(33.333% - 1.35rem);
  background-color: transparent;
  border: 1px solid var(--color-border);
  border-radius: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
}

.theme-card .card-inner {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  padding: 2rem;
}

.theme-card .content-wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: all 0.4s ease;
}

.theme-card .img-wrapper {
  width: 100%;
  height: 80%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border-radius: 1.5rem;
  margin-bottom: 1.5rem;
}

.theme-card .img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.4s ease;
}

.theme-card .text-wrapper {
  display: flex;
  flex-direction: column;
  text-align: center;
}

.theme-card .theme-name {
  font-family: 'Latinka-Medium', sans-serif;
  font-size: 2.2rem;
  color: var(--color-primary-dark);
  margin-bottom: 1rem;
}

.theme-card .action-wrapper {
  position: absolute;
  bottom: -6rem;
  opacity: 0;
  transition: all 0.4s ease;
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 0 2rem;
}

.theme-card .btn-group {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.theme-card .btn-group .btn-main {
  margin: 0;
  height: 50px;
  padding: 0 30px;
  font-size: 16px;
}

/* Hover States */
.theme-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.theme-card:hover {
  transform: translateY(-3rem);
}

.theme-card:hover .img-wrapper img {
  transform: scale(1.05);
}

.theme-card:hover .action-wrapper {
  bottom: 3.5rem;
  opacity: 1;
}

/* Responsive */
@media screen and (max-width: 1200px) {
  .themes-img_cards-wrap {
    padding: 0 4rem;
  }
  .themes-img_cards-wrap .themes-cards .theme-card {
    flex: 0 0 calc(50% - 1rem);
  }
}

@media screen and (max-width: 768px) {
  .themes-img_cards-wrap {
    padding: 0 2rem;
    margin: 4rem auto 8rem auto;
  }
  .themes-img_cards-wrap .themes-cards .theme-card {
    flex: 0 0 100%;
    height: 30rem;
  }
}
