/* =========================
   IONTECH CUSTOM STYLE FINAL
   ========================= */

/* === TOPBAR ORANYE ATAS === */
.topbar-custom {
  background: rgba(255, 140, 0, 0.9) !important;
  height: 36px !important;
}

/* === NAVIGASI HIJAU TUA === */
.pkp_navigation_primary_wrapper {
  background: #0e3d2e !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* === MENU LINK === */
.pkp_navigation_primary .pkp_nav_list > li > a {
  color: #fdfdfd !important;
  padding: 10px 14px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
}

/* === HOVER / ACTIVE === */
.pkp_navigation_primary .pkp_nav_list > li:hover > a,
.pkp_navigation_primary .pkp_nav_list > li.current > a {
  background: rgba(255, 255, 255, 0.15) !important;
  border-radius: 6px !important;
  color: #ffd27f !important;
}

/* === TOMBOL SEARCH === */
.pkp_site_nav_menu a {
  color: #ffd27f !important;
  font-weight: bold !important;
}
.pkp_site_nav_menu a:hover {
  color: #ffffff !important;
}

/* === DROPDOWN MENU === */
.pkp_navigation_primary_wrapper .pkp_nav_list li ul {
  background: rgba(255, 140, 0, 0.95) !important;
  border-radius: 6px !important;
  padding: 8px 0 !important;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15) !important;
}

/* === DROPDOWN TEKS === */
.pkp_navigation_primary_wrapper .pkp_nav_list li ul li a {
  color: #111 !important;
  padding: 8px 16px !important;
  display: block !important;
  font-weight: 500 !important;
}
.pkp_navigation_primary_wrapper .pkp_nav_list li ul li a:hover {
  background: rgba(0,0,0,0.15) !important;
  color: #fff !important;
}

/* === BANNER GAMBAR === */
.iontech-banner img {
  width: 100% !important;
  max-height: 300px !important;
  object-fit: cover !important;
  display: block !important;
  margin: 0 auto !important;
}

