* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: #f5f6fa;
    color: #111827;
}

a {
    color: #00a255;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.container {
    width: min(1200px, 94%);
    margin: 0 auto;
}

.bibit-header-wrapper {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 30;
}

.bibit-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
}

.bibit-logo img {
    display: block;
}

.bibit-nav {
    display: flex;
    gap: 1.25rem;
    font-size: 0.95rem;
}

.bibit-nav a {
    color: #111827;
    font-weight: 500;
}

.bibit-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    grid-template-areas: "main sidebar";
    gap: 1.25rem;
    padding: 1.5rem 0;
}

.bibit-main {
    grid-area: main;
    min-width: 0;
}

.bibit-sidebar {
    grid-area: sidebar;
    position: sticky;
    top: 84px;
    align-self: start;
}

.bibit-search,
.bibit-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 12px;
}

.bibit-search {
    display: flex;
    gap: 8px;
}

.bibit-search input {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 10px;
}

.bibit-search button {
    border: 0;
    border-radius: 8px;
    background: #00a255;
    color: #fff;
    padding: 10px 12px;
    cursor: pointer;
}

.bibit-card h3 {
    margin: 0 0 10px;
    font-size: 1rem;
}

.bibit-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bibit-card li {
    margin-bottom: 8px;
    font-size: 0.92rem;
}

.article-list .hentry,
.hentry-single {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 14px;
}

.entry-title {
    margin: 0 0 8px;
    font-size: clamp(1.3rem, 2.2vw, 2rem);
    line-height: 1.3;
}

.entry-info {
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.entry-excerpt {
    color: #374151;
    line-height: 1.7;
}

.entry-content {
    line-height: 1.75;
    color: #111827;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.entry-content iframe,
.entry-content video {
    max-width: 100%;
}

.bibit-pagination {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.bibit-pagination a,
.bibit-pagination span {
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 7px 11px;
    font-size: 0.9rem;
}

.bibit-pagination .active {
    background: #00a255;
    color: #fff;
    border-color: #00a255;
}

.bibit-footer {
    border-top: 1px solid #e5e7eb;
    background: #fff;
    margin-top: 20px;
}

.bibit-footer p {
    margin: 0;
    padding: 18px 0;
    text-align: center;
    color: #6b7280;
    font-size: 0.9rem;
}

.mobile-only {
    display: none;
}

.bibit-mobile-menu {
    display: none;
    border-top: 1px solid #e5e7eb;
    padding: 10px 3%;
    background: #fff;
    flex-direction: column;
    width: 100%;
}

.bibit-mobile-menu a {
    display: block;
    color: #111827;
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
}

@media (max-width: 900px) {
    .bibit-header {
        min-height: 60px;
    }

    .bibit-layout {
        grid-template-columns: 1fr;
        grid-template-areas:
            "main"
            "sidebar";
    }

    .bibit-sidebar {
        position: static;
    }

    .desktop-only {
        display: none;
    }

    .bibit-menu-toggle.mobile-only {
        display: inline-flex;
    }

    .bibit-mobile-menu.mobile-only {
        display: none;
    }

    .bibit-menu-toggle {
        align-items: center;
        justify-content: center;
        border: 1px solid #d1d5db;
        border-radius: 8px;
        background: #fff;
        padding: 8px 10px;
        font-size: 1.1rem;
        line-height: 1;
        cursor: pointer;
    }

    .bibit-mobile-menu.mobile-only.open {
        display: flex;
    }

    .bibit-search {
        flex-direction: column;
    }

    .bibit-search button {
        width: 100%;
    }
}