/* Styling untuk halaman detail berita */
.news-detail-container {
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.news-category {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 5px; /* Memberi jarak ke judul */
    text-transform: uppercase;
}

.news-rubrik {
    color: var(--primary-color); /* Warna utama dari tema */
}

.news-sub-rubrik {
    color: var(--light-text-color); /* Warna teks yang lebih terang */
}

.news-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 10px;
}

.news-meta {
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.news-image-container {
    margin-bottom: 20px;
    text-align: center;
}

.news-image-container img {
    border-radius: 8px;
}

.news-image-caption {
    font-style: italic;
    font-size: 0.8rem;
    margin-top: 5px;
}

.news-content p {
    font-size: 1.1rem;
    line-height: 1.5;
    margin-bottom: 20px;
}

/* Bagian Berita Terkait */
.related-news-item {
    display: block;
    text-decoration: none;
    color: inherit;
}

.related-news-item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 10px;
}

.related-news-title {
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.4;
    transition: color 0.3s;
}

/* Efek hover untuk judul berita terkait */
.related-news-item:hover .related-news-title {
    color: var(--primary-color);
}

/* Bagian Sidebar Populer */
.popular-news-sidebar {
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.popular-item {
    margin-bottom: 15px;
}

.popular-item a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.popular-item img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
    margin-right: 15px;
}

.popular-item p {
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.4;
}

@media (max-width: 767.98px) {
    .news-detail-container {
        padding: 15px;
    }

    .news-title {
        font-size: 1.5rem;
        line-height: 1.3;
        margin-bottom: 8px;
    }

    .news-category {
        font-size: 0.8rem;
    }

    .news-meta {
        font-size: 0.7rem;
        margin-bottom: 10px;
    }

    .news-image-container {
        margin-bottom: 15px;
    }

    .news-image-caption {
        font-size: 0.7rem;
    }

    .news-content p {
        font-size: 1rem;
        line-height: 1.4;
        margin-bottom: 15px;
    }

    .related-news-item img {
        height: 120px;
    }
    
    .related-news-title {
        font-size: 0.9rem;
        line-height: 1.3;
    }

    .popular-news-sidebar {
        padding: 15px;
        margin-top: 20px;
    }

    .popular-item a {
        align-items: flex-start;
    }

    .popular-item img {
        width: 60px;
        height: 45px;
        margin-right: 10px;
    }
    
    .popular-item p {
        font-size: 0.85rem;
    }
}