/* ====== Marquee (Logo Jalan) ====== */
@keyframes scroll-left {
  50% { transform: translateX(0); }
  50% { transform: translateX(-50%); }
}

.marquee-wrapper {
  width: 100%;
  overflow: hidden;
  margin: 15px auto;
  border-radius: 12px;
  position: relative;
  background-color: #f8f8f8;
  padding: 10px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.marquee-track {
  display: flex;
  gap: 40px;
  width: fit-content;
  animation: scroll-left 25s linear infinite;
}

.marquee-wrapper:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-logo {
  flex: 0 0 auto;
}

.marquee-logo img {
  height: 70px;
  display: block;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.marquee-logo img:hover {
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(255,0,0,0.7);
}

/* ====== Sidebar Smooth Glow ====== */

/* Base state */
#sidebar .pkp_block .content a,
.pkp_structure_sidebar .pkp_block .content a {
  border-radius: 6px;
  transition: 
    background-color 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    color 0.25s ease;
  transform: translateY(0) scale(1);
  will-change: transform;
}

/* Hover state */
#sidebar .pkp_block .content a:hover,
.pkp_structure_sidebar .pkp_block .content a:hover {
  color: #fff !important;
  background-color: #e02424 !important;
  text-shadow: 0 0 4px rgba(255,255,255,0.4);
  box-shadow: 
      0 8px 18px rgba(224,36,36,0.35),
      0 0 20px rgba(224,36,36,0.25);
  transform: translateY(-4px) scale(1.03);
}

/* Image base */
#sidebar .pkp_block .content a img,
.pkp_structure_sidebar .pkp_block .content a img {
  transition: 
    transform 0.45s cubic-bezier(0.4, 0, 0.2, 1),
    filter 0.35s ease;
  transform: scale(1);
  backface-visibility: hidden;
}

/* Image hover */
#sidebar .pkp_block .content a:hover img,
.pkp_structure_sidebar .pkp_block .content a:hover img {
  transform: scale(1.08);
  filter: drop-shadow(0 4px 10px rgba(224,36,36,0.4));
}

/* ====== About Image Hover ====== */
.about_section img {
  transition: transform 0.4s ease-in-out, filter 0.4s ease-in-out;
}

.about_section img:hover {
  transform: perspective(800px) rotateY(8deg) scale(1.05);
  filter: drop-shadow(0 0 12px rgba(255,0,0,0.6));
}

.about_section img:active {
  transform: perspective(800px) rotateY(-8deg) scale(1.05);
  filter: drop-shadow(0 0 15px rgba(255,0,0,0.8));
}

/* ====== Editor's Pick Cards ====== */
.editors-pick-wrapper {
  position: relative;
  margin-top: -60px;
  z-index: 5;
}

.editors-pick-container {
  display: flex;
  justify-content: flex-start;
  flex-wrap: nowrap;
  overflow: visible;
  position: relative;
}

.editors-pick-card {
  position: relative;
  width: 220px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  margin-left: -120px;
}

.editors-pick-card:first-child { margin-left:0; z-index:10; }
.editors-pick-card:nth-child(2) { z-index:9; }
.editors-pick-card:nth-child(3) { z-index:8; }
.editors-pick-card:nth-child(4) { z-index:7; }
.editors-pick-card:nth-child(5) { z-index:6; }

.editors-pick-card:hover {
  z-index: 20;
  transform: translateY(-12px) scale(1.08);
  box-shadow: 0 8px 20px rgba(224,36,36,0.45);
}

.editors-pick-card h3 {
  font-size: 12px;
  margin: 10px;
  line-height: 1.3em;
}

.editors-pick-card h3 a {
  color: #2c3e50;
  text-decoration: none;
  transition: color 0.25s ease, text-decoration 0.25s ease;
}

.editors-pick-card h3 a:hover {
  color: #e02424;
  text-decoration: underline;
}

/* === IJEEI Journal Metrics - Precision Version ====== */

.ijei-metrics-container{
  max-width:1100px;
  margin:50px auto;
  padding:40px;
  background:#f4f4f4;
  border-radius:14px;
  box-shadow:0 8px 24px rgba(0,0,0,0.06);
  font-family:'Segoe UI', sans-serif;
}

.ijei-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:35px;
  flex-wrap:wrap;
  gap:15px;
}

.ijei-header h2{
  margin:0;
  font-size:24px;
  font-weight:600;
  color:#333;
}

.ijei-header span{
  color:#b30000;
  font-weight:700;
}

.ijei-btn{
  background:#b30000;
  color:#fff !important;
  padding:10px 20px;
  border-radius:8px;
  text-decoration:none;
  font-size:14px;
  transition:all 0.3s ease;
}

.ijei-btn:hover{
  background:#8f0000;
  transform:translateY(-2px);
  box-shadow:0 6px 14px rgba(179,0,0,0.35);
}

/* === IJEEI Journal Metrics - ULTRA SLIM VERSION ===== */

.ijei-metrics-container{
  max-width:1100px;
  margin:15px auto;                 /* lebih rapat ke atas & bawah */
  padding:12px 20px;                /* kunci utama supaya tidak tinggi */
  background:#f4f4f4;
  border-radius:10px;
  box-shadow:0 3px 12px rgba(0,0,0,0.05);
  font-family:'Segoe UI', sans-serif;
}

/* ===== HEADER ===== */

.ijei-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:5px;               /* diperkecil */
  flex-wrap:wrap;
}

.ijei-header h2{
  margin:0;
  font-size:14px;                   /* diperkecil */
  font-weight:600;
  color:#333;
  line-height:1.2;
}

.ijei-header span{
  color:#b30000;
  font-weight:700;
}

.ijei-btn{
  background:#b30000;
  color:#fff !important;
  padding:6px 14px;                 /* tombol lebih kecil */
  border-radius:6px;
  text-decoration:none;
  font-size:12px;
  transition:0.2s ease;
}

.ijei-btn:hover{
  background:#8f0000;
}

/* ===== 1 BARIS STATISTIK ===== */

.ijei-grid{
  display:flex;
  justify-content:space-between;
  align-items:center;
  text-align:center;
  flex-wrap:nowrap;
}

.ijei-grid > div{
  flex:1;
  padding:2px 6px;                  /* sangat tipis */
  border-right:1px solid #dcdcdc;
}

.ijei-grid > div:last-child{
  border-right:none;
}

.ijei-number{
  font-size:22px;
  font-weight:700;
  color:#b30000;
  line-height:1;
  margin:0;
}

.ijei-label{
  font-size:12px;
  color:#555;
  margin:2px 0 0 0;
  line-height:1.2;
}

/* ===== Divider ===== */

.ijei-divider{
  margin:8px 0;
  border-top:1px solid #ddd;
}

/* ===== Author Origin ===== */

.ijei-origin{
  text-align:center;
}

.ijei-origin h3{
  margin:5px 0;
  font-size:14px;
  font-weight:600;
}

.ijei-flags{
  margin-top:5px;
  display:flex;
  justify-content:center;
  gap:18px;
  flex-wrap:nowrap;
  font-size:12px;
  align-items:center;
}

/* ===== Responsive ===== */

@media (max-width:900px){

  .ijei-grid{
    flex-wrap:wrap;
  }

  .ijei-grid > div{
    flex:50%;
    margin-bottom:8px;
    border-right:none;
  }

  .ijei-flags{
    flex-wrap:wrap;
    gap:12px;
  }

}