/* ===== CSS Variables ===== */
:root {
  --primary-green: #00c851;
  --dark-green: #00a846;
  --light-green: #e8f5e9;
  --text-dark: #212529;
  --text-light: #6c757d;
  --bg-light: #f8f9fa;
  --border-color: #dee2e6;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.16);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Global Styles ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===== Custom Colors ===== */
.text-green {
  color: var(--primary-green) !important;
}

.bg-green {
  background-color: var(--primary-green) !important;
}

.btn-primary {
  background-color: var(--primary-green);
  border-color: var(--primary-green);
  color: white;
  font-weight: 500;
  padding: 12px 30px;
  border-radius: 50px;
  transition: var(--transition);
  text-transform: none;
  letter-spacing: 0.5px;
}

.btn-primary:hover {
  background-color: var(--dark-green);
  border-color: var(--dark-green);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline-primary {
  border-color: var(--primary-green);
  color: var(--primary-green);
  font-weight: 500;
  padding: 12px 30px;
  border-radius: 50px;
  transition: var(--transition);
  text-transform: none;
  letter-spacing: 0.5px;
}

.btn-outline-primary:hover {
  background-color: var(--primary-green);
  border-color: var(--primary-green);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ===== Navigation ===== */
/* floating navbar */
.floating-navbar {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90% !important;
  max-width: 1100px !important;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px);
  border-radius: 50px;
  padding: 10px 25px !important;
  box-shadow:
    0 8px 25px rgba(0, 0, 0, 0.08),
    0 2px 10px rgba(0, 0, 0, 0.05);
  z-index: 1000;
}

/* logo */
.navbar-brand img {
  height: 38px;
  transition: 0.3s;
}

.navbar-brand:hover img {
  transform: scale(1.05);
}

/* nav link */
.navbar-nav .nav-link {
  color: #222 !important;
  font-weight: 500;
  margin: 0 12px;
  position: relative;
  transition: 0.3s;
}

/* Nav link dasar */
.navbar-nav .nav-link {
  color: #222 !important;
  font-weight: 500;
  margin: 0 4px;
  padding: 8px 16px !important;
  border-radius: 30px;
  border: 1px solid transparent; /* Border transparan disiapkan */
  transition: all 0.3s ease;
}

/* Efek garis nyala saat aktif & hover */
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  border-color: #22c55e;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.25); /* Efek glow hijau tipis */
  color: #22c55e !important;
  background-color: #ffffff; /* Background putih biar lebih pop-up */
}

/* Setting posisi awal garis */
.navbar-nav .nav-link::before {
  top: 0;
  left: 0; /* Garis atas mulai dari kiri */
}

.navbar-nav .nav-link::after {
  bottom: 0;
  right: 0; /* Garis bawah mulai dari kanan */
}

/* Garis memanjang saat aktif/hover */
.navbar-nav .nav-link:hover::before,
.navbar-nav .nav-link.active::before,
.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  width: 100%;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: #22c55e !important;
}

/* contact button style */
.contact-btn {
  background: #22c55e;
  color: white !important;
  padding: 6px 18px !important;
  border-radius: 20px;
  margin-left: 10px;
}

.contact-btn:hover {
  background: #16a34a;
  color: white !important;
}

/* hamburger */
.navbar-toggler {
  border: none;
}

.navbar-toggler:focus {
  box-shadow: none;
}

/* ===== Hero Slider Styles ===== */
.hero-section {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    padding: 0;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    will-change: opacity;
}

.hero-slide.active {
    opacity: 1;
    z-index: 2;
}

/* Overlay yang lebih terang dan natural */
.slider-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.2) 100%);
    z-index: 3;
    pointer-events: none;
}

/* Konten di atas slider */
.hero-section .container {
    position: relative;
    z-index: 5;
}

/* Pastikan floating elements tetap di atas */
.floating-badge,
.floating-card {
    z-index: 10 !important;
    position: absolute !important;
}

/* Hero image card */
.hero-image-card {
    position: relative;
    z-index: 4;
}

/* Optional: Slide Indicators */
.slide-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.indicator.active {
    background-color: var(--primary-green);
    transform: scale(1.2);
    box-shadow: 0 0 15px var(--primary-green);
    border-color: white;
}

/* Animation untuk transisi gambar */
@keyframes zoomEffect {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.05);
    }
}

.hero-slide.active {
    animation: zoomEffect 8s ease-in-out forwards;
}

/* Responsive */
@media (max-width: 768px) {
    .slide-indicators {
        bottom: 20px;
    }
    
    .indicator {
        width: 10px;
        height: 10px;
    }
}


/* Animation untuk transisi gambar */
@keyframes zoomEffect {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.1);
    }
}

.hero-slide.active {
    animation: zoomEffect 8s ease-in-out forwards;
}

/* Responsive */
@media (max-width: 768px) {
    .slide-indicators {
        bottom: 20px;
    }
    
    .indicator {
        width: 10px;
        height: 10px;
    }
}

/* Hero Section dengan Background Image */
.hero-section[style*="background-image"] {
  background:
    linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.5)),
    url("assets/hero3.jpeg") !important;
  background-size: cover !important;
  background-position: center !important;
  background-attachment: fixed !important;
  background-repeat: no-repeat !important;
}

.hero-section[style*="background-image"]::before {
  display: none;
}

.hero-text-wrapper {
  padding: 30px;
  border-radius: 20px;
  margin-top: 100px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.main-hero {
  margin-top: -100px;
}

.hero-content h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.2;
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero-content p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* Hero Button Styles */
.hero-btn {
  padding: 14px 32px !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  border-radius: 50px !important;
  transition: all 0.3s ease !important;
  text-transform: none !important;
  letter-spacing: 0.5px !important;
  position: relative;
  overflow: hidden;
  display: inline-block;
}

.hero-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s ease;
}

.hero-btn:hover::before {
  left: 100%;
}

.btn-primary.hero-btn {
  background: linear-gradient(
    135deg,
    var(--primary-green),
    var(--dark-green)
  ) !important;
  border: none !important;
  box-shadow: 0 4px 15px rgba(0, 200, 81, 0.3) !important;
}

.btn-primary.hero-btn:hover {
  background: linear-gradient(
    135deg,
    var(--dark-green),
    var(--primary-green)
  ) !important;
  transform: translateY(-3px) !important;
  box-shadow: 0 6px 20px rgba(0, 200, 81, 0.4) !important;
}

.btn-outline-light.hero-btn {
  background: rgba(255, 255, 255, 0.1) !important;
  border: 2px solid rgba(255, 255, 255, 0.3) !important;
  color: white !important;
  backdrop-filter: blur(10px) !important;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1) !important;
}

.btn-outline-light.hero-btn:hover {
  background: rgba(255, 255, 255, 0.2) !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
  transform: translateY(-3px) !important;
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2) !important;
}

.hero-image {
  position: relative;
}

.hero-image-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  transition: var(--transition);
}

.hero-image-card:hover {
  transform: scale(1.02);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

.hero-image-card img {
  border-radius: 20px;
  width: 100%;
  height: auto;
  display: block;
  transition: var(--transition);
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 200, 81, 0.1) 0%,
    rgba(0, 168, 70, 0.2) 50%,
    rgba(0, 0, 0, 0.3) 100%
  );
  border-radius: 20px;
  pointer-events: none;
}

.hero-image-card:hover .image-overlay {
  background: linear-gradient(
    135deg,
    rgba(0, 200, 81, 0.2) 0%,
    rgba(0, 168, 70, 0.3) 50%,
    rgba(0, 0, 0, 0.4) 100%
  );
}

.floating-badge {
  animation: float 3s ease-in-out infinite;
  z-index: 10;
}

.floating-card {
  animation: float 3s ease-in-out infinite 1s;
  max-width: 280px;
  z-index: 10;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.95) !important;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.icon-box {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* ===== Running Ribbon ===== */
.running-ribbon {
  background: var(--primary-green);
  overflow: hidden;
  padding: 20px 0;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 200, 81, 0.3);
}

.ribbon-content {
  display: flex;
  animation: scroll-left 20s linear infinite;
  white-space: nowrap;
}

.ribbon-text {
  color: white;
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
}

@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ===== Section Headers ===== */
.section-header .badge {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  border-radius: 50px;
  padding: 8px 20px;
}

.section-header h2 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.divider {
  height: 4px;
  width: 60px;
  border-radius: 2px;
  transition: var(--transition);
}

.section-header:hover .divider {
  width: 80px;
}

/* ===== About Section ===== */
.about-section {
  background: white;
  position: relative;
}

.about-section .position-relative img {
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
}

.about-section .position-relative:hover img {
  transform: scale(1.02);
}

.stats-overlay {
  border-radius: 0 0 20px 20px;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.1);
}

.stats-overlay h3 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.feature-item {
  padding: 10px 0;
  transition: var(--transition);
}

.feature-item:hover {
  transform: translateX(5px);
}

.feature-item i {
  font-size: 1.1rem;
}

/* ===== Services Section ===== */
.services-section {
  background: var(--bg-light);
}

.service-card {
  background: white;
  border-radius: 20px;
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-green), var(--dark-green));
  transform: scaleX(0);
  transition: var(--transition);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-green);
}

.icon-wrapper {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--light-green), var(--primary-green));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  transition: var(--transition);
}

.service-card:hover .icon-wrapper {
  transform: scale(1.1) rotate(5deg);
}

.icon-wrapper i {
  font-size: 2rem;
  color: var(--primary-green);
  transition: var(--transition);
}

.service-card:hover .icon-wrapper i {
  color: white;
}

.service-card h4 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.service-card p {
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 0;
}

/* ===== Contact Section ===== */
.contact-section {
  background: white;
}

.contact-info {
  margin-top: 2rem;
}

.contact-item {
  padding: 15px;
  border-radius: 12px;
  background: var(--bg-light);
  transition: var(--transition);
}

.contact-item:hover {
  background: var(--light-green);
  transform: translateX(5px);
}

.contact-item i {
  font-size: 1.2rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
}

.contact-item h6 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.contact-item p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

.contact-form {
  border-radius: 20px;
  box-shadow: var(--shadow-md);
}

.form-control {
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 0.95rem;
  transition: var(--transition);
  background: white;
}

.form-control:focus {
  border-color: var(--primary-green);
  box-shadow: 0 0 0 0.2rem rgba(0, 200, 81, 0.15);
  outline: none;
}

.form-label {
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

/* ===== Footer ===== */
.footer {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

.social-links a {
  display: inline-block;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: var(--transition);
  font-size: 1.1rem;
}

.social-links a:hover {
  background: var(--primary-green);
  transform: translateY(-3px);
}

/* ===== Products Page Specific Styles ===== */

/* Products Hero Section - Responsive Images */
.products-hero {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 60vh;
    display: flex;
    align-items: center;
    position: relative;
}

/* Overlay untuk membuat teks lebih terbaca */
.products-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.5));
    z-index: 1;
}

.products-hero .container {
    position: relative;
    z-index: 2;
}

/* Default untuk desktop/laptop */
.products-hero {
    background-image: url('assets/desktop.png');
}

/* Untuk tablet */
@media (min-width: 577px) and (max-width: 992px) {
    .products-hero {
        background-image: url('assets/tab.png');
        min-height: 50vh;
    }
}

/* Untuk mobile/hp */
@media (max-width: 576px) {
    .products-hero {
        background-image: url('assets/hp.png');
        min-height: 40vh;
    }
}

/* Opsional: Untuk layar sangat besar */
@media (min-width: 1400px) {
    .products-hero {
        background-image: url('assets/desktop-large.png');
        min-height: 70vh;
    }
}

/* Product Card Styles */
.product-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
  border: 1px solid var(--border-color);
  position: relative;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-green);
}

.product-image-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1; /* paksa selalu kotak */
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa; /* optional biar ada background kalau kosong */
    overflow: hidden;
    position: relative;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

@media (max-width: 576px) {

    .products-section .container {
        padding-left: 30px !important;
        padding-right: 30px !important;
    }

  .modal-right {
      border-bottom-right-radius: 10%;
      border-bottom-left-radius: 10%;
      border-top-right-radius: 0 !important;
  }
  
  .modal-left {
      border-top-right-radius: 10%;
      border-top-left-radius: 10%;
      border-bottom-left-radius: 0 !important;
  }
}

.product-card:hover .product-image {
  transform: scale(1.1);
}

/* Product Overlay */
.product-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 200, 81, 0.2),
    rgba(0, 168, 70, 0.3)
  );
  opacity: 0;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.product-card:hover .product-overlay {
  opacity: 1;
}

.product-overlay-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-green);
  text-decoration: none;
  transform: translateY(20px);
  transition: var(--transition);
  box-shadow: var(--shadow-md);
  border: none;
  outline: none;
}

.product-overlay-btn:hover {
  background: var(--primary-green);
  color: white;
  transform: translateY(0) scale(1.1);
}

.product-overlay-btn i {
  font-size: 1.2rem;
}

/* Stagger animation for overlay buttons */
.product-card:nth-child(1) .product-overlay-btn {
  transition-delay: 0.05s;
}
.product-card:nth-child(2) .product-overlay-btn {
  transition-delay: 0.1s;
}

/* Product Badge */
.product-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--primary-green);
  color: white;
  padding: 5px 15px;
  border-radius: 25px;
  font-size: 0.8rem;
  font-weight: 500;
  z-index: 10;
  box-shadow: var(--shadow-sm);
}

/* Product Content */
.product-content {
  padding: 20px;
}

.product-category {
  color: var(--primary-green);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.product-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-dark);
  line-height: 1.4;
}

.product-description {
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 15px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-price {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary-green);
  margin-bottom: 15px;
}

/* Product Actions */
.product-actions {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.btn-shop {
  flex: 1;
  background: var(--primary-green);
  color: white;
  padding: 10px 15px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: var(--transition);
  text-align: center;
  border: 2px solid var(--primary-green);
}

.btn-shop:hover {
  background: var(--dark-green);
  border-color: var(--dark-green);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: white;
}

.btn-detail {
  flex: 1;
  background: transparent;
  color: var(--primary-green);
  padding: 10px 15px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: var(--transition);
  text-align: center;
  border: 2px solid var(--primary-green);
}

.btn-detail:hover {
  background: var(--primary-green);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Filter Section */
.filter-section {
  background: var(--bg-light);
  padding: 30px 0;
  border-bottom: 1px solid var(--border-color);
}

.filter-btn {
  background: white;
  border: 2px solid var(--border-color);
  color: var(--text-dark);
  padding: 10px 25px;
  border-radius: 30px;
  font-weight: 500;
  transition: var(--transition);
  margin: 0 5px 10px;
  cursor: pointer;
  font-size: 0.95rem;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary-green);
  border-color: var(--primary-green);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Search Box */
.search-box {
  position: relative;
  max-width: 400px;
  margin-left: auto;
}

.search-box input {
  width: 100%;
  padding: 15px 25px;
  border: 2px solid var(--border-color);
  border-radius: 30px;
  font-size: 0.95rem;
  transition: var(--transition);
  background: white;
}

.search-box input:focus {
  border-color: var(--primary-green);
  box-shadow: 0 0 0 0.2rem rgba(0, 200, 81, 0.15);
  outline: none;
}

.search-box button {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--primary-green);
  border: none;
  color: white;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  transition: var(--transition);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-box button:hover {
  background: var(--dark-green);
  transform: translateY(-50%) scale(1.1);
}

.search-box button i {
  font-size: 1.1rem;
}

/* Empty State */
.empty-state {
  padding: 40px 20px;
}

.empty-state i {
  font-size: 4rem;
  color: var(--text-light);
  opacity: 0.5;
}

/* CTA Section */
.cta-section {
  background: var(--bg-light);
}

/* ===== Recipes Page Specific Styles ===== */

/* Recipes Hero Section - Responsive Images */
.recipes-hero {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 60vh;
    display: flex;
    align-items: center;
    position: relative;
}

/* Overlay untuk membuat teks lebih terbaca */
.recipes-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.5));
    z-index: 1;
}

