body {
    margin: 0;
    padding-bottom: 50px; /* beri ruang supaya konten tidak tertutup navbar */
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
}

.navbar-bottom-fixed {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 4px 0 env(safe-area-inset-bottom); /* biar mentok bezel, tapi aman di HP dengan notch */
}

.navbar-bottom-fixed .nav-link {
    color: #555;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 13px;
    line-height: 0.5;
    transition: color 0.3s ease;
    padding: 10px 5px;
}

.navbar-bottom-fixed .nav-link.active,
.navbar-bottom-fixed .nav-link:hover {
    color: #007bff;
}

.navbar-bottom-fixed .material-icons {
    font-size: 24px;
    margin-bottom: 2px;
}

/* Hapus jarak antar kolom bawaan materialize */
.navbar-bottom-fixed .row {
    margin: 0;
    width: 100%;
}
.navbar-bottom-fixed .col {
    padding: 0;
}

/* Mobile fullscreen safe area (iOS & Android notch) */
@supports (padding: max(0px)) {
    .navbar-bottom-fixed {
        padding-bottom: max(0px, env(safe-area-inset-bottom));
    }
}

.brand-logo {
    color: #000 !important;
    font-weight: 600;
    font-size: 20px;
}

.artikel-slider-container {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 10px;
}

.artikel-card {
    width: 220px;
    border-radius: 9px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    background: white;
    flex-shrink: 0;
}

.artikel-card img {
    width: 100%;
    height: 130px;
    object-fit: cover;
}

.card-content {
    padding: 10px;
    height: 110px; /* Fixed height agar rata semua */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 130px;
}

.card-title {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Max 2 baris */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-text {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Max 3 baris */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-meta {
    font-size: 11px;
    color: #999;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-top: auto; /* 🚀 INI yang bikin dia stay di bawah */
}

.meta-left {
    display: flex;
    text-align: left;
    gap: 6px;
    align-items: center;
}

.meta-left i {
    font-size: 14px;
}

.meta-right {
    text-align: right;
    font-size: 11px;
    color: #999;
}

/* Scrollbar halus */
.artikel-slider-container::-webkit-scrollbar {
    height: 8px;
    display: none; /* Chrome, Safari, Opera */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* Internet Explorer 10+ */
}

.artikel-slider-container::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
    /* margin-bottom: 10px; */
    margin-top: 20px;
}

.section-header .left-text {
    font-weight: bold;
    font-size: 18px;
}

.section-header .right-link {
    font-size: 14px;
    color: #1976d2;
    text-decoration: none;
}

.section-header .right-link:hover {
    text-decoration: underline;
}

/* Image Galeri */
.galeri-wrapper .col {
    padding: 3px; /* Jarak antar kolom */
}

.galeri-img {
    border-radius: 5px;
    margin-bottom: 10px; /* Jarak antar gambar dalam satu kolom */
}

.galeri-img:last-child {
    margin-bottom: 0;
}

/* Menu categori */
.menu-card {
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    transition: box-shadow 0.3s, transform 0.2s;
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.menu-card:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.menu-icon {
    font-size: 32px;
    color: #1976d2;
    margin-bottom: 8px;
}

.menu-label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.menu-container .col {
    padding: 8px;
}

/* infografis */
.card-info-android {
    padding-bottom: 10px;
}
.infografis-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 10px 0;
    margin-bottom: 10px;
    margin-left: 10px;
}

.infografis-card {
    position: relative;
    flex: 0 0 auto;
    width: 200px;
    margin-right: 12px;
    /* margin-left: 12px; */
    border-radius: 7px;
    overflow: hidden;
    scroll-snap-align: start;
    cursor: pointer;
}

.infografis-card img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 5px;
}

.infografis-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    padding: 10px;
    font-size: 14px;
}

.infografis-container::-webkit-scrollbar {
    display: none;
}

/* Sidenav */
.sidenav li {
    margin-bottom: 1px; /* Jarak antar menu makin rapat */
}

.sidenav a {
    padding: 4px 10px; /* Tinggi menu lebih pendek */
    display: block;
    color: #333;
    font-weight: 500;
    font-size: 14px;
}

