body { background-color: #fff; } /* Latar belakang putih bersih */

.container { max-width: 1200px; padding:10px; }

.content-padding { padding: 0 15px; }

/* ======================================================= */
/* GAYA HALAMAN DETAIL ARTIKEL                             */
/* ======================================================= */

/* --- Galeri Gambar Utama (`card-columns`) --- */
.card-columns {
    column-gap: 1.25rem;
}

.card-pin {
    margin-bottom: 1.25rem;
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    overflow: hidden; /* Penting untuk gambar di dalamnya */
}

.card-pin:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.12);
}

.card-pin figure {
    margin: 0;
    position: relative; /* Untuk positioning figcaption */
}

/* --- KUNCI #1: Buat semua gambar memiliki tinggi yang sama --- */
.card-pin .card-img {
    width: 100%;
    height: 100%; /* Biarkan gambar mengisi ruang figur */
    object-fit: cover; /* Pastikan gambar menutupi area tanpa gepeng */
    display: block;
}

/* --- Perbaikan Figcaption (Judul) --- */
.card-pin figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2.5rem 1rem 1rem;
    background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0) 100%);
    color: #fff;
}
.card-pin figcaption .card-title {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
}
.card-pin figcaption .card-title a {
    color: #fff;
    text-decoration: none;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
}
.card-pin figcaption .card-text {
    font-size: 0.75rem;
    margin-top: 4px;
    opacity: 0.8;
}

/* --- You Might Also Like & Sidebar --- */
/* KUNCI #2: Gunakan rasio aspek untuk gambar agar rata */
.related-card-image, .sidebar-image {
    display: block;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 4 / 3; /* PAKSA rasio aspek 4:3 */
    margin-bottom: 0.75rem;
}
.related-card-image img, .sidebar-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.card:hover .related-card-image img, .list-group-item:hover .sidebar-image img {
    transform: scale(1.05); /* Efek zoom halus saat hover */
}
.you-might-like-title a {
    font-weight: 600;
    color: #333;
    text-decoration: none;
    line-height: 1.4;
}
.sidebar .list-group-item {
    background: none;
    border: none;
    padding: 0;
    margin-bottom: 1rem;
}
.sidebar .list-group-item h6 {
    font-weight: 500;
    line-height: 1.4;
    color: #444;
    margin-left:5px;
}

/* --- Tombol Share --- */
.social-share-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    align-items: center;
}
.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #fff !important;
    font-size: 18px;
    transition: transform 0.2s ease-in-out;
}
.share-btn:hover {
    transform: scale(1.1);
}
.share-btn.facebook { background-color: #1877F2; }
.share-btn.twitter { background-color: #1DA1F2; }
.share-btn.pinterest { background-color: #E60023; }

/* --- Tags/Suggestions --- */
.suggest {
    display: inline-block;
    background-color: #e9ecef;
    color: #495057;
    border-radius: 16px;
    padding: 6px 16px;
    margin: 4px;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}
.suggest:hover {
    background-color: #007bff;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
p.text-center img {
    /* Gunakan max-width, ini lebih aman daripada width */
    width: 100%; 
    height: auto;      /* Wajib untuk menjaga rasio aspek */
    display: block;    /* Menghilangkan spasi ekstra di bawah gambar */
    margin-left: auto;   /* Pusatkan gambar jika lebarnya lebih kecil dari kolom */
    margin-right: auto;  /* Pusatkan gambar */
    
    /* Atribut gaya opsional yang sudah kita miliki */
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

@media (max-width: 767.98px) {

    /* --- Tipografi Konten Utama --- */
    .article-content {
        font-size: 1.1rem;      /* Perbesar font agar lebih mudah dibaca */
        line-height: 1.7;       /* Beri jarak antar baris yang lebih lega */
        color: #333;             /* Gunakan warna teks yang lebih gelap untuk kontras tinggi */
    }
    .article-content p {
        margin-bottom: 1.25rem; /* Beri jarak lebih antar paragraf */
    }
    .article-content h2 {
        font-size: 1.6rem;      /* Atur ukuran heading agar proporsional */
        margin-top: 2rem;
    }
    .article-content h3 {
        font-size: 1.4rem;
    }
    .article-content ul, .article-content ol {
        padding-left: 1.5rem; /* Atur indentasi daftar */
    }

    /* --- Judul Utama Halaman --- */
    h1.posttitle, .h1.posttitle {
        font-size: 1.8rem !important; /* Perkecil sedikit judul utama agar tidak terlalu dominan */
        line-height: 1.3;
    }

    /* --- Galeri Gambar Utama (`card-columns`) --- */
    .card-columns {
        column-count: 1; /* Paksa menjadi satu kolom */
    }

    /* --- Sidebar --- */
    .sidebar {
        margin-top: 2.5rem; /* Beri jarak antara konten utama dan sidebar di mobile */
        padding-top: 1.5rem;
        border-top: 1px solid #eee; /* Beri garis pemisah */
    }
    .sidebar-image {
        /* Di mobile, buat gambar sidebar sedikit lebih besar */
        width: 80px;
        height: 80px;
    }
     .sidebar .list-group-item h6 {
        font-size: 1rem; /* Perbesar sedikit font judul di sidebar */
    }

    /* --- "You Might Also Like" --- */
    .you-might-like-title a {
        font-size: 1rem; /* Perbesar judul di "You Might Also Like" */
    }
    
    /* --- Container Padding --- */
    .container {
        padding: 5px;
    }
}
/* ======================================================= */
/* HERO SECTION (BAGIAN UTAMA BARU)                        */
/* ======================================================= */
.jumbotron.p-0 {
    border-radius: 12px;
    overflow: hidden;
    height: 450px;
}
.hero-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.jumbotron:hover .hero-image {
    transform: scale(1.05); /* Efek zoom halus pada hover */
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 70%);
}
.jumbotron .container {
    height: 100%;
}
.jumbotron .display-4 {
    font-size: 2.8rem;
    font-weight: 700;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.5);
}
.jumbotron .lead {
    font-size: 1.2rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

/* ======================================================= */
/* KARTU ARTIKEL (All Stories)                             */
/* ======================================================= */
.section-title {
    margin-top: 2rem;
    margin-bottom: 1.5rem;
}
.section-title h2 {
    font-weight: 700;
}
.list-card-item {
    border: none;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.07);
    transition: all 0.3s ease;
    overflow: hidden;
}
.list-card-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 22px rgba(0,0,0,0.1);
}
.list-card-item .card-img-top {
    height: 220px;
    object-fit: cover;
}
.list-card-item .card-body {
    background: #fff;
}
.list-card-item .card-title {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
}
.list-card-item .card-title a {
    color: #212529;
    text-decoration: none;
}
.list-card-item .card-title a:hover {
    color: #007bff;
}