.recipes-hero .container {
    position: relative;
    z-index: 2;
}

/* Default untuk desktop/laptop */
.recipes-hero {
    background-image: url('assets/desktop.png');
}

/* Untuk tablet */
@media (min-width: 577px) and (max-width: 992px) {
    .recipes-hero {
        background-image: url('assets/tab.png');
        min-height: 50vh;
    }
}

/* Untuk mobile/hp */
@media (max-width: 576px) {
    .recipes-hero {
        background-image: url('assets/hp.png');
        min-height: 40vh;
    }
}

/* Opsional: Untuk layar sangat besar */
@media (min-width: 1400px) {
    .recipes-hero {
        background-image: url('assets/desktop.png');
        min-height: 70vh;
    }
}

/* Alphabet Navigation */
.alphabet-nav {
  background: var(--bg-light);
  padding: 20px 0;
  border-bottom: 1px solid var(--border-color);
  top: 80px;
  z-index: 99;
  box-shadow: var(--shadow-sm);
}

.alphabet-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.alphabet-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background: white;
  border: 2px solid var(--border-color);
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  border-radius: 50%;
  transition: var(--transition);
}

.alphabet-link:hover,
.alphabet-link.active {
  background: var(--primary-green);
  border-color: var(--primary-green);
  color: white;
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* Recipe Section */
.recipe-section {
  scroll-margin-top: 140px;
}

.recipe-section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-green);
  margin-bottom: 30px;
  position: relative;
  display: inline-block;
}

.recipe-section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--primary-green);
  border-radius: 2px;
  transition: var(--transition);
}

.recipe-section:hover .recipe-section-title::after {
  width: 100%;
}

/* Disease Card */
.recipe-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
  border: 1px solid var(--border-color);
  position: relative;
}

.recipe-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-green);
}

/* Disease Image */
.recipe-image-wrapper {
  position: relative;
  overflow: hidden;
  height: 250px;
}

.recipe-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.recipe-card:hover .recipe-image {
  transform: scale(1.1);
}

/* Disease Overlay */
.recipe-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 200, 81, 0.2),
    rgba(0, 168, 70, 0.3)
  );
  opacity: 0;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.recipe-card:hover .recipe-overlay {
  opacity: 1;
}
.recipe-icon {
  background: linear-gradient(135deg, var(--light-green), var(--primary-green));
  color: white;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  border-radius: 15px;
  margin-bottom: 15px;
  transition: var(--transition);
}

.recipe-card:hover .recipe-icon {
  transform: scale(1.1) rotate(5deg);
}

.recipe-content {
  padding: 25px;
}

.recipe-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--text-dark);
  line-height: 1.4;
}

.recipe-text {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 0;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.recipe-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--primary-green);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1rem;
  box-shadow: var(--shadow-sm);
  z-index: 10;
}

/* No Recipes */
.no-recipes {
  text-align: center;
  padding: 60px 20px;
  background: var(--bg-light);
  border-radius: 20px;
  margin: 40px 0;
}

.no-recipes i {
  font-size: 4rem;
  color: var(--text-light);
  opacity: 0.5;
  margin-bottom: 20px;
}

.no-recipes h4 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-dark);
}

.no-recipes p {
  color: var(--text-light);
  font-size: 1rem;
  margin-bottom: 0;
}

/* ===== LBA Darah Page Specific Styles ===== */

/* LBA Hero Section */
.lba-hero {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.5)),
    url("assets/hero3.jpeg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  min-height: 60vh;
  display: flex;
  align-items: center;
}

/* Importance Card */
.importance-card {
  background: white;
  border-radius: 20px;
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.importance-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-green), var(--dark-green));
  transform: scaleX(0);
  transition: var(--transition);
}

.importance-card:hover::before {
  transform: scaleX(1);
}

.importance-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-green);
}

.importance-card .icon-wrapper {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--light-green), var(--primary-green));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  transition: var(--transition);
}

.importance-card:hover .icon-wrapper {
  transform: scale(1.1) rotate(5deg);
}

.importance-card .icon-wrapper i {
  font-size: 2rem;
  color: var(--primary-green);
  transition: var(--transition);
}

.importance-card:hover .icon-wrapper i {
  color: white;
}

.importance-card h4 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.importance-card p {
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 0;
}

/* Stat Card */
.stat-card {
  background: white;
  border-radius: 20px;
  padding: 30px 20px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.stat-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-green);
}

.stat-icon {
  font-size: 3rem;
  color: var(--primary-green);
  transition: var(--transition);
}

.stat-card:hover .stat-icon {
  transform: scale(1.1);
}

.stat-card h3 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.stat-card p {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 0;
}

/* Jenis Card */
.jenis-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--border-color);
  height: 100%;
}

.jenis-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-green);
}

.jenis-image-wrapper {
  height: 200px;
  overflow: hidden;
}

.jenis-image-wrapper img {
  transition: var(--transition);
}

.jenis-card:hover .jenis-image-wrapper img {
  transform: scale(1.1);
}

.jenis-content {
  padding: 20px;
}

.jenis-badge {
  font-size: 0.9rem;
  font-weight: 600;
}

.jenis-range {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.jenis-range .badge {
  padding: 8px 12px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* Tip Card */
.tip-card {
  background: white;
  border-radius: 20px;
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--border-color);
  text-align: center;
  height: 100%;
}

.tip-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-green);
}

.tip-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--light-green), var(--primary-green));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.8rem;
  color: white;
  transition: var(--transition);
}

.tip-card:hover .tip-icon {
  transform: scale(1.1) rotate(5deg);
}

.tip-card h4 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--text-dark);
}

.tip-card p {
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 0;
  font-size: 0.95rem;
}

/* FAQ Section */
.faq-section .accordion-item {
  border: 1px solid var(--border-color);
  border-radius: 15px !important;
  overflow: hidden;
  background: white;
}

.faq-section .accordion-button {
  padding: 20px 25px;
  font-weight: 500;
  color: var(--text-dark);
  background: white;
  border: none;
}

.faq-section .accordion-button:not(.collapsed) {
  background: linear-gradient(135deg, var(--light-green), white);
  color: var(--primary-green);
  box-shadow: none;
}

.faq-section .accordion-button:focus {
  box-shadow: none;
  border-color: var(--primary-green);
}

.faq-section .accordion-button::after {
  background-size: 1.2rem;
  transition: var(--transition);
}

.faq-section .accordion-body {
  padding: 20px 25px;
  color: var(--text-light);
  line-height: 1.6;
  border-top: 1px solid var(--border-color);
}

/* Table Styles */
.table {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 0;
}

.table thead th {
  background: var(--primary-green);
  color: white;
  font-weight: 600;
  padding: 15px;
  border: none;
}

.table tbody td {
  padding: 15px;
  vertical-align: middle;
  border-color: var(--border-color);
}

.table tbody tr:hover {
  background: var(--light-green);
}

/* ===== LBA Cards Styling - 1 Card per Baris ===== */

/* Container untuk semua cards */
.lba-cards-container {
  max-width: 1400px;
  margin: 0 auto;
}

/* Wrapper untuk setiap card dengan jarak konsisten */
.lba-card-wrapper {
  margin-bottom: 2rem;
  transition: var(--transition);
}

.lba-card-wrapper:last-child {
  margin-bottom: 0;
}

/* Card utama dengan shadow dan border */
.lba-card {
  background: white;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: 1px solid var(--border-color);
  height: 100%;
}

.lba-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-green);
}

/* Container Gambar */
.lba-image-col {
    display: flex;
}

.lba-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 250px; /* Opsional: memberikan tinggi minimal saat di tampilan mobile/layar kecil */
    overflow: hidden; /* Mencegah gambar keluar dari sudut card jika ada border-radius */
}

/* Gambar LBA */
.lba-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* KUNCI UTAMA: Gambar akan di-crop rapi mengisi seluruh tinggi & lebar tanpa merubah rasio/gepeng */
    object-position: center; /* Fokuskan potongan gambar di tengah */
}

.lba-card:hover .lba-image {
  transform: scale(1.05);
}

/* Badge nomor pada gambar */
.lba-image-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 10;
}

.badge-number {
  display: inline-block;
  width: 50px;
  height: 50px;
  background: var(--primary-green);
  color: white;
  border-radius: 50%;
  text-align: center;
  line-height: 50px;
  font-weight: 700;
  font-size: 1.2rem;
  box-shadow: var(--shadow-md);
  border: 3px solid white;
}

/* Kolom konten */
.lba-content-col {
  display: flex;
  flex-direction: column;
}

.lba-content-wrapper {
  padding: 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Header card */
.lba-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--light-green);
}

.lba-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-dark);
  line-height: 1.3;
}

.lba-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.meta-item {
  display: inline-flex;
  align-items: center;
  font-size: 0.9rem;
  color: var(--text-light);
  background: var(--bg-light);
  padding: 0.4rem 1rem;
  border-radius: 50px;
}

.meta-item i {
  color: var(--primary-green);
}

.lba-description {
  flex: 1;
}

.lba-subtitle {
  font-size: 1rem;
  line-height: 1.6;
  background: var(--light-green);
  padding: 1rem;
  border-radius: 12px;
  border-left: 4px solid var(--primary-green);
}

/* List temuan dengan styling yang rapi */
.lba-findings {
  display: flex;
  flex-direction: column;
}

.finding-item {
  display: flex;
  gap: 1rem;
  padding: 0.5rem;
  border-radius: 8px;
  align-items: center;
}

.finding-icon {
  flex-shrink: 0;
}

.finding-icon i {
  font-size: 0.8rem;
  color: var(--primary-green);
}

.finding-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-dark);
}

.finding-text strong {
  color: var(--primary-green);
  font-weight: 600;
}

/* Footer card */
.lba-footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.lba-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.lba-tags .badge {
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  transition: var(--transition);
}

.lba-tags .badge:hover {
  background: var(--primary-green) !important;
  color: white !important;
  cursor: default;
}

/* Responsive breakpoints */

/* Tablet landscape dan desktop kecil */
@media (max-width: 1200px) {
  .lba-title {
    font-size: 1.6rem;
  }

  .lba-content-wrapper {
    padding: 1.75rem;
  }

  .lba-image-col {
    min-height: 280px;
  }
}

/* Tablet portrait */
@media (max-width: 992px) {
  .lba-card .row {
    flex-direction: column;
  }

  .lba-image-col {
    min-height: 300px;
    width: 100%;
  }

  .lba-image-container {
    height: 300px;
  }

  .lba-image {
    object-fit: cover;
  }

  .lba-content-wrapper {
    padding: 1.5rem;
  }

  .lba-title {
    font-size: 1.5rem;
  }

  .finding-item {
    gap: 0.75rem;
  }

  .badge-number {
    width: 45px;
    height: 45px;
    line-height: 45px;
    font-size: 1.1rem;
  }
}

/* Mobile landscape */
@media (max-width: 768px) {
  .lba-card-wrapper {
    margin-bottom: 1.5rem;
  }

  .lba-image-col {
    min-height: 250px;
  }

  .lba-image-container {
    height: 250px;
  }

  .lba-content-wrapper {
    padding: 1.25rem;
  }

  .lba-title {
    font-size: 1.3rem;
  }

  .lba-meta {
    gap: 0.5rem;
  }

  .meta-item {
    font-size: 0.8rem;
    padding: 0.3rem 0.8rem;
  }

  .lba-subtitle {
    font-size: 0.9rem;
    padding: 0.75rem;
  }

  .finding-text {
    font-size: 0.9rem;
  }

  .badge-number {
    width: 40px;
    height: 40px;
    line-height: 40px;
    font-size: 1rem;
    top: 15px;
    left: 15px;
  }
}

/* Mobile portrait */
@media (max-width: 576px) {
  .lba-image-col {
    min-height: 220px;
  }

  .lba-image-container {
    height: 220px;
  }

  .lba-content-wrapper {
    padding: 1rem;
  }

  .lba-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
  }

  .lba-header {
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
  }

  .lba-card-wrapper {
    padding-left: 1rem;
    padding-: 1rem;
  }

  .lba-meta {
    flex-direction: column;
    gap: 0.3rem;
  }

  .meta-item {
    width: fit-content;
  }

  .finding-item {
    gap: 0.5rem;
  }

  .finding-icon i {
    font-size: 0.7rem;
  }

  .finding-text {
    font-size: 0.85rem;
  }

  .lba-tags .badge {
    font-size: 0.7rem;
    padding: 0.3rem 0.8rem;
  }

  .badge-number {
    width: 35px;
    height: 35px;
    line-height: 35px;
    font-size: 0.9rem;
    border-width: 2px;
  }
}

/* Untuk konten yang sangat panjang */
@media (min-width: 1400px) {
  .lba-content-wrapper {
    padding: 2.5rem;
  }

  .lba-title {
    font-size: 2rem;
  }

  .finding-text {
    font-size: 1rem;
  }
}

/* Animasi untuk item list */
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.finding-item {
  animation: slideInRight 0.5s ease-out forwards;
  animation-delay: calc(var(--item-index) * 0.1s);
}

/* Optional: Styling untuk konten yang bisa di-expand */
.lba-footer .btn-link {
  text-decoration: none;
  font-weight: 500;
}

.lba-footer .btn-link:hover {
  color: var(--dark-green) !important;
}

.lba-footer .btn-link[aria-expanded="true"] i {
  transform: rotate(180deg);
}

.lba-footer .btn-link i {
  transition: transform 0.3s ease;
}

/* Optional: Variasi warna untuk card berbeda */
.lba-card-wrapper:nth-child(even) .lba-image-badge .badge-number {
  background: var(--dark-green);
}

.lba-card-wrapper:nth-child(odd) .lba-image-badge .badge-number {
  background: var(--primary-green);
}

/* Responsive Styles for LBA Page */
@media (max-width: 992px) {
  .lba-hero {
    min-height: 50vh;
  }

  .stat-card h3 {
    font-size: 2rem;
  }

  .jenis-image-wrapper {
    height: 180px;
  }
}

@media (max-width: 768px) {
  .lba-hero {
    min-height: 40vh;
    background-attachment: scroll;
  }

  .lba-hero h1 {
    font-size: 2rem;
  }

  .stat-card {
    padding: 20px 15px;
  }

  .stat-card h3 {
    font-size: 1.8rem;
  }

  .jenis-card .row {
    flex-direction: column;
  }

  .jenis-image-wrapper {
    height: 200px;
    width: 100%;
  }

  .jenis-image-wrapper img {
    border-radius: 20px 20px 0 0 !important;
  }

  .tip-card {
    padding: 25px 20px;
  }

  .faq-section .accordion-button {
    padding: 15px 20px;
    font-size: 0.95rem;
  }
}

