.news-detail-section {
    background-color: #ffffff;
    padding: 50px 0 80px;
    width: 100%;
}

.news-detail-container {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 20px;
}

/* In-Content Image */
.news-detail-image-box {
    width: 100%;
    margin: 35px 0;
    overflow: hidden;
    border-radius: 6px;
}

.news-detail-image-box img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #555555;
    text-decoration: none;
    margin-bottom: 25px;
    transition: color 0.25s ease, transform 0.25s ease;
}

.btn-back:hover {
    color: #e51d27;
    transform: translateX(-3px);
}

.btn-back i {
    font-size: 0.85rem;
}

/* Date */
.news-detail-date {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #e51d27;
    margin-bottom: 20px;
}

.news-detail-date i {
    font-size: 0.95rem;
}

/* Title */
.news-detail-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: #e51d27;
    line-height: 1.35;
    text-transform: uppercase;
    margin-bottom: 25px;
}

/* Body Content */
.news-detail-body {
    font-size: 0.95rem;
    color: #4a4a4a;
    line-height: 1.7;
}

.news-detail-body p {
    margin-bottom: 18px;
}

.news-detail-body img {
    max-width: 100%;
    height: auto !important;
    border-radius: 6px;
    margin: 15px 0;
}

/* Share Section */
.news-share-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.share-title {
    font-size: 0.9rem;
    font-weight: 500;
    color: #666666;
    margin-bottom: 12px;
}

.share-social-icons {
    display: flex;
    align-items: center;
    gap: 12px;
}

.share-icon {
    width: 36px;
    height: 36px;
    border-radius: 4px;
    background-color: #333333;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    text-decoration: none;
    transition: background-color 0.25s ease, transform 0.25s ease;
}

.share-icon:hover {
    background-color: #e51d27;
    transform: translateY(-2px);
}

/* COMMENTS SECTION */
.comments-section {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.comments-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 25px;
}

.comments-title-group h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #e51d27;
    display: flex;
    align-items: center;
    gap: 8px;
}

.comments-count {
    color: #e51d27;
}

.comments-note {
    font-size: 0.8rem;
    color: #777;
    margin-top: 4px;
}

.comments-sort {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: #666;
}

.comments-sort select {
    padding: 4px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.8rem;
    outline: none;
    background: #fff;
    cursor: pointer;
}

/* Comment Form Card */
.comment-form {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.comment-form .form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.comment-form .form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.comment-form label {
    font-size: 0.78rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
    width: 100%;
    padding: 10px 14px;
    font-size: 0.85rem;
    border: 1px solid #e0e0e0;
    background-color: #fafafa;
    border-radius: 4px;
    outline: none;
    font-family: inherit;
    box-sizing: border-box;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form textarea:focus {
    border-color: #e51d27;
    background-color: #fff;
}

.comment-form textarea {
    resize: vertical;
    min-height: 100px;
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 15px 0 20px;
}

.form-checkbox input {
    cursor: pointer;
    margin-top: 2px;
}

.form-checkbox label {
    font-size: 0.78rem;
    color: #666;
    margin-bottom: 0;
    line-height: 1.4;
}

/* Action Footer (Captcha & Submit Button) */
.form-footer-action {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.captcha-wrapper {
    display: flex;
    justify-content: flex-start;
    width: 100%;
    overflow-x: auto; /* Mencegah widget reCAPTCHA memotong layout di HP */
}

.btn-send-comment {
    background-color: #e51d27;
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    font-size: 0.82rem;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.25s ease;
    height: fit-content;
}

.btn-send-comment:hover {
    background-color: #c8102e;
}

/* List Komentar */
.comments-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.comment-item {
    display: flex;
    gap: 15px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 18px 20px;
}

.comment-avatar {
    font-size: 2.2rem;
    color: #ccc;
    line-height: 1;
    flex-shrink: 0;
}

.comment-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.comment-author {
    font-size: 0.88rem;
    font-weight: 700;
    color: #2b2b2b;
    margin-bottom: 2px;
}

.comment-date {
    font-size: 0.72rem;
    color: #aaa;
    margin-bottom: 8px;
}

.comment-text {
    font-size: 0.85rem;
    color: #4a4a4a;
    margin-bottom: 10px;
}

/* Pagination */
.comments-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 35px;
}

.comments-pagination .page-arrow {
    color: #c8102e;
    font-size: 0.85rem;
    padding: 5px;
    text-decoration: none;
}

.comments-pagination .page-arrow.disabled {
    color: #ccc;
    cursor: not-allowed;
    pointer-events: none;
    opacity: 0.6;
}

.comments-pagination .page-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: #666666;
    text-decoration: none;
    background-color: #ededed;
    transition: all 0.2s ease;
}

.comments-pagination .page-num.active {
    background-color: #ffffff;
    border: 1.5px solid #c8102e;
    color: #c8102e;
}

.comments-pagination .page-dots {
    color: #888888;
    font-weight: 600;
}

/* ========================================= RESPONSIVE TABLET & MOBILE ========================================= */
@media (max-width: 768px) {
    .news-detail-section {
        padding: 30px 0 60px;
    }

    .news-detail-title {
        font-size: 1.35rem;
        margin-bottom: 18px;
    }

    .news-detail-body {
        font-size: 0.9rem;
    }

    /* Responsive Form Komentar */
    .comments-header {
        flex-direction: column;
        gap: 12px;
    }

    .comment-form {
        padding: 18px 15px;
    }

    .comment-form .form-row {
        flex-direction: column;
        gap: 15px;
    }

    .form-footer-action {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .captcha-wrapper {
        justify-content: center;
    }

    /* Skala reCAPTCHA jika layar ponsel terlalu sempit (<= 360px) */
    .g-recaptcha {
        transform: scale(0.9);
        transform-origin: 0 0;
        -webkit-transform: scale(0.9);
        -webkit-transform-origin: 0 0;
    }

    .btn-send-comment {
        width: 100%;
    }

    /* Item Komentar di HP */
    .comment-item {
        padding: 14px 15px;
        gap: 12px;
    }

    .comment-avatar {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .news-detail-container {
        padding: 0 15px;
    }

    .news-detail-title {
        font-size: 1.2rem;
    }

    .comments-pagination .page-num {
        width: 28px;
        height: 28px;
        font-size: 0.78rem;
    }
}