/* === BANNER TEKS (fallback kalau gambar belum dipakai) === */
.iontech-banner-text {
  background: linear-gradient(to right, #ff8c00, #ffa733) !important;
  color: white !important;
  text-align: center !important;
  padding: 40px 20px !important;
}
.iontech-banner-text h1 {
  font-size: 36px !important;
  font-weight: bold !important;
  margin: 0 !important;
}
.iontech-banner-text p {
  font-size: 18px !important;
  margin: 6px 0 0 !important;
}

/* === STYLE CARD ARTIKEL (Homepage & Issue) === */
body.pkp_page_index div.obj_article_summary,
body.pkp_page_issue div.obj_article_summary,
div.obj_article_summary {
  border: 2px solid #4CAF50 !important;          /* border hijau terang */
  border-radius: 14px !important;
  padding: 16px 20px !important;
  margin: 16px 0 !important;
  background: #f0fff5 !important;                /* soft green */
  box-shadow: 0 6px 16px rgba(0,0,0,0.12) !important;
  transition: all 0.3s ease-in-out !important;
}

/* Hover efek */
body.pkp_page_index div.obj_article_summary:hover,
body.pkp_page_issue div.obj_article_summary:hover,
div.obj_article_summary:hover {
  transform: scale(1.02) translateY(-4px) !important;
  background: #e8fbe9 !important;
  box-shadow: 0 12px 24px rgba(0,0,0,0.2) !important;
}

/* Judul artikel */
.obj_article_summary .title a {
  color: #0e3d2e !important;
  font-weight: 700 !important;
  font-size: 16px !important;
  text-decoration: none !important;
}
.obj_article_summary .title a:hover {
  color: #FF8C00 !important;
}

/* Authors + pages */
.obj_article_summary .authors {
  font-size: 13px !important;
  color: #2f4f4f !important;
  margin-top: 6px !important;
}
.obj_article_summary .pages {
  font-size: 12px !important;
  color: #666 !important;
  margin-top: 2px !important;
}

/* Tombol PDF */
.obj_article_summary .galleys_links a {
  background: #0e3d2e !important;
  color: #fff !important;
  padding: 6px 14px !important;
  border-radius: 6px !important;
  font-size: 13px !important;
  text-decoration: none !important;
  font-weight: 600 !important;
  box-shadow: 0 3px 8px rgba(14,61,46,0.25) !important;
  transition: background 0.2s ease, transform 0.2s ease !important;
  display: inline-block !important;
}
.obj_article_summary .galleys_links a:hover {
  background: #138a6b !important;
  transform: scale(1.08) !important;
}

/* Baris statistik (views/download/published) */
.obj_article_summary .galleys_links {
  font-size: 12px !important;
  color: #444 !important;
  margin-top: 8px !important;
  font-style: italic !important;
}
/* =========================
   IONTECH CUSTOM STYLE FINAL
   ========================= */
/* ... semua kode kamu yang lama tetap ... */

/* === CARD ARTIKEL WARNA-WARNI ELEGAN (LOOP 10 WARNA) === */

/* 1: Hijau lembut */
.cmp_article_list.articles > li:nth-child(10n+1) .obj_article_summary {
  border: 2px solid #2e7d32 !important;
  background: linear-gradient(135deg,#f5fbf7,#e8f5e9) !important;
}

/* 2: Oranye pastel */
.cmp_article_list.articles > li:nth-child(10n+2) .obj_article_summary {
  border: 2px solid #ef6c00 !important;
  background: linear-gradient(135deg,#fff8e1,#ffe0b2) !important;
}

/* 3: Biru lembut */
.cmp_article_list.articles > li:nth-child(10n+3) .obj_article_summary {
  border: 2px solid #1565c0 !important;
  background: linear-gradient(135deg,#e3f2fd,#bbdefb) !important;
}

/* 4: Ungu elegan */
.cmp_article_list.articles > li:nth-child(10n+4) .obj_article_summary {
  border: 2px solid #6a1b9a !important;
  background: linear-gradient(135deg,#f3e5f5,#e1bee7) !important;
}

/* 5: Pink lembut */
.cmp_article_list.articles > li:nth-child(10n+5) .obj_article_summary {
  border: 2px solid #ad1457 !important;
  background: linear-gradient(135deg,#fce4ec,#f8bbd0) !important;
}

/* 6: Abu elegan */
.cmp_article_list.articles > li:nth-child(10n+6) .obj_article_summary {
  border: 2px solid #37474f !important;
  background: linear-gradient(135deg,#eceff1,#cfd8dc) !important;
}

/* 7: Tosca fresh */
.cmp_article_list.articles > li:nth-child(10n+7) .obj_article_summary {
  border: 2px solid #00897b !important;
  background: linear-gradient(135deg,#e0f2f1,#b2dfdb) !important;
}

/* 8: Lime green */
.cmp_article_list.articles > li:nth-child(10n+8) .obj_article_summary {
  border: 2px solid #827717 !important;
  background: linear-gradient(135deg,#f9fbe7,#dcedc8) !important;
}

/* 9: Kuning pastel */
.cmp_article_list.articles > li:nth-child(10n+9) .obj_article_summary {
  border: 2px solid #f9a825 !important;
  background: linear-gradient(135deg,#fffde7,#fff9c4) !important;
}

/* 10: Lavender soft */
.cmp_article_list.articles > li:nth-child(10n+10) .obj_article_summary {
  border: 2px solid #4527a0 !important;
  background: linear-gradient(135deg,#ede7f6,#d1c4e9) !important;
}

/* === Tuning mobile biar lebih lega === */
@media (max-width: 576px) {
  .obj_article_summary {
    padding: 12px 14px !important;
    border-radius: 12px !important;
  }
  .obj_article_summary .title a {
    font-size: 15px !important;
    line-height: 1.35 !important;
  }
  .obj_article_summary .authors,
  .obj_article_summary .pages {
    font-size: 12px !important;
  }
  .obj_article_summary .galleys_links {
    margin-top: 10px !important;
  }
  .obj_article_summary .galleys_links a {
    display: inline-block !important;
    margin-right: 6px !important;
    margin-bottom: 6px !important;   /* kalau tombol turun ke baris baru */
    padding: 6px 12px !important;
  }