@media (max-width: 576px) {
  .lba-hero {
    min-height: 30vh;
  }

  .lba-hero h1 {
    font-size: 1.75rem;
  }

  .lba-hero .lead {
    font-size: 0.95rem;
  }

  .importance-card {
    padding: 25px 20px;
  }

  .importance-card .icon-wrapper {
    width: 60px;
    height: 60px;
  }

  .importance-card .icon-wrapper i {
    font-size: 1.5rem;
  }

  .stat-card h3 {
    font-size: 1.5rem;
  }

  .stat-card p {
    font-size: 0.85rem;
  }

  .jenis-range {
    flex-direction: column;
    gap: 5px;
  }

  .jenis-range .badge {
    display: inline-block;
    width: fit-content;
  }

  .tip-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }

  .tip-card h4 {
    font-size: 1.1rem;
  }

  .tip-card p {
    font-size: 0.9rem;
  }

  .table {
    font-size: 0.85rem;
  }

  .table td,
  .table th {
    padding: 10px;
  }
}

/* ===== Stats Section ===== */
.stats-section {
  background: var(--bg-light);
  padding: 60px 0;
}

.stat-card {
  background: white;
  border-radius: 20px;
  padding: 40px 30px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--border-color);
  text-align: center;
}

.stat-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-green);
}

.stat-icon {
  font-size: 3rem;
  color: var(--primary-green);
  margin-bottom: 20px;
  transition: var(--transition);
}

.stat-card:hover .stat-icon {
  transform: scale(1.1);
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-green);
  margin-bottom: 10px;
  line-height: 1;
}

.stat-label {
  font-size: 1rem;
  color: var(--text-light);
  margin-bottom: 0;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

/* ===== Video Section ===== */
.video-section {
  background: white;
}

.video-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.video-card:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-lg);
}

.video-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
}

.video-wrapper iframe {
  width: 100%;
  height: 315px;
  border: none;
  border-radius: 16px;
}

.video-title {
  padding: 20px;
  background: var(--bg-light);
  border-top: 1px solid var(--border-color);
}

.video-title h4 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.video-title p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 0;
}

/* ===== Features Section ===== */
.features-section {
  background: white;
  padding: 60px 0;
}

.feature-item {
  background: white;
  border-radius: 15px;
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.feature-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-green);
}

.feature-item i {
  font-size: 1.2rem;
  color: var(--primary-green);
  transition: var(--transition);
}

.feature-item:hover i {
  transform: scale(1.1);
}

.feature-item span {
  font-weight: 500;
  color: var(--text-dark);
}

/* ===== Gallery Page Specific Styles ===== */

/* Ganti dengan yang baru */
.gallery-hero {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 60vh;
    display: flex;
    align-items: center;
    position: relative;
}

.gallery-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.5));
    z-index: 1;
}

.gallery-hero .container {
    position: relative;
    z-index: 2;
}

/* Default untuk desktop/laptop */
.gallery-hero {
    background-image: url('assets/desktop.png');
}

/* Tablet */
@media (min-width: 577px) and (max-width: 992px) {
    .gallery-hero {
        background-image: url('assets/tab.png');
        min-height: 50vh;
    }
}

/* Mobile */
@media (max-width: 576px) {
    .gallery-hero {
        background-image: url('assets/hp.png');
        min-height: 40vh;
    }
}

/* Gallery Filter Section */
.gallery-filter-section {
  background: var(--bg-light);
  padding: 30px 0;
  border-bottom: 1px solid var(--border-color);
}

/* Gallery Card */
.gallery-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
  border: 1px solid var(--border-color);
  position: relative;
}

.gallery-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-green);
}

/* Gallery Image */
.gallery-image-wrapper {
  position: relative;
  overflow: hidden;
  height: 250px;
}

.gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.gallery-card:hover .gallery-image {
  transform: scale(1.1);
}

/* Gallery Overlay */
.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 200, 81, 0.2),
    rgba(0, 168, 70, 0.3)
  );
  opacity: 0;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.gallery-card:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-green);
  text-decoration: none;
  transform: translateY(20px);
  transition: var(--transition);
  box-shadow: var(--shadow-md);
  border: none;
  cursor: pointer;
}

.gallery-overlay-btn:hover {
  background: var(--primary-green);
  color: white;
  transform: translateY(0) scale(1.1);
}

.gallery-overlay-btn i {
  font-size: 1.2rem;
}

/* Stagger animation for overlay buttons */
.gallery-card:nth-child(1) .gallery-overlay-btn {
  transition-delay: 0.05s;
}
.gallery-card:nth-child(2) .gallery-overlay-btn {
  transition-delay: 0.1s;
}

/* Gallery Badge */
.gallery-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--primary-green);
  color: white;
  padding: 5px 12px;
  border-radius: 25px;
  font-size: 0.8rem;
  font-weight: 500;
  z-index: 10;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Gallery Content */
.gallery-content {
  padding: 20px;
}

.gallery-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-dark);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gallery-date {
  font-size: 0.8rem;
  color: var(--text-light);
  white-space: nowrap;
  background: var(--bg-light);
  padding: 4px 10px;
  border-radius: 50px;
}

.gallery-description {
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 15px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Gallery Tags */
.gallery-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.gallery-tag {
  background: var(--bg-light);
  color: var(--text-dark);
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 500;
  transition: var(--transition);
  cursor: pointer;
  border: 1px solid var(--border-color);
}

.gallery-tag:hover {
  background: var(--primary-green);
  color: white;
  border-color: var(--primary-green);
  transform: translateY(-2px);
}

.gallery-tag i {
  font-size: 0.7rem;
}

/* Gallery Actions */
.btn-detail-gallery {
  width: 100%;
  background: transparent;
  color: var(--primary-green);
  padding: 10px 15px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: var(--transition);
  text-align: center;
  border: 2px solid var(--primary-green);
  background: white;
  cursor: pointer;
}

.btn-detail-gallery:hover {
  background: var(--primary-green);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Modal Styles */
.modal-content {
  border-radius: 20px;
  border: none;
  box-shadow: var(--shadow-lg);
}

.modal-header {
  border-radius: 20px 20px 0 0;
  padding: 1rem 1.5rem;
}

.modal-header.bg-green {
  background: var(--primary-green);
}

.modal-header .btn-close-white {
  filter: brightness(0) invert(1);
}

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  border-top: 1px solid var(--border-color);
  padding: 1rem 1.5rem;
}

#fullscreenModal .modal-content {
  background: transparent;
  box-shadow: none;
}

#fullscreenModal .modal-header {
  border-bottom: none;
  position: absolute;
  right: 0;
  z-index: 10;
}

#fullscreenModal .btn-close-white {
  background: rgba(0, 0, 0, 0.5);
  padding: 10px;
  border-radius: 50%;
}

#fullscreenImage {
  max-height: 85vh;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
}

/* Filter Button Styles - Reuse from products page */
.gallery-filter-section .filter-btn {
  background: white;
  border: 2px solid var(--border-color);
  color: var(--text-dark);
  padding: 10px 25px;
  border-radius: 30px;
  font-weight: 500;
  transition: var(--transition);
  margin: 0 5px 10px;
  cursor: pointer;
  font-size: 0.95rem;
}

.gallery-filter-section .filter-btn:hover,
.gallery-filter-section .filter-btn.active {
  background: var(--primary-green);
  border-color: var(--primary-green);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Search Box - Reuse from products page */
.gallery-filter-section .search-box {
  position: relative;
  max-width: 400px;
  margin-left: auto;
}

.gallery-filter-section .search-box input {
  width: 100%;
  padding: 15px 25px;
  border: 2px solid var(--border-color);
  border-radius: 30px;
  font-size: 0.95rem;
  transition: var(--transition);
  background: white;
}

.gallery-filter-section .search-box input:focus {
  border-color: var(--primary-green);
  box-shadow: 0 0 0 0.2rem rgba(0, 200, 81, 0.15);
  outline: none;
}

.gallery-filter-section .search-box button {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--primary-green);
  border: none;
  color: white;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  transition: var(--transition);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-filter-section .search-box button:hover {
  background: var(--dark-green);
  transform: translateY(-50%) scale(1.1);
}

.gallery-filter-section .search-box button i {
  font-size: 1.1rem;
}

/* Empty State - Reuse from products page */
.gallery-section .empty-state {
  padding: 60px 20px;
  background: var(--bg-light);
  border-radius: 20px;
}

.gallery-section .empty-state i {
  font-size: 4rem;
  color: var(--text-light);
  opacity: 0.5;
  margin-bottom: 20px;
}

.gallery-section .empty-state h4 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-dark);
}

.gallery-section .empty-state p {
  color: var(--text-light);
  font-size: 1rem;
  margin-bottom: 0;
}

/* ===== Diseases Page Specific Styles ===== */

/* Diseases Hero Section - Responsive Images */
.diseases-hero {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 60vh;
    display: flex;
    align-items: center;
    position: relative;
}

/* Overlay untuk membuat teks lebih terbaca */
.diseases-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.5));
    z-index: 1;
}

.diseases-hero .container {
    position: relative;
    z-index: 2;
}

/* Default untuk desktop/laptop */
.diseases-hero {
    background-image: url('assets/desktop.png');
}

/* Untuk tablet */
@media (min-width: 577px) and (max-width: 992px) {
    .diseases-hero {
        background-image: url('assets/tab.png');
        min-height: 50vh;
    }
}

/* Untuk mobile/hp */
@media (max-width: 576px) {
    .diseases-hero {
        background-image: url('assets/hp.png');
        min-height: 40vh;
    }
}

/* Opsional: Untuk layar sangat besar */
@media (min-width: 1400px) {
    .diseases-hero {
        background-image: url('assets/desktop.png');
        min-height: 70vh;
    }
}

/* Diseases Filter Section */
.diseases-filter-section {
  background: var(--bg-light);
  padding: 30px 0;
  border-bottom: 1px solid var(--border-color);
}

/* Disease Card */
.disease-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
  border: 1px solid var(--border-color);
  position: relative;
}

.disease-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-green);
}

/* Disease Image */
.disease-image-wrapper {
  position: relative;
  overflow: hidden;
  height: 250px;
}

.disease-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.disease-card:hover .disease-image {
  transform: scale(1.1);
}

/* Disease Overlay */
.disease-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 200, 81, 0.2),
    rgba(0, 168, 70, 0.3)
  );
  opacity: 0;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.disease-card:hover .disease-overlay {
  opacity: 1;
}

.disease-overlay-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-green);
  text-decoration: none;
  transform: translateY(20px);
  transition: var(--transition);
  box-shadow: var(--shadow-md);
  border: none;
  cursor: pointer;
}

.disease-overlay-btn:hover {
  background: var(--primary-green);
  color: white;
  transform: translateY(0) scale(1.1);
}

.disease-overlay-btn i {
  font-size: 1.4rem;
}

/* Disease Badge */
.disease-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--primary-green);
  color: white;
  padding: 5px 15px;
  border-radius: 25px;
  font-size: 0.8rem;
  font-weight: 500;
  z-index: 10;
  box-shadow: var(--shadow-sm);
}

/* Disease Content */
.disease-content {
  padding: 25px;
}

.disease-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-dark);
  line-height: 1.4;
}

.disease-description {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 15px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Symptom and Risk Tags */
.symptom-tag,
.risk-tag {
  background: var(--bg-light);
  color: var(--text-dark);
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-color);
}

.symptom-tag i,
.risk-tag i {
  color: var(--primary-green);
}

.symptom-tag.text-green,
.risk-tag.text-green {
  color: var(--primary-green) !important;
  font-weight: 600;
}

/* Disease Actions */
.btn-detail-disease {
  width: 100%;
  background: var(--primary-green);
  color: white;
  padding: 12px 15px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
  text-align: center;
  border: 2px solid var(--primary-green);
  display: inline-block;
}

.btn-detail-disease:hover {
  background: var(--dark-green);
  border-color: var(--dark-green);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: white;
}

/* Popular Card */
.popular-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
  border: 1px solid var(--border-color);
}

.popular-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-green);
}

.popular-image-wrapper {
  position: relative;
  height: 180px;
  overflow: hidden;
}

.popular-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.popular-card:hover .popular-image {
  transform: scale(1.05);
}

.popular-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--primary-green);
  color: white;
  padding: 4px 12px;
  border-radius: 25px;
  font-size: 0.7rem;
  font-weight: 500;
  z-index: 5;
}

.popular-content {
  padding: 15px;
}

.popular-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-dark);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.btn-popular {
  display: inline-block;
  background: transparent;
  color: var(--primary-green);
  padding: 8px 15px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.85rem;
  transition: var(--transition);
  border: 1px solid var(--primary-green);
  width: 100%;
  text-align: center;
}

.btn-popular:hover {
  background: var(--primary-green);
  color: white;
}

/* Filter Button Styles - Reuse from products page */
.diseases-filter-section .filter-btn {
  background: white;
  border: 2px solid var(--border-color);
  color: var(--text-dark);
  padding: 10px 25px;
  border-radius: 30px;
  font-weight: 500;
  transition: var(--transition);
  margin: 0 5px 10px;
  cursor: pointer;
  font-size: 0.95rem;
}

.diseases-filter-section .filter-btn:hover,
.diseases-filter-section .filter-btn.active {
  background: var(--primary-green);
  border-color: var(--primary-green);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Search Box - Reuse from products page */
.diseases-filter-section .search-box {
  position: relative;
  max-width: 400px;
  margin-left: auto;
}

.diseases-filter-section .search-box input {
  width: 100%;
  padding: 15px 25px;
  border: 2px solid var(--border-color);
  border-radius: 30px;
  font-size: 0.95rem;
  transition: var(--transition);
  background: white;
}

.diseases-filter-section .search-box input:focus {
  border-color: var(--primary-green);
  box-shadow: 0 0 0 0.2rem rgba(0, 200, 81, 0.15);
  outline: none;
}

.diseases-filter-section .search-box button {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--primary-green);
  border: none;
  color: white;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  transition: var(--transition);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.diseases-filter-section .search-box button:hover {
  background: var(--dark-green);
  transform: translateY(-50%) scale(1.1);
}

.diseases-filter-section .search-box button i {
  font-size: 1.1rem;
}

/* Stat Card - Reuse with modifications */
.diseases-section .stat-card,
.popular-section .stat-card {
  background: white;
  border-radius: 20px;
  padding: 30px 20px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.diseases-section .stat-card:hover,
.popular-section .stat-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-green);
}

.diseases-section .stat-icon,
.popular-section .stat-icon {
  font-size: 2.5rem;
  color: var(--primary-green);
  transition: var(--transition);
}

.diseases-section .stat-card:hover .stat-icon,
.popular-section .stat-card:hover .stat-icon {
  transform: scale(1.1);
}

/* Empty State */
.diseases-section .empty-state {
  padding: 60px 20px;
  background: var(--bg-light);
  border-radius: 20px;
}

.diseases-section .empty-state i {
  font-size: 4rem;
  color: var(--text-light);
  opacity: 0.5;
  margin-bottom: 20px;
}

