@import url('https://fonts.googleapis.com/css2?family=Playfair+Display&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Young+Serif&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');

/* Reset dan Pengaturan Dasar */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Young Serif', serif;
}

body, html {
  height: 100%;
  color: white;
  background-color: #00000000;
  scroll-behavior: smooth;
}

/* Tombol Carousel */
.grain-btn {
  height: 40px;
  width: 40px;
  border-radius: 50%;
  background-color: white;
  border: 2px solid #ccc;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
.grain-btn:hover {
  background-color: #f2f2f2;
  border-color: #999;
}
#carouselTrack::-webkit-scrollbar {
  display: none;
}

/* Hero background */
.hero {
  background: url('../image/k.jpg') no-repeat center center/cover;
  height: 120vh;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 50px;
  z-index: 1;
}

/* Top bar */
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 50px; /* Padding vertikal diperbesar (dari 10px menjadi 20px) */
  z-index: 10;
  background-color: rgb(0, 0, 0); /* Latar belakang dibuat sedikit lebih gelap */
  backdrop-filter: blur(8px); /* EFEK KACA BURAM (FROSTED GLASS) */
  -webkit-backdrop-filter: blur(8px); /* Untuk browser Safari */
  border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* Garis bawah halus */
  transition: all 0.3s ease;
}

.top-left, .top-center, .top-right {
  flex: 1;
  display: flex;
  align-items: center;
}

.top-left {
  justify-content: flex-start;
}

.top-center {
  justify-content: center;
}

.top-right {
  justify-content: flex-end;
}

/* Logo */
.logo img {
  height: 20px;
  width: auto;
}

/* Language */
.language {
  font-size: 10px;
  color: white;
}

/* Navigation */
nav a {
  font-family: 'Poppins', sans-serif; /* MENGGUNAKAN FONT POPPINS */
  font-weight: 500; /* Sedikit lebih tebal agar jelas */
  font-size: 1rem;  /* Ukuran font diperbesar */
  color: white;
  margin-left: 40px; /* Jarak antar menu diperbesar */
  text-decoration: none;
  position: relative; /* Diperlukan untuk efek garis bawah */
  padding-bottom: 5px; /* Jarak untuk garis bawah */
  transition: color 0.3s ease;
}

nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: white;
  transition: width 0.4s ease;
}

nav a:hover {
  color: white; /* Warna tetap putih saat di-hover */
}

nav a:hover::after {
  width: 100%; /* Garis bawah akan memanjang saat di-hover */
}

/* Hero content */
.hero-content {
  max-width: 600px;
  z-index: 2;
  font-family: 'Georgia', serif;
}

.hero-content h1 {
  font-size: 48px;
  color: white;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 14px;
  margin-bottom: 30px;
  color: white;
}

.shop-btn {
  display: inline-block;
  padding: 10px 20px;
  border: 1px solid white;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-size: 14px;
  transition: 0.3s ease;
}

.shop-btn:hover {
  background-color: white;
  color: black;
}

/* Footer note */
.footer-note {
  position: absolute;
  bottom: 20px;
  right: 40px;
  font-size: 10px;
  color: white;
  z-index: 2;
}

/* ===== Marquee Text Section ===== */
.marquee-section {
  background-color: #f1daae; /* Warna latar seperti di gambar */
  color: #2a3e33;             /* Warna teks */
  padding: 20px 0;
  overflow: hidden;
  display: flex;
  white-space: nowrap;
}

.marquee-content {
  font-family: 'Young Serif', serif;
  font-size: 1em;
  font-weight: 500;
  animation: marquee 30s linear infinite; /* Durasi animasi bisa diatur */
  flex-shrink: 0; /* Mencegah konten menyusut */
}

@keyframes marquee {
  from {
    transform: translateX(0%);
  }
  to {
    transform: translateX(-100%);
  }
}

/* Pause animasi saat kursor di atasnya (opsional tapi bagus) */
.marquee-section:hover .marquee-content {
  animation-play-state: paused;
}

/* FEATURES SECTION */
.features {
  background-color: #7b8b6f;
  color: white;
  text-align: center;
  padding: 80px 20px;
  font-family: 'Georgia', serif;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* Ubah ke flex-start */
  padding-top: 100px; /* Tambahkan jarak dari atas */
}

.section-title span {
  display: inline-block;
  background-color: #6c7c63;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 14px;
  margin-bottom: 10px;
}

.section-title h2 {
  font-size: 32px;
  margin-bottom: 170px;
  font-weight: bold;
}

