/* Perbesar grid produk di mobile (homepage Layanan & Produk) */
@media (max-width: 640px) {
  .product-card {
    font-size: 1.1rem;
    padding: 0.5rem;
  }
  .product-card .aspect-square {
    height: 220px;
    min-height: 180px;
    max-height: 260px;
  }
  .product-card img {
    min-height: 180px;
    max-height: 260px;
    object-fit: cover;
  }
  .grid-cols-2 {
    grid-template-columns: 1fr !important; /* Force single column on mobile */
  }
}

@media (min-width: 641px) {
  .grid-cols-2 {
    grid-template-columns: repeat(2, 1fr) !important; /* Two columns for tablets */
  }
}

@media (min-width: 1024px) {
  .grid-cols-2 {
    grid-template-columns: repeat(4, 1fr) !important; /* Four columns for desktops */
  }
}

hr {
  margin-top: 30px;
  margin-bottom: 20px;
}

/* Post navigation links */
.post_navi {
  display: flex;
}

.post_navi-label {
  font-size: 0.8em;
  opacity: 0.5;
}

.post_navi .post_navi-item {
  padding: 0 2.2em;
  width: 50%;
  position: relative;
  color: inherit !important;
}

.post_navi .nav_prev {
  text-align: left;
}

.post_navi .nav_next {
  text-align: right;
}

.post_navi .nav_prev .post_navi-arrow {
  left: 0;
}

.post_navi .nav_next .post_navi-arrow {
  right: 0;
}

.post_navi .post_navi-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2.5em;
  opacity: 0.3;
}

/* Styles moved from homepage inline <style> */
body {
  font-family: 'Inter', sans-serif;
  background-color: #ffffff;
  color: #1e293b;
  scroll-behavior: smooth;
}

/* Color palette upgrade - Bold & Professional */
:root {
  --primary-color: #3b82f6;        /* Bright Blue */
  --primary-dark: #1e40af;         /* Deep Blue */
  --secondary-color: #f97316;      /* Vibrant Orange */
  --accent-color: #06b6d4;         /* Cyan */
  --success-color: #10b981;        /* Green */
  --danger-color: #ef4444;         /* Red */
  --dark-bg: #0f172a;              /* Dark Navy */
  --light-bg: #f8fafc;             /* Light Gray */
}

.zan-indigo { 
  color: #3b82f6;                  /* Changed from #6366f1 to brighter blue */
}

.zan-bg-indigo { 
  background-color: #3b82f6;       /* Changed from #6366f1 to brighter blue */
}

/* Enhanced product card with bolder colors */
.product-card {
  border: 2px solid #e5e7eb;       /* Bolder border */
  transition: all 0.3s ease;
  background: #ffffff;
}

.product-card:hover {
  border-color: #3b82f6;           /* Bright blue on hover */
  box-shadow: 0 15px 40px -10px rgba(59, 130, 246, 0.25);
  transform: translateY(-4px);
}

