/* style.css */

body {
  margin: 0;
  font-family: 'Helvetica Neue', sans-serif;
  background-color: #fff;
  color: #222;
  line-height: 1.6;
}

.container {
  width: 90%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 40px 0;
}
.container-footer {
  width: 90%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 5px 0;
}
/* Hero Section */
.hero {
  background-color: #1f1f1f;
  color: white;
  text-align: left;
  padding: 60px 0;
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.hero-text {
  flex: 1 1 50%;
}

.hero-image {
  flex: 1 1 40%;
  text-align: right;
}

.hero-image img {
  max-width: 100%;
  height: auto;
  animation: zoomIn 1.5s ease-in-out; /* Animasi zoom */
}

.hero .title {
  font-size: 48px;
  letter-spacing: 4px;
  margin: 0;
  font-weight: bold;
  animation: fadeInDown 1s ease-in-out; /* Animasi masuk */
}

.hero .subtitle {
  font-size: 14px; /* Ukuran font */
  font-weight: normal; /* Berat font */
  color: #ffffff; /* Warna teks */
  margin-top: 10px; /* Jarak atas */
  text-align: left; /* Perataan teks */
  line-height: 1.5; /* Jarak antar baris */
  animation: fadeInUp 1.5s ease-in-out; /* Animasi masuk */
}

.hero .subtitle strong {
  font-size: 20px; /* Ukuran font untuk "Local Wine!" */
  font-family: 'Cursive', sans-serif; /* Gaya font */
  display: block; /* Tampilkan di baris baru */
  margin-top: 5px; /* Jarak atas */
}

.hero .subtitle em {
  font-size: 12px; /* Ukuran font untuk "Sebuah Art." */
  display: block; /* Tampilkan di baris baru */
  margin-top: 2px; /* Jarak atas */
}

/* Keyframes untuk animasi */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Intro Section */
.intro {
  background-color: #f4a261;
  color: #1f1f1f;
  padding: 60px 0;
}

.intro-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.intro-text {
  flex: 1 1 50%;
}

.intro-image {
  flex: 1 1 40%;
  text-align: right;
}

.intro-image img {
  max-width: 100%;
  height: auto;
}

.intro h2 {
  font-size: 28px;
  margin-bottom: 20px;
}

.intro p {
  font-size: 16px;
  max-width: 600px;
}

/* Blog Highlights */
.blog {
  background-color: #fff;
  padding: 60px 0;
  text-align: center;
}

.blog h2 {
  font-size: 24px;
  margin-bottom: 40px;
}

.blog-cards {
  display: flex;
  justify-content: space-between;
  flex-wrap: nowrap; /* Pastikan ini diatur ke nowrap */
  gap: 20px; /* Jarak antar elemen */
}

.card {
  flex: 1 1 calc(33.33% - 20px);
  max-width: calc(33.33% - 20px);
  box-sizing: border-box;
  background-color: #f5f5f5;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease; /* Tambahkan transisi */
}

.card:hover {
  transform: translateY(-10px); /* Efek melayang */
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2); /* Bayangan lebih besar */
}

.thumbnail {
  background-color: #000; /* Latar belakang hitam */
  padding: 10px; /* Tambahkan padding untuk memberi ruang di sekitar gambar */
  border-radius: 8px; /* Opsional: Membuat sudut melengkung */
  display: flex; /* Pastikan gambar berada di tengah */
  justify-content: center;
  align-items: center;
  height: 200px; /* Tetapkan tinggi tetap untuk kotak */
  overflow: hidden; /* Sembunyikan bagian gambar yang keluar */
}

.thumbnail img {
  max-width: 100%; /* Gambar memenuhi lebar kotak */
  max-height: 100%; /* Gambar memenuhi tinggi kotak */
  object-fit: contain; /* Menjaga proporsi gambar */
}