.feature-grid {
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
}

.feature-item {
  max-width: 350px;
  text-align: center;
}

.feature-item img {
  width: 140px;
  height: 160px;
  object-fit: contain;
  margin-bottom: 30px; /* Jarak diperbesar (Anda bisa atur nilainya) */
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.feature-item h3 {
  font-size: 18px;
  margin-bottom: 10px;
  font-weight: bold;
}

.feature-item p {
  font-size: 14px;
  line-height: 1.6;
}

/* Rice Section */
.rice-section {
  padding: 80px 20px;
  background-color: #fcfefa;
  text-align: auto;
}

.section-tag {
  color: #333;
  font-size: 1.2em;
  margin-bottom: 1em;
  background: transparent;
  padding: 6px 16px;
  border-radius: 20px;
  border: 1px solid #000;
  display: inline-block;
  margin-left: 40px;
}

.rice-section .section-title {
  display: block;
  padding-top: 10px;
  color: #000000;
  font-size: 3em;
  margin-bottom: 3em;
  margin-left: 40px;
}

/* Ini adalah BINGKAI yang memiliki batas dan bisa scroll */
.grain-cards-wrapper {
  margin: 0 auto;
  overflow-x: auto;
  cursor: grab;
  scroll-padding: 0 40px;
  user-select: none;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-top: 10px; /* Sembunyikan scrollbar di IE/Edge */
}

/* Sembunyikan scrollbar di Chrome/Safari/Opera */
.grain-cards-wrapper::-webkit-scrollbar {
  display: none;
}

.grain-cards-wrapper.active {
  cursor: grabbing;
}
/* Ini adalah TRACK yang menampung semua kartu */
#carouselTrack {
  display: flex; /* Membuat kartu berjajar ke samping */
  gap: 24px;
  padding: 0 10px; /* Memberi sedikit jarak di awal dan akhir */
}
.grain-card {
  background: #fff;
  border-radius: 30px;
  min-width: 600px;
  max-width: 750px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  border: 1px solid #000000;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  flex: 0 0 auto;
}

.grain-card img {
  width: 200px;
  height: 200px;         /* <-- Buat tinggi dan lebar sama agar jadi kotak */
  object-fit: cover;    /* <-- Pastikan gambar memenuhi kotak (bukan contain) */
  flex-shrink: 0;
  border-radius: 12px;  /* <-- Tambahkan ini untuk sudut yang sedikit membulat */
}
.grain-text {
  flex: 1;
  text-align: left;
  display: flex;             /* <-- Tambahkan ini */
  flex-direction: column;    /* <-- Tambahkan ini */
  justify-content: center; /* <-- Tambahkan ini untuk memusatkan secara vertikal */
}
.grain-text h4 {
  font-family: 'Georgia', serif;
  font-size: 1.25em;
  margin-bottom: 12px;
  color: #222;
}

.grain-text p {
  font-family: 'Georgia', serif;
  font-size: 1em;
  color: #444;
  line-height: 1.4;
  margin: 0;
}

/* Marketplace / Shop Section */
.shop-section {
  background-color: #ffffff;
  padding: 50px 20px;
  text-align: center;
  font-family: 'Georgia', serif;
}

.shop-now-btn {
  padding: 8px 20px;
  border: 1px solid #444;
  border-radius: 20px;
  background-color: transparent;
  color: #000;
  font-size: 14px;
  cursor: pointer;
  margin-bottom: 20px;
}

.stockist-title {
  font-size: 28px;
  color: #2a3c2e;
  font-weight: bold;
  margin-bottom: 8px;
}

.stockist-subtitle {
  font-size: 14px;
  color: #333;
  margin-bottom: 40px;
}

