.tab-btn {
  padding: 12px 32px;
  border-radius: var(--y-radius-m);
  border: 1px solid #eee;
  background-color: #fcfdfc;
  color: var(--y-color-txt);
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tab-btn.active,
.tab-btn:hover {
  background-color: var(--y-color-primary);
  color: #fff;
  border-color: var(--y-color-primary);
}

.themes-section .themes-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  justify-items: start;
  align-items: start;
}

.themes-section .theme-card {
  width: 100%;
  max-width: var(--y-space-380);
}


.theme-card {
  background-color: #fff;
  transition: all 0.3s ease;
}

.theme-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  border-color: var(--y-color-primary);
}

.theme-image {
  background-color: #f5f5f5;
  padding: 0;
  overflow: hidden;
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.theme-card:hover .theme-image img {
  transform: scale(1.05);
}

.theme-badge i {
  font-size: 14px;
}

.theme-actions .btn {
  padding: 10px 16px;
  font-size: 16px;
  font-weight: 700;
  width: 100% !important;
}

.featured-template {
  overflow: hidden;
}

.featured-image {
  flex: 1;
}

.featured-image img {
  width: 100%;
  height: auto;
  object-fit: contain;
  transform: perspective(1000px) rotateY(-5deg);
}

.featured-content {
  flex: 1;
}

.featured-badge {
  display: flex;
  align-items: center;
  gap: 8px;
}

.white-button {
  background-color: #fff;
  color: var(--y-color-txt);
}

.cta-section {
  position: relative;
}

.cta-card {
  background-color: var(--y-color-primary-subtle);
  border: 1px solid var(--y-color-primary-subtle);
}

@media (max-width: 992px) {
  .featured-template .container {
    flex-direction: column;
    text-align: center;
    gap: var(--y-space-24);
  }

  .featured-content {
    align-items: center;
  }

  .featured-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .featured-actions .btn {
    width: 100% !important;
    padding-inline: var(--y-space-16) !important;
  }
}

@media (max-width: 640px) {
  .themes-section .themes-grid {
    grid-template-columns: 1fr;
    justify-items: stretch;
  }

  .themes-section .theme-card {
    max-width: none;
  }

  .theme-image {
    height: 180px;
  }
}

@media (max-width: 480px) {
  .theme-actions .btn {
    font-size: 14px;
    padding: 10px 12px;
  }
}