/* ======================================= */
/* 1. KARTU ARTIKEL UTAMA (GRADIASI LEMBUT) */
/* ======================================= */

.obj_article_summary {
    margin: 5px 0 !important; 
    background: linear-gradient(160deg, #95D5FF 0%, #BDB2FF 100%) !important;
    padding: 15px !important; 
    border-radius: 8px !important; 
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); 
    transition: transform 0.3s ease-in-out;
    border: none;
    overflow: hidden; 
}

.obj_article_summary:hover {
    transform: translateY(-2px); 
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.obj_article_summary .title a {
    color: #1A237E;
    font-size: 16px !important; 
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.05);
    margin-bottom: 5px;
}

/* ======================================= */
/* 2. PENULIS & HALAMAN */
/* ======================================= */

.obj_article_summary .meta {
    display: flex; 
    align-items: center;
    background-color: rgba(255, 255, 255, 0.7);
    padding: 8px 10px; 
    border-radius: 6px;
    margin: 8px 0;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.08);
    font-size: 13px; 
    color: #4A148C;
}

.obj_article_summary .meta .authors::before {
    content: "\f0c0"; 
    font-family: FontAwesome; 
    margin-right: 5px;
    color: #673AB7; 
}

.obj_article_summary .meta .pages {
    margin-left: auto; 
    font-weight: 600;
}
.obj_article_summary .meta .pages::before {
    content: "\f0f6"; 
    font-family: FontAwesome; 
    margin-right: 5px;
    color: #1A237E; 
}

/* ======================================= */
/* 3. TOMBOL PDF & STATISTIK */
/* ======================================= */

.obj_galley_link.pdf {
    background: #4F46E5 !important; 
    color: white !important;
    border-radius: 6px; 
    padding: 6px 12px; 
    font-size: 13px; 
    font-weight: 600;
    box-shadow: none !important;
    transition: background 0.3s;
    display: inline-flex;
    align-items: center;
}

.obj_galley_link.pdf:hover {
    background: #6D28D9 !important; 
    transform: none !important; 
}

.obj_article_summary .galleys_links {
    display: flex; 
    align-items: center;
    flex-wrap: wrap; 
    padding-left: 0;
    margin-top: 5px;
    list-style: none;
}

.obj_article_summary .galleys_links i.fa-eye,
.obj_article_summary .galleys_links i.fa-download,
.obj_article_summary .galleys_links .fa-eye,
.obj_article_summary .galleys_links .fa-download {
    display: none !important; 
}

.obj_article_summary .galleys_links {
    color: #444;
    font-size: 13px;
    padding-left: 0;
    margin-top: 5px;
}

.obj_article_summary .galleys_links li:first-child + li::before,
.obj_article_summary .galleys_links li:nth-child(2)::before {
    content: "\f06e "; 
    font-family: FontAwesome;
    margin-right: 3px;
    color: #673AB7;
}

.obj_article_summary .galleys_links li:last-child::before {
    content: "\f019 "; 
    font-family: FontAwesome;
    margin-left: 8px;
    margin-right: 3px;
    color: #0D47A1;
}

/* ======================================= */
/* 4. SIDEBAR CUSTOM MENU (HOVER AKTIF) */
/* ======================================= */

.pkp_block .ojs-hover a {
    display: block;
    transition: all 0.25s ease-in-out;
}