.marketplace-logos {
  display: flex;
  justify-content: center;
  gap: 90px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.marketplace-btn {
  width: 70px;          /* Membuat lebar dan tinggi sama agar bisa jadi lingkaran */
  height: 70px;         /* (Anda bisa ubah ukurannya sesuai selera) */
  border-radius: 50%;   /* Ini adalah kunci untuk membuatnya jadi lingkaran */
  object-fit: contain;  /* Memastikan logo tetap utuh di dalam lingkaran */
  padding: 12px;        /* Memberi ruang napas untuk logo di dalam lingkaran */
  background-color: #fff;
  border: 1px solid #eaeaea;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.marketplace-btn:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* About Us Slide */
.about-slide {
  position: relative;
  background-image: url('../image/pertanian.jpg');
  background-size: cover;
  background-position: center;
  height: 120vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 40px;
  color: #fff;
  font-family: 'Georgia', serif;
}

.about-overlay {
  max-width: 600px;
}

.about-btn {
  background: transparent;
  border: 1px solid #fff;
  color: #fff;
  padding: 8px 20px;
  border-radius: 999px;
  font-size: 14px;
  margin-bottom: 20px;
  cursor: pointer;
}

.about-title {
  font-size: 48px;
  line-height: 1.2;
  font-weight: bold;
  color: #fff;
}

/* Behind the Grain Section */
.behind-slide {
  background-color: #f9f9f5;
  padding: 80px 40px;
  text-align: center;
  min-height: 100vh;
  width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

.behind-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  gap: 60px;
}

.behind-left {
  flex: 1;
}

.behind-right {
  flex: 2;
}

.behind-title {
  font-family: 'Georgia', serif;
  font-size: 28px;
  font-weight: bold;
  color: #1a1a1a;
}

.behind-desc {
  font-size: 14px;
  line-height: 1.6;
  color: #333;
  max-width: 700px;
  font-family: 'Georgia', serif;
  text-align: center;
  margin: 0 auto;
}

.behind-button-container {
  text-align : center
}

.behind-btn {
  display: inline-block;
  padding: 12px 24px;
  border: 1.5px solid #1a1a1a;
  border-radius: 999px;
  font-family: 'Georgia', serif;
  font-size: 14px;
  color: #1a1a1a;
  text-decoration: none;
  transition: all 0.3s ease;
}

.behind-btn:hover {
  background-color: #1a1a1a;
  color: #fff;
}

/* Footer Section */
.footer-section {
  background-color: #2d4034;
  color: #fff;
  padding: 60px 40px 30px;
  font-family: 'Georgia', serif;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-logo img {
  width: 50px;
  height: auto;
  margin-bottom: 40px;
}

.footer-columns {
  display: flex;
  justify-content: space-between;
  position: relative;
}

.footer-col-group {
  display: flex;
  gap: 60px;
}

.footer-nav-right {
  position: absolute;
  top: 0;
  right: 0;
  text-align: right;
}

.footer-nav-right p {
  font-size: 14px;
  font-weight: bold;
  margin: 6px 0;
  color: #fff;
  cursor: pointer;
}

.footer-col h4 {
  font-size: 12px;
  font-weight: normal;
  color: #ccc;
  margin-bottom: 10px;
}

.footer-col p {
  font-size: 14px;
  font-weight: bold;
  margin: 6px 0;
  color: #fff;
  cursor: default;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 60px;
  border-top: 1px solid #ccc;
  padding-top: 20px;
  font-size: 14px;
}

.scroll-top {
  width: 30px;
  height: 30px;
  border: 1px solid #fff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #fff;
  font-size: 16px;
  transition: background 0.3s;
}

.scroll-top:hover {
  background-color: #fff;
  color: #2d4034;
}

/* Floating Icons */
.floating-icons {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 1000;
}

.floating-icons .icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  transition: transform 0.3s;
  background-color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
}

.floating-icons .icon:hover {
  transform: scale(1.1);
}

.floating-icons .icon img {
  width: 70%;
  height: auto;
}

/* ===== Modal Gallery ===== */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  padding-top: 80px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
  background-color: #fff;
  margin: auto;
  padding: 20px;
  border-radius: 12px;
  max-width: 90%;
  max-height: 90%;
  position: relative;
  box-shadow: 0 0 30px rgba(0,0,0,0.3);
  animation: fadeIn 0.3s ease-in-out;
}

.gallery-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  justify-content: center;
}

.gallery-item {
  text-align: center;
}

.gallery-item img {
  width: 100%;
  max-width: 250px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  transition: transform 0.3s, box-shadow 0.3s;
}

.gallery-item img:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.gallery-desc {
  margin-top: 8px;
  font-size: 14px;
  color: #555;
  font-style: italic;
}

