/* Custom styles from original HTML */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.text-gradient {
  background: linear-gradient(135deg, #135bec 0%, #7c3aed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.bg-gradient-soft {
  background: linear-gradient(180deg, #f8f9fc 0%, #eff2f9 100%);
}

.modal {
  transition: opacity 0.3s ease-in-out;
}

.modal-content {
  transition: transform 0.3s ease-in-out;
}

.hidden-modal {
  opacity: 0;
  pointer-events: none;
}

.hidden-modal .modal-content {
  transform: scale(0.95);
}

/* =========================================================
   GO4AI News thumbnail: FORCE 16:9 (works even if height is overridden)
   Strategy: intrinsic ratio box (padding-top) + absolute img
   ========================================================= */

.go4ai-news-thumb {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  height: auto !important;
  overflow: hidden !important;
  border-radius: 0.75rem; /* tương đương rounded-xl */
  background: #f3f4f6;    /* tương đương bg-gray-100 */
}

/* ratio box: 16:9 */
.go4ai-news-thumb::before {
  content: "";
  display: block;
  padding-top: 56.25% !important; /* 9/16 = 0.5625 */
}

/* image fills the ratio box */
.go4ai-news-thumb > img.go4ai-news-thumb-img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}
