.layout {
    display: flex;
    gap: 24px;
}
    
main {
    flex: 1;
    padding: 32px 24px;
    max-width: 720px;
}

.breadcrumbs {
  font-size: 0.875rem;
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.breadcrumbs a {
  color: var(--primary);
  text-decoration: none;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.entry-content p {
    text-align: justify;
}

.formula {
    text-align: center;
    font-size: 1.5rem;
    font-weight: bold;
    /* border: 1px dashed var(--dark);
    border-radius: 10%; */
    text-decoration: underline;
    margin: 0 15%;
}

.entry-content ul, .entry-content ol {
    padding-left: 40px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.entry-content a {
    text-decoration: none;
    color: var(--accent);
}

.entry-footer {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb; /* garis pemisah halus */
    font-size: 0.9rem;
}

.entry-footer .tags-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    color: #374151;
}

.entry-footer .tags-links::before {
    content: "🏷️";
    margin-right: 0.3rem;
    opacity: 0.7;
}

.entry-footer .tags-links a {
    text-decoration: none;
    padding: 0.35rem 0.7rem;
    border-radius: 999px; /* pill shape */
    background-color: #f3f4f6;
    color: #1f2937;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.entry-footer .tags-links a:hover {
    background-color: #2563eb;
    color: #ffffff;
}

#sidebar {
    font-family: 'Roboto', sans-serif; /* Font Material Design */
    padding: 16px;
    box-sizing: border-box;
}

/* Styling umum untuk setiap item sidebar sebagai kartu Material */
#sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0 0 16px 0;
}

#sidebar li {
    background-color: #ffffff; /* Putih */
    border-radius: 8px; /* Sudut melengkung */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Bayangan halus */
    margin-bottom: 16px;
    padding: 16px;
    transition: box-shadow 0.3s ease; /* Animasi hover */
}

#sidebar li:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15); /* Elevasi saat hover */
}

/* Judul h2 di dalam li */
#sidebar h2 {
    font-size: 18px;
    font-weight: 500;
    color: #212121; /* Hitam gelap */
    margin: 0 0 12px 0;
    border-bottom: 2px solid #1976d2; /* Garis bawah biru aksen */
    padding-bottom: 8px;
}

#sidebar > ul:has(.searchform) {
    display: none;
}

/* Search Form
#sidebar .searchform {
    display: flex;
    align-items: center;
}

#sidebar .searchform input[type="text"] {
    flex: 1;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 4px 0 0 4px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s ease;
}

#sidebar .searchform input[type="text"]:focus {
    border-color: #1976d2;
}

#sidebar .searchform input[type="submit"] {
    background-color: #1976d2;
    color: #ffffff;
    border: none;
    padding: 12px 16px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#sidebar .searchform input[type="submit"]:hover {
    background-color: #1565c0;
}*/

/* Page Navigation (.pagenav) */
#sidebar .pagenav ul {
    list-style: none;
    padding: 0;
}

#sidebar .pagenav li {
    margin-bottom: 8px;
    background: none; /* Hapus kartu untuk sub-li */
    box-shadow: none;
    padding: 0;
}

#sidebar .pagenav a {
    display: block;
    padding: 8px 12px;
    color: #424242; /* Abu-abu gelap */
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

#sidebar .pagenav a:hover {
    background-color: #e3f2fd; /* Biru terang */
    color: #1976d2;
}

#sidebar .pagenav .current_page_item a {
    background-color: #1976d2;
    color: #ffffff;
}

/* Arsip */
#sidebar li:not(.pagenav):not(.categories) ul {
    list-style: none;
    padding: 0;
}

#sidebar li:not(.pagenav):not(.categories) li {
    margin-bottom: 8px;
    background: none; /* Hapus kartu untuk sub-li */
    box-shadow: none;
    padding: 0;
}

#sidebar li:not(.pagenav):not(.categories) a {
    display: block;
    padding: 8px 12px;
    color: #424242;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

#sidebar li:not(.pagenav):not(.categories) a:hover {
    background-color: #e8f5e8; /* Hijau terang */
    color: #388e3c; /* Hijau Material */
}

/* Categories (.categories) */
#sidebar .categories ul {
    list-style: none;
    padding: 0;
}

#sidebar .categories li {
    margin-bottom: 8px;
    background: none; /* Hapus kartu untuk sub-li */
    box-shadow: none;
    padding: 0;
}

#sidebar .categories a {
    display: block;
    padding: 8px 12px;
    color: #424242;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

#sidebar .categories a:hover {
    background-color: #fce4ec; /* Merah muda terang */
    color: #e91e63; /* Merah muda Material */
}

#share-buttons {
    position: fixed;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#share-buttons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 4px 8px rgba(0,0,0,.2);
    transition: all .3s ease;
    text-decoration: none;
}

#share-buttons a:first-child {
    display: none;
}

#share-buttons a:hover {
    transform: scale(1.1);
}

#share-buttons i {
    font-size: 18px;
}

