/* Hilangkan margin bawaan browser */
* { box-sizing: border-box; }
body { 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
    margin: 0; 
    background: #f0f2f5; 
    padding-top: 0px; /* Jarak ke coursel */
    padding-bottom: 80px; 
}

/* TOP BAR */
.top-bar {
	display: none !important; /* Benar-benar menghilangkan bar atas */
 /*   position: fixed;
    top: 0;
    width: 100%;
    height: 55px; 
    background-color: #344557;
    transition: top 0.2s ease-in-out; 
    z-index: 9999;
    display: flex;
    align-items: center; */
}

/* CAROUSEL SNAP SLIDER */
.carousel-container {
    width: 100%;
    overflow: hidden;
    background: #f0f2f5;
}

.carousel-slider {
    display: flex;
    overflow-x: auto;
    /* Ubah mandatory menjadi proximity agar tidak terlalu galak, 
       atau matikan sementara jika masih bandel */
    scroll-snap-type: x proximity; 
    -webkit-overflow-scrolling: touch;
}

/* Tambahkan class ini untuk mematikan snap via JS */
.no-snap {
    scroll-snap-type: none !important;
}

/* Sembunyikan scrollbar agar rapi */
.carousel-slider::-webkit-scrollbar {
    display: none;
}

.carousel-item {
    flex: 0 0 100%; /* Satu slide memenuhi lebar layar */
    height: 270px;
    scroll-snap-align: start;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 20px;
}

