body {
    font-family: 'Poppins', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: #f9fafb;
    /* bg-gray-50 */
}

.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s cubic-bezier(0.390, 0.575, 0.565, 1.000),
        transform 0.6s cubic-bezier(0.390, 0.575, 0.565, 1.000);
}

.fade-in-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.cursor-blink {
    display: inline-block;
    background-color: #f8fafc;
    /* slate-50 */
    animation: blink 1s infinite;
}

@keyframes blink {
    50% {
        background-color: transparent;
    }
}

/* Styling untuk Tampilan List di blog.html */
.list-view-card {
    display: flex;
    flex-direction: column;
    /* default untuk mobile */
    gap: 1.5rem;
    /* 24px */
    padding: 1.5rem;
    /* 24px */
    background-color: white;
    border-radius: 0.75rem;
    /* 12px */
    border: 1px solid #e5e7eb;
    /* slate-200 */
    transition: all 0.3s;
}

.list-view-card:hover {
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    transform: translateY(-4px);
}

@media (min-width: 768px) {

    /* md */
    .list-view-card {
        flex-direction: row;
        align-items: center;
    }

    .list-view-card .thumbnail-wrapper {
        flex-shrink: 0;
        width: 33.333333%;
        /* w-1/3 */
    }
}

/* Styling spesifik untuk konten artikel di post-detail.html */
.article-content {
    line-height: 1.75;
    color: #374151;
    /* text-gray-700 */
}

.article-content h2 {
    font-size: 1.875rem;
    /* text-3xl */
    line-height: 2.25rem;
    /* leading-9 */
    font-weight: 700;
    /* font-bold */
    color: #1f2937;
    /* text-gray-800 */
    margin-top: 3rem;
    /* mt-12 */
    margin-bottom: 1rem;
    /* mb-4 */
}

.article-content h3 {
    font-size: 1.5rem;
    /* text-2xl */
    line-height: 2rem;
    /* leading-8 */
    font-weight: 700;
    /* font-bold */
    color: #1f2937;
    /* text-gray-800 */
    margin-top: 2.5rem;
    /* mt-10 */
    margin-bottom: 1rem;
    /* mb-4 */
}

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

.article-content a {
    color: #111827;
    /* text-gray-900 */
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 4px;
}

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

.article-content li {
    margin-bottom: 0.75rem;
}

.article-content blockquote {
    margin-top: 2rem;
    margin-bottom: 2rem;
    padding-left: 1.5rem;
    border-left-width: 4px;
    border-color: #e5e7eb;
    /* border-gray-200 */
    font-style: italic;
    color: #4b5563;
    /* text-gray-600 */
}

.article-content pre {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9em;
    line-height: 1.6;
    padding: 1.5rem;
    border-radius: 0 0 0.75rem 0.75rem;
    overflow-x: auto;
}

.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    z-index: 60;
    background-color: white;
    box-shadow: -4px 0 15px rgba(0, 0, 0, 0.1);
}

.mobile-menu.is-open {
    transform: translateX(0);
}

/* Memastikan mobile menu tidak transparan saat scroll */
#main-header.bg-white\/95 .mobile-menu {
    background-color: white;
}

/* Memperbaiki z-index untuk tombol close */
#mobile-menu-close {
    z-index: 70;
}

/* Memastikan overlay berfungsi dengan baik */
#mobile-menu-overlay {
    z-index: 40;
}

/* Memperbaiki tampilan mobile menu saat scroll */
@media (max-width: 767px) {
    .mobile-menu {
        background-color: white !important;
        backdrop-filter: none !important;
    }

    /* Memastikan header tetap di atas overlay */
    #main-header {
        z-index: 50 !important;
    }

    /* Memastikan mobile menu tetap di atas overlay */
    .mobile-menu {
        z-index: 60 !important;
    }
}

/* Sembunyikan header saat mobile menu terbuka di mobile */
@media (max-width: 767px) {
    .mobile-menu.is-open {
        display: block !important;
    }
    .mobile-menu {
        background-color: #fff !important;
        z-index: 9999 !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
    }
    #mobile-menu-overlay {
        z-index: 9998 !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
    }
}