.fa-facebook-f { color: #3b5998; }
.fa-whatsapp { color: #25d366; }
.fa-linkedin-in { color: #0e76a8; }
.fa-telegram-plane { color: #0088cc; }

.single-post #comments {
    margin-top: 48px;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* COMMENTS

.comments-title {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 24px;
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comment-body {
    background: #fff;
    border-radius: 12px;
    padding: 16px 18px;
    margin-bottom: 20px;
    box-shadow:
        0 1px 3px rgba(0,0,0,.12),
        0 1px 2px rgba(0,0,0,.08);
    transition: box-shadow .2s ease;
}

.comment-body:hover {
    box-shadow:
        0 4px 10px rgba(0,0,0,.14),
        0 2px 6px rgba(0,0,0,.10);
}

.comment-meta {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.comment-author .avatar {
    border-radius: 50%;
    width: 40px;
    height: 40px;
    margin-right: 12px;
}

.comment-author .fn {
    font-weight: 500;
    font-size: 14px;
}

.comment-metadata {
    font-size: 12px;
    color: #777;
    margin-left: auto;
}

.comment-content {
    font-size: 14px;
    line-height: 1.6;
    margin-top: 6px;
    color: #333;
}

.comment-reply-link {
    display: inline-block;
    margin-top: 10px;
    font-size: 13px;
    color: #6200ee;
    text-decoration: none;
}

.comment-reply-link:hover {
    text-decoration: underline;
}

.bypostauthor .comment-body {
    border-left: 4px solid #6200ee;
}

.comment-list .children {
    margin-left: 28px;
    padding-left: 20px;
    border-left: 2px solid #eee;
}

.comment-box {
    position: relative;
}

.comment-box textarea {
    width: 100%;
    padding: 16px 56px 16px 16px;
    border-radius: 12px;
    border: 1px solid #ddd;
    font-size: 14px;
    resize: none;
}

.comment-box textarea:focus {
    outline: none;
    border-color: #6200ee;
}

.comment-submit-floating {
    position: absolute;
    bottom: 14px;
    right: 12px;
    background: #6200ee;
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 12px 16px;
    font-size: 16px;
    cursor: pointer;
}

.comment-submit-floating:hover {
    background: #5300d6;
}

.comment-form-cookies-consent {
    display: none;
}

.login-popup {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.login-popup-box {
    background: #fff;
    padding: 28px;
    border-radius: 20px;
    width: 340px;
    max-width: 90%;
    position: relative;
    animation: popupIn .25s ease;
}

.login-popup-box h3 {
    text-align: center;
    margin-bottom: 20px;
}

.social-login a {
    display: block !important;
    margin-bottom: 12px;
    border-radius: 999px !important;
    font-weight: 500;
}

.login-divider {
    text-align: center;
    margin: 16px 0;
    position: relative;
}

.login-divider::before {
    content: '';
    height: 1px;
    background: #eee;
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
}

.login-divider span {
    background: #fff;
    padding: 0 12px;
    position: relative;
    font-size: 13px;
    color: #777;
}

.form-toggle {
    text-align: center;
}

#ajax-login-form input {
    width: 100%;
    padding: 12px;
    margin-bottom: 12px;
    border-radius: 10px;
    border: 1px solid #ddd;
}

#ajax-login-form button {
    width: 100%;
    padding: 12px;
    background: #6200ee;
    color: #fff;
    border: none;
    border-radius: 999px;
    cursor: pointer;
}

.login-error {
    color: #d32f2f;
    font-size: 13px;
    margin-top: 8px;
    text-align: center;
}

.login-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
}

.nsl-container .nsl-container-buttons {
    display: flex !important;
    width: 100% !important;
    justify-content: center;
}

#avatar-field-container, #username-field {
    display: none;
}

#avatar-field-container {
    justify-content: center;
    margin-bottom: 20px; 
}

.avatar-style {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    cursor: pointer;
    border: 3px solid #ccc;
    transition: border 0.3s;
    margin: 10px auto;
}

.avatar-style:hover {
    border-color: #007bff;
}*/

@media (max-width: 1200px) {
    #share-buttons {
        top: auto;
        left: auto;
        bottom: 20px;
        right: 20px;
        transform: none;
        flex-direction: row-reverse;
        align-items: center;
        gap: 12px;
    }

    #share-buttons a:not(:first-child) {
        opacity: 0;
        transform: scale(0);
        pointer-events: none;
    }

    #share-buttons.active a:not(:first-child) {
        opacity: 1;
        transform: scale(1);
        pointer-events: auto;
    }

    #share-buttons.hide {
        transform: translateY(100px);
        opacity: 0;
        transition: all .3s ease;
    }
    
    #share-buttons a:first-child {
        display: flex;
        width: 56px;
        height: 56px;
        color: #000;
        box-shadow: 0 6px 12px rgba(0,0,0,.3);
    }

    #share-buttons a:first-child i {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .layout {
        flex-direction: column;
    }

    main {
        padding: 16px;
    }

    #sidebar {
        padding: 8px;
        width: 100%;
        background-color: rgba(0, 0, 0, 0);
    }

    #sidebar li {
        padding: 12px;
    }

    #share-buttons {
        flex-direction: column-reverse;
    }
}

/* @keyframes popupIn {
    from { opacity: 0; transform: scale(.95); }
    to   { opacity: 1; transform: scale(1); }
} */
