/* ==========================================================
   HOMEPAGE JURNAL INDUK OJS
   Thumbnail + About Singkat
   OJS 3.3 / 3.4 / 3.5
   ========================================================== */

/* ---------- VARIABEL WARNA ---------- */
:root {
    --primary: #075b50;
    --primary-dark: #043c36;
    --secondary: #0d9488;
    --accent: #d4af37;
    --background: #f4faf8;
    --white: #ffffff;
    --text: #425b56;
    --shadow: rgba(4, 60, 54, 0.16);
}

/* ---------- DASAR HALAMAN ---------- */
html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(
            circle at 10% 10%,
            rgba(13, 148, 136, 0.09),
            transparent 30%
        ),
        radial-gradient(
            circle at 90% 25%,
            rgba(212, 175, 55, 0.08),
            transparent 25%
        ),
        linear-gradient(
            180deg,
            #f5fbf9 0%,
            #ffffff 50%,
            #eef8f5 100%
        );
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
}

/* ---------- HEADER ---------- */
.pkp_structure_head {
    position: relative;
    z-index: 100;
    border: 0;
    background:
        linear-gradient(
            120deg,
            #032f2b 0%,
            #075b50 55%,
            #0d9488 100%
        );
    box-shadow: 0 12px 35px rgba(4, 60, 54, 0.24);
}

.pkp_head_wrapper {
    padding-top: 8px;
    padding-bottom: 8px;
}

/* Logo situs */
.pkp_site_name {
    padding-top: 18px;
    padding-bottom: 18px;
}

.pkp_site_name .is_img img {
    width: auto;
    max-height: 105px;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.2));
    transition:
        transform 0.4s ease,
        filter 0.4s ease;
}

.pkp_site_name .is_img:hover img {
    filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.28));
    transform: scale(1.025);
}

/* Jika nama situs berupa teks */
.pkp_site_name .is_text {
    color: #ffffff;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 0.3px;
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.25);
}