.card h3 {
  margin-top: 10px; /* Tambahkan jarak di atas teks */
  font-size: 18px;
  font-weight: bold;
  color: #222; /* Warna teks */
  text-align: center; /* Perataan teks */
}

.card p {
  font-size: 14px;
  color: #444;
}

/* Merchandise Section */
.merch {
  padding: 60px 0;
  text-align: center;
  background-color: #fff5f0;
}

.merch h2 {
  font-size: 24px;
  margin-bottom: 40px;
}

.merch-cards {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.cta-button {
  display: inline-block;
  padding: 12px 24px;
  background-color: white;
  border: 2px solid #333;
  border-radius: 8px;
  font-size: 16px;
  text-decoration: none;
  color: #333;
  transition: all 0.3s ease;
}

.cta-button:hover {
  background-color: #333;
  color: white;
}

@media (max-width: 768px) {
  .hero-content, .intro-content, .blog-cards, .merch-cards {
    flex-direction: column;
    align-items: center;
  }

  .hero-text, .intro-text, .hero-image, .intro-image, .card {
    flex: 1 1 100%;
    text-align: center;
  }

  .hero .title {
    font-size: 36px;
  }

  .blog-cards {
    flex-wrap: wrap; /* Izinkan elemen turun ke bawah */
  }

  .card {
    flex: 1 1 100%; /* Setiap kartu mengambil lebar penuh */
    max-width: 100%;
  }
}

/* Footer Section */
.footer {
  background-color: #1f1f1f; /* Warna latar belakang */
  color: white; /* Warna teks */
  text-align: center; /* Perataan teks */
  padding: 5px 0; /* Jarak atas dan bawah */
  font-size: 14px; /* Ukuran font */
}

.footer a {
  color: #f4a261; /* Warna link */
  text-decoration: none; /* Hilangkan garis bawah */
}

.footer a:hover {
  text-decoration: underline; /* Tambahkan garis bawah saat hover */
}

/* Hidden Elements */
.hidden {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.hidden.show {
  opacity: 1;
  transform: translateY(0);
}

/* Membuat embed TikTok hanya menampilkan video */
.tiktok-embed {
  aspect-ratio: 10 / 16; /* Menyesuaikan rasio video TikTok */
  overflow: hidden; /* Menyembunyikan elemen yang keluar dari kotak */
  border-radius: 8px; /* Opsional: Membuat sudut melengkung */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Opsional: Tambahkan bayangan */
  max-width: 300px; /* Batasi lebar maksimum */
  margin: 0 auto; /* Pusatkan elemen */
}

/* Menyembunyikan elemen reaksi */
.tiktok-embed .tiktok-avatar-anchor,
.tiktok-embed .tiktok-like,
.tiktok-embed .tiktok-comment,
.tiktok-embed .tiktok-share,
.tiktok-embed .tiktok-sticker {
  display: none !important; /* Sembunyikan elemen reaksi */
}

/* Membuat tombol love, chat, dan tambah transparan */
.tiktok-embed .tiktok-avatar-anchor,
.tiktok-embed .tiktok-like,
.tiktok-embed .tiktok-comment,
.tiktok-embed .tiktok-share {
  opacity: 0.2 !important; /* Gunakan !important untuk memaksa aturan ini diterapkan */
  transition: opacity 0.3s ease; /* Tambahkan transisi untuk efek hover */
}

/* Efek hover untuk menampilkan tombol */
.tiktok-embed .tiktok-avatar-anchor:hover,
.tiktok-embed .tiktok-like:hover,
.tiktok-embed .tiktok-comment:hover,
.tiktok-embed .tiktok-share:hover {
  opacity: 1 !important; /* Tombol menjadi sepenuhnya terlihat saat di-hover */
}

/* Pastikan video tetap dapat digunakan */
.tiktok-embed iframe {
  pointer-events: auto; /* Pastikan interaksi pada iframe tetap aktif */
  width: 100%;
  height: 100%;
}