.diseases-section .empty-state h4 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-dark);
}

.diseases-section .empty-state p {
  color: var(--text-light);
  font-size: 1rem;
  margin-bottom: 0;
}

/* ===== Scroll to Top Button Styles ===== */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--primary-green);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 15px rgba(0, 200, 81, 0.3);
  transition: all 0.3s ease;
  z-index: 9999;
  border: 2px solid white;
}

.scroll-to-top:hover {
  background: var(--dark-green);
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 200, 81, 0.4);
}

.scroll-to-top i {
  transition: transform 0.3s ease;
}

.scroll-to-top:hover i {
  transform: translateY(-3px);
}

/* Animasi pulse */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 200, 81, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(0, 200, 81, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 200, 81, 0);
  }
}

.scroll-to-top {
  animation: pulse 2s infinite;
}

.scroll-to-top:hover {
  animation: none;
}

/* Responsive */
@media (max-width: 768px) {
  .scroll-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .scroll-to-top {
    bottom: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
  }
}

/* ===== Floating Button Base Style ===== */
.floating-btn {
  position: fixed;
  right: 30px;
  width: 50px;
  height: 50px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: white;
  z-index: 9999;
  transition: all 0.3s ease;
  border: 2px solid white;
}

/* ===== WhatsApp Button ===== */
.whatsapp-btn {
  bottom: 30px; /* posisi di atas scroll */
  background: #25D366;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

.whatsapp-btn:hover {
  background: #1ebe5d;
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

/* ===== Scroll To Top Button ===== */
.scroll-to-top {
  bottom: 30px;
  background: var(--primary-green);
  display: none;
  box-shadow: 0 4px 15px rgba(0, 200, 81, 0.3);
}

.scroll-to-top:hover {
  background: var(--dark-green);
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 200, 81, 0.4);
}

/* ===== Pulse Animation (WA only) ===== */
@keyframes pulseWA {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

.whatsapp-btn {
  animation: pulseWA 2s infinite;
}

.whatsapp-btn:hover {
  animation: none;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .floating-btn {
    right: 20px;
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
  }

  .scroll-to-top {
    bottom: 20px;
  }

  .whatsapp-btn {
    bottom: 90px;
  }
}

@media (max-width: 576px) {
  .floating-btn {
    right: 15px;
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .scroll-to-top {
    bottom: 15px;
  }

  .whatsapp-btn {
    bottom: 80px;
  }
}

/* Responsive Styles */
@media (max-width: 1200px) {
  .disease-image-wrapper {
    height: 220px;
  }

  .disease-title {
    font-size: 1.2rem;
  }
}

@media (max-width: 992px) {
  .diseases-hero {
    min-height: 50vh;
  }

  .disease-image-wrapper {
    height: 200px;
  }

  .popular-image-wrapper {
    height: 160px;
  }
}

@media (max-width: 768px) {
  .diseases-hero {
    min-height: 40vh;
    background-attachment: scroll;
  }

  .diseases-hero h1 {
    font-size: 2rem;
  }

  .diseases-filter-section .col-md-6 {
    text-align: center !important;
  }

  .diseases-filter-section .search-box {
    margin: 20px auto 0;
    max-width: 100%;
  }

  .diseases-filter-section .filter-btn {
    padding: 8px 20px;
    font-size: 0.85rem;
    margin: 0 3px 8px;
  }

  .disease-image-wrapper {
    height: 180px;
  }

  .disease-content {
    padding: 20px;
  }

  .disease-title {
    font-size: 1.1rem;
  }

  .disease-description {
    font-size: 0.9rem;
    -webkit-line-clamp: 2;
  }

  .btn-detail-disease {
    padding: 10px 12px;
    font-size: 0.9rem;
  }

  .popular-image-wrapper {
    height: 150px;
  }

  .stat-card {
    padding: 25px 15px;
  }

  .stat-card h3 {
    font-size: 1.8rem;
  }
}

@media (max-width: 576px) {
  .diseases-hero {
    min-height: 30vh;
  }

  .diseases-hero h1 {
    font-size: 1.75rem;
  }

  .diseases-hero .lead {
    font-size: 0.95rem;
  }

  .diseases-filter-section .filter-btn {
    padding: 6px 15px;
    font-size: 0.8rem;
    margin: 0 2px 6px;
  }

  .disease-image-wrapper {
    height: 160px;
  }

  .disease-overlay-btn {
    width: 50px;
    height: 50px;
  }

  .disease-overlay-btn i {
    font-size: 1.2rem;
  }

  .disease-badge {
    font-size: 0.7rem;
    padding: 4px 12px;
  }

  .symptom-tag,
  .risk-tag {
    font-size: 0.7rem;
    padding: 3px 10px;
  }

  .popular-image-wrapper {
    height: 130px;
  }

  .popular-title {
    font-size: 0.95rem;
  }

  .btn-popular {
    font-size: 0.8rem;
    padding: 6px 10px;
  }

  .stat-card {
    padding: 20px 10px;
  }

  .stat-card h3 {
    font-size: 1.5rem;
  }

  .stat-card p {
    font-size: 0.8rem;
  }
}

/* Print Styles */
@media print {
  .diseases-hero,
  .running-ribbon,
  .diseases-filter-section,
  .disease-overlay,
  .disease-actions,
  .stats-section,
  .popular-section,
  .info-section,
  .faq-section,
  .cta-section,
  footer {
    display: none;
  }

  .disease-card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ddd;
  }
}

/* ===== Article Page Specific Styles ===== */

/* Article Section */
.article-section {
  background: white;
}

/* Breadcrumb */
.breadcrumb {
  background: var(--bg-light);
  padding: 12px 20px;
  border-radius: 50px;
}

.breadcrumb-item a {
  color: var(--text-dark);
  transition: var(--transition);
}

.breadcrumb-item a:hover {
  color: var(--primary-green);
}

.breadcrumb-item.active {
  color: var(--primary-green);
  font-weight: 500;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: "›";
  color: var(--text-light);
}

/* Article Header */
.article-header h1 {
  line-height: 1.3;
}

/* Social Share Buttons */
.btn-share {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  color: white;
}

.btn-share i {
  font-size: 1rem;
}

.btn-share.facebook {
  background: #3b5998;
}
.btn-share.facebook:hover {
  background: #2d4373;
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.btn-share.twitter {
  background: #1da1f2;
}
.btn-share.twitter:hover {
  background: #0c85d0;
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.btn-share.whatsapp {
  background: #25d366;
}
.btn-share.whatsapp:hover {
  background: #1da851;
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.btn-share.linkedin {
  background: #0077b5;
}
.btn-share.linkedin:hover {
  background: #005582;
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.btn-share.telegram {
  background: #0088cc;
}
.btn-share.telegram:hover {
  background: #006699;
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* Article Content */
.article-content {
  font-size: 1.05rem;
  line-height: 1.8;
}

.content-section h2 {
  position: relative;
  padding-bottom: 15px;
  margin-bottom: 25px;
}

.content-section h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--primary-green);
  border-radius: 2px;
}

.content-text {
  color: var(--text-dark);
}

.content-text p {
  margin-bottom: 1.5rem;
}

.content-text ul,
.content-text ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.content-text li {
  margin-bottom: 0.5rem;
}

.content-text strong {
  color: var(--primary-green);
}

/* Info Box */
.info-box {
  border-left: 4px solid var(--primary-green);
  background: var(--bg-light) !important;
}

.info-icon {
  flex-shrink: 0;
}

/* Disclaimer Box */
.disclaimer-box {
  border-left: 4px solid var(--primary-green);
  background: var(--bg-light) !important;
}

.disclaimer-icon {
  flex-shrink: 0;
}

/* Author Card - tanpa sticky */
.author-card {
  border: 1px solid var(--border-color);
  margin-bottom: 1.5rem;
}

.author-social a {
  display: inline-block;
  width: 35px;
  height: 35px;
  line-height: 35px;
  text-align: center;
  background: white;
  border-radius: 50%;
  transition: var(--transition);
}

.author-social a:hover {
  background: var(--primary-green);
  color: white !important;
  transform: translateY(-3px);
}

/* Related Articles */
.related-card {
  border: 1px solid var(--border-color);
  margin-bottom: 1.5rem;
}

.related-item {
  transition: var(--transition);
}

.related-item:hover {
  transform: translateX(5px);
}

.related-item img {
  border-radius: 10px;
  transition: var(--transition);
}

.related-item:hover img {
  transform: scale(1.05);
}

.related-item h5 a:hover {
  color: var(--primary-green) !important;
}

/* Tags Cloud */
.tags-card {
  border: 1px solid var(--border-color);
  margin-bottom: 1.5rem;
}

.tag-cloud {
  display: inline-block;
  padding: 8px 15px;
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 30px;
  color: var(--text-dark);
  text-decoration: none;
  font-size: 0.85rem;
  transition: var(--transition);
}

.tag-cloud:hover {
  background: var(--primary-green);
  border-color: var(--primary-green);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* Responsive Styles */
@media (max-width: 992px) {
  .article-header h1 {
    font-size: 2rem;
  }

  .social-share .d-flex {
    flex-wrap: wrap;
  }

  .btn-share {
    flex: 1 1 auto;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .article-section {
    padding: 40px 0;
  }

  .article-header h1 {
    font-size: 1.75rem;
  }

  .breadcrumb {
    padding: 10px 15px;
    font-size: 0.9rem;
  }

  .article-content {
    font-size: 1rem;
  }

  .content-section h2 {
    font-size: 1.3rem;
  }

  .btn-share {
    padding: 8px 15px;
    font-size: 0.85rem;
  }

  .btn-share i {
    font-size: 0.9rem;
  }
}

@media (max-width: 576px) {
  .article-header h1 {
    font-size: 1.5rem;
  }

  .breadcrumb {
    flex-wrap: wrap;
    gap: 5px;
  }

  .social-share .d-flex {
    flex-direction: column;
  }

  .btn-share {
    width: 100%;
  }

  .content-section h2 {
    font-size: 1.2rem;
    padding-bottom: 10px;
  }

  .info-box,
  .disclaimer-box {
    padding: 15px !important;
  }

  .info-box .d-flex,
  .disclaimer-box .d-flex {
    flex-direction: column;
    text-align: center;
  }

  .info-icon,
  .disclaimer-icon {
    margin-right: 0 !important;
    margin-bottom: 10px;
  }

  .related-item {
    flex-direction: column;
    text-align: center;
  }

  .related-item img {
    margin-right: 0 !important;
    margin-bottom: 10px;
    width: 100%;
    height: auto;
  }
}

/* Print Styles */
@media print {
  .floating-navbar,
  .running-ribbon,
  .social-share,
  .cta-section,
  footer,
  .author-card,
  .related-card,
  .tags-card,
  .breadcrumb {
    display: none !important;
  }

  .col-lg-8 {
    width: 100% !important;
  }

  .article-content {
    font-size: 12pt;
    line-height: 1.5;
  }

  .content-section h2 {
    color: black;
  }

  .content-section h2::after {
    background: black;
  }
}

/* Responsive Styles */
@media (max-width: 1200px) {
  .gallery-image-wrapper {
    height: 220px;
  }

  .gallery-title {
    font-size: 1.1rem;
  }
}

@media (max-width: 992px) {
  .gallery-hero {
    min-height: 50vh;
  }

  .gallery-image-wrapper {
    height: 200px;
  }
}

@media (max-width: 768px) {
  .gallery-hero {
    min-height: 40vh;
    background-attachment: scroll;
  }

  .gallery-hero h1 {
    font-size: 2rem;
  }

  .gallery-filter-section .col-md-6 {
    text-align: center !important;
  }

  .gallery-filter-section .search-box {
    margin: 20px auto 0;
    max-width: 100%;
  }

  .gallery-filter-section .filter-btn {
    padding: 8px 20px;
    font-size: 0.85rem;
    margin: 0 3px 8px;
  }

  .gallery-image-wrapper {
    height: 180px;
  }

  .gallery-content {
    padding: 15px;
  }

  .gallery-title {
    font-size: 1rem;
  }

  .gallery-description {
    font-size: 0.85rem;
    -webkit-line-clamp: 2;
  }

  .btn-detail-gallery {
    padding: 8px 12px;
    font-size: 0.85rem;
  }

  .modal-body {
    padding: 1rem;
  }

  #modalImage {
    max-height: 250px;
    margin-bottom: 1rem;
  }
}

@media (max-width: 576px) {
  .gallery-hero {
    min-height: 30vh;
  }

  .gallery-hero h1 {
    font-size: 1.75rem;
  }

  .gallery-hero .lead {
    font-size: 0.95rem;
  }

  .gallery-filter-section .filter-btn {
    padding: 6px 15px;
    font-size: 0.8rem;
    margin: 0 2px 6px;
  }

  .gallery-image-wrapper {
    height: 160px;
  }

  .gallery-overlay-btn {
    width: 40px;
    height: 40px;
  }

  .gallery-overlay-btn i {
    font-size: 1rem;
  }

  .gallery-badge {
    font-size: 0.7rem;
    padding: 4px 10px;
  }

  .gallery-tag {
    font-size: 0.7rem;
    padding: 3px 10px;
  }

  .gallery-date {
    font-size: 0.7rem;
    padding: 3px 8px;
  }
}

/* Print Styles */
@media print {
  .gallery-hero,
  .running-ribbon,
  .gallery-filter-section,
  .gallery-overlay,
  .gallery-actions,
  .cta-section,
  footer {
    display: none;
  }

  .gallery-card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ddd;
  }
}

/* ===== Team Section ===== */
.team-section {
  background: var(--bg-light);
  padding: 80px 0;
}

.team-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--border-color);
  height: 100%;
  /* HAPUS max-width & margin */
}

.team-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-green);
}

.team-section .container {
  max-width: 1100px;
}

.team-image-wrapper {
  position: relative;
  overflow: hidden;
  height: 280px;
  background: linear-gradient(135deg, var(--light-green), var(--primary-green));
}

.team-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: var(--transition);
}

.team-card:hover .team-image {
  transform: scale(1.05);
}

.team-content {
  padding: 30px 25px;
  text-align: center;
}

.team-name {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
  line-height: 1.2;
}

.team-position {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary-green);
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.team-description {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 0;
}

/* ===== Responsive Design ===== */
@media (max-width: 1200px) {
  .product-title {
    font-size: 1.1rem;
  }

  .product-price {
    font-size: 1.2rem;
  }

  .stat-card {
    padding: 30px 20px;
  }

  .stat-number {
    font-size: 2.5rem;
  }

  .video-wrapper iframe {
    height: 280px;
  }
}

@media (max-width: 992px) {
  .lba-hero {
    min-height: 50vh;
  }

  .recipes-hero {
    min-height: 50vh;
  }

  .product-title {
    font-size: 1.1rem;
  }

  .product-price {
    font-size: 1.2rem;
  }

  .stat-card {
    padding: 30px 20px;
  }

  .stat-number {
    font-size: 2rem;
  }

  .video-wrapper iframe {
    height: 280px;
  }
}

@media (max-width: 992px) {
  .products-hero {
    min-height: 50vh;
  }

  .recipes-hero {
    min-height: 50vh;
  }

  .recipe-section-title {
    font-size: 2.2rem;
  }
}

