/* Container Utama */
.custom-journal-metrics {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  padding: 20px 0;
  max-width: 100%;
  margin: 0 auto;
}

/* Grid Layout */
.metrics-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 40px;
}

.metric-card {
  flex: 1 1 20%;
  min-width: 220px;
  border-left: 2.5px solid #8B7A46;
  padding-left: 15px;
}

.metric-title {
  display: flex;
  align-items: center;
  font-size: 28px;
  font-weight: 400;
  color: #222;
  margin-bottom: 6px;
  line-height: 1.2;
}

.metric-desc {
  font-size: 14px;
  color: #333;
  line-height: 1.4;
}

/* Footer & Tombol */
.metrics-footer {
  border-left: 2.5px solid #8B7A46;
  padding-left: 15px;
  display: flex;
  align-items: center;
}

.view-insights-btn {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: #222;
  font-size: 16px;
  transition: color 0.3s ease;
}

.view-insights-btn:hover {
  color: #006eb7;
  text-decoration: none;
}

/* Kotak Ikon Panah (Menggunakan Karakter HTML) */
.chevron-box {
  background-color: #006eb7;
  width: 36px;
  height: 36px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 15px;
  transition: background-color 0.3s ease;
  color: #ffffff;
  font-size: 16px;
  font-weight: bold;
}

.view-insights-btn:hover .chevron-box {
  background-color: #005893;
}

/* =========================================================
   PENGATURAN TOOLTIP & IKON INFO (CSS MURNI)
   ========================================================= */
.tooltip-container {
  position: relative;
  display: inline-block;
  cursor: pointer;
  margin-left: 8px;
}

/* Membuat Ikon "i" dengan CSS (Tanpa SVG) */
.info-icon {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 20px;
  height: 20px;
  border: 1.5px solid #006eb7;
  border-radius: 50%;
  color: #006eb7;
  font-size: 13px;
  font-weight: bold;
  font-family: Georgia, serif;
  font-style: italic;
  transition: opacity 0.3s ease;
}

.tooltip-container:hover .info-icon {
  opacity: 0.7;
}

/* Desain Kotak Dialog */
.tooltip-box {
  position: absolute;
  top: 32px;
  left: -20px;
  width: 280px;
  background-color: #fff;
  border: 1px solid #dcdcdc;
  border-top: 2px solid #e7601a;
  padding: 15px;
  font-size: 14px;
  font-weight: 400;
  color: #333;
  line-height: 1.5;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  z-index: 9999;
  
  /* Efek Hilang Timbul */
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  
  cursor: text;
  text-align: left;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-style: normal;
}

.tooltip-container:hover .tooltip-box {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Segitiga Panah ke Atas pada Dialog Box */
.tooltip-box::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 22px;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-bottom: 9px solid #e7601a;
}

.tooltip-box::after {
  content: '';
  position: absolute;
  top: -7px;
  left: 22px;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-bottom: 9px solid #fff;
}

/* =========================================================
   MENGHILANGKAN LOGO PKP
   ========================================================= */
.pkp_brand_footer, 
.block_developed_by {
  display: none !important;
}

/* Responsivitas Mobile */
@media screen and (max-width: 768px) {
  .metrics-grid {
    flex-direction: column;
    gap: 20px;
  }
  .tooltip-box {
    width: 240px;
  }
}