.sidenav a.active,
.sidenav a:hover {
    background-color: #e0e0e0;
    color: #000;
}

.submenu {
    padding-left: 24px;
    display: none;
}

.submenu li {
    margin-bottom: 2px;
    margin-left: 15px; /* Jarak antar submenu makin rapat */
}

.submenu a {
    font-size: 13px;
    padding: 6px 16px; /* Lebih pendek juga */
}

.submenu-toggle::after {
    content: "▼";
    float: right;
    font-size: 12px;
    margin-top: 3px;
}

.submenu.open {
    display: block;
}

/* card artikel scroll vertical */
.card-artikel-page-android {
    padding-bottom: 10px;
}
.artikel-card-android {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    margin: 8px;
    transition: 0.3s;
    /* padding: 10px; */
}

.artikel-card-android img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.artikel-card-android .content {
    padding: 12px;
}

.artikel-card-android .judul {
    font-size: 15px;
    font-weight: 600;
    color: #222;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Maksimal 2 baris */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
}

.artikel-card-android .deskripsi {
    font-size: 13px;
    color: #555;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Maksimal 3 baris */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.5;
}

.artikel-card-android .meta {
    display: flex;
    justify-content: space-between; /* Sejajarkan kiri-kanan */
    align-items: center; /* Tengahkan vertikal */
    font-size: 12px;
    color: #777;
    margin-top: auto; /* Tetap di bawah card */
    padding-top: 10px; /* Jarak dari konten di atas */
    width: 100%; /* Ambil lebar penuh */
}

/* Grup kiri (kategori, tanggal, user) */
.meta .left-group {
    display: flex;
    align-items: center;
    gap: 12px; /* Jarak antar item */
}

/* Gaya kategori */
.meta .kategori {
    background-color: #e0f2f1;
    color: #00796b;
    padding: 2px 8px;
    border-radius: 3px;
    font-weight: 500;
}

/* Gaya tanggal & user (termasuk icon) */
.meta .tanggal,
.meta .user,
.meta .views {
    display: flex;
    align-items: center; /* Tengahkan icon dan teks */
    gap: 4px; /* Jarak antara icon dan teks */
}

/* Gaya icon di dalam tanggal, user, dan share */
.meta .tanggal i,
.meta .user i,
.meta .views i,
.meta .share i {
    font-size: 16px; /* Sedikit lebih kecil dari 18px agar rapi */
    color: #444;
    cursor: pointer;
}

/* Share icon tetap di kanan */
.meta .share {
    margin-left: auto; /* Pastikan tetap di kanan */
}
/* End card artikel scroll vertical */

/* card info */
.card-text-only {
    background-color: #fff;
    border-radius: 8px;
    padding: 14px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    margin: 10px;
    transition: 0.3s ease;
}

.card-text-only:hover {
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.card-text-only .judul {
    font-size: 15px;
    font-weight: 600;
    color: #222;
    margin-bottom: 12px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.meta-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #666;
    flex-wrap: wrap;
}

.meta-bar .tanggal {
    font-style: italic;
}

.meta-bar .kategori {
    font-weight: 500;
    color: #00796b;
}

.btn-download {
    color: #007bff;
    text-decoration: none;
    /* font-size: 16px; */
    /* padding: 6px; */
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.btn-download:hover {
    background-color: #f0f0f0;
}
/* End card info */

/* card profil */
.menu-container {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.menu-section {
    padding: 16px 0;
    border-bottom: 1px solid #e0e0e0;
}

.menu-section:last-child {
    border-bottom: none;
}

.section-title {
    padding: 8px 20px;
    font-size: 14px;
    color: #757575;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    color: #212121;
    text-decoration: none;
    transition: background-color 0.2s;
}

.menu-item:hover {
    background-color: #f5f5f5;
}

.menu-item .icon {
    margin-right: 20px;
    color: #00796b;
    width: 24px;
    text-align: center;
}

.menu-item .text {
    flex: 1;
    font-size: 16px;
}

.menu-item .arrow {
    color: #9e9e9e;
}
/* end card profile */