@media (max-width: 768px) {
  .hero-section {
    padding-top: 80px;
    text-align: center;
  }

  .hero-section[style*="background-image"] {
    background-attachment: scroll !important;
  }

  .hero-text-wrapper {
    padding: 30px 20px;
    margin-bottom: 2rem;
  }

  .hero-content h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
  }

  .hero-content .lead {
    font-size: 1rem;
  }

  .hero-image {
    margin-top: 2rem;
  }

  .floating-card {
    position: static !important;
    margin-top: 2rem;
  }

  .service-card {
    margin-bottom: 1.5rem;
  }

  .ribbon-text {
    font-size: 0.9rem;
    letter-spacing: 1px;
  }

  .navbar-nav .nav-link {
    margin: 5px 15px;
  }

  .section-header h2 {
    font-size: 1.8rem;
  }

  .products-hero {
    min-height: 40vh;
    background-attachment: scroll;
  }

  .recipes-hero {
    min-height: 40vh;
    background-attachment: scroll;
  }

  .products-hero h1 {
    font-size: 2rem;
  }

  .recipes-hero h1 {
    font-size: 2rem;
  }

  .filter-section .col-md-6 {
    text-align: center !important;
  }

  .search-box {
    margin: 20px auto 0;
    max-width: 100%;
  }

  .filter-btn {
    padding: 8px 20px;
    font-size: 0.85rem;
    margin: 0 3px 8px;
  }

  .product-content {
    padding: 15px;
  }

  .product-title {
    font-size: 1rem;
  }

  .product-description {
    font-size: 0.85rem;
    -webkit-line-clamp: 2;
  }

  .btn-shop,
  .btn-detail {
    padding: 8px 12px;
    font-size: 0.85rem;
  }

  .alphabet-nav {
    top: 70px;
    padding: 15px 0;
  }

  .alphabet-link {
    width: 35px;
    height: 35px;
    font-size: 0.9rem;
  }

  .recipe-section-title {
    font-size: 2rem;
  }

  .recipe-title {
    font-size: 1.1rem;
  }

  .recipe-text {
    font-size: 0.9rem;
    -webkit-line-clamp: 3;
  }
}

@media (max-width: 576px) {
  .hero-content h1 {
    font-size: 1.75rem;
  }

  .btn-lg {
    padding: 10px 20px;
    font-size: 0.95rem;
  }

  .service-card {
    padding: 20px;
  }

  .icon-wrapper {
    width: 60px;
    height: 60px;
  }

  .icon-wrapper i {
    font-size: 1.5rem;
  }

  .hero-text-wrapper {
    padding: 25px 15px;
    margin-top: 130px;
  }

  .products-hero {
    min-height: 30vh;
  }

  .recipes-hero {
    min-height: 30vh;
  }

  .products-hero h1 {
    font-size: 1.75rem;
  }

  .recipes-hero h1 {
    font-size: 1.75rem;
  }

  .recipes-hero .lead {
    font-size: 0.95rem;
  }

  .filter-btn {
    padding: 6px 15px;
    font-size: 0.8rem;
    margin: 0 2px 6px;
  }

  .product-overlay-btn {
    width: 40px;
    height: 40px;
  }

  .product-overlay-btn i {
    font-size: 1rem;
  }

  .product-badge {
    font-size: 0.7rem;
    padding: 4px 12px;
  }

  .alphabet-link {
    width: 30px;
    height: 30px;
    font-size: 0.8rem;
  }

  .recipe-icon {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }

  .recipe-content {
    padding: 20px;
  }

  .recipe-badge {
    width: 35px;
    height: 35px;
    font-size: 0.9rem;
  }

  .recipe-section-title {
    font-size: 1.8rem;
  }
}

/* ===== Smooth Scroll ===== */
html {
  scroll-behavior: smooth;
}

/* ===== Loading Animation ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: var(--primary-green);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--dark-green);
}

/* ===== Selection Color ===== */
::selection {
  background-color: var(--light-green);
  color: var(--text-dark);
}

/* ===== Focus States ===== */
.btn:focus,
.form-control:focus,
.navbar-nav .nav-link:focus {
  outline: 2px solid var(--primary-green);
  outline-offset: 2px;
}

/* ===== Layanan Agarillus Section ===== */
.layanan-section {
  background: var(--bg-light);
  padding: 80px 0;
}

.layanan-card {
  background: white;
  border-radius: 20px;
  padding: 40px 30px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  transition: var(--transition);
  border: 1px solid var(--border-color);
  height: 100%;
  text-align: center;
}

.layanan-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
  border-color: var(--primary-green);
}

.layanan-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--light-green), var(--primary-green));
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  transition: var(--transition);
}

.layanan-card:hover .layanan-icon {
  transform: scale(1.1);
  box-shadow: 0 10px 25px rgba(0, 200, 81, 0.3);
}

.layanan-icon i {
  font-size: 2rem;
  color: white;
}

.layanan-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--text-dark);
}

.layanan-description {
  color: var(--text-light);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 25px;
  min-height: 60px;
}

.btn-layanan {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 25px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
  border: 2px solid transparent;
  min-width: 200px;
}

.btn-whatsapp {
  background: var(--primary-green);
  color: white;
  border-color: var(--primary-green);
}

.btn-whatsapp:hover {
  background: var(--dark-green);
  border-color: var(--dark-green);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 200, 81, 0.3);
  color: white;
}

.btn-whatsapp i {
  font-size: 1.1rem;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .layanan-section {
    padding: 60px 0;
  }

  .layanan-card {
    padding: 30px 20px;
    margin-bottom: 2rem;
  }

  .layanan-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 20px;
  }

  .layanan-icon i {
    font-size: 1.8rem;
  }

  .layanan-title {
    font-size: 1.2rem;
  }

  .layanan-description {
    font-size: 0.95rem;
    margin-bottom: 20px;
    min-height: 50px;
  }

  .btn-layanan {
    padding: 10px 20px;
    font-size: 0.9rem;
    min-width: 180px;
  }
}

@media (max-width: 576px) {
  .layanan-card {
    padding: 25px 15px;
  }

  .layanan-icon {
    width: 60px;
    height: 60px;
  }

  .layanan-icon i {
    font-size: 1.5rem;
  }

  .layanan-title {
    font-size: 1.1rem;
  }

  .layanan-description {
    font-size: 0.9rem;
  }

  .btn-layanan {
    width: 100%;
    min-width: auto;
  }
}

/* ===== Testimoni Section ===== */
.testimoni-section {
  background: linear-gradient(135deg, #f0fdf4 0%, #f7fee7 100%);
  padding: 80px 0;
}

.testimoni-carousel {
  max-width: 900px;
  margin: 0 auto;
}

.testimoni-card {
  background: white;
  border-radius: 25px;
  padding: 40px 35px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  transition: var(--transition);
  border: 1px solid rgba(0, 200, 81, 0.1);
  margin: 0 15px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.testimoni-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
  border-color: var(--primary-green);
}

.quote-icon {
  position: absolute;
  top: 20px;
  left: 20px;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--light-green), var(--primary-green));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  opacity: 0.9;
}

.testimoni-content {
  margin-top: 15px;
}

.testimoni-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-dark);
  margin-bottom: 30px;
  font-style: italic;
  position: relative;
  padding: 0 20px;
}

.testimoni-text::before,
.testimoni-text::after {
  content: '"';
  font-size: 2.5rem;
  color: var(--primary-green);
  opacity: 0.2;
  position: absolute;
  font-family: Georgia, serif;
}

.testimoni-text::before {
  top: -10px;
  left: -10px;
}

.testimoni-text::after {
  bottom: -30px;
  right: -10px;
}

.testimoni-author {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.author-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary-green);
  box-shadow: 0 5px 15px rgba(0, 200, 81, 0.3);
  transition: var(--transition);
}

.testimoni-card:hover .author-photo {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(0, 200, 81, 0.4);
}

.author-info {
  text-align: left;
  flex: 1;
}

.author-name {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 5px;
}

.author-location {
  font-size: 0.9rem;
  color: var(--text-light);
  margin: 0;
  opacity: 0.8;
}

/* Carousel Customization */
.carousel-indicators {
  bottom: -30px;
}

.carousel-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(0, 200, 81, 0.3);
  border: 2px solid white;
  margin: 0 5px;
  transition: var(--transition);
}

.carousel-indicators button.active {
  background-color: var(--primary-green);
  transform: scale(1.2);
}

.carousel-control-prev,
.carousel-control-next {
  width: 50px;
  height: 50px;
  background: var(--primary-green);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.8;
  transition: var(--transition);
  border: 2px solid white;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  opacity: 1;
  background: var(--dark-green);
  transform: translateY(-50%) scale(1.1);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 20px;
  height: 20px;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .testimoni-section {
    padding: 60px 0;
  }

  .testimoni-card {
    padding: 30px 25px;
    margin: 0 10px 20px;
  }

  .testimoni-text {
    font-size: 1rem;
    padding: 0 10px;
  }

  .quote-icon {
    width: 35px;
    height: 35px;
    font-size: 1rem;
    top: 15px;
    left: 15px;
  }

  .author-photo {
    width: 70px;
    height: 70px;
  }

  .author-name {
    font-size: 1.1rem;
  }

  .author-location {
    font-size: 0.85rem;
  }

  .carousel-control-prev,
  .carousel-control-next {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 576px) {
  .testimoni-card {
    padding: 25px 20px;
    margin: 0 5px 15px;
  }

  .testimoni-text {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .testimoni-author {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .author-info {
    text-align: center;
  }

  .quote-icon {
    position: relative;
    top: auto;
    left: auto;
    margin-bottom: 15px;
  }
}

/* ===== Team Section Responsive ===== */
@media (max-width: 768px) {
  .team-section {
    padding: 60px 0;
  }

  .team-card {
    margin-bottom: 2rem;
  }

  .team-image-wrapper {
    height: 300px;
  }

  .team-image {
    object-position: center top;
  }

  .team-content {
    padding: 25px 20px;
  }

  .team-name {
    font-size: 1.2rem;
  }

  .team-position {
    font-size: 0.9rem;
  }

  .team-description {
    font-size: 0.9rem;
  }
}

/* ===== Mitra Kami Section ===== */
.mitra-section {
  background: linear-gradient(135deg, #f8faf9 0%, #f0fdf4 100%);
  overflow: hidden;
}

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

.mitra-provinsi-wrapper {
  margin-bottom: 20px;
}

/* Grid layout untuk provinsi - 2 kolom per baris */
.mitra-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  padding: 0 15px;
}

.mitra-provinsi-card {
  background: white;
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(0, 200, 81, 0.08);
  border: 1px solid rgba(0, 200, 81, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
  overflow: hidden;
}

.mitra-provinsi-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 200, 81, 0.15);
  border-color: var(--primary-green);
}

.provinsi-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 30px;
}

.provinsi-info {
  flex: 1;
}

.provinsi-name {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0 0 5px 0;
}

.provinsi-count {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0;
  font-weight: 500;
}

.provinsi-toggle {
  width: 45px;
  height: 45px;
  background: linear-gradient(135deg, var(--primary-green), var(--dark-green));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.provinsi-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 5px 15px rgba(0, 200, 81, 0.3);
}

.provinsi-toggle .toggle-icon {
  color: white;
  font-size: 1.1rem;
  transition: transform 0.3s ease;
}

.provinsi-toggle.active .toggle-icon {
  transform: rotate(180deg);
}

/* Cabang Container */
.provinsi-cabang-container {
  margin-top: 15px;
  padding: 0 30px 20px;
  animation: slideDown 0.4s ease;
}

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

.cabang-list {
  display: grid;
  gap: 15px;
}

.cabang-item {
  background: #f8faf9;
  border-radius: 15px;
  border: 1px solid rgba(0, 200, 81, 0.08);
  transition: all 0.3s ease;
  cursor: pointer;
  overflow: hidden;
}

.cabang-item:hover {
  background: white;
  box-shadow: 0 5px 20px rgba(0, 200, 81, 0.1);
  border-color: rgba(0, 200, 81, 0.2);
}

.cabang-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
}

.cabang-info {
  flex: 1;
}

.cabang-kota {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0 0 5px 0;
}

.cabang-preview {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.4;
}

