.new88-guide-wrapper {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  padding: 12px 0 !important;
  box-sizing: border-box;
  clear: both;
}

.new88-guide-wrapper *,
.new88-guide-wrapper *::before,
.new88-guide-wrapper *::after {
  box-sizing: border-box;
}

.new88-guide-grid {
  display: grid !important;
  width: 100% !important;
  max-width: 100% !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.new88-guide-card {
  position: relative;
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  overflow: hidden;
  border: 2px solid #f5b400;
  border-radius: 12px;
  background: #111827;
  text-decoration: none !important;
  isolation: isolate;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.new88-guide-card img {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  object-fit: contain;
  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.78) 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.48) 72%,
    rgba(0, 0, 0, 0.88) 100%
  );
  pointer-events: none;
}

.new88-guide-title {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  z-index: 2;
  color: #ffb300;
  font-size: clamp(13px, 1.5vw, 22px);
  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.035);
  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));
    gap: 14px;
  }
}

@media (max-width: 575px) {
  .new88-guide-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    padding: 10px 0 !important;
  }

  .new88-guide-grid {
    width: 100% !important;
    max-width: 100% !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .new88-guide-card {
    border-width: 1.5px;
    border-radius: 10px;
  }

  .new88-guide-title {
    left: 5px;
    right: 5px;
    bottom: 6px;
    font-size: 11px;
    line-height: 1.18;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.95), 0 0 8px rgba(255, 174, 0, 0.3);
  }
}

@media (max-width: 360px) {
  .new88-guide-grid {
    gap: 8px;
  }

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