.close-btn {
  color: #000;
  position: absolute;
  top: 8px;
  right: 16px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== Responsive Mobile & Tablet ===== */
@media (max-width: 768px) {
  .top-bar {
    flex-direction: column;
    padding: 10px 20px;
    gap: 10px;
    align-items: flex-start;
    background-color: rgba(0, 0, 0, 0.7);
  }

  .top-left, .top-center, .top-right {
    justify-content: center;
    width: 100%;
  }

  nav a {
    margin: 0 10px;
    font-size: 14px;
  }

  .hero {
    padding: 0 20px;
    text-align: center;
  }

  .hero-content h1 {
    font-size: 32px;
  }

  .hero-content p {
    font-size: 12px;
  }

  .shop-btn {
    font-size: 12px;
    padding: 8px 16px;
  }

  .footer-note {
    font-size: 10px;
    right: 20px;
    left: 20px;
    text-align: center;
  }

  .features {
    padding: 60px 20px;
  }

  .feature-grid {
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }

  .feature-item {
    max-width: 90%;
  }

  .section-title h2 {
    font-size: 24px;
  }

  .rice-section {
    padding: 60px 20px;
  }

  .rice-section .section-title {
    font-size: 2em;
    margin-left: 0;
    text-align: center;
  }

  .section-tag {
    position: static;
    margin-bottom: 20px;
    margin-left: auto;
    margin-right: auto;
  }

  .grain-cards-wrapper {
    padding: 0 16px;
    gap: 16px;
  }

  .grain-card {
    min-width: 280px;
    padding: 16px;
  }

  .marketplace-logos {
    gap: 40px;
  }

  .about-slide {
    padding: 40px 20px;
    justify-content: center;
    text-align: center;
  }

  .about-title {
    font-size: 28px;
  }

  .behind-slide {
    padding: 60px 20px;
  }

  .behind-container {
    flex-direction: column;
    gap: 40px;
  }

  .behind-title {
    font-size: 24px;
    text-align: center;
  }

  .behind-desc {
    font-size: 14px;
    text-align: center;
  }

  .behind-btn {
    font-size: 14px;
    padding: 12px 24px;
  }

  .footer-columns {
    flex-direction: column;
    gap: 30px;
  }

  .footer-col-group {
    flex-direction: column;
    gap: 20px;
  }

  .footer-nav-right {
    position: static;
    text-align: left;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    font-size: 12px;
  }

  .floating-icons {
    bottom: 16px;
    right: 16px;
    gap: 10px;
  }
}

@media (min-width: 1024px) {
  .behind-slide {
    padding: 100px 0;
    min-height: 120vh;
    width: 100%;
  }

  .behind-container {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    text-align: left;
    gap: 80px;
  }

  .behind-left {
    flex: 1;
    max-width: 400px;
  }

  .behind-center {
    flex: 2;
    max-width: 200px;
  }

  .behind-title {
    font-size: 40px;
  }

  .behind-desc {
    font-size: 19px;
    max-width: 700px;
    font-family: 'Playfair Display', serif;
    text-align: center;
    margin: 0 auto;
    line-height: 1.6;
    color: #333;
  }

  .behind-button-container {
    margin-top: 64px;
  }

  .behind-btn {
    font-size: 18px;
    padding: 16px 36px;
  }
}
/* === HAMBURGER BUTTON === */
.menu-toggler {
    display: none;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    z-index: 1100;
    padding: 0;
}
.menu-toggler span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: white;
    border-radius: 2px;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.menu-toggler.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggler.active span:nth-child(2) {
    opacity: 0;
}
.menu-toggler.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* === RESPONSIVE SIDEBAR NAVIGATION === */
@media (max-width: 900px) {

    .menu-toggler {
        display: flex;
    }

    .top-right nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 320px;
        height: 100vh;
        background: rgba(45, 64, 52, 0.98); /* Lebih transparan dan modern */
        backdrop-filter: blur(10px); /* Blur background di belakang menu */
        -webkit-backdrop-filter: blur(10px);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3); /* Efek bayangan */
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.2rem;
        padding: 40px 20px;
        transition: right 0.4s ease-in-out;
        z-index: 1000;
    }

    .top-right nav.show {
        right: 0;
    }

    .top-right nav a {
        font-size: 1.2rem;
        color: #fff;
        text-decoration: none;
        padding: 12px 20px;
        border-radius: 8px;
        transition: background-color 0.3s ease;
    }

    .top-right nav a:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }

    /* Jika ingin menambahkan ikon */
    .top-right nav a::before {
        content: "🌿 "; /* contoh ikon */
        margin-right: 8px;
    }
}


/* Membuat kartu produk bisa diklik */
/* --- GAYA BARU UNTUK MODAL & TABEL DETAIL PRODUK --- */