.cabang-toggle {
  width: 35px;
  height: 35px;
  background: white;
  border: 2px solid var(--primary-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  margin-left: 15px;
}

.cabang-toggle:hover {
  background: var(--primary-green);
  transform: scale(1.1);
}

.cabang-toggle .toggle-icon {
  color: var(--primary-green);
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.cabang-toggle:hover .toggle-icon {
  color: white;
}

.cabang-toggle.active .toggle-icon {
  transform: rotate(45deg);
  color: white;
  background: var(--primary-green);
  border-radius: 50%;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Cabang Detail */
.cabang-detail {
  border-top: 1px solid rgba(0, 200, 81, 0.1);
  background: white;
  animation: expandDetail 0.3s ease;
}

@keyframes expandDetail {
  from {
    opacity: 0;
    max-height: 0;
  }
  to {
    opacity: 1;
    max-height: 200px;
  }
}

.detail-content {
  padding: 20px;
}

.detail-item {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  font-size: 0.95rem;
  color: var(--text-dark);
}

.detail-item:last-child {
  margin-bottom: 0;
}

.detail-item i {
  width: 20px;
  text-align: center;
}

.detail-actions {
  display: flex;
  gap: 10px;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid rgba(0, 200, 81, 0.08);
}

.detail-actions .btn {
  font-size: 0.85rem;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.detail-actions .btn-primary {
  background: var(--primary-green);
  border-color: var(--primary-green);
}

.detail-actions .btn-primary:hover {
  background: var(--dark-green);
  border-color: var(--dark-green);
  transform: translateY(-2px);
}

.detail-actions .btn-success {
  background: #25d366;
  border-color: #25d366;
}

.detail-actions .btn-success:hover {
  background: #128c7e;
  border-color: #128c7e;
  transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 992px) {
  .mitra-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 0 15px;
  }

  .provinsi-header {
    padding: 20px 25px;
  }

  .provinsi-name {
    font-size: 1.3rem;
  }

  .provinsi-cabang-container {
    padding: 0 25px 20px;
  }
}

@media (max-width: 768px) {
  .mitra-section {
    padding: 60px 0;
  }

  /* Mobile: 1 kolom */
  .mitra-container {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 0 15px;
  }

  .mitra-provinsi-wrapper {
    margin-bottom: 15px;
  }

  .provinsi-header {
    padding: 18px 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .provinsi-toggle {
    align-self: flex-end;
  }

  .provinsi-name {
    font-size: 1.2rem;
  }

  .provinsi-count {
    font-size: 0.9rem;
  }

  .provinsi-cabang-container {
    padding: 0 20px 15px;
  }

  .cabang-header {
    padding: 15px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .cabang-toggle {
    margin-left: 0;
    align-self: flex-end;
  }

  .cabang-kota {
    font-size: 1rem;
  }

  .cabang-preview {
    font-size: 0.85rem;
  }

  .detail-content {
    padding: 15px;
  }

  .detail-item {
    font-size: 0.9rem;
    margin-bottom: 10px;
  }

  .detail-actions {
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
  }

  .detail-actions .btn {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 576px) {
  .mitra-section {
    padding: 40px 0;
  }

  .provinsi-header {
    padding: 15px;
  }

  .provinsi-name {
    font-size: 1.1rem;
  }

  .provinsi-toggle {
    width: 40px;
    height: 40px;
  }

  .cabang-header {
    padding: 12px;
  }

  .cabang-toggle {
    width: 32px;
    height: 32px;
  }

  .detail-content {
    padding: 12px;
  }
}

/* Tablet specific adjustments */
@media (min-width: 769px) and (max-width: 992px) {
  .mitra-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 0 20px;
  }

  .provinsi-header {
    padding: 18px 20px;
  }

  .provinsi-name {
    font-size: 1.2rem;
  }

  .provinsi-count {
    font-size: 0.9rem;
  }

  .provinsi-cabang-container {
    padding: 0 20px 15px;
  }
}

/* ===== Print Styles ===== */
@media print {
  .products-hero,
  .recipes-hero,
  .running-ribbon,
  .filter-section,
  .product-overlay,
  .product-actions,
  .cta-section,
  .alphabet-nav,
  footer {
    display: none;
  }

  .product-card,
  .recipe-card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ddd;
  }
}

/* ===== Google Fonts ===== */
    @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

    /* ===== CSS Variables ===== */
    :root {
        --primary-color: #00c851;
        --primary-dark: #00a846;
        --secondary-color: #2c3e50;
        --text-primary: #2c3e50;
        --text-secondary: #6c757d;
        --text-light: #95a5a6;
        --bg-primary: #ffffff;
        --bg-secondary: #f8f9fa;
        --bg-tertiary: #ecf0f1;
        --border-color: #e9ecef;
        --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.08);
        --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.12);
        --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.16);
        --radius-sm: 8px;
        --radius-md: 12px;
        --radius-lg: 16px;
        --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    /* ===== Main Footer Styles ===== */
    .modern-footer {
        font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
        background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
        color: var(--text-primary);
        position: relative;
        overflow: hidden;
    }

    .modern-footer::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    }

    /* ===== Footer Container ===== */
    .footer-container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 20px;
    }

    /* ===== Footer Main Section ===== */
    .footer-main {
        padding: 25px 0 20px;
        border-bottom: 1px solid var(--border-color);
    }

    .footer-main .footer-container {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 40px;
    }

    /* ===== Footer Column Styles ===== */
    .footer-column {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .column-header {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-bottom: 8px;
    }

    .column-header i {
        font-size: 1.2rem;
        color: var(--primary-color);
        background: rgba(0, 200, 81, 0.1);
        padding: 10px;
        border-radius: var(--radius-md);
        transition: var(--transition);
    }

    .column-title {
        font-size: 1.25rem;
        font-weight: 700;
        color: var(--text-primary);
        margin: 0;
    }

    /* ===== Company Info Column ===== */
    .company-header {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        margin-bottom: 12px;
    }

    .company-name {
        font-size: 1.3rem;
        font-weight: 800;
        color: var(--text-primary);
        margin: 0;
        background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    .company-badge {
        background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
        color: white;
        padding: 3px 10px;
        border-radius: 16px;
        font-size: 0.7rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .company-details {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .detail-item {
        display: flex;
        align-items: flex-start;
        gap: 10px;
        font-size: 0.85rem;
        color: var(--text-secondary);
        line-height: 1.4;
    }

    .detail-item i {
        color: var(--primary-color);
        font-size: 0.9rem;
        margin-top: 2px;
        min-width: 14px;
    }

    .detail-item.address {
        align-items: flex-start;
    }

    .company-motto {
        background: var(--bg-secondary);
        padding: 12px 16px;
        border-radius: var(--radius-sm);
        border-left: 3px solid var(--primary-color);
        margin: 12px 0;
    }

    .motto-text {
        font-size: 0.85rem;
        color: var(--text-secondary);
        margin: 0 0 6px 0;
        font-style: italic;
    }

    .motto-highlight {
        font-size: 0.9rem;
        font-weight: 600;
        color: var(--primary-color);
        margin: 0;
    }

    /* ===== Social Media ===== */
    .social-media {
        margin-top: 6px;
    }

    .social-title {
        font-size: 0.9rem;
        font-weight: 600;
        color: var(--text-primary);
        margin: 0 0 12px 0;
    }

    .social-icons {
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
    }

    .social-icon {
        width: 35px;
        height: 35px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        text-decoration: none;
        transition: var(--transition);
        border: 2px solid transparent;
        font-size: 0.85rem;
    }

    .social-icon:hover {
        transform: translateY(-3px) scale(1.1);
        box-shadow: var(--shadow-md);
    }

    .social-icon.facebook {
        background: #1877f2;
    }

    .social-icon.instagram {
        background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    }

    .social-icon.twitter {
        background: #1da1f2;
    }

    .social-icon.whatsapp {
        background: #25d366;
    }

    .social-icon.youtube {
        background: #ff0000;
    }

    /* ===== Bank Partner Column ===== */
    .bank-info {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .account-owner {
        font-size: 0.85rem;
        color: var(--text-secondary);
        margin: 0 0 8px 0;
        padding: 6px 10px;
        background: var(--bg-secondary);
        border-radius: var(--radius-sm);
        border-left: 2px solid var(--primary-color);
    }

    .bank-item {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 6px 0;
        transition: var(--transition);
    }

    .bank-item:hover {
        transform: translateY(-2px);
    }

    .bank-logo {
        width: 32px;
        height: 32px;
        background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
        border-radius: var(--radius-sm);
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 0.9rem;
    }

    .bank-details {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    .bank-name {
        font-weight: 600;
        color: var(--text-primary);
        font-size: 0.85rem;
    }

    .bank-number {
        font-family: 'Courier New', monospace;
        font-weight: 500;
        color: var(--text-secondary);
        font-size: 0.8rem;
    }

    .copy-btn {
        background: var(--bg-secondary);
        border: 1px solid var(--border-color);
        border-radius: var(--radius-sm);
        padding: 4px;
        cursor: pointer;
        transition: var(--transition);
        color: var(--text-secondary);
    }

    .copy-btn:hover {
        background: var(--primary-color);
        color: white;
        transform: scale(1.1);
    }

    /* ===== Contact Column ===== */
    .contact-details {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .contact-item {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 6px 0;
        transition: var(--transition);
    }

    .contact-item:hover {
        transform: translateX(4px);
    }

    .contact-icon {
        width: 30px;
        height: 30px;
        background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
        border-radius: var(--radius-sm);
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 0.85rem;
    }

    .contact-text {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    .contact-label {
        font-size: 0.75rem;
        color: var(--text-light);
        text-transform: uppercase;
        letter-spacing: 0.5px;
        font-weight: 500;
    }

    .contact-value {
        font-size: 0.85rem;
        font-weight: 600;
        color: var(--text-primary);
        text-decoration: none;
        transition: var(--transition);
    }

    .phone-link:hover {
        color: var(--primary-color);
    }

    .whatsapp-link:hover {
        color: #25d366;
    }

    .quick-contact {
        margin-top: 16px;
    }

    .contact-button {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        background: linear-gradient(135deg, #25d366, #128c7e);
        color: white;
        text-decoration: none;
        padding: 12px 20px;
        border-radius: var(--radius-sm);
        font-weight: 600;
        transition: var(--transition);
        box-shadow: var(--shadow-sm);
        font-size: 0.85rem;
    }

    .contact-button:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-lg);
    }

    /* ===== Footer Bottom ===== */
    .footer-bottom {
        padding: 16px 0;
        background: var(--bg-secondary);
    }

    .footer-bottom .footer-container {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .footer-nav {
        display: flex;
        align-items: center;
        gap: 16px;
    }

    .footer-link {
        color: var(--text-secondary);
        text-decoration: none;
        font-weight: 500;
        transition: var(--transition);
        position: relative;
    }

    .footer-link:hover {
        color: var(--primary-color);
    }

    .footer-link::after {
        content: '';
        position: absolute;
        bottom: -2px;
        left: 0;
        width: 0;
        height: 2px;
        background: var(--primary-color);
        transition: var(--transition);
    }

    .footer-link:hover::after {
        width: 100%;
    }

    .separator {
        color: var(--text-light);
        font-weight: 400;
    }

    .copyright {
        font-size: 0.9rem;
        color: var(--text-secondary);
        margin: 0;
        display: flex;
        align-items: center !important;
        gap: 6px;
    }

    /* ===== Back to Top Button ===== */
    .back-to-top {
        position: fixed;
        bottom: 30px;
        right: 30px;
        width: 50px;
        height: 50px;
        background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
        color: white;
        border: none;
        border-radius: 50%;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.2rem;
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
        box-shadow: var(--shadow-md);
        z-index: 1000;
    }

    .back-to-top.visible {
        opacity: 1;
        visibility: visible;
    }

    .back-to-top:hover {
        transform: translateY(-3px);
        box-shadow: var(--shadow-lg);
    }

    /* ===== Responsive Design ===== */
    @media (max-width: 992px) {
        .footer-main .footer-container {
            grid-template-columns: 1fr 1fr;
            gap: 40px;
        }

        .footer-column:last-child {
            grid-column: 1 / -1;
        }
    }

    @media (max-width: 768px) {
        .footer-main {
            padding: 40px 0 30px;
        }

        .footer-main .footer-container {
            grid-template-columns: 1fr;
            gap: 30px;
        }

        .company-header {
            flex-direction: column;
            gap: 12px;
            align-items: flex-start;
        }

        .footer-bottom .footer-container {
            flex-direction: column;
            gap: 16px;
            text-align: center;
        }

        .footer-nav {
            justify-content: center;
        }
    }

    @media (max-width: 480px) {
        .footer-container {
            padding: 0 15px;
        }

        .social-icons {
            justify-content: center;
        }

        .bank-item,
        .contact-item {
            padding: 12px;
        }

        .bank-logo,
        .contact-icon {
            width: 40px;
            height: 40px;
            font-size: 1rem;
        }

        .contact-button {
            padding: 14px 20px;
            font-size: 0.9rem;
        }
    }

    /* ===== Animation Classes ===== */
    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(20px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .footer-column {
        animation: fadeInUp 0.6s ease-out;
    }

    .footer-column:nth-child(1) {
        animation-delay: 0.1s;
    }

    .footer-column:nth-child(2) {
        animation-delay: 0.2s;
    }

    .footer-column:nth-child(3) {
        animation-delay: 0.3s;
    }

/* Recipe Produk List */
.recipe-produk-list {
    margin-top: 15px;
}

.produk-item {
    padding: 10px;
    background: var(--bg-light);
    border-radius: 10px;
    border-left: 3px solid var(--primary-green);
    transition: var(--transition);
    margin-bottom: 15px; /* Tambahkan ini untuk jarak antar item */
}

/* Untuk menghilangkan margin pada item terakhir */
.produk-item:last-child {
    margin-bottom: 0;
}

.produk-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-sm);
}

.produk-item .recipe-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 0;
}

.produk-item .recipe-meta-item {
    width: 100%;
    background: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.9rem;
}

.produk-item .produk-name {
    color: var(--primary-green);
    font-weight: 600;
}

.produk-item .dosis-info {
    color: var(--text-dark);
    background: var(--bg-light);
}

/* Untuk tampilan desktop - side by side */
@media (min-width: 768px) {
    .produk-item .recipe-meta {
        flex-direction: row;
        align-items: center;
    }
    
    .produk-item .produk-name {
        flex: 2;
    }
    
    .produk-item .dosis-info {
        flex: 1;
    }
}

/* Animasi untuk produk items */
.produk-item {
    animation: slideInRight 0.3s ease-out forwards;
    animation-delay: calc(var(--item-index) * 0.1s);
}

/* style.css - Gabungan dari CSS lama Anda + CSS baru untuk Modal */

/* --- PASTE SEMUA CSS LAMA ANDA DI SINI --- */
/* Contoh: style untuk product-hero, running-ribbon, product-card, dll. */
/* Pastikan semua selector dari file CSS lama Anda ada di sini. */

/* --- AKHIR DARI CSS LAMA --- */

/* --- CSS BARU UNTUK MODAL POPUP (TEMA TERANG, CLEAN, LUCU) --- */

/* Latar belakang modal */
.product-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

/* Konten modal */
.modal-content {
    background-color: #e8f7f3;
    
    /* HAPUS margin: 5% auto; Ganti jadi margin: 0; */
    margin: 0; 
    
    padding: 0;
    border: none;
    border-radius: 30px;
    width: 90%;
    max-width: 1000px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    /* --- JURUS TENGAH MUTLAK --- */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    
    /* Agar tidak bablas kalau layar HP kecil / teksnya panjang */
    max-height: 90vh;
    overflow-y: auto;
    
    /* Ganti nama animasinya biar nggak bentrok */
    animation: slideUpCenter 0.4s ease forwards;
}

/* Sembunyikan scrollbar kalau isi modalnya panjang */
.modal-content::-webkit-scrollbar {
    width: 0px; 
    background: transparent; 
}

/* Animasi baru khusus untuk modal yang ada di tengah */
@keyframes slideUpCenter {
    from {
        transform: translate(-50%, -40%); /* Muncul dari sedikit di bawah tengah */
        opacity: 0;
    }
    to {
        transform: translate(-50%, -50%); /* Berhenti pas di tengah-tengah layar */
        opacity: 1;
    }
}

/* Tombol tutup (X) */
.close-modal {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 35px;
    font-weight: 300;
    cursor: pointer;
    z-index: 10;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.2s;
    line-height: 1;
}

.close-modal:hover {
    color: #a6e1cd;
    background-color: #f5fff5;
    transform: rotate(90deg);
}

/* Body modal dengan layout 2 kolom */
.modal-body {
    display: flex;
    flex-wrap: wrap;
}

/* Kolom kiri jadi wadah putih transparan biasa */
.modal-left {
    flex: 1 1 40%;
    padding: 2rem;
    display: flex;
    border-top-left-radius: 10%;
    border-bottom-left-radius: 10%;
    flex-direction: column; /* Mengatur atas-bawah */
    background-color: white; /* Hapus hijau dari sini */
}

/* Kotak hijau khusus dipindah ke sini */
.image-green-box {
    background: linear-gradient(135deg, #f8faf9 0%, #e6f7e6 100%);
    border-radius: 20px; /* Bikin ujung kotaknya membulat */
    height: 2px;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    height: fit-content;
    margin-bottom: 1.5rem; /* Jarak antara kotak hijau dan tombol di bawahnya */
}

/* Container untuk barisan tombol di bawah gambar */
.modal-actions-left {
    display: flex;
    gap: 1rem; /* Jarak antar tombol */
    justify-content: space-between; /* Membagi kanan-kiri */
    width: 100%;
}

/* Biar tombolnya berukuran sama panjang 50:50 */
.modal-actions-left a {
    flex: 1;
    text-align: center;
    padding: 12px 15px; /* Sedikit disesuaikan biar pas bersandingan */
    font-size: 0.95rem; /* Sedikit dikecilkan agar teks tidak berdesakan */
}

/* Stiker kecil di pojok gambar (sentuhan lucu) */
.product-sticker {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: #ffaaa5;
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 5px 15px;
    border-radius: 50px;
    transform: rotate(-5deg);
    box-shadow: 0 4px 8px rgba(255, 170, 165, 0.3);
    z-index: 2;
}

/* Gambar produk di modal */
#modalProductImage {
    max-width: 100%;
    max-height: 350px;
    object-fit: contain;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.1));
    transition: transform 0.3s ease;
}

.modal-left:hover #modalProductImage {
    transform: scale(1.03);
}

/* Kolom kanan untuk detail */
.modal-right {
    flex: 1 1 60%;
    padding: 2.5rem;
    background-color: white;
    border-top-right-radius: 10%;
    border-bottom-right-radius: 10%;
}

/* Judul produk */
.modal-product-title {
    font-size: 2rem;
    font-weight: 700;
    color: #2d3e50;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

/* Kategori produk */
.modal-product-category {
    font-size: 1rem;
    color: #88a096;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    background-color: #f0f7f4;
    display: inline-block;
    padding: 0.3rem 1rem;
    border-radius: 50px;
}

/* Harga produk */
.modal-product-price {
    font-size: 2rem;
    font-weight: 700;
    color: #4a9b6d;
    margin-bottom: 1.5rem;
    border-bottom: 2px dashed #e0e0e0;
    padding-bottom: 1rem;
}

/* Label deskripsi */
.modal-product-description-label {
    font-weight: 600;
    color: #555;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

/* Deskripsi produk */
.modal-product-description {
    color: #666;
    line-height: 1.7;
    margin-bottom: 2rem;
    font-size: 0.95rem;
    max-height: 150px;
    overflow-y: auto;
    padding-right: 10px;
}

/* Scrollbar untuk deskripsi */
.modal-product-description::-webkit-scrollbar {
    width: 5px;
}
.modal-product-description::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}
.modal-product-description::-webkit-scrollbar-thumb {
    background: #b8d9c5;
    border-radius: 10px;
}

/* Container untuk tombol aksi */
.modal-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

/* Tombol Shopee */
.modal-btn-shopee {
    flex: 1;
    background-color: #ee4d2d;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
    box-shadow: 0 8px 15px rgba(238, 77, 45, 0.2);
}

.modal-btn-shopee:hover {
    background-color: #d63e20;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 15px 20px rgba(238, 77, 45, 0.3);
}

/* Tombol WhatsApp */
.modal-btn-wa {
    flex: 1;
    background-color: #25D366;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
    box-shadow: 0 8px 15px rgba(37, 211, 102, 0.2);
}

.modal-btn-wa:hover {
    background-color: #20b859;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 15px 20px rgba(37, 211, 102, 0.3);
}

/* Tombol tutup di footer modal */
.modal-btn-close {
    background-color: #f0f0f0;
    color: #666;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 500;
    width: 100%;
    transition: all 0.2s;
    cursor: pointer;
    border: 1px solid #e0e0e0;
}

.modal-btn-close:hover {
    background-color: #e4e4e4;
    color: #333;
}

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

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

/* Responsif untuk layar kecil */
@media (max-width: 768px) {
    .modal-content {
        margin: 10% auto;
        width: 95%;
    }

    .modal-body {
        flex-direction: column;
    }

    .modal-left {
        min-height: 300px;
        padding: 1.5rem;
    }

    .modal-right {
        padding: 1.5rem;
    }

    .modal-product-title {
        font-size: 1.6rem;
    }

    .modal-actions {
        flex-direction: column;
    } 
   /* Perbaikan Modal untuk Bukti Testimoni - V3 */
#buktiTestimoniModal .modal-dialog {
    max-width: 95vw;
    margin: 0.5rem auto;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    min-height: calc(100% - 1rem);
}

#buktiTestimoniModal .modal-content {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    background-color: white;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    width: 100%;
    margin: 0 auto;
}

#buktiTestimoniModal .modal-header {
    background: linear-gradient(135deg, #f0fdf4 0%, #e8f5e9 100%);
    border-bottom: 1px solid rgba(0,200,81,0.2);
    padding: 0.75rem 1.25rem;
}

#buktiTestimoniModal .modal-title {
    font-weight: 600;
    color: #2d6a4f;
    font-size: 1.1rem;
}

#buktiTestimoniModal .modal-body {
    background-color: #f8f9fa;
    padding: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    width: 100%;
}

/* Container untuk konten modal */
#buktiTestimoniModal .modal-body > div {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Styling untuk gambar */
#buktiTestimoniModal .modal-body img {
    max-width: 100%;
    max-height: 85vh;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

/* Styling khusus untuk video */
#buktiTestimoniModal .modal-body video {
    max-width: 100%;
    max-height: 85vh;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    background: #000;
    border-radius: 4px;
}