/* ---------- NAVIGASI ---------- */
.pkp_navigation_primary_wrapper {
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(3, 47, 43, 0.28);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.pkp_navigation_primary > li > a {
    position: relative;
    padding-top: 17px;
    padding-bottom: 17px;
    color: #ffffff;
    font-weight: 600;
    letter-spacing: 0.2px;
    transition: color 0.3s ease;
}

.pkp_navigation_primary > li > a::after {
    position: absolute;
    right: 50%;
    bottom: 9px;
    left: 50%;
    height: 2px;
    border-radius: 10px;
    content: "";
    background: linear-gradient(
        90deg,
        var(--accent),
        #ffeaa7
    );
    transition:
        right 0.3s ease,
        left 0.3s ease;
}

.pkp_navigation_primary > li > a:hover {
    color: #f8df87;
}

.pkp_navigation_primary > li > a:hover::after {
    right: 12px;
    left: 12px;
}

.pkp_search_desktop {
    color: #ffffff;
}

/* ---------- KONTEN UTAMA ---------- */
.pkp_structure_content {
    padding-top: 55px;
    padding-bottom: 75px;
}

.pkp_structure_main {
    width: 100%;
    padding: 0;
    border: 0;
}

/* Hilangkan sidebar pada homepage induk */
.page_index_site ~ .pkp_structure_sidebar,
.pkp_structure_content:has(.page_index_site)
.pkp_structure_sidebar {
    display: none;
}

/* ---------- JUDUL HALAMAN ---------- */
.page_index_site > h2,
.page_index_site .page_title,
.page_index_site .current_site h2 {
    position: relative;
    margin: 0 auto 45px;
    padding-bottom: 18px;
    color: var(--primary-dark);
    font-size: clamp(27px, 4vw, 42px);
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    letter-spacing: -0.7px;
}

.page_index_site > h2::after,
.page_index_site .page_title::after,
.page_index_site .current_site h2::after {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 90px;
    height: 4px;
    border-radius: 20px;
    content: "";
    background: linear-gradient(
        90deg,
        var(--primary),
        var(--accent)
    );
    transform: translateX(-50%);
}

/* ---------- GRID DAFTAR JURNAL ---------- */
.page_index_site .journals {
    margin: 0;
    padding: 10px 0 40px;
    border: 0;
}

.page_index_site .journals > ul {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 30px;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* ---------- KARTU JURNAL ---------- */
.page_index_site .journals > ul > li,
.page_index_site .journals .journal {
    position: relative;
    overflow: hidden;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid rgba(7, 91, 80, 0.13) !important;
    border-radius: 21px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow:
        0 12px 30px var(--shadow),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    animation: journalFadeUp 0.75s ease both;
    transition:
        transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1),
        box-shadow 0.45s ease,
        border-color 0.45s ease;
}

/* Animasi tampil bergantian */
.page_index_site .journals > ul > li:nth-child(1) {
    animation-delay: 0.05s;
}

.page_index_site .journals > ul > li:nth-child(2) {
    animation-delay: 0.12s;
}

.page_index_site .journals > ul > li:nth-child(3) {
    animation-delay: 0.19s;
}

.page_index_site .journals > ul > li:nth-child(4) {
    animation-delay: 0.26s;
}

.page_index_site .journals > ul > li:nth-child(5) {
    animation-delay: 0.33s;
}

.page_index_site .journals > ul > li:nth-child(6) {
    animation-delay: 0.40s;
}

.page_index_site .journals > ul > li:nth-child(7) {
    animation-delay: 0.47s;
}

.page_index_site .journals > ul > li:nth-child(8) {
    animation-delay: 0.54s;
}

/* Garis emas di bagian atas */
.page_index_site .journals > ul > li::before,
.page_index_site .journals .journal::before {
    position: absolute;
    z-index: 5;
    top: 0;
    right: 18%;
    left: 18%;
    height: 4px;
    border-radius: 0 0 10px 10px;
    content: "";
    background: linear-gradient(
        90deg,
        transparent,
        var(--accent),
        transparent
    );
    opacity: 0;
    transform: scaleX(0.4);
    transition:
        opacity 0.4s ease,
        transform 0.4s ease;
}

/* Efek kilau */
.page_index_site .journals > ul > li::after,
.page_index_site .journals .journal::after {
    position: absolute;
    z-index: 4;
    top: -80%;
    left: -130%;
    width: 60%;
    height: 260%;
    content: "";
    pointer-events: none;
    background: linear-gradient(
        100deg,
        transparent,
        rgba(255, 255, 255, 0.44),
        transparent
    );
    transform: rotate(15deg);
    transition: left 0.75s ease;
}

.page_index_site .journals > ul > li:hover,
.page_index_site .journals .journal:hover {
    border-color: rgba(212, 175, 55, 0.55) !important;
    box-shadow:
        0 25px 55px rgba(4, 60, 54, 0.24),
        0 7px 18px rgba(212, 175, 55, 0.14);
    transform: translateY(-11px) scale(1.02);
}

.page_index_site .journals > ul > li:hover::before,
.page_index_site .journals .journal:hover::before {
    opacity: 1;
    transform: scaleX(1);
}

.page_index_site .journals > ul > li:hover::after,
.page_index_site .journals .journal:hover::after {
    left: 155%;
}

/* ==========================================================
   HANYA TAMPILKAN THUMBNAIL DAN ABOUT
   ========================================================== */

/* Sembunyikan nama atau judul jurnal */
.page_index_site .journals h2,
.page_index_site .journals h3,
.page_index_site .journals .title {
    display: none !important;
}

/* Sembunyikan link dan tombol lainnya */
.page_index_site .journals .links,
.page_index_site .journals .more,
.page_index_site .journals .btn,
.page_index_site .journals .action,
.page_index_site .journals .read_more {
    display: none !important;
}

/* ---------- THUMBNAIL ---------- */
.page_index_site .journals .thumb,
.page_index_site .journals .homepageImage {
    display: block !important;
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.page_index_site .journals .thumb a,
.page_index_site .journals .homepageImage a {
    display: block;
    overflow: hidden;
    width: 100%;
}

/* Ukuran gambar thumbnail */
.page_index_site .journals .thumb img,
.page_index_site .journals .homepageImage img {
    display: block;
    width: 100% !important;
    height: 330px;
    margin: 0 !important;
    padding: 0;
    border: 0;
    object-fit: cover;
    object-position: center;
    background: #e5f1ee;
    transition:
        transform 0.65s cubic-bezier(0.2, 0.8, 0.2, 1),
        filter 0.45s ease;
}

/* Zoom gambar */
.page_index_site .journals > ul > li:hover .thumb img,
.page_index_site .journals > ul > li:hover .homepageImage img,
.page_index_site .journals .journal:hover .thumb img,
.page_index_site .journals .journal:hover .homepageImage img {
    filter: brightness(1.04) saturate(1.08);
    transform: scale(1.065);
}

/* ---------- ABOUT SINGKAT ---------- */
.page_index_site .journals .description,
.page_index_site .journals .journal-description {
    position: relative;
    z-index: 6;
    display: -webkit-box !important;
    overflow: hidden;
    min-height: 63px;
    margin: 0 !important;
    padding: 18px 19px 21px !important;
    color: #526560;
    background: #ffffff;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.6;
    text-align: left;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

/* Hilangkan jarak paragraf */
.page_index_site .journals .description p,
.page_index_site .journals .journal-description p {
    display: inline !important;
    margin: 0 !important;
    padding: 0 !important;
    color: inherit;
    font-size: inherit;
    line-height: inherit;
}

/* Label ABOUT */
.page_index_site .journals .description::before,
.page_index_site .journals .journal-description::before {
    display: block;
    margin-bottom: 7px;
    color: var(--secondary);
    content: "ABOUT";
    font-size: 10px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 1.8px;
}

/* ---------- FOOTER ---------- */
.pkp_structure_footer_wrapper {
    position: relative;
    overflow: hidden;
    border-top: 4px solid var(--accent);
    background:
        radial-gradient(
            circle at 15% 20%,
            rgba(13, 148, 136, 0.25),
            transparent 32%
        ),
        linear-gradient(
            135deg,
            #032d29,
            #075b50
        );
}

.pkp_footer_content,
.pkp_brand_footer {
    color: rgba(255, 255, 255, 0.88);
}

.pkp_structure_footer_wrapper a {
    color: #f4d97b;
}

/* ---------- ANIMASI ---------- */
@keyframes journalFadeUp {
    from {
        opacity: 0;
        transform: translateY(35px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ---------- TABLET ---------- */
@media (max-width: 1100px) {
    .page_index_site .journals > ul {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 24px;
    }

    .page_index_site .journals .thumb img,
    .page_index_site .journals .homepageImage img {
        height: 310px;
    }
}

/* ---------- TABLET KECIL ---------- */
@media (max-width: 800px) {
    .pkp_structure_content {
        padding-top: 35px;
    }

    .page_index_site .journals > ul {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 19px;
    }

    .page_index_site .journals > ul > li,
    .page_index_site .journals .journal {
        border-radius: 17px;
    }

    .page_index_site .journals .thumb img,
    .page_index_site .journals .homepageImage img {
        height: 285px;
    }
}

/* ---------- SMARTPHONE ---------- */
@media (max-width: 520px) {
    .page_index_site .journals > ul {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .page_index_site .journals > ul > li,
    .page_index_site .journals .journal {
        border-radius: 13px;
    }

    .page_index_site .journals .thumb img,
    .page_index_site .journals .homepageImage img {
        height: 220px;
    }

    .page_index_site .journals .description,
    .page_index_site .journals .journal-description {
        min-height: 54px;
        padding: 12px 13px 15px !important;
        font-size: 11px;
        line-height: 1.5;
        -webkit-line-clamp: 3;
    }

    .page_index_site .journals .description::before,
    .page_index_site .journals .journal-description::before {
        margin-bottom: 5px;
        font-size: 9px;
    }

    .page_index_site .journals > ul > li:hover,
    .page_index_site .journals .journal:hover {
        transform: translateY(-5px) scale(1.01);
    }
}

/* ---------- AKSESIBILITAS ---------- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}