:root {
    --darkred: #71040a;
}

.single-header {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
    line-height: 1;
}

@media (max-width:1024px) {
    .single-header {
        padding: 0 15px;
    }
    .single-content {
        padding: 0 15px;
    }
}

.rambak-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 3px;
}
.rambak-breadcrumbs a {
    text-transform: capitalize;
    font-size: small;
    color: #999;
}
.rambak-breadcrumbs .material-symbols-outlined {
    vertical-align: middle;
    font-size: large;
    color: #999;
}
.rambak-breadcrumbs a:hover {
    color: #000;
}

/*----------------------*/

.single-header h1.post-title {
    font-size: xx-large;
    line-height: normal;
    margin: 0;
}

.single-header h3.sub-title {
    font-weight: normal;
    line-height: 1.5;
    font-size: 14px;
    color: #666;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 480px) {
    .single-header h1.post-title {
        font-size: 1.3rem;
    }
}

/* --------- POST INFO ---------- */

.rambak-post-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.rambak-post-info-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rambak-author-avatar img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: block;
}

.rambak-author a {
    text-transform: capitalize;
    font-weight: 600;
    color: var(--darkred);
    text-decoration: none;
    font-size: 14px;
}

.rambak-date {
    margin-top: 8px;
    font-size: 11px;
    color: #999;
}

.rambak-share-follow {
    display: flex;
    align-items: center;
    gap: 5px;
}

.rambak-google-icon {
    width: 16px;
    height: 16px;
    display: block;
}

/* Memastikan tombol tetap sejajar */
.rambak-btn-follow, 
.rambak-btn-share {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
    font-size: 13px;
    border-radius: 20px;
    text-decoration: none;
    color: #333;
    transition: 0.2s;
}

.rambak-btn-follow .material-symbols-outlined, 
.rambak-btn-share .material-symbols-outlined {
    font-size: 18px; 
}

.rambak-btn-follow:hover, 
.rambak-btn-share:hover {
    background: #eef;
    border-color: #bbb;
}

/* ---------- BACA JUGA ---------- */

.rambak-baca-juga {
    padding-left: 15px;
    border-left: 4px solid var(--darkred);
    margin: 30px 0;
}

.rambak-baca-juga h4 {
    font-size: initial;
    text-transform: capitalize;
    margin-bottom: 5px;
}

.rambak-baca-juga-item {
    font-size: 15px;
    line-height: 1.3;
    font-weight: 600;
}

.rambak-baca-juga-item a {
    color: var(--darkred);
}

.rambak-baca-juga-item:hover a {
    text-decoration: underline;
}

/*---------- TAG ---------- */

.post-tags {
    margin-bottom: 25px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    line-height: 1;
}
.post-tags a {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px;
    background-color: #eee;
    font-size: 13px;
    text-decoration: none;
    transition: color 0.3s ease;
}
.post-tags a:hover {
    background-color: var(--blue);
    color: #fff;
}

/*---------- KOTAK KOMENTAR ---------- */

.comments-area {
    margin: 40px 0;
}

.comments-title {
    font-size: large;
    margin-bottom: 15px;
}

/* List Komentar */
.comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}

.comment-list .children {
    list-style: none;
}

.comment-list li {
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

/* Header Komentar: Avatar & Meta */
.comment-author-meta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.comment-author-meta img {
    border-radius: 50%;
    width: 35px;
    height: 35px;
    object-fit: cover;
}

.author-info {
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.author-info .fn {
    text-transform: capitalize;
    font-size: 15px;
    font-weight: 700;
    color: #333;
}

.author-info .comment-date {
    font-size: x-small;
    font-style: italic;
    color: #999;
}

.comment-form p {
    margin: 0;
}

.comment-form-comment label {
    display: none;
}

/* Isi Komentar */
.comment-content {
    margin-left: 45px;
    font-size: 14px;
    line-height: 1.6;
    color: #444;
}

.comment-content p {
    margin: 0;
}

.reply-action {
    margin-top: 10px;
}

.reply-action a {
    font-size: x-small;
    color: #999;
    font-style: italic;
}

.comment-awaiting-moderation {
    display: block;
    margin-top: 10px;
    padding: 8px 12px;
    background: #fff3cd;
    color: #856404;
    border-radius: 4px;
    font-size: 12px;
    font-style: italic;
}

/* Form Komentar */
.comment-respond {
    margin-bottom: 30px;
}

.comment-reply-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

#cancel-comment-reply-link {
    color: #999;
    font-weight: normal;
    font-style: italic;
}

.comment-form-comment #comment {
    width: 100%;
    min-height: 80px;
    height: 80px;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 12px;
    margin-top: 8px;
    resize: vertical;
}

.form-submit .submit {
    width: 100%;
    background-color: #f5f5f5;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.form-submit .submit:hover {
    filter: brightness(0.9);
}

.logged-in-as {
    display: none;
}

/* Notice Login */
.comment-login-notice {
    padding: 20px;
    background: #f0f7ff;
    border: 1px solid #d1e7ff;
    border-radius: 8px;
    text-align: center;
}

/* Responsif */
@media (max-width: 768px) {
    .comments-area {
        padding: 0 15px;
    }
}

/* ---------- RELATED ---------- */

.related-post {
    position: relative;
    margin-bottom: 50px;
    padding-bottom: 40px;
    border-bottom: 1px solid #e1e1e1;
}


.related-post h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--blue);
}
.box-related ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    row-gap: 20px;
    column-gap: 15px;
}

.box-related ul li {
    overflow: hidden;
}

.box-related .box-related-image {
    margin-bottom: 10px;
}

.box-related .box-related-image img {
    aspect-ratio: 16 / 9;
}

.box-related h2 {
    font-size: 15px;
    line-height: normal;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.box-related h2 a {
    transition: color 0.3s ease;
}
.box-related ul li:hover h2 a {
    color: var(--blue);
}

@media (max-width: 1024px) {
    .related-post {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .box-related ul {
        grid-template-columns: repeat(2, 1fr);
        column-gap: 10px;
    }
}

/* ---------- POST BARU BAWAH ARTIKEL ---------- */

@media (max-width: 1024px) {
    .newpostlist {
        padding: 0 15px;
    }
}

.newpostlist h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--blue);
}

.newpostlist .box-article:last-child {
    border-bottom: 0;
}