.new88-guide-wrapper {
  width: 100%;
  margin: 0 auto;
  padding: 10px 0;
}

.new88-guide-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  align-items: stretch;
}

.new88-guide-card {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 220px;
  border: 1.5px solid #f5b400;
  border-radius: 10px;
  background: #111827;
  text-decoration: none !important;
  isolation: isolate;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.new88-guide-card img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  display: block;
  transform: scale(1.001);
  transition: transform 0.45s ease, filter 0.45s ease;
}

.new88-guide-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -130%;
  z-index: 3;
  width: 70%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255,255,255,0.08) 30%,
    rgba(255,221,92,0.85) 50%,
    rgba(255,255,255,0.12) 70%,
    transparent 100%
  );
  transform: skewX(-25deg);
  pointer-events: none;
}

.new88-guide-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0) 42%,
    rgba(0,0,0,0.50) 70%,
    rgba(0,0,0,0.88) 100%
  );
  pointer-events: none;
}

.new88-guide-title {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  color: #ffb300;
  font-size: 24px;
  line-height: 1.15;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 0 2px 6px rgba(0,0,0,0.9), 0 0 10px rgba(255,174,0,0.35);
}

.new88-guide-card:hover {
  transform: translateY(-4px);
  border-color: #ffd75a;
  box-shadow:
    0 0 8px rgba(255,199,44,0.9),
    0 0 18px rgba(255,174,0,0.7),
    0 0 38px rgba(255,174,0,0.36);
}

.new88-guide-card:hover img {
  transform: scale(1.045);
  filter: brightness(1.08) contrast(1.06);
}

.new88-guide-card:hover::before {
  animation: new88-guide-shine 0.9s ease forwards;
}

@keyframes new88-guide-shine {
  0% { left: -130%; }
  100% { left: 135%; }
}

@media (max-width: 1024px) {
  .new88-guide-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575px) {
  .new88-guide-grid {
    grid-template-columns: 1fr;
  }

  .new88-guide-card,
  .new88-guide-card img {
    min-height: 205px;
  }

  .new88-guide-title {
    font-size: 21px;
  }
}
