 .header-area {
            /* Ini adalah kontainer terluar, bisa disesuaikan jika logo akan berada di dalam struktur yang lebih besar */
            background-color: var(--card-bg-light); /* Latar belakang putih untuk area header */
            box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* Bayangan untuk pemisah visual */
            padding: 15px 0; /* Padding atas bawah untuk header */
            width: 100%;
            box-sizing: border-box;
        }
  .header-right-btn {
            /* Menggunakan flexbox untuk mensejajarkan ikon pengguna dan tombol secara horizontal */
            display: flex;
            align-items: center; /* Menyelaraskan item secara vertikal di tengah */
        }

    .user-icon-mobile {
            font-size: 24px; /* Ukuran sedikit lebih besar untuk target sentuh yang lebih mudah */
            color: #007bff; /* Warna yang sama dengan ikon desktop */
            display: flex; /* Menggunakan flexbox untuk penyejajaran internal */
            align-items: center; /* Menyelaraskan secara vertikal di tengah */
            justify-content: end; /* Menyelaraskan secara horizontal di tengah (jika ikon memiliki ruang ekstra) */
            height: 100%; /* Memastikan elemen mengambil tinggi penuh untuk penyejajaran yang konsisten */
        }

        /* Styling untuk ikon profil pengguna */
        .user-icon {
            font-size: 20px; /* Mengatur ukuran ikon */
            margin-right: 15px; /* Menambahkan spasi di antara ikon dan elemen berikutnya (tombol) */
            color: #007bff; /* Contoh warna untuk ikon (biru). Dapat disesuaikan agar sesuai dengan tema. */
        }

        .main-header {
            /* Kontainer utama header, bisa disesuaikan jika ada elemen lain */
            display: flex;
            align-items: center;
            justify-content: center; /* Pusatkan logo untuk demo ini */
        }

        .container-fluid {
            /* Kontainer fluid untuk demo */
            padding: 0 15px;
        }

        .logo {
            /* Kontainer logo */
            display: flex;
            align-items: center;
            justify-content: flex-start;
        }

        .logo img {
            max-height: 100px; /* Tinggi maksimum logo */
            width: auto; /* Lebar otomatis menjaga rasio aspek */
            transition: max-height 0.3s ease; /* Transisi halus saat perubahan ukuran */
        }

        /* Responsif untuk Logo */
        @media (max-width: 992px) {
            .logo img {
                max-height: 70px; /* Logo lebih kecil di tablet */
            }
        }

        @media (max-width: 768px) {
            .logo img {
                max-height: 70px; /* Logo lebih kecil di mobile */
            }
        }
/* --- Bagian Promo --- */
.promo-section {
    margin-top: 50px;
    background-color: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    /* Perbaikan: Mengatur lebar maksimum dan menengahkan section promo */
    max-width: 1000px; /* Atur lebar maksimum yang diinginkan */
    margin-left: auto;
    margin-right: auto;
}


.see-all-promo {
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease-in-out;
}

.see-all-promo:hover {
    color: #0056b3;
    text-decoration: underline;
}

.promo-carousel {
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden; /* Penting untuk menyembunyikan kartu di luar tampilan */
}

.promo-cards-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out; /* Animasi geser */
    gap: 20px; /* Jarak antar kartu promo */
    padding-bottom: 10px; /* Ruang untuk scrollbar jika muncul */
    overflow-x: auto; /* Memungkinkan scrolling horizontal di mobile */
    -webkit-overflow-scrolling: touch; /* Untuk scrolling yang lebih halus di iOS */
    scrollbar-width: none; /* Sembunyikan scrollbar Firefox */
    -ms-overflow-style: none;  /* Sembunyikan scrollbar IE/Edge */
}

.promo-cards-wrapper::-webkit-scrollbar {
    display: none; /* Sembunyikan scrollbar Chrome/Safari */
}

.promo-card {
    flex: 0 0 auto; /* Mencegah kartu menyusut */
    width: 300px; /* Lebar kartu promo */
    background-color: #f8f9fa;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.promo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.promo-card img {
    width: 100%;
    height: 180px; /* Tinggi gambar promo */
    object-fit: cover;
    display: block;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.promo-card h3 {
    font-size: 1.1em;
    color: #1e3a8a;
    padding: 15px;
    margin: 0;
    line-height: 1.4;
}

.carousel-button {
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.5em;
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    transition: background-color 0.3s ease;
}

.carousel-button:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

.carousel-button.prev {
    left: -20px; /* Sedikit di luar container */
}

.carousel-button.next {
    right: -20px; /* Sedikit di luar container */
}

/* Modal Styling */
.modal {
    display: none; /* Ini yang diperbaiki: Pastikan ini 'none' secara default */
    position: fixed; /* Stay in place */
    z-index: 100; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.6); /* Black w/ opacity */
    justify-content: center; /* Digunakan saat display:flex di JS */
    align-items: center; /* Digunakan saat display:flex di JS */
}

.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    position: relative;
    max-width: 700px; /* Lebar maksimum modal */
    width: 90%; /* Responsif */
    max-height: 90vh; /* Tinggi maksimum modal */
    overflow-y: auto; /* Scroll jika konten terlalu panjang */
}

.modal-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
}

.modal-content h2 {
    color: #1e3a8a;
    margin-top: 0;
    font-size: 1.8em;
    margin-bottom: 15px;
}

.modal-content p {
    font-size: 1em;
    line-height: 1.7;
    color: #555;
    margin-bottom: 15px;
    white-space: pre-wrap; /* Mempertahankan baris baru dari JS */
}

.close-button {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-button:hover,
.close-button:focus {
    color: #333;
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* General responsiveness for article and promo sections */
    .articles-grid {
        grid-template-columns: 1fr;
    }

    header nav ul {
        flex-direction: column;
        gap: 10px;
    }

    .article-detail-custom, .promo-section {
        padding: 20px;
    }

    .article-detail-custom h1 {
        font-size: 2em;
    }

    .article-info-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .article-info-bar .info-item {
        margin-right: 0;
    }

    .share-buttons {
        margin-top: 10px;
    }

    /* Promo section specific responsiveness */
    .promo-carousel {
        overflow-x: scroll; /* Aktifkan scroll horizontal di mobile */
        scroll-behavior: smooth; /* Animasi scroll yang halus */
        -webkit-overflow-scrolling: touch; /* Untuk scrolling yang lebih halus di iOS */
    }

    .promo-carousel .carousel-button {
        display: none; /* Sembunyikan tombol navigasi di mobile, gunakan scroll */
    }

    .promo-cards-wrapper {
        flex-wrap: nowrap; /* Pastikan kartu tetap dalam satu baris */
        justify-content: flex-start; /* Rata kiri */
    }

    .promo-card {
        width: 280px; /* Sedikit lebih kecil di mobile agar ada ruang untuk geser */
    }

    /* Modal responsiveness */
    .modal-content {
        padding: 20px;
    }

    .modal-content h2 {
        font-size: 1.5em;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.8em;
    }

    .article-card h2 {
        font-size: 1.2em;
    }

    .article-detail-custom h1 {
        font-size: 1.8em;  
     }
}