/* Styling untuk wrapper konten */
#buktiTestimoniModal .modal-body .content-wrapper {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

#buktiTestimoniModal .modal-footer {
    border-top: 1px solid rgba(0,200,81,0.2);
    padding: 0.75rem 1.25rem;
    background-color: white;
}

#buktiTestimoniModal .btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
    border-radius: 50px;
    padding: 0.4rem 1.2rem;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

#buktiTestimoniModal .btn-secondary:hover {
    background-color: #5a6268;
    border-color: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(108, 117, 125, 0.3);
}

/* Responsive untuk tablet */
@media (min-width: 768px) and (max-width: 991px) {
    #buktiTestimoniModal .modal-dialog {
        max-width: 85vw;
    }
}

/* Responsive untuk desktop */
@media (min-width: 992px) {
    #buktiTestimoniModal .modal-dialog {
        max-width: 80vw;
    }
    
    #buktiTestimoniModal .modal-dialog.modal-lg {
        max-width: 800px;
    }
    
    #buktiTestimoniModal .modal-dialog.modal-xl {
        max-width: 1200px;
    }
}

/* Responsive untuk HP */
@media (max-width: 767px) {
    #buktiTestimoniModal .modal-dialog {
        max-width: 98vw;
        margin: 0.25rem auto;
    }
    
    #buktiTestimoniModal .modal-body {
        min-height: 150px;
    }
    
    #buktiTestimoniModal .modal-body img,
    #buktiTestimoniModal .modal-body video {
        max-height: 70vh;
    }
    
    #buktiTestimoniModal .modal-header {
        padding: 0.5rem 1rem;
    }
    
    #buktiTestimoniModal .modal-title {
        font-size: 1rem;
    }
    
    #buktiTestimoniModal .modal-footer {
        padding: 0.5rem 1rem;
    }
}

/* Untuk layar sangat kecil */
@media (max-width: 480px) {
    #buktiTestimoniModal .modal-body img,
    #buktiTestimoniModal .modal-body video {
        max-height: 60vh;
    }
}

/* ===== RECIPE CARD STYLING - 16:9 ASPECT RATIO ===== */
}

/* ===== PERBAIKAN MODAL GALLERY - KHUSUS GALLERY ===== */

/* Gallery Detail Modal - perbaiki dengan ID spesifik */
#galleryDetailModal {
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1060;
}

#galleryDetailModal .modal-dialog {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    margin: 0 !important;
    max-width: 900px;
    width: 90%;
    z-index: 1061;
}

#galleryDetailModal .modal-content {
    border-radius: 20px;
    border: none;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    max-height: 90vh;
    overflow-y: auto;
}

#galleryDetailModal .modal-header {
    background: var(--primary-green) !important;
    color: white;
    border-radius: 20px 20px 0 0;
    padding: 1rem 1.5rem;
}

#galleryDetailModal .modal-body {
    padding: 2rem;
}

#galleryDetailModal #modalImage {
    width: 100%;
    height: 100%;
    max-height: 200px;
    object-fit: contain;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    display: block;
    margin: 0 auto;
}

/* ===== FULLSCREEN MODAL - VERSI SEDERHANA DAN PASTI TENGAH ===== */
#fullscreenModal {
    background-color: rgba(0, 0, 0, 0.95) !important;
    z-index: 99999 !important;
}

#fullscreenModal .modal-dialog {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    margin: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    max-width: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

#fullscreenModal .modal-content {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

#fullscreenModal .modal-body {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 20px !important;
    width: 100% !important;
    height: 100% !important;
}

/* Container gambar */
.fullscreen-image-container {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.5) !important;
    border-radius: 12px !important;
    padding: 20px !important;
}

/* Gambar utama */
#fullscreenModal #fullscreenImage {
    max-width: 95% !important;
    max-height: 90vh !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 auto !important;
    border-radius: 12px !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5) !important;
}

/* Tombol close - PASTI MUNCUL */
#fullscreenModal .btn-close-custom {
    position: fixed !important;
    top: 30px !important;
    right: 30px !important;
    width: 50px !important;
    height: 50px !important;
    background: rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(10px) !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    color: white !important;
    font-size: 24px !important;
    z-index: 100000 !important;
    border: none !important;
    outline: none !important;
}

#fullscreenModal .btn-close-custom:hover {
    background: var(--primary-green) !important;
    transform: rotate(90deg) scale(1.1) !important;
}

/* Tombol navigasi */
.fullscreen-nav-btn {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 50px !important;
    height: 50px !important;
    background: rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(10px) !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    color: white !important;
    font-size: 24px !important;
    z-index: 100000 !important;
    border: none !important;
}

.fullscreen-nav-btn:hover {
    background: var(--primary-green) !important;
    transform: translateY(-50%) scale(1.1) !important;
}

.fullscreen-nav-btn.prev {
    left: 20px !important;
}

.fullscreen-nav-btn.next {
    right: 20px !important;
}

/* Info gambar */
.fullscreen-image-info {
    position: absolute !important;
    bottom: 20px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    background: rgba(0, 0, 0, 0.7) !important;
    backdrop-filter: blur(10px) !important;
    border-radius: 50px !important;
    padding: 12px 24px !important;
    color: white !important;
    display: flex !important;
    align-items: center !important;
    gap: 20px !important;
    z-index: 100000 !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
}

/* Counter */
.fullscreen-counter {
    position: absolute !important;
    top: 20px !important;
    left: 20px !important;
    background: rgba(0, 0, 0, 0.5) !important;
    backdrop-filter: blur(5px) !important;
    border-radius: 30px !important;
    padding: 8px 16px !important;
    color: white !important;
    z-index: 100000 !important;
}

/* Tombol aksi */
.fullscreen-actions {
    position: absolute !important;
    bottom: 20px !important;
    right: 20px !important;
    display: flex !important;
    gap: 10px !important;
    z-index: 100000 !important;
}

.fullscreen-action-btn {
    width: 45px !important;
    height: 45px !important;
    background: rgba(0, 0, 0, 0.5) !important;
    backdrop-filter: blur(5px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    color: white !important;
    font-size: 1.2rem !important;
}

/* ===== HAPUS SEMUA CSS MODAL LAMA YANG BENTROK ===== */
/* Nonaktifkan semua aturan .modal.fade .modal-dialog */
.modal.fade .modal-dialog {
    transform: none !important;
    transition: none !important;
}

/* Responsive */
@media (max-width: 768px) {
    .fullscreen-nav-btn {
        width: 40px !important;
        height: 40px !important;
        font-size: 20px !important;
    }
    
    .fullscreen-image-info {
        flex-direction: column !important;
        gap: 10px !important;
        padding: 10px 20px !important;
        width: 90% !important;
    }
    
    #fullscreenModal .btn-close-custom {
        top: 20px !important;
        right: 20px !important;
        width: 45px !important;
        height: 45px !important;
        font-size: 20px !important;
    }
}

/* ===== ANIMASI KHUSUS GALLERY MODAL ===== */
#galleryDetailModal.fade .modal-dialog,
#fullscreenModal.fade .modal-dialog {
    transition: transform 0.3s ease-out;
    transform: translate(-50%, -60%) scale(0.9) !important;
}

#galleryDetailModal.show .modal-dialog,
#fullscreenModal.show .modal-dialog {
    transform: translate(-50%, -50%) scale(1) !important;
}

/* ===== MODAL BUKTI TESTIMONI - KEMBALIKAN KE POSISI NORMAL ===== */
#buktiTestimoniModal .modal-dialog {
    /* Reset semua properti yang diubah untuk gallery */
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    margin: 1.75rem auto !important;
    max-width: 500px;
    width: auto;
    display: block;
}

#buktiTestimoniModal.fade .modal-dialog {
    transform: translate(0, -50px) !important;
    transition: transform 0.3s ease-out;
}

#buktiTestimoniModal.show .modal-dialog {
    transform: none !important;
}

/* Ukuran khusus untuk modal testimoni dengan gambar/video */
#buktiTestimoniModal .modal-dialog.modal-lg {
    max-width: 800px;
}

#buktiTestimoniModal .modal-dialog.modal-xl {
    max-width: 1200px;
}

/* Content modal testimoni */
#buktiTestimoniModal .modal-content {
    border-radius: 16px;
    overflow: hidden;
    background-color: white;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

#buktiTestimoniModal .modal-header {
    background: linear-gradient(135deg, #f0fdf4 0%, #e8f5e9 100%);
    border-bottom: 1px solid rgba(0,200,81,0.2);
    padding: 0.75rem 1.25rem;
}

#buktiTestimoniModal .modal-title {
    font-weight: 600;
    color: #2d6a4f;
    font-size: 1.1rem;
}

#buktiTestimoniModal .modal-body {
    background-color: #f8f9fa;
    padding: 0;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#buktiTestimoniModal .modal-body img,
#buktiTestimoniModal .modal-body video {
    max-width: 100%;
    max-height: 85vh;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

#buktiTestimoniModal .modal-footer {
    border-top: 1px solid rgba(0,200,81,0.2);
    padding: 0.75rem 1.25rem;
    background-color: white;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    /* Gallery modal responsive */
    #galleryDetailModal .modal-dialog {
        width: 95%;
    }
    
    #galleryDetailModal .modal-body {
        padding: 1rem;
    }
    
    #galleryDetailModal .row {
        flex-direction: column;
    }
    
    #galleryDetailModal #modalImage {
        max-height: 250px;
        margin-bottom: 1.5rem;
    }
    
    /* Testimoni modal responsive */
    #buktiTestimoniModal .modal-dialog {
        margin: 0.5rem auto !important;
        width: 95%;
    }
    
    #fullscreenModal .modal-header {
        top: 10px;
        right: 10px;
    }
}

@media (max-width: 576px) {
    #galleryDetailModal .modal-body {
        padding: 0.75rem;
    }
    
    #galleryDetailModal #modalImage {
        max-height: 200px;
    }
    
    #buktiTestimoniModal .modal-dialog {
        margin: 0.25rem auto !important;
    }
    
    #buktiTestimoniModal .modal-body {
        min-height: 150px;
    }
    
    #buktiTestimoniModal .modal-body img,
    #buktiTestimoniModal .modal-body video {
        max-height: 70vh;
    }
    
    #fullscreenModal .btn-close-white {
        padding: 8px;
    }

    /* Tambahkan di file style.css Anda */

/* Styling untuk produk obat */
.produk-obat-grid {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 1rem;
    margin-top: 1.5rem;
}

.produk-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 0.75rem;
    overflow: hidden;
}

.produk-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}

.produk-card .card-img-top {
    background-color: #ffffff;
    padding: 1rem;
    transition: transform 0.3s ease;
}

.produk-card:hover .card-img-top {
    transform: scale(1.05);
}

