/*
====================================
CSS AUKYCLOTH HOMEPAGE - FINAL REVISI
====================================
*/

/* ========== 1. RESET & GLOBAL DASAR ========== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Poppins', sans-serif;
  color: #222;
  background: #ffffff;
  line-height: 1.6;
}

/* ========== 2. STYLE JUDUL SECTION DENGAN GARIS ========== */
.section-title {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 700;
  color: #000;
  text-align: center;
  margin: 0 auto 60px;
  max-width: 1200px; /* sejajar dengan konten utama */
  padding: 0 20px;
}

.section-title::before,
.section-title::after {
  content: "";
  flex: 1;
  height: 2px;
  background: #ccc;
}

.section-title::before {
  margin-right: 20px;
}

.section-title::after {
  margin-left: 20px;
}

/* Responsif garis */
@media (max-width: 600px) {
  .section-title {
    font-size: 22px;
  }
  .section-title::before,
  .section-title::after {
    flex: 0.3;
  }
}

/* ========== 3. BANNER SLIDESHOW (Revisi Full Responsif) ========== */
.banner-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 16 / 6; /* Rasio default banner, bisa disesuaikan */
  max-height: 500px; /* Batas atas biar gak terlalu tinggi di desktop */
  margin-top: 100px; /* Flush against header */
}

@media (max-width: 768px) {
  .banner-container {
    aspect-ratio: 22 / 9; /* lebih tinggi di HP */
    max-height: none;
  }
}

.banner-slide {
  position: absolute;
  top: 0;
  left: 100%;
  width: 100%;
  height: 100%;
  transition: left 0.8s ease-in-out;
}

.banner-slide.active {
  left: 0;
  z-index: 2;
}

.banner-slide.prev {
  left: -100%;
}

.banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Tombol navigasi */
.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.4);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  cursor: pointer;
  border-radius: 50%;
  font-size: 20px;
  transition: background 0.3s;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.arrow:hover {
  background-color: rgba(0, 0, 0, 0.7);
}

.arrow.left {
  left: 20px;
}

.arrow.right {
  right: 20px;
}

/* ========== 4. INTRO SECTION ========== */
.intro-section {
  text-align: center;
  padding: 60px 10px 50px;
  background-color: #ffffff;
}

.intro-content {
  max-width: 850px;
  margin: 0 auto;
}

.intro-moto {
  margin-bottom: 18px;
  line-height: 1.2;
}

.intro-moto .moto-main {
  display: block;
  font-size: 2.4em;
  font-weight: 800;
  color: #222;
}

.intro-moto .moto-sub {
  display: block;
  font-size: 1.35em;
  font-weight: 500;
  color: #555;
  margin-top: 4px;
}

.intro-text {
  font-size: 1.1em;
  color: #555;
  line-height: 1.7;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 10px;
}

/* ========== 5. PRODUK DARI KAMI ========== */
.product-section {
  max-width: 1200px;
  margin: 20px auto 80px;
  padding: 0 20px;
  text-align: center;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  align-items: stretch;
}

.product-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid #eee;
  border-radius: 24px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  padding: 0;
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
}

.product-card img {
  width: 100%;
  height: auto;
  object-fit: contain;
  transition: transform 0.4s ease, filter 0.4s ease;
}

.product-card:hover img {
  transform: scale(1.1);
  filter: brightness(0.9);
}

.product-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 20px 40px 8px;
}

.product-card p {
  font-size: 14px;
  color: #555;
  padding: 0 40px 40px;
}

/* ========== 5.5 BERITA TERBARU ========== */
.news-section {
  max-width: 1200px;
  margin: 20px auto 80px;
  padding: 0 20px;
  text-align: center;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  align-items: stretch;
}

.news-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid #eee;
  border-radius: 24px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
}

.news-image {
  overflow: hidden;
  height: 200px;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, filter 0.4s ease;
}

.news-card:hover .news-image img {
  transform: scale(1.1);
  filter: brightness(0.9);
}

.news-image .no-image {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
  color: #ccc;
  font-size: 48px;
}

.news-content {
  padding: 20px;
}

.news-content h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #222;
  text-align: left;
}

.news-content p {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
  margin-bottom: 15px;
  text-align: left;
}

.news-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #777;
}

.news-meta .date {
  font-weight: 500;
}

.news-meta .read-more {
  color: #8CC63F;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: color 0.3s ease;
}

.news-meta .read-more:hover {
  color: #7bb539;
}