/* Membuat kartu produk bisa diklik (tetap sama) */
.clickable-card {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.clickable-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

/* Penyesuaian konten modal nutrisi */
.nutrition-modal-content {
    max-width: 800px; /* Lebarkan sedikit untuk tabel yang lebih kompleks */
    background-color: #fdfdfd; /* Latar belakang sedikit off-white */
}

.nutrition-modal-content h2 {
    font-family: 'Young Serif', serif;
    text-align: center;
    color: #2d4034; /* Warna hijau tua */
    margin-bottom: 25px;
    font-size: 2rem;
}

/* Tampilan Tabel Baru yang Lebih Menarik */
.nutrition-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-family: 'Poppins', sans-serif;
    border: 1px solid #ff0000;
    border-radius: 8px; /* Sudut tabel dibuat melengkung */
    overflow: hidden; /* Penting untuk border-radius */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0);
}

/* Gaya untuk Header Tabel (thead) */
.nutrition-table thead tr {
    background-color: #2d4034; /* Header dengan warna hijau tua */
    color: #ffffff; /* Teks header putih */
    text-align: left;
    font-weight: 600;
}

.nutrition-table th,
.nutrition-table td {
    padding: 14px 18px; /* Padding diperbesar agar lebih lega */
    text-align: left;
    color: #333;
}

