.hero {
  width: 100%;
}

.hero-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.hero-carousel, .hero-info {
  position: relative;
  width: calc(100% - 400px);
  height: 500px;
}

@media (max-width: 900px) {
  .hero-carousel, .hero-info {
    width: 100%;
    height: 200px;
  }
}

.carousel {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 10px;
}

.carousel-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.6s ease-in-out;
}

.carousel-slide, .hero-slide {
  min-width: 100%;
  height: 100%;
  flex-shrink: 0;
  position: relative;
}

.carousel-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

.carousel-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(130deg, rgba(3,6,55,0.9), transparent);
  z-index: 2;
  pointer-events: none;
}

.carousel-info {
  position: absolute;
  bottom: 10px;
  left: 10px;
  z-index: 4;
  color: #fff;
  background: linear-gradient(90deg, rgba(3,6,55,0.9), transparent);
  padding: 10px 40px 10px 10px;
  border-radius: 10px;
}

.carousel-title {
  font-weight: bold;
  margin: 5px 0;
}

.publisher {
  color: var(--info-color);
}

.carousel-images {
  position: absolute;
  bottom: 10px;
  right: 10px;
  display: flex;
  background: linear-gradient(130deg, var(--text), transparent);
  padding: 10px;
  border-radius: 10px;
  gap: 5px;
  z-index: 4;
}

.carousel-images img {
  width: 70px;
  height: 100px;
  object-fit: cover;
  border-radius: 5px;
}

@media (max-width: 768px) {
  .carousel-info .publisher {
    display: none
  }

  .carousel-info .text-block {
    display: none
  }

  .carousel-images {
    display: none;
  }
}

.carousel-search {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 5;
}

.carousel-search .search-box {
  padding: 5px;
  border-radius: 10px;
}

.carousel-prev,
.carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  font-size: 2rem;
  color: var(--antique);
  cursor: pointer;
  z-index: 6;
}

.carousel-prev { left: 10px; }
.carousel-next { right: 10px; }

.carousel-indicators {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  z-index: 6;
}

.carousel-indicators button {
  width: 10px;
  height: 10px;
  aspect-ratio: 1/1;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  padding: 0;
}

.carousel-indicators button.active {
  background: #fff;
}

@media (max-width: 768px) {
  .carousel-indicators {
    display: none
  }
}

.hero-categories {
  width: 400px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.category-card {
  background: var(--s-bg);
  padding: 5px 10px;
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
}
.body-container {
  padding: 5px;
}

.template-cards { 
  display: flex; 
  flex-wrap: wrap; 
  gap: 10px; 
}

.template-card {
  position: relative;
  flex: 0 1 calc(33.333% - 20px); /* changed flex-grow from 1 → 0 */
  min-width: 250px;
  height: 200px;
  overflow: hidden;
  border-radius: 5px;
}

.template-card img { 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
}

.card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 10px;
  background: rgba(0,0,0,0.7);
  color: #fff;
}

@media(max-width: 768px) {
  .hero-row { 
    flex-direction: column; 
  }

  .hero-categories { 
    width: 100%; 
  }

  .template-card { 
    flex: 1 1 100%; 
  }

  .carousel-search input { 
    width: 150px; 
  }

  .footer-right a span:not(.icon) { 
    display: none; 
  }
}
