/*1. Hilangkan background partikel di body */

body.wave-particles-active canvas {
  display: none !important;
}

/*2. Buat card di current issue mobile friendly */
/* Membuat komponen sidebar berkurang 20%

.pkp_block.block_custom.block-visible.article-visible {
    max-width: 92%;
    margin-left: +29%;
    margin-right: -15%;
}
    */

/*2. Buat main content lebih lebar */
/* Membuat komponen main bertambah 10%

@media (min-width: 992px) {
    .page_index_journal {
        max-width: 125%;
        margin-left: -5%;
        margin-right: -20%;
    }
}
*/

/* 1. Judul (Media Heading) agar tidak meluap */
.article-summary .media-heading {
    display: block;
    width: 100%;
    white-space: normal;      /* Izinkan pindah baris */
    overflow-wrap: break-word; /* Potong kata jika terlalu panjang */
    word-wrap: break-word;
    word-break: break-word;    /* Keamanan tambahan untuk teks teknis */
    line-height: 1.4;
    margin-bottom: 10px;
}

/* 2. Style Gambar Meta agar responsif */
.article-meta-image-style {
    max-width: 100%;           /* Tidak akan pernah lebih lebar dari card */
    height: auto;              /* Jaga rasio gambar */
    display: block;
    margin: 10px 0;            /* Beri jarak atas bawah */
    border-radius: 4px;
}

/* 3. Pages Pill Floating (Label Halaman) agar tidak nabrak */
.pages-pill-floating {
    display: inline-block;     /* Agar membungkus sesuai isi */
    max-width: 100%;           /* Cegah keluar dari batas mobile */
    white-space: normal;       /* Jika isi teks pill panjang, dia akan turun */
    word-break: break-all;
    background-color: #f0f0f0; /* Contoh warna background pill */
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-top: 5px;
}

/* Penyesuaian khusus untuk versi Mobile */
@media (max-width: 767px) {
    /* Pastikan container utama tidak membatasi konten */
    .article-summary.media {
        display: flex;
        flex-direction: column; /* Ubah layout jadi vertikal di mobile */
        padding: 15px;
        overflow-wrap: break-word;
    }

    /* Jika gambar berada di samping, pindahkan ke atas judul di mobile */
    .article-meta-image-style {
        width: 100%;
        margin-bottom: 15px;
    }

    .article-summary .media-body {
        width: 100%;
        display: block;
    }
}


/*3. Menambah card di current issue */

/* Custom Card Minimalis OJS 3.4 */
.article-summary.media {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden; /* Menjaga konten tetap di dalam radius */
}

/* Efek Hover */
.article-summary.media:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    border-color: #007bff; /* Memberi aksen warna saat hover */
}

/* Solusi Judul Nabrak & Panjang */
.article-summary .media-body {
    flex: 1;
    min-width: 0; /* Mencegah flex-item meluap keluar card */
    width: 100%;
}

.article-summary .media-body h3.title {
    font-size: 1.25rem;
    margin-top: 0;
    margin-bottom: 12px;
    line-height: 1.4;
    /* Memaksa teks membuat baris baru */
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    display: block;
}

.article-summary .media-body h3.title a {
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 700;
    display: block; /* Mengisi lebar penuh */
    max-width: 100%;
}

.article-summary .media-body h3.title a:hover {
    color: #007bff;
}

/* Penulis (Authors) */
.article-summary .authors {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 15px;
    font-style: italic;
    line-height: 1.4;
}

/* Metadata & Footer (Galleys/PDF) */
.article-summary .footer {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto; /* Mendorong footer ke bawah card */
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

/* Tombol PDF/Galleys Minimalis */
.article-summary .btn-default, 
.article-summary .obj_galley_link {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    color: #495057;
    padding: 6px 16px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
    display: inline-block;
}

.article-summary .btn-default:hover,
.article-summary .obj_galley_link:hover {
    background-color: #007bff;
    color: #ffffff;
    border-color: #007bff;
    text-decoration: none;
}

/* Penyesuaian Thumbnail jika ada */
.article-summary .media-left {
    padding-right: 20px;
    max-width: 150px;
}

.article-summary .media-left img {
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Responsif Mobile */
@media (max-width: 767px) {
    .article-summary.media {
        padding: 15px;
    }
    
    .article-summary .media-body h3.title {
        font-size: 1.1rem;
    }
}