/* ===== CSS VARIABLES (Untuk memudahkan ubah warna) ===== */
:root {
    --primary-color: #005a9c;
    --primary-hover: #00437a;
    --accent-color: #10bcd0;
    --text-dark: #2c3e50;
    --bg-body: #e9ebec; /* Warna latar belakang abu-abu sangat muda/bersih */
    --card-bg: #ffffff;
    --border-color: #eaedf1;
    --radius: 10px; /* Sudut melengkung yang modern */
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.03);
    --shadow-hover: 0 12px 24px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ===== BODY ===== */
body {
    background-color: var(--bg-body);
    /* Latar belakang grid dibuat sangat transparan agar tidak mengganggu mata */
    background-image:
        linear-gradient(90deg, rgba(0,0,0,0.015) 1px, transparent 1px),
        linear-gradient(rgba(0,0,0,0.015) 1px, transparent 1px);
    background-size: 30px 30px;
    background-attachment: fixed;
    color: #4a5568;
}

/* ===== HEADER ===== */
#header,
.pkp_site_name {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
.pkp_site_name > a {
  padding-top: 0;
  padding-bottom: 0;
}
.pkp_site_name .is_img img {
  max-height: 200px !important;
}
.pkp_site_name_wrapper {
  padding-left: 0;
  padding-right: 0;
}
.pkp_navigation_user_wrapper {
  top: 0;
  right: 0;
  padding-right: 30px;
}
.pkp_structure_page {
  margin-top: 20px !important;
  margin-bottom: 20 !important;
  padding-bottom: 20 !important;
}


/* ===== SIDEBAR MENU ANIMATION ===== */
.sidebar-anim {
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    border-radius: 6px;
    margin-bottom: 5px;
}

/* Hover background yang lebih soft */
.sidebar-anim:hover {
    background-color: rgba(0, 90, 156, 0.05) !important;
}

/* Garis animasi di sebelah KIRI (Gaya UI Modern) */
.sidebar-anim::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--primary-color);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.3s ease;
}

.sidebar-anim:hover::before {
    transform: scaleY(1);
}

.sidebar-anim a,
.sidebar-anim em {
    transition: var(--transition);
}

.sidebar-anim:hover a {
    transform: translateX(8px);
    color: var(--primary-color) !important;
    font-weight: 600;
}

/* ===== ARTICLE SUMMARY (KOTAK ARTIKEL) ===== */
.obj_article_summary {
    background: var(--card-bg);
    padding: 24px;
    margin-bottom: 25px;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

/* Text Justify */
.obj_article_details .abstract,
.obj_article_details .references {
    text-align: justify;
    text-justify: inter-word;
    color: #4a5568;
    line-height: 1.6;
}

/* Efek Hover Kotak Artikel (Melayang Lembut) */
.obj_article_summary:hover {
    transform: translateY(-4px); /* Tidak terlalu membal, cukup melayang sedikit */
    box-shadow: var(--shadow-hover);
    border-color: transparent;
}

/* ===== ARTICLE TITLE ANIMATION ===== */
.obj_article_summary .title a {
    color: var(--text-dark);
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    display: inline-block;
}

.obj_article_summary:hover .title a {
    color: var(--primary-color);
}

/* Garis bawah tipis saat hover judul */
.obj_article_summary .title a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.obj_article_summary:hover .title a::after {
    width: 100%;
}

/* ===== PDF BUTTON (GALLEY LINK) ===== */
/* Menghilangkan animasi denyut berlebihan, diganti efek lift & fill */
.obj_article_summary .galley_link {
    display: inline-block;
    transition: var(--transition);
    border-radius: 4px;
}

.obj_article_summary .galley_link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 90, 156, 0.2);
    filter: brightness(1.05);
}

/* ===== FADE IN UP ANIMATION ===== */
.obj_article_summary {
    animation: fadeUp 0.6s ease-out backwards;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}