.produk-card .card-body {
    background-color: #ffffff;
    border-top: 1px solid #e9ecef;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .produk-obat-grid .col-6 {
        padding: 0 0.5rem;
    }
    
    .produk-card .card-title {
        font-size: 0.9rem;
    }
    
    .produk-card .card-text {
        font-size: 0.8rem;
    }
}
}

/* ===== PERBAIKAN TOTAL MODAL GALLERY ===== */

/* Hilangkan delay dengan mengatur modal dari awal */
#galleryDetailModal {
    background-color: rgba(0, 0, 0, 0.6) !important;
    backdrop-filter: blur(5px) !important;
}

#galleryDetailModal .modal-dialog {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    margin: 0 !important;
    max-width: 1200px !important; /* Diperbesar dari 950px */
    width: 95% !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Override Bootstrap fade animation */
#galleryDetailModal.fade .modal-dialog {
    transition: transform 0.3s ease-out, opacity 0.2s ease-out !important;
    transform: translate(-50%, -40%) scale(0.95) !important;
    opacity: 0 !important;
}

#galleryDetailModal.show .modal-dialog {
    transform: translate(-50%, -50%) scale(1) !important;
    opacity: 1 !important;
}

/* ===== DESAIN ELEGAN DENGAN AKSEN HIJAU ===== */
#galleryDetailModal .modal-content {
    border-radius: 28px !important;
    border: none !important;
    background: linear-gradient(145deg, #ffffff, #fafafa) !important;
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(0, 200, 81, 0.2) !important;
    overflow: hidden !important;
    max-height: 90vh !important;
}

/* Header dengan aksen hijau di bagian atas */
#galleryDetailModal .modal-header {
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%) !important;
    color: #1e293b !important;
    padding: 1.35rem 2rem !important;
    border-bottom: 2px solid rgba(0, 200, 81, 0.15) !important;
    position: relative !important;
}

/* Garis hijau di atas header */
#galleryDetailModal .modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-green), #4ade80, var(--primary-green));
}

#galleryDetailModal .modal-title {
    font-weight: 700 !important;
    font-size: 1.35rem !important;
    color: #0f172a !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

#galleryDetailModal .modal-title i {
    color: var(--primary-green) !important;
    font-size: 1.3rem !important;
    background: rgba(0, 200, 81, 0.1) !important;
    padding: 10px !important;
    border-radius: 12px !important;
}

/* Tombol close */
#galleryDetailModal .btn-close {
    background: transparent !important;
    opacity: 0.7 !important;
    transition: all 0.3s ease !important;
    padding: 0.75rem !important;
    border-radius: 50% !important;
    background-color: #f1f5f9 !important;
    background-image: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.2rem !important;
    color: #64748b !important;
    border: 1px solid #e2e8f0 !important;
}

#galleryDetailModal .btn-close::before {
    content: '✕';
    font-family: 'Poppins', sans-serif;
    line-height: 1;
}

#galleryDetailModal .btn-close:hover {
    opacity: 1 !important;
    background-color: var(--primary-green) !important;
    color: white !important;
    border-color: var(--primary-green) !important;
    transform: rotate(90deg) scale(1.1) !important;
}

/* Body modal dengan background soft */
#galleryDetailModal .modal-body {
    padding: 2rem !important;
    background: linear-gradient(135deg, #ffffff, #f8fafc) !important;
}

/* ===== PERBAIKAN UKURAN GAMBAR - DIPERBESAR ===== */
#galleryDetailModal .row {
    align-items: center !important;
    margin: 0 !important;
}

/* Kolom kiri untuk gambar - diperbesar */
#galleryDetailModal .col-md-6:first-child {
    flex: 0 0 55% !important; /* Gambar mengambil 55% lebar */
    max-width: 55% !important;
    padding-right: 20px !important;
}

/* Kolom kanan untuk konten - disesuaikan */
#galleryDetailModal .col-md-6:last-child {
    flex: 0 0 45% !important;
    max-width: 45% !important;
    padding-left: 20px !important;
}

/* Gambar dengan ukuran lebih besar */
#galleryDetailModal #modalImage {
    width: 100% !important;
    height: auto !important;
    max-height: 500px !important; /* Diperbesar dari 350px */
    min-height: 350px !important; /* Minimal tinggi */
    object-fit: contain !important;
    border-radius: 20px !important;
    box-shadow: 0 20px 40px -12px rgba(0, 200, 81, 0.25), 0 0 0 2px rgba(0, 200, 81, 0.15) !important;
    transition: all 0.3s ease !important;
    background: linear-gradient(135deg, #f8fafc, #ffffff) !important;
    padding: 6px;
}

/* Container gambar dengan efek */
#galleryDetailModal .col-md-6:first-child {
    position: relative;
}

#galleryDetailModal .col-md-6:first-child::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: -15px;
    bottom: -15px;
    background: linear-gradient(135deg, rgba(0, 200, 81, 0.2), transparent 70%);
    border-radius: 20px;
    z-index: -1;
}

/* Judul dengan ukuran proporsional */
#galleryDetailModal #modalJudul {
    color: #0f172a !important;
    font-size: 2rem !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    margin-bottom: 1rem !important;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Tanggal dengan style badge hijau soft */
#galleryDetailModal .text-muted.mb-2 {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    background: linear-gradient(135deg, #f0fdf4, #e8f5e9) !important;
    padding: 0.6rem 1.4rem !important;
    border-radius: 40px !important;
    font-size: 0.9rem !important;
    color: #166534 !important;
    margin: 1rem 0 1.5rem !important;
    border: 1px solid rgba(0, 200, 81, 0.3) !important;
    font-weight: 500 !important;
}

#galleryDetailModal .text-muted.mb-2 i {
    color: var(--primary-green) !important;
    font-size: 1rem !important;
}

/* Deskripsi dengan background soft */
#galleryDetailModal #modalDeskripsi {
    color: #334155 !important;
    font-size: 1rem !important;
    line-height: 1.8 !important;
    margin: 1.5rem 0 !important;
    padding: 1.2rem 1.5rem !important;
    background: #f8fafc !important;
    border-radius: 16px !important;
    border-left: 4px solid var(--primary-green) !important;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02) !important;
}

/* Section tags dengan ikon */
#galleryDetailModal .mb-3 strong {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 1.1rem !important;
    color: #0f172a !important;
    margin-bottom: 1rem !important;
    font-weight: 600 !important;
}

#galleryDetailModal .mb-3 strong::before {
    content: '\f02c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--primary-green);
    font-size: 1rem;
    background: rgba(0, 200, 81, 0.1);
    padding: 8px;
    border-radius: 10px;
}

/* Container tags */
#galleryDetailModal #modalTags {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
}

/* Style untuk setiap tag - lebih menarik */
#galleryDetailModal .gallery-tag {
    background: linear-gradient(135deg, #ffffff, #f8fafc) !important;
    color: #1e293b !important;
    padding: 0.6rem 1.4rem !important;
    border-radius: 40px !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    transition: all 0.25s ease !important;
    cursor: pointer !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02) !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
}

#galleryDetailModal .gallery-tag i {
    color: var(--primary-green) !important;
    font-size: 0.8rem !important;
    transition: all 0.25s ease !important;
}

#galleryDetailModal .gallery-tag:hover {
    background: linear-gradient(135deg, var(--primary-green), #16a34a) !important;
    color: white !important;
    border-color: transparent !important;
    transform: translateY(-3px) scale(1.02) !important;
    box-shadow: 0 10px 20px -8px rgba(0, 200, 81, 0.4) !important;
}

#galleryDetailModal .gallery-tag:hover i {
    color: white !important;
    transform: scale(1.1) !important;
}

/* Footer modal */
#galleryDetailModal .modal-footer {
    padding: 1.35rem 2rem !important;
    border-top: 2px solid rgba(0, 200, 81, 0.1) !important;
    background: linear-gradient(135deg, #ffffff, #f8fafc) !important;
}

/* Tombol tutup dengan style lebih baik */
#galleryDetailModal .btn-secondary {
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0) !important;
    border: none !important;
    color: #334155 !important;
    font-weight: 600 !important;
    padding: 0.7rem 2.5rem !important;
    border-radius: 50px !important;
    transition: all 0.3s ease !important;
    border: 1px solid #cbd5e1 !important;
    font-size: 1rem !important;
    letter-spacing: 0.5px !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

#galleryDetailModal .btn-secondary i {
    font-size: 0.9rem !important;
    transition: transform 0.3s ease !important;
}

#galleryDetailModal .btn-secondary:hover {
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1) !important;
    color: #0f172a !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 10px 20px -8px rgba(0, 0, 0, 0.2) !important;
}

#galleryDetailModal .btn-secondary:hover i {
    transform: translateX(-5px) !important;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    #galleryDetailModal .col-md-6:first-child,
    #galleryDetailModal .col-md-6:last-child {
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }
    
    #galleryDetailModal #modalImage {
        max-height: 400px !important;
        min-height: 300px !important;
    }
}

@media (max-width: 768px) {
    #galleryDetailModal .modal-dialog {
        width: 95% !important;
    }
    
    #galleryDetailModal .modal-body {
        padding: 1.5rem !important;
    }
    
    /* Di mobile, gambar di atas, konten di bawah */
    #galleryDetailModal .col-md-6:first-child,
    #galleryDetailModal .col-md-6:last-child {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
    }
    
    #galleryDetailModal .col-md-6:first-child {
        margin-bottom: 2rem !important;
    }
    
    #galleryDetailModal .col-md-6:first-child::after {
        display: none;
    }
    
    #galleryDetailModal #modalJudul {
        font-size: 1.8rem !important;
    }
    
    #galleryDetailModal #modalImage {
        max-height: 350px !important;
        min-height: 250px !important;
    }
}

@media (max-width: 576px) {
    #galleryDetailModal .modal-header {
        padding: 1rem 1.25rem !important;
    }
    
    #galleryDetailModal .modal-body {
        padding: 1.25rem !important;
    }
    
    #galleryDetailModal #modalJudul {
        font-size: 1.5rem !important;
    }
    
    #galleryDetailModal #modalImage {
        max-height: 280px !important;
        min-height: 200px !important;
    }
    
    #galleryDetailModal .modal-footer {
        padding: 1rem 1.25rem !important;
    }
    
    #galleryDetailModal .btn-secondary {
        width: 100% !important;
        justify-content: center !important;
    }
    
    #galleryDetailModal .gallery-tag {
        padding: 0.5rem 1.2rem !important;
        font-size: 0.85rem !important;
    }

    /* Tambahkan di file style.css Anda */

/* Styling untuk pengantar solusi */
.pengantar-solusi {
    color: #2c3e50;
    line-height: 1.7;
}

.pengantar-solusi p {
    margin-bottom: 1rem;
}

.list-check {
    background-color: #f8faf9;
    padding: 1.2rem 1.5rem;
    border-radius: 16px;
    border-left: 4px solid var(--primary-green);
}

.list-check .d-flex {
    transition: transform 0.2s ease;
}

.list-check .d-flex:hover {
    transform: translateX(5px);
}

.list-check i {
    font-size: 1.1rem;
}

/* Styling untuk resep obat wrapper */
.resep-obat-wrapper {
    background: linear-gradient(135deg, #ffffff 0%, #f8faf9 100%);
    border: 1px solid rgba(0, 200, 81, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.resep-obat-wrapper h5 {
    color: #1e293b;
}

.resep-obat-wrapper h5 i {
    font-size: 1.2rem;
}

.resep-obat-wrapper .fs-5 {
    color: #0f172a;
    font-weight: 500;
    padding: 0.5rem 1rem;
    background: white;
    border-radius: 50px;
    display: inline-block;
    border: 1px dashed var(--primary-green);
}

/* Styling untuk produk card */
.produk-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 16px;
    overflow: hidden;
    background: white;
    border: 1px solid #e9ecef;
}

.produk-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 200, 81, 0.15) !important;
    border-color: var(--primary-green);
}

.produk-image-wrapper {
    background: linear-gradient(135deg, #f8fafc, #ffffff);
    border-bottom: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.produk-card:hover .produk-image-wrapper {
    background: linear-gradient(135deg, #f0fdf4, #ffffff);
}

.produk-card .card-img-top {
    transition: transform 0.3s ease;
}

.produk-card:hover .card-img-top {
    transform: scale(1.1);
}

.produk-card .card-body {
    background: white;
    padding: 1rem 0.75rem;
}

.produk-card .card-title {
    font-size: 1rem;
    color: #1e293b;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.8rem;
}

.produk-card .card-text {
    font-size: 0.85rem;
    color: #64748b;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .list-check {
        padding: 1rem;
    }
    
    .list-check .d-flex {
        font-size: 0.95rem;
    }
    
    .resep-obat-wrapper {
        padding: 1.2rem !important;
    }
    
    .resep-obat-wrapper .fs-5 {
        font-size: 1rem !important;
        padding: 0.4rem 0.8rem;
    }
    
    .produk-card .card-title {
        font-size: 0.9rem;
        min-height: 2.5rem;
    }
}

@media (max-width: 576px) {
    .resep-obat-wrapper .col-6 {
        padding: 0 0.3rem;
    }
    
    .produk-image-wrapper {
        height: 120px !important;
    }
    
    .produk-image-wrapper img {
        max-height: 100px !important;
    }
    
    .produk-card .card-body {
        padding: 0.75rem 0.5rem;
    }
    
    .produk-card .card-title {
        font-size: 0.8rem;
        min-height: 2.2rem;
    }
    
    .produk-card .card-text {
        font-size: 0.75rem;
    }
}
}

/* ===== PRODUCT IMAGE SLIDER ===== */
#productImageCarousel {
    min-height: 350px;
    background: linear-gradient(135deg, #f8fafc, #ffffff);
}

#productImageCarousel .carousel-inner {
    min-height: 350px;
}

#productImageCarousel .carousel-item {
    transition: transform 0.6s ease-in-out;
}

#productImageCarousel .carousel-control-prev,
#productImageCarousel .carousel-control-next {
    opacity: 0;
    transition: opacity 0.3s ease;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
}

#productImageCarousel:hover .carousel-control-prev,
#productImageCarousel:hover .carousel-control-next {
    opacity: 1;
}

#productImageCarousel .carousel-control-prev {
    left: 10px;
}

#productImageCarousel .carousel-control-next {
    right: 10px;
}

#productImageCarousel .carousel-indicators {
    bottom: 10px;
    margin-bottom: 0;
}

#productImageCarousel .carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid transparent;
    margin: 0 4px;
}

#productImageCarousel .carousel-indicators button.active {
    background-color: var(--primary-green);
    transform: scale(1.2);
}

/* Thumbnail styles */
.img-thumbnail {
    transition: all 0.3s ease;
    border-radius: 8px;
    padding: 2px;
}

.img-thumbnail:hover {
    transform: scale(1.1);
    z-index: 5;
}

/* Responsive */
@media (max-width: 768px) {
    #productImageCarousel {
        min-height: 250px;
    }
    
    #productImageCarousel .carousel-inner {
        min-height: 250px;
    }
    
    #productImageCarousel .carousel-item img {
        max-height: 200px;
    }
}

@media (max-width: 576px) {
    #productImageCarousel {
        min-height: 200px;
    }
    
    #productImageCarousel .carousel-inner {
        min-height: 200px;
    }
    
    #productImageCarousel .carousel-item img {
        max-height: 160px;
    }
}