/* Promo banner with stronger gradient */
.promo-banner {
  background: linear-gradient(135deg, #3b82f6 0%, #f97316 100%);
  box-shadow: 0 20px 50px -10px rgba(59, 130, 246, 0.3);
}

/* Primary button with bold color */
.btn-primary {
  background-color: #3b82f6;       /* Changed from #1e293b to bright blue */
  color: white;
  transition: all 0.3s;
  font-weight: 700;
  border: 2px solid #3b82f6;
}

.btn-primary:hover {
  background-color: #1e40af;       /* Dark blue on hover */
  box-shadow: 0 10px 30px -5px rgba(59, 130, 246, 0.4);
  transform: translateY(-2px);
}

/* Link colors - more vibrant */
.prose a {
  color: #3b82f6;                  /* Bright blue */
  font-weight: 600;
}

.prose a:hover {
  color: #1e40af;                  /* Deep blue */
  text-decoration-color: #f97316;  /* Orange underline */
}

/* Header with glass effect and color */
.glass-nav {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid #e5e7eb;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

/* Hero gradient with bold colors */
.hero-gradient {
  background: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 50%, #dbeafe 100%);
}

/* Product price highlighting */
.product-card p[class*="text-indigo"] {
  color: #f97316 !important;       /* Bold orange for prices */
  font-size: 0.875rem;
  font-weight: 800;
}

/* Section headings with bold color */
.prose h1, .prose h2, .prose h3 {
  color: #0f172a;                  /* Dark navy */
  font-weight: 900;
}

footer {
  background-color: #ffffff;
  border-top: 1px solid #f1f5f9;
}

/* Sidebar and grid helpers */
.product-card img, .group img { display: block; }
.sticky { position: sticky; }

/* Mobile menu adjustments */
#mobile-menu { box-shadow: 0 10px 30px rgba(2,6,23,0.08); }

/* Prose styling for blog posts */
.prose {
  color: #475569;
}

.prose h1 {
  font-size: 1.875rem;
  font-weight: 900;
  color: #0f172a;
  margin-top: 2rem;
  margin-bottom: 1rem;
  line-height: 1.25;
}

.prose h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.prose h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.prose p {
  margin-bottom: 1rem;
  line-height: 1.75;
}

.prose ul, .prose ol {
  margin-bottom: 1rem;
  margin-left: 1.5rem;
}

.prose li {
  margin-bottom: 0.5rem;
}

.prose a {
  color: #6366f1;
  text-decoration: underline;
  font-weight: 500;
}

.prose a:hover {
  color: #4f46e5;
}

/* SOLUSI 1: Batasi gambar dalam .prose */
.prose img {
  max-width: 100%;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* SOLUSI 2: Atau gunakan class khusus untuk container */
.post-content img {
  max-width: 100%;
  height: auto;
}

/* SOLUSI 3: Untuk gambar yang terlalu besar */
.post-content img {
  max-width: min(100%, 800px);
  height: auto;
  display: block;
  margin: 1.5rem auto;
}

/* SOLUSI 4: Untuk gambar featured (utama) */
.post-header + div img:first-child,
.post-content > img:first-child {
  max-width: 100%;
  height: auto;
}

.prose blockquote {
  border-left: 4px solid #6366f1;
  padding-left: 1rem;
  font-style: italic;
  color: #64748b;
  margin: 1.5rem 0;
}

.prose code {
  background-color: #f1f5f9;
  color: #0f172a;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.9em;
  font-family: 'Monaco', 'Courier New', monospace;
}

.prose pre {
  background-color: #0f172a;
  color: #e2e8f0;
  padding: 1rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin-bottom: 1rem;
}

.prose pre code {
  background-color: transparent;
  color: inherit;
  padding: 0;
}

.prose strong {
  font-weight: 700;
  color: #0f172a;
}

.prose em {
  font-style: italic;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.prose td, .prose th {
  border: 1px solid #e2e8f0;
  padding: 0.75rem;
  text-align: left;
}

.prose th {
  background-color: #f1f5f9;
  font-weight: 700;
  color: #0f172a;
}

/* Line clamp utilities */
.line-clamp-1 {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  line-clamp: 1; /* Standard property */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2; /* Standard property */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3; /* Standard property */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Social share links styling */
.share-links {
  display: flex;
  gap: 0.5rem;
}

.share-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  background-color: #f1f5f9;
  color: #64748b;
  font-weight: 700;
  font-size: 0.875rem;
  transition: all 0.2s;
}

.share-links a:hover {
  background-color: #3b82f6;
  color: #ffffff;
  box-shadow: 0 8px 20px -5px rgba(59, 130, 246, 0.3);
  transform: translateY(-2px);
}

/* Sticky positioning offset */
.sticky {
  top: 5rem;
}

/* Pagination styling */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
}

.pagination a, .pagination span {
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-weight: 500;
  font-size: 0.875rem;
}

.pagination a {
  background-color: #f1f5f9;
  color: #64748b;
  transition: all 0.2s;
}

.pagination a:hover {
  background-color: #3b82f6;
  color: #ffffff;
  box-shadow: 0 8px 20px -5px rgba(59, 130, 246, 0.3);
  transform: translateY(-2px);
}

.pagination .current {
  background-color: #3b82f6;
  color: #ffffff;
  box-shadow: 0 10px 25px -5px rgba(59, 130, 246, 0.35);
  border: 2px solid #3b82f6;
}

.pagination .disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* ============================
   FIX GAMBAR MELEBAR DI POST
   ============================ */

/* 1. HAPUS duplikat rules ini: */
/* 
.prose img {
  border-radius: 1rem;
  margin: 1.5rem 0;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1);
}
*/

/* 2. GANTI dengan ini: */
.prose img {
  max-width: 100% !important;
  height: auto !important;
  display: block;
  margin: 1.5rem auto;
  border-radius: 1rem;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1);
}

/* 3. Untuk gambar featured (utama di atas artikel) */
.post > div:first-child img,
.mb-12.-mx-6.md\:-mx-0 img {
  width: 100% !important;
  max-width: 100% !important;
  height: auto;
  border-radius: 1rem !important;
}

/* 4. Untuk semua gambar di konten artikel */
.post-content img,
.post .prose img,
article .prose img {
  max-width: 100% !important;
  width: auto !important;
  height: auto !important;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* 5. Paksa reset untuk mobile */
@media (max-width: 640px) {
  .prose img,
  .post-content img,
  .post .prose img,
  article img:not(.product-card img) {
    max-width: 100vw !important;
    width: 100% !important;
    height: auto !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  
  /* Container gambar featured */
  .mb-12.-mx-6 {
    margin-left: -1rem !important;
    margin-right: -1rem !important;
    width: calc(100% + 2rem) !important;
  }
  
  .mb-12.-mx-6 img {
    border-radius: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
  }
}

/* ============================
   TAMBAHKAN DI BAWAH SEMUA CSS
   ============================ */

/* RESET GAMBAR DI POST (Letakkan di paling akhir) */
.post article img,
.post-content .prose img,
.prose-lg img {
  max-width: 100% !important;
  height: auto !important;
}

/* Force untuk semua gambar di dalam konten */
div[itemprop="articleBody"] img,
.e-content img {
  max-width: 100% !important;
  height: auto !important;
}

/* Untuk gambar di dalam text (inline) */
.prose p img,
.prose li img {
  display: inline-block;
  max-width: 100%;
  vertical-align: middle;
}

/* About Section Styles */
.test2-theme .about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.test2-theme .about-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.test2-theme .about-content {
  padding: 20px 0;
}

.test2-theme .about-content p {
  margin-bottom: 16px;
  line-height: 1.6;
}

.test2-theme .about-features {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.test2-theme .about-feature {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: #f8fafc;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  border: 1px solid #e5e7eb;
}

@media (max-width: 768px) {
  .test2-theme .about-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}
