/* ====== 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(212,175,55,0.7);
}

/* ====== Sidebar Smooth Gold Fill (FIXED) ====== */

/* Base */
#sidebar .pkp_block .content a,
.pkp_structure_sidebar .pkp_block .content a {
  position: relative;
  overflow: hidden;
  border-radius: 6px;

  transition: 
    transform 0.35s ease,
    color 0.3s ease;

  z-index: 1;
}

/* GOLD FILL LAYER */
#sidebar .pkp_block .content a::before,
.pkp_structure_sidebar .pkp_block .content a::before {
  content: "";
  position: absolute;
  inset: 0;

  background: linear-gradient(
    90deg,
    #d4af37 0%,
    #f5d76e 50%,
    #d4af37 100%
  );

  transform: scaleX(0);
  transform-origin: left;

  transition: transform 0.6s ease;

  z-index: -1;
}

/* Hover trigger */
#sidebar .pkp_block .content a:hover::before,
.pkp_structure_sidebar .pkp_block .content a:hover::before {
  transform: scaleX(1);
}

/* TEXT berubah bertahap */
#sidebar .pkp_block .content a:hover,
.pkp_structure_sidebar .pkp_block .content a:hover {
  color: #fff !important;
  transform: translateY(-4px) scale(1.03);
}

/* Image */
#sidebar .pkp_block .content a img,
.pkp_structure_sidebar .pkp_block .content a img {
  transition: transform 0.45s ease, filter 0.35s ease;
}

#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(212,175,55,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(212,175,55,0.6));
}

.about_section img:active {
  transform: perspective(800px) rotateY(-8deg) scale(1.05);
  filter: drop-shadow(0 0 15px rgba(212,175,55,0.8));
}

/* ====== Editor's Pick Cards ====== */
.editors-pick-wrapper {
  position: relative;
  margin-top: -30px;
  z-index: 5;
}

.editors-pick-container {
  display: flex;
  justify-content: flex-start;
  flex-wrap: nowrap;
  overflow: visible;
  position: relative;

  border-top: 1px solid #1E3A8A;
  border-right: 1px solid #1E3A8A;
  border-bottom: 1px solid #1E3A8A;
  border-left: 4px solid #1E3A8A;

  border-radius: 0 0 10px 10px;
}

.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(212,175,55,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;
}

.editors-pick-card h3 a:hover {
  color: #d4af37;
  text-decoration: underline;
}

/* ===== 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;
  }

}