/* ================================== */
/* GAYA UNTUK HALAMAN DETAIL BERITA   */
/* ================================== */

/* Menggunakan variabel warna agar konsisten */
:root {
    --primary-color: #003366;
    --accent-color: #007BFF;
    --text-color: #333;
    --background-color: #fff;
}

.article-section {
    padding: 60px 0;
    background-color: var(--background-color);
}

.article-section .container {
    max-width: 800px; /* Lebar optimal untuk membaca artikel */
    margin: 0 auto;
}

.article-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.2;
    margin-bottom: 15px;
}

.article-meta {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 30px;
}

.article-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin-bottom: 40px;
    object-fit: cover;
    background-color: #f0f0f0; /* Warna placeholder saat gambar belum termuat */
}

.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
}

/* Styling untuk elemen di dalam konten Rich Text dari Strapi */
.article-content p {
    margin-bottom: 20px;
    
    /* TAMBAHAN UNTUK MEMPERBAIKI TEKS PANJANG & PERATAAN */
    overflow-wrap: break-word; /* Memaksa teks panjang untuk turun ke bawah */
    text-align: justify;    
}

.article-content h2,
.article-content h3 {
    color: var(--primary-color);
    font-weight: 600;
    margin-top: 40px;
    margin-bottom: 15px;
    line-height: 1.3;
}

.article-content h2 {
    font-size: 2rem;
}

.article-content h3 {
    font-size: 1.6rem;
}

.article-content ul,
.article-content ol {
    margin-bottom: 20px;
    padding-left: 30px;
}

.article-content li {
    margin-bottom: 10px;
}

.article-content blockquote {
    border-left: 4px solid var(--accent-color);
    padding-left: 20px;
    margin: 30px 0;
    font-style: italic;
    color: #555;
}

.article-content a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
}

.article-content a:hover {
    text-decoration: underline;
}

/* Responsif untuk layar lebih kecil */
@media (max-width: 768px) {
    .article-title {
        font-size: 2.2rem;
    }
    .article-content {
        font-size: 1rem;
    }
}

.extra-features {
    padding-bottom: 60px;
}

.share-section {
    text-align: center;
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 12px;
}

.share-title {
    margin-top: 0;
    margin-bottom: 20px;
    font-weight: 600;
    color: var(--primary-color);
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    color: #fff;
    font-size: 1.2rem;
    text-decoration: none;
    transition: transform 0.3s, opacity 0.3s;
    border: none;
    cursor: pointer;
}

.share-btn:hover {
    transform: scale(1.1);
    opacity: 0.9;
}

.share-btn.whatsapp { background-color: #25D366; }
.share-btn.facebook { background-color: #1877F2; }
.share-btn.twitter  { background-color: #1DA1F2; }
.share-btn.copy-link { background-color: #6c757d; }

.related-articles-section {
    margin-top: 10px;
}
.related-title {
    text-align: center;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 30px;
    font-size: 1.8rem;
    position: relative;
    bottom: 57.5px;
}
.related-articles-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
}

.related-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: var(--text-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    width: 300px; /* Fixed width for each card */
    height: 200px; /* Fixed height for each card */
    position: relative;
    bottom: 50px;
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.related-card-image {
    width: 100%;
    height: 140px;
    object-fit: cover;
    background-color: #f0f0f0;
}

.related-card-content {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Distribute space evenly */
}

.related-card-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Maksimal 3 baris */
    -webkit-box-orient: vertical;
}