.pkp_block .ojs-hover a:hover,
.pkp_block .ojs-hover a:focus {
    background: linear-gradient(135deg, #95D5FF 0%, #BDB2FF 100%) !important;
    color: #1A237E !important;
    box-shadow: 0 5px 12px rgba(0,0,0,0.15) !important;
}

/* ======================================= */
/* 5. SIDEBAR ACTIVE STATE (HALAMAN AKTIF) */
/* ======================================= */

/* jika OJS memberi class current */
.pkp_block .ojs-hover a.current,
.pkp_block .ojs-hover a.is_current {
    background: linear-gradient(135deg, #4F46E5 0%, #6D28D9 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 6px 14px rgba(79,70,229,0.45) !important;
    border-left-width: 7px !important;
}

/* fallback: link aktif berdasarkan URL */
.pkp_block .ojs-hover a[href]:active {
    background: linear-gradient(135deg, #4F46E5 0%, #6D28D9 100%) !important;
    color: #ffffff !important;
}

/* ======================================= */
/* 6. SIDEBAR SPACING & WIDTH CONTROL */
/* ======================================= */

.pkp_block .ojs-hover {
    max-width: 100%;
    box-sizing: border-box;
}

.pkp_block .ojs-hover a {
    box-sizing: border-box;
    padding: 8px 12px !important;   /* dipersempit */
    margin: 0 !important;
}

/* jarak antar item */
.pkp_block .ojs-hover li {
    margin: 6px 0 !important;
}

/* cegah efek hover melebar */
.pkp_block .ojs-hover a:hover,
.pkp_block .ojs-hover a:focus {
    transform: none !important;
}

/* ======================================= */
/* 7. SIDEBAR STICKY (DESKTOP ONLY, SAFE) */
/* ======================================= */

/* Desktop & laptop */
@media (min-width: 992px) {
    .pkp_structure_sidebar .pkp_block {
        position: sticky;
        top: 110px; /* jarak aman dari header OJS */
        align-self: flex-start;
    }
}

/* ======================================= */
/* 8. NON-STICKY UNTUK MOBILE & TABLET */
/* ======================================= */

@media (max-width: 991px) {
    .pkp_structure_sidebar .pkp_block {
        position: static !important;
        top: auto !important;
    }
}

/* ======================================= */
/* 9. BORDER-LEFT ANIMATION (HOVER & ACTIVE) */
/* ======================================= */

.pkp_block .ojs-hover a {
    position: relative;
}

.pkp_block .ojs-hover a::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 3px;
    height: 0;
    background: currentColor;
    border-radius: 2px;
    transform: translateY(-50%);
    transition: height 0.25s ease;
}

.pkp_block .ojs-hover a:hover::before,
.pkp_block .ojs-hover a.is_current::before,
.pkp_block .ojs-hover a.current::before {
    height: 70%;
}

/* ======================================= */
/* 10. ACCESSIBILITY (FOCUS STATE) */
/* ======================================= */

.pkp_block .ojs-hover a:focus-visible {
    outline: 2px dashed #4F46E5;
    outline-offset: 3px;
    background: linear-gradient(135deg,#c7ddff,#b4ccff);
}

/* ======================================= */
/* 11. MOBILE SIDEBAR COMPACT MODE */
/* ======================================= */

@media (max-width: 767px) {
    .pkp_block .ojs-hover {
        padding: 8px;
        box-shadow: none;
        border-radius: 8px;
    }

    .pkp_block .ojs-hover a {
        font-size: 13px;
        padding: 7px 10px !important;
    }

    .pkp_block .ojs-hover div[style*="border-bottom"] {
        font-size: 11px;
        margin-top: 12px;
    }
}


/* ===== INDEXING MODERN + ANIMATED ===== */
/* ================= INDEXING ANIMATION ================= */

.indexing-wrapper {
  background: linear-gradient(180deg,#f9fafb,#ffffff);
  padding: 22px 0;
  border-radius: 12px;
  overflow: hidden;
}

/* MARQUEE */
.indexing-marquee {
  display: flex;
  width: fit-content;
  animation: scroll-left 40s linear infinite; /* 🐢 KECEPATAN */
}

/* ⏸️ PAUSE SAAT HOVER */
.indexing-wrapper:hover .indexing-marquee {
  animation-play-state: paused;
}

/* TRACK */
.indexing-track {
  display: flex;
  align-items: center;
  gap: 48px;
  padding: 0 24px;
}

/* ITEM */
.indexing-item {
  background: #ffffff;
  border-radius: 10px;
  padding: 14px 20px;
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
  transition: all .3s ease;
}

.indexing-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0,0,0,.12);
}

/* LOGO */
.indexing-item img {
  height: 42px;
  max-width: 140px;
  object-fit: contain;
  filter: grayscale(100%) contrast(0.9);
  opacity: .85;
  transition: all .3s ease;
}

.indexing-item:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

/* ===== ANIMATION LEFT ===== */
@keyframes scroll-left {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ===== ANIMATION RIGHT (opsional) ===== */
.indexing-right .indexing-marquee {
  animation-name: scroll-right;
}

@keyframes scroll-right {
  from {
    transform: translateX(-50%);
  }
  to {
    transform: translateX(0);
  }
}

/* MOBILE */
@media (max-width: 768px) {
  .indexing-item img {
    height: 36px;
  }
}