.nutrition-table th {
    color: #ffffff; /* Pastikan teks header putih */
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Gaya untuk Isi Tabel (tbody) */
.nutrition-table tbody tr {
    border-bottom: 1px solid #e0e0e0;
}

/* Warna selang-seling pada baris tabel */
.nutrition-table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* Hilangkan border di baris terakhir */
.nutrition-table tbody tr:last-of-type {
    border-bottom: none;
}

/* Efek hover pada baris tabel */
.nutrition-table tbody tr:hover {
    background-color: #f1f1f1;
}

/* Penyesuaian untuk Mobile */
@media (max-width: 768px) {
    .nutrition-modal-content {
        padding: 20px;
    }

    .nutrition-table thead {
        display: none; /* Sembunyikan header di mobile */
    }

    .nutrition-table, .nutrition-table tbody, .nutrition-table tr, .nutrition-table td {
        display: block; /* Ubah tabel menjadi tumpukan kartu */
        width: 100%;
    }

    .nutrition-table tr {
        margin-bottom: 15px;
        border: 1px solid #e0e0e0;
        border-radius: 8px;
    }

    .nutrition-table td {
        text-align: right; /* Data di kanan */
        padding-left: 50%; /* Sisakan ruang untuk label */
        position: relative;
        border-bottom: 1px solid #eee;
    }

    .nutrition-table td:last-child {
        border-bottom: none;
    }

    /* Membuat label baru menggunakan 'data-label' */
    .nutrition-table td::before {
        content: attr(data-label); /* Ambil teks dari atribut data-label */
        position: absolute;
        left: 15px;
        width: 45%;
        padding-right: 10px;
        font-weight: 600;
        text-align: left;
        color: #2d4034;
    }
}
/* =====================================================
   GALLERY MODAL STYLES - Updated Layout
   Kediri full tinggi, Jember full lebar ke kanan
   ===================================================== */

/* ===== Modal Styling ===== */
/* ===== Modal Styling ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow-y: auto;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 40px 20px;
    box-sizing: border-box;
}

/* ===== Modal Content ===== */
.gallery-modal-content {
    width: 100%;
    max-width: 1000px;
    margin: auto;
    background: rgba(255, 255, 255, 0.12);
    padding: 10px;
    border-radius: 8px;
    box-sizing: border-box;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

/* ===== Gallery Grid ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    grid-auto-rows: 180px;
    gap: 6px;
}

/* ===== Card Styling ===== */
.gallery-card {
    position: relative;
    display: block;
    height: 100%;
    overflow: hidden;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    background-color: #eee;
    border: 2px solid #fff;
}

/* Variasi ukuran kolase */
.gallery-card:nth-child(3n) {
    grid-row: span 3;
}
.gallery-card:nth-child(4n) {
    grid-column: span 2;
}
.gallery-card:nth-child(5n) {
    grid-column: span 2;
    grid-row: span 2;
}
.gallery-card:nth-child(6n) {
    grid-column: span 2;
    grid-row: span 2;
}
/* ===== Image Wrapper ===== */
.gallery-img-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* ===== Image Styling ===== */
.gallery-img-wrapper img {
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease;
    display: block;
}

/* Zoom on hover */
.gallery-card:hover img {
    transform: scale(1.04);
}

/* ===== Caption Styling ===== */
.gallery-caption {
    position: absolute;
    bottom: 0;
    background: rgba(0, 0, 0, 0.45);
    color: #fff !important;
    font-family: 'Poppins', sans-serif !important;
    font-weight: 500 !important;
    font-size: 13px !important;
    padding: 5px 8px !important;
    width: 100% !important;
    text-align: center !important;
    box-sizing: border-box !important;
    border-bottom-left-radius: 6px !important;
    border-bottom-right-radius: 6px !important;
}

/* ===== Close Button (di luar frame gambar) ===== */
.close-btn {
    position: fixed; /* tetap di atas modal, tidak ikut scroll konten */
    top: 20px;
    right: 20px;
    font-size: 30px;
    font-weight: bold;
    color: #fff;
    cursor: pointer;
    z-index: 1002;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: #ff5555;
}

/* ===== Responsive Design ===== */
@media screen and (max-width: 600px) {
    .gallery-modal-content {
        padding: 8px;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        grid-auto-rows: 130px;
        gap: 4px;
    }

    .gallery-caption {
        font-size: 11px !important;
        padding: 4px 6px !important;
    }

    .close-btn {
        font-size: 24px;
        top: 10px;
        right: 12px;
    }
}

.close-btn:hover {
    color: #ff5555;
}

/* ===== Responsive Design ===== */
@media screen and (max-width: 600px) {
    .gallery-modal-content {
        padding: 8px;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        grid-auto-rows: 130px;
        gap: 4px;
    }

    .gallery-caption {
        font-size: 11px;
        padding: 4px 6px;
    }
}


/* =====================================================
   ANIMATION & EFFECTS
   ===================================================== */

/* Smooth fade in ketika modal dibuka */
.modal.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Hover effect pada gambar */
.gallery-card:hover .gallery-img-wrapper img {
    transform: scale(1.05);
    transition: transform 0.5s ease;
}

/* Loading state untuk gambar */
.gallery-img-wrapper img {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
}

/* =====================================================
   ACCESSIBILITY
   ===================================================== */

.gallery-card:focus {
    outline: 3px solid #4CAF50;
    outline-offset: 2px;
}

.close-btn:focus {
    outline: 3px solid #fff;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .gallery-caption {
        background: rgba(0, 0, 0, 0.95);
        border-top: 2px solid white;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .gallery-card,
    .gallery-card:hover .gallery-img-wrapper img,
    .modal.show {
        animation: none;
        transition: none;
    }
}

/* =====================================================
   PRINT STYLES
   ===================================================== */

@media print {
    .modal {
        display: none !important;
    }
}


.b2b-section {
    padding: 60px 20px;
    background: #f8f8f8;
    text-align: center;
}
.b2b-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}
.b2b-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    max-width: 300px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.b2b-contact {
    margin-top: 50px;
}

.about-us-button {
    display: inline-block;
    padding: 10px 20px;
    border: 1px solid white;
    color: white; /* Warna font normal adalah putih */
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    background-color: transparent; /* Latar belakang tombol transparan */
    transition: color 0.3s ease, background-color 0.3s ease; /* Menambahkan transisi untuk latar belakang */
}

.about-us-button:hover {
    color: #000000; /* Warna font berubah menjadi hitam saat hover */
    background-color: #ffffff; /* Warna latar belakang berubah menjadi putih saat hover */
    border-color: #000000; /* Ubah warna border menjadi hitam saat hover */
}

/*About Us Button*/
/* Reset dan pengaturan dasar */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f9f9f9;
    color: #333;
}

/* Header */
.about-us-section {
    padding: 50px 20px;
    text-align: center;
    background-color: #fff;
    border-bottom: 2px solid #ddd;
}

.about-us-section h1 {
    font-size: 36px;
    color: #2d2d2d;
    margin-bottom: 20px;
    font-family: 'Young Serif', serif;
}

.about-us-section p {
    font-size: 18px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 40px;
}

/* Kontainer */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Tombol Kembali ke Halaman Utama */
.about-us-btn {
    display: inline-block;
    padding: 12px 25px;
    background-color: #4CAF50; /* Warna latar belakang tombol */
    color: white;
    font-size: 16px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
    margin-top: 20px;
}

.about-us-btn:hover {
    background-color: #45a049; /* Warna latar belakang saat hover */
    color: #fff;
}

/* Responsivitas */
@media (max-width: 768px) {
    .about-us-section h1 {
        font-size: 28px;
    }

    .about-us-section p {
        font-size: 16px;
    }

    .about-us-btn {
        font-size: 14px;
        padding: 10px 20px;
    }
}


