/* Archive grid: produk & artikel */
.tt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

/* Banner tanpa gambar: tema memaksa tinggi 400px */
.blog-banner_without_image.banner_px_image {
  height: auto;
  padding-bottom: 1rem;
}
.blog-banner_without_image .banner_title_inner {
  margin-bottom: 1.5rem !important;
}

.tt-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid #e8edf3;
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.3s, transform 0.3s, border-color 0.3s;
}
.tt-card:hover {
  border-color: #d3deec;
  box-shadow: 0 12px 30px rgba(11, 34, 56, 0.1);
  transform: translateY(-4px);
}

/* Frame gambar: rasio tetap, apapun orientasi gambarnya */
.tt-card-media {
  display: block;
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #f4f7fb;
}
.tt-card-media.is-square {
  aspect-ratio: 1 / 1;
  padding: 16px;
  background: #fff;
  border-bottom: 1px solid #eef2f7;
}
.tt-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.4s cubic-bezier(0.65, 0.05, 0.36, 1);
}
.tt-card:hover .tt-card-media img {
  transform: scale(1.05);
}

.tt-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 18px 20px 20px;
}
.tt-card-tag {
  align-self: flex-start;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #165df5;
}
.tt-card-tag:hover {
  color: #0b2238;
}
.tt-card-title {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
  color: #0b2238;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(1.4em * 2);
  transition: color 0.3s;
}
a:hover > .tt-card-title {
  color: #165df5;
}
.tt-card-meta {
  margin-top: auto;
  padding-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: #6c7a87;
}
.tt-card-cta {
  font-weight: 600;
  color: #165df5;
}

.tt-empty {
  padding: 60px 20px;
  text-align: center;
  color: #6c7a87;
  background: #f4f7fb;
  border-radius: 12px;
}

@media (max-width: 575px) {
  .tt-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .tt-card-media.is-square {
    padding: 10px;
  }
  .tt-card-body {
    padding: 12px 14px 14px;
  }
  .tt-card-title {
    font-size: 15px;
  }
}

/* Carousel produk beranda */
.tt-product-carousel {
  padding: 8px 4px 40px;
}
.tt-product-carousel .swiper-slide {
  height: auto;
}
.tt-product-pagination {
  bottom: 0 !important;
}

/* Jarak kategori -> produk di beranda */
.section__stories .swip__topic {
  margin-bottom: 0;
}
.tt-home-products {
  margin-top: 2rem;
  padding-top: 2rem;
}