/* Variasi Warna Slide Gradient */
.bg-blue   { background: linear-gradient(135deg, #1a73e8, #0d47a1); }
.bg-dark   { background: linear-gradient(135deg, #202124, #3c4043); }
.bg-green  { background: linear-gradient(135deg, #2e7d32, #1b5e20); }

/* Tambahan Variasi Baru */
.bg-orange { background: linear-gradient(135deg, #f39c12, #d35400); }
.bg-purple { background: linear-gradient(135deg, #8e44ad, #2c3e50); }
.bg-cyan   { background: linear-gradient(135deg, #16a085, #00695c); }

.carousel-content h1 { font-size: 22px; margin: 0; }
.carousel-content p { font-size: 14px; margin: 10px 0; opacity: 0.9; }

.btn-carousel {
    display: inline-block;
    padding: 8px 15px;
    background: white;
    color: #333;
    text-decoration: none;
    border-radius: 18px;
    font-size: 11px;
    font-weight: bold;
}

/* MENU GRID */
.menu-grid { 
    padding: 20px; display: grid; 
    grid-template-columns: 1fr 1fr; gap: 10px; 
}
.card { 
    background: white; padding: 20px 15px; 
    border-radius: 15px; text-align: center; 
    box-shadow: 0 4px 6px rgba(0,0,0,0.05); 
    font-size: 14px; font-weight: 600; color: #333;
}

/* BOTTOM NAV */
.bottom-nav { 
    position: fixed; bottom: 0; width: 100%; height: 70px; 
    background: white; display: flex; justify-content: space-around; 
    align-items: center; border-top: 1px solid #eee; z-index: 1000; 
}
.nav-item { 
    text-align: center; color: #5f6368; 
    text-decoration: none; font-size: 11px; 
}
.nav-item i { display: block; font-size: 22px; margin-bottom: 4px; color: #344557; }

.header-left, .header-right {
    width: 40px; /* Memberikan ruang yang sama di kiri dan kanan */
    display: flex;
    align-items: center;
}

.header-left i {
    font-size: 18px;
    cursor: pointer;
}

.header-center {
    flex-grow: 1;
    text-align: center;
    font-size: 18px;
}

/* GRID KATALOG */
.product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Membagi menjadi 2 kolom */
    gap: 15px;
}

.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}

.product-image {
    height: 200px;
    background: #e8f0fe;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #1a73e8;
}

.product-info {
    padding: 10px;
    display: flex;
    flex-direction: column;
}

.product-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    height: 40px; /* Menjaga tinggi tetap sama */
    overflow: hidden;
}

.product-price {
    font-size: 13px;
    color: #d93025; /* Warna merah harga */
    margin: 5px 0;
    font-weight: bold;
}

.btn-buy {
    background: #1a73e8;
    color: white;
    border: none;
    padding: 6px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
}

.carousel-container {
    position: relative; /* Agar posisi titik bisa diatur terhadap container */
}

.carousel-dots {
    text-align: center;
    position: absolute;
    bottom: 15px;
    width: 100%;
}

.dot {
    height: 8px;
    width: 8px;
    margin: 0 4px;
    background-color: rgba(255, 255, 255, 0.5); /* Warna titik saat tidak aktif */
    border-radius: 50%;
    display: inline-block;
    transition: all 0.3s ease;
}

.dot.active {
    background-color: white; /* Warna titik saat aktif */
    width: 20px; /* Membuat titik aktif sedikit lebih panjang ala Android modern */
    border-radius: 4px;
}

.filter-btn {
    padding: 8px 16px;
    border: 1px solid #1a73e8;
    background: white;
    color: #1a73e8;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn.active {
    background: #1a73e8;
    color: white;
}

/* Sembunyikan scrollbar filter di HP */
div::-webkit-scrollbar {
    display: none;
}

.article-card {
    display: flex;
    gap: 15px;
    padding: 10px 0;
    align-items: center;
}

.article-thumb {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
}

.article-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumb-placeholder {
    width: 100%;
    height: 100%;
    background: #e8f0fe;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a73e8;
}

.article-info {
    display: flex;
    flex-direction: column;
}

.article-date {
    font-size: 11px;
    color: #888;
}

.article-title {
    font-size: 15px;
    margin: 5px 0 0 0;
    color: #333;
    font-weight: 600;
    line-height: 1.4;
}

.article-preview {
    font-size: 13px;
    color: #666;
    margin: 0px 0 0 0;
    line-height: 1.4;
    
    /* Teknik membatasi teks maksimal 2 baris */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Memperbaiki jarak kartu artikel */
.article-card {
    padding: 15px 0; /* Memberikan ruang lebih lega */
}

/* TAMPILAN DETAIL ARTIKEL */
.article-container {
    background: #fff;
    min-height: 100vh;
}

.featured-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.article-body {
    padding: 20px;
}

.breadcrumb {
    font-size: 12px;
    color: #1a73e8;
    margin-bottom: 10px;
}
.breadcrumb a { text-decoration: none; color: inherit; }

.post-title {
    font-size: 22px;
    color: #202124;
    line-height: 1.3;
    margin-bottom: 10px;
}

.post-meta {
    font-size: 12px;
    color: #5f6368;
    margin-bottom: 20px;
    display: flex;
    gap: 15px;
}

.post-content {
    line-height: 1.8;
    color: #3c4043;
    font-size: 16px;
}

.post-content p { margin-bottom: 15px; }

.post-content img {
    max-width: 100%;
    border-radius: 8px;
    margin: 10px 0;
}

/* Footer Artikel */
.article-footer {
    margin-top: 40px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    text-align: center;
}

.btn-consult {
    display: inline-block;
    background: #25d366;
    color: white;
    padding: 12px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 10px;
}

/* Warna standar saat tidak aktif */
.nav-item {
    text-align: center;
    color: #5f6368; /* Warna abu-abu */
    text-decoration: none;
    font-size: 11px;
    transition: all 0.3s ease;
    flex: 1;
}

.nav-item i {
    display: block;
    font-size: 22px;
    margin-bottom: 4px;
    color: #5f6368; /* Warna ikon standar */
}

/* GAYA SAAT HALAMAN AKTIF */
.nav-item.active {
    color: #1a73e8; /* Biru Google/Android */
    font-weight: bold;
}

.nav-item.active i {
    color: #1a73e8; /* Ikon jadi biru */
    transform: translateY(-2px); /* Sedikit efek terangkat */
}