.no-news {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  background: #f8f9fa;
  border-radius: 24px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.no-news i {
  font-size: 48px;
  color: #ccc;
  margin-bottom: 20px;
}

.no-news h3 {
  font-size: 24px;
  color: #222;
  margin-bottom: 10px;
}

.no-news p {
  font-size: 16px;
  color: #555;
}

/* ========== 6. KEUNGGULAN AUKYCLOTH ========== */
.keunggulan-section {
  background: #f8f9fa;
  padding: 60px 20px;
  text-align: center;
}

.keunggulan-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.keunggulan-item {
  background: #fff;
  padding: 30px;
  border-radius: 24px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.keunggulan-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.keunggulan-text h3 {
  font-size: 17px;
  font-weight: 700;
  color: #222;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.keunggulan-text h3 i {
  font-size: 20px;
  color: #000;
}

.keunggulan-text p {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
}

/* ========== 7. OUR CLIENTS ========== */
.clients-section {
  padding: 60px 20px 80px;
  text-align: center;
  background: #fff;
}

.clients-container {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 40px;
  align-items: center;
  justify-items: center;
}

.client-logo {
  transition: transform 0.3s ease;
  cursor: pointer;
  padding: 10px;
}

.client-logo img {
  width: 100%;
  max-width: 150px;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: transform 0.3s ease, filter 0.3s ease, opacity 0.3s ease;
}

.client-logo:hover img {
  transform: scale(1.15);
  filter: grayscale(0%);
  opacity: 1;
}

.more-text {
  font-weight: 700;
  font-size: 18px;
  color: #111;
}

/* ========== 8. TOMBOL WHATSAPP MENGAPUNG ========== */
.wa-float {
  position: fixed;
  width: 55px;
  height: 55px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50%;
  bottom: 25px;
  right: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  z-index: 1000;
  text-decoration: none;
}

.wa-float:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* =========================================
   RESPONSIVE DESIGN AUKYCLOTH HOMEPAGE (FIX)
   ========================================= */

/* ========== 1. TABLET (max 1024px) ========== */
@media (max-width: 1024px) {

  .intro-section {
    padding: 50px 15px;
  }

  .intro-moto .moto-main {
    font-size: 2em;
  }

  .intro-moto .moto-sub {
    font-size: 1.2em;
  }

  .product-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    align-items: stretch;
  }

  .news-grid {
    grid-template-columns: 1fr;
    gap: 25px;
    align-items: stretch;
  }

  .keunggulan-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }

  .clients-container {
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
  }
}

/* ========== 2. HP BESAR (max 768px) ========== */
@media (max-width: 768px) {

  .arrow {
    font-size: 18px;
    padding: 4px 10px;
  }

  .section-title {
    font-size: 22px;
    margin-bottom: 40px;
  }

  .intro-moto .moto-main {
    font-size: 1.8em;
  }

  .intro-moto .moto-sub {
    font-size: 1.1em;
  }

  .intro-text {
    font-size: 1em;
    line-height: 1.6;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .product-card h3 {
    font-size: 16px;
    margin: 15px 25px 8px;
  }

  .product-card p {
    font-size: 13px;
    padding: 0 25px 25px;
  }

  .keunggulan-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .clients-container {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .client-logo img {
    max-width: 110px;
  }
}

/* ========== 3. HP KECIL (max 480px) ========== */
@media (max-width: 480px) {
  .arrow {
    font-size: 16px;
    padding: 3px 8px;
  }

  .section-title {
    font-size: 20px;
    margin-bottom: 30px;
  }

  .banner-container {
    margin-top: -45px; /* Kurangi jarak dengan header */
  }

  .intro-section {
    margin-top: -60px; /* 🔥 konten naik mendekati banner */
    padding: 0 10px;   /* padding normal (positif) */
  }

  .intro-moto .moto-main {
    font-size: 1.5em;
  }

  .intro-moto .moto-sub {
    font-size: 1em;
  }

  .intro-text {
    font-size: 0.95em;
    padding: 0 5px;
  }

  .product-grid {
    grid-template-columns: 1fr;
    gap: 15px;
    align-items: stretch;
  }

  .product-card h3 {
    font-size: 15px;
    margin: 15px 20px 8px;
  }

  .product-card p {
    font-size: 12px;
    padding: 0 20px 20px;
  }

  .news-grid {
    grid-template-columns: 1fr;
    gap: 25px;
    align-items: stretch;
  }

  .news-card h3 {
    font-size: 16px;
    margin: 20px 20px 10px;
  }

  .news-card p {
    font-size: 14px;
    padding: 0 20px 20px;
    line-height: 1.5;
  }

  .news-meta {
    padding: 0 20px 25px;
  }

  .keunggulan-container {
    grid-template-columns: 1fr;
  }

  .clients-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }

  .client-logo img {
    max-width: 95px;
    filter: grayscale(0%) !important;
    opacity: 1 !important;
  }

  .wa-float {
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 20px;
    font-size: 22px;
  }
  /* ======== BANNER RESPONSIVE ======== */
.banner-container {
  width: 100%;
  aspect-ratio: 16 / 9; /* Tetap mempertahankan rasio */
  overflow: hidden;
  position: relative;
}

.banner-container img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Fill container without spaces, may crop edges */
}

/* ======== TABLET ======== */
@media (max-width: 1024px) {
  .banner-container {
    aspect-ratio: 16 / 9; /* Tetap sama */
  }
}

/* ======== HP BESAR ======== */
@media (max-width: 768px) {
  .banner-container {
    aspect-ratio: 16 / 9; /* Tetap sama */
  }
}

/* ======== HP KECIL ======== */
@media (max-width: 480px) {
  .banner-container {
    aspect-ratio: 1 / 1; /* Rasio 1:1 untuk mobile kecil agar tidak terlalu tinggi */
  }

  .banner-container img {
    object-fit: contain; /* Show entire image without cropping */
  }
}

}