/* ============================================
   Hero Section
============================================ */
.hero-section {
  width: 100%;
  position: relative;
}

.hero-slider .swiper-slide img,
.slide-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 100vh;
  object-fit: cover;
}

.hero-slider .swiper-slide video {
  width: 100%;
  height: auto;
  max-height: 100vh;
  object-fit: cover;
}

.swiper-slide-p1 {
  color: #aaa;
  font-size: 14px;
  padding: 2rem 0;
}

.swiper-button-next,
.swiper-button-prev {
  margin-left: 1%;
  margin-right: 1%;
  color: #fff;
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

/* ============================================
   Featured Section
============================================ */
.featured-section {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.featured-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: .5rem;
}

.featured-title {
  text-transform: uppercase;
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0;
}

.slider-nav-buttons {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.product-slider .swiper-wrapper {
  align-items: stretch;
}

.product-slider .swiper-slide {
  height: auto;
  display: flex;
}

.product-card {
  transition: opacity 0.3s;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  border-radius: 0.5rem;
  overflow: hidden;
}

.product-card:hover {
  opacity: 0.8;
}

.product-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 0 0.5rem;
}

.product-name {
  font-size: 1rem;
  text-align: center;
  margin: 0 10px 10px 10px;
  flex: 1;
  margin-top: 5%;
}

.product-price {
  font-weight: 700;
  text-align: center;
  margin-top: auto;
  padding-bottom: 0.75rem;
  margin-bottom: 0;
}

.product-thumb {
  display: flex;
  position: relative;
  align-content: center;
  align-items: center;
  justify-content: center;
  justify-items: center;
  justify-self: center;
  margin-bottom: 1rem;
}

.product-img {
  height: 300px;
  width: auto;
  background-color: #f9f9f9;
  max-width: 100%;
  object-fit: contain;
}

.product-link {
  text-decoration: none;
  color: #212529;
}

.featured-section::after {
  content: '';
  display: block;
  width: 90%;
  max-width: 1295px;
  height: 1px;
  background-color: rgba(0, 0, 0, 0.3);
  margin: 2rem auto 0;
}

/* ============================================
   Roster / Work Section
============================================ */
.work-section {
  padding-bottom: 3rem;
  padding-left: 12px;
  padding-right: 12px;
}

.work-section-title {
  margin-left: auto;
  margin-right: auto;
  text-transform: uppercase;
  font-size: 2.5rem;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
}

.work-section-p1 {
  color: #aaa;
  font-size: 14px;
  padding: 1rem 0;
}

.bd-grid {
  display: grid;
  margin-left: auto;
  margin-right: auto;
}

.work__container {
  row-gap: 2rem;
}

.work__img {
  box-shadow: 0px 4px 25px rgba(14, 36, 49, 0.15);
  border-radius: 0.5rem;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.work__img img {
  transition: 0.5s;
  height: auto;
  width: 100%;
  max-width: 421px;
  object-fit: cover;
}

.work__img img:hover {
  transform: scale3d(1.02, 1, 1.02);
}

.work__card__header {
  color: black;
  margin-bottom: auto;
  margin-left: 5.5px;
  margin-right: 5.5px;
  text-align: center;
  letter-spacing: 2px;
}

.work__card__text {
  color: rgb(79, 79, 79);
  margin-bottom: 5px;
  margin-left: 15px;
  margin-right: 15px;
  font-size: 14px;
  text-align: justify;
}

.work__card__footer {
  color: rgb(40, 40, 40);
  text-align: justify;
  font-size: 13px;
  margin-top: 10px;
  margin-left: 5.5px;
  margin-right: 5.5px;
}

.work__card__button {
  margin: 10px 5.5px 15px 5.5px;
  padding: 8px 12px;
  background-color: var(--primary-gray);
  color: var(--primary-black);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s, color 0.3s;
}

/* ═══════════════════════════════════════════
   RESPONSIVE — Mobile S default (< 576px)
   1 kolom — sudah default grid tanpa kolom
═══════════════════════════════════════════ */
@media screen and (max-width: 575.98px) {
  .featured-title      { font-size: 1.6rem; }
  .work-section-title  { font-size: 1.6rem; }
  .featured-section    { padding-top: 1.5rem; padding-bottom: 1.5rem; }
  .work-section        { padding-bottom: 1.5rem; }
  .product-img         { height: 220px; }
  .swiper-button-next,
  .swiper-button-prev  { display: none; }
  .product-name        { font-size: .9rem; }
  .product-price       { font-size: .9rem; }
}

/* ═══════════════════════════════════════════
   RESPONSIVE — Mobile M  (≥ 375px, < 576px)
═══════════════════════════════════════════ */
@media screen and (min-width: 375px) and (max-width: 575.98px) {
  .featured-title      { font-size: 1.8rem; }
  .work-section-title  { font-size: 1.8rem; }
}

/* ═══════════════════════════════════════════
   RESPONSIVE — Mobile L / Tablet kecil (≥ 576px)
   2 kolom roster
═══════════════════════════════════════════ */
@media screen and (min-width: 576px) {
  .work__container {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 2rem;
    padding-top: 2rem;
  }
}

/* ═══════════════════════════════════════════
   RESPONSIVE — Tablet (≥ 768px)
   3 kolom roster
═══════════════════════════════════════════ */
@media screen and (min-width: 768px) {
  .section {
    padding-top: 4rem;
    padding-bottom: 3rem;
  }
  .section-title { margin-bottom: var(--mb-6); }
  .section-title::after { width: 80px; top: 3rem; }
  .work__container {
    grid-template-columns: repeat(3, 1fr);
    column-gap: 2rem;
  }
  .featured-title     { font-size: 2rem; }
  .work-section-title { font-size: 2rem; }
}

/* ═══════════════════════════════════════════
   RESPONSIVE — Desktop (≥ 992px)
═══════════════════════════════════════════ */
@media screen and (min-width: 992px) {
  .bd-grid {
    margin-left: auto;
    margin-right: auto;
  }
  .featured-title     { font-size: 2.5rem; }
  .work-section-title { font-size: 2.5rem; }
}

/* ═══════════════════════════════════════════
   RESPONSIVE — Desktop L (≥ 1200px)
═══════════════════════════════════════════ */
@media screen and (min-width: 1200px) {
  .product-img { height: 300px; }
}
