/*
 * Rumah Jurnal IIQ Jakarta - tampilan beranda situs (daftar jurnal grid)
 * Semua aturan dibatasi ke halaman daftar jurnal (body:has(.page_index_site))
 * supaya tidak memengaruhi tampilan masing-masing jurnal.
 * Hijau: #116f40   Emas: #f7bc4a
 */

/* ---------- Latar & huruf ---------- */
body:has(.page_index_site) {
    background: #eef3ef;
    background-image: radial-gradient(rgba(17,111,64,0.08) 1px, transparent 1px);
    background-size: 16px 16px;
}
body:has(.page_index_site) .pkp_structure_page {
    max-width: 1240px;
    margin: 24px auto !important;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.12);
    font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif;
}

/* ---------- Header ---------- */
body:has(.page_index_site) .pkp_structure_head {
    background: linear-gradient(135deg, #0b4f2d 0%, #116f40 55%, #1b8a52 100%);
    border-bottom: 4px solid #f7bc4a;
}
body:has(.page_index_site) .pkp_head_wrapper {
    width: 100% !important;
    max-width: 1240px;
    padding: 46px 30px 26px !important;
}
body:has(.page_index_site) .pkp_site_name_wrapper {
    width: 100% !important;
    height: auto;
    padding: 0 !important;
}
body:has(.page_index_site) .pkp_site_name {
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}
body:has(.page_index_site) .pkp_site_name .is_img {
    display: block;
}
body:has(.page_index_site) .pkp_site_name .is_img img {
    display: block;
    width: 100%;
    max-width: 1180px !important;
    max-height: none !important;
    height: auto;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}
body:has(.page_index_site) .pkp_navigation_user_wrapper {
    top: 10px;
}
body:has(.page_index_site) .pkp_navigation_user > li > a {
    color: #fff;
}

/* ---------- Tata letak: tanpa sidebar ---------- */
body:has(.page_index_site) .pkp_structure_sidebar {
    display: none !important;
}
body:has(.page_index_site) .pkp_structure_content {
    width: 100% !important;
    max-width: none;
    padding: 0;
}
body:has(.page_index_site) .pkp_structure_main {
    width: 100% !important;
    float: none !important;
    padding: 34px 36px 40px !important;
    border: 0 !important;
}
body:has(.page_index_site) .pkp_structure_main:before,
body:has(.page_index_site) .pkp_structure_main:after {
    display: none !important;
}

/* ---------- Sambutan ---------- */
.page_index_site .about_site {
    position: relative;
    padding: 26px 30px 26px 34px;
    margin-bottom: 38px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, #f4faf6 0%, #fffaf0 100%);
    border-left: 6px solid #116f40;
    color: #3d4a43;
    font-size: 15px;
    line-height: 1.75;
    text-align: justify;
    white-space: normal;
}
.page_index_site .about_site:before {
    content: "Selamat Datang";
    display: block;
    margin-bottom: 8px;
    color: #116f40;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

/* ---------- Judul daftar jurnal ---------- */
.page_index_site .journals {
    border: 0;
    padding: 0;
}
.page_index_site .journals > h2 {
    position: relative;
    margin: 0 0 26px;
    padding-bottom: 12px;
    color: #0b4f2d;
    font-size: 24px;
    font-weight: 700;
    text-align: center;
}
.page_index_site .journals > h2:after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 70px;
    height: 4px;
    margin-left: -35px;
    border-radius: 2px;
    background: linear-gradient(to right, #116f40, #f7bc4a);
}

/* ---------- Grid kartu jurnal ---------- */
.page_index_site .journals > ul {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 26px;
    margin: 0;
    padding: 0;
    list-style: none;
}
@media (max-width: 1100px) {
    .page_index_site .journals > ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
    .page_index_site .journals > ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
    body:has(.page_index_site) .pkp_structure_main { padding: 24px 18px 30px !important; }
}
@media (max-width: 520px) {
    .page_index_site .journals > ul { grid-template-columns: minmax(0, 1fr); }
}

.page_index_site .journals > ul > li {
    display: flex !important;
    flex-direction: column;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid #e3ebe6 !important;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.page_index_site .journals > ul > li:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 30px rgba(17,111,64,0.18);
}
.page_index_site .journals > ul > li:before,
.page_index_site .journals > ul > li:after {
    display: none !important;
}

/* Sampul */
.page_index_site .journals .thumb {
    float: none !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    aspect-ratio: 3 / 4;
    background: #f1f5f2;
    overflow: hidden;
}
.page_index_site .journals .thumb a {
    display: block;
    height: 100%;
}
.page_index_site .journals .thumb img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.4s ease;
}
.page_index_site .journals > ul > li:hover .thumb img {
    transform: scale(1.04);
}
/* Sampul pengganti untuk jurnal tanpa thumbnail */
.page_index_site .journals > ul > li:not(.has_thumb):before {
    content: "JURNAL\A IIQ JAKARTA";
    white-space: pre;
    display: flex !important;
    align-items: center;
    justify-content: center;
    aspect-ratio: 3 / 4;
    background: linear-gradient(160deg, #0b4f2d 0%, #116f40 60%, #f7bc4a 140%);
    color: rgba(255,255,255,0.92);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 3px;
    line-height: 1.6;
    text-align: center;
}

/* Isi kartu */
.page_index_site .journals .body {
    display: flex;
    flex-direction: column;
    flex: 1;
    float: none !important;
    width: auto !important;
    margin: 0 !important;
    padding: 16px 16px 18px !important;
}
.page_index_site .journals h3 {
    margin: 0 0 8px;
    font-size: 15px;
    line-height: 1.4;
    font-weight: 700;
}
.page_index_site .journals h3 a {
    color: #0b4f2d;
    text-decoration: none;
}
.page_index_site .journals h3 a:hover {
    color: #116f40;
}
/* Deskripsi dipotong 3 baris; gambar & tabel di dalam deskripsi disembunyikan */
.page_index_site .journals .description {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 14px;
    color: #66736c;
    font-size: 13px;
    line-height: 1.55;
}
.page_index_site .journals .description * {
    display: inline !important;
    margin: 0 !important;
    font-size: 13px !important;
    font-family: inherit !important;
    color: inherit !important;
    font-weight: normal !important;
    text-align: left !important;
}
.page_index_site .journals .description img,
.page_index_site .journals .description table,
.page_index_site .journals .description br {
    display: none !important;
}

/* Tombol */
.page_index_site .journals .links {
    display: flex;
    gap: 8px;
    margin: auto 0 0 !important;
    padding: 0 !important;
    list-style: none;
}
.page_index_site .journals .links li {
    flex: 1;
    margin: 0 !important;
    padding: 0 !important;
}
.page_index_site .journals .links a {
    display: block;
    padding: 8px 6px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}
.page_index_site .journals .links .view a {
    background: #116f40;
    border: 1px solid #116f40;
    color: #fff;
}
.page_index_site .journals .links .view a:hover {
    background: #0b4f2d;
}
.page_index_site .journals .links .current a {
    background: #fff;
    border: 1px solid #f7bc4a;
    color: #8a6414;
}
.page_index_site .journals .links .current a:hover {
    background: #f7bc4a;
    color: #0b4f2d;
}

/* ---------- Footer situs ---------- */
body:has(.page_index_site) .pkp_structure_footer_wrapper {
    background: #0b4f2d;
    border-top: 4px solid #f7bc4a;
}
body:has(.page_index_site) .pkp_brand_footer {
    display: none;
}
body:has(.page_index_site) .pkp_footer_content,
body:has(.page_index_site) .pkp_footer_content * {
    color: #e6f1ea !important;
    background: transparent !important;
}
body:has(.page_index_site) .pkp_footer_content a {
    color: #f7bc4a !important;
}
.page_index_site .journals > h2 {
    font-size: 0;
}
.page_index_site .journals > h2:before {
    content: "Daftar Jurnal";
    font-size: 24px;
}

/* ---------- Perbaikan: sampul utuh, tidak terpotong ---------- */
.page_index_site .journals .thumb {
    position: relative;
    height: auto !important;
    aspect-ratio: 3 / 4;
    background: #f4f7f5;
}
.page_index_site .journals .thumb a {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: auto;
}
.page_index_site .journals .thumb img {
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    object-fit: contain !important;
    object-position: center center !important;
}
.page_index_site .journals > ul > li:hover .thumb img {
    transform: scale(1.02);
}
