.gp-slider-container {
  position: relative;
  width: 100%;
  padding: 0;
}

.gp-swiper {
  width: 100%;
  overflow: hidden;
  padding-bottom: 8px !important;
}

.gp-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  border-radius: 4px;
  overflow: hidden;
  background: #1c234a;
  text-decoration: none !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.gp-card:hover {
  transform: translateY(-4px);
}

/* --- Thumbnail Image --- */
.gp-card-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: #0e1329;
}

.gp-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.gp-card:hover .gp-card-thumb img {
  transform: scale(1.05);
}

/* --- Card Footer / Bottom Bar --- */
.gp-card-footer {
  display: flex;
  flex-direction: row;
  width: 100%;
  min-height: 64px;
  background-color: #122644;
  margin-top: auto;
}

.gp-card-title-box {
  background-color: #122644;
  flex: 1 1 55%;
  padding: 16px 14px;
  display: flex;
  align-items: center;
  min-width: 0;
}

.gp-card-title {
  color: #ffffff !important;
  font-family: inherit;
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.35;
  letter-spacing: 0.02em;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gp-card-action-box {
  background-color: #051631;
  flex: 0 0 45%;
  padding: 16px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.gp-card-action-text {
  color: #f6f6f4;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
}

.gp-card-action-arrow {
  color: #ffffff;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.gp-card:hover .gp-card-action-arrow {
  transform: translateX(4px);
}

/* --- Responsive Layout Rules --- */

/* Desktop Grid View (>= 1024px) */
@media (min-width: 1024px) {
  .gp-swiper {
    overflow: hidden !important;
  }

  .gp-grid-wrapper {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 24px !important;
    transform: none !important;
    width: 100% !important;
  }

  .gp-slide-item {
    width: auto !important;
    margin-right: 0 !important;
    height: 100% !important;
  }

  .gp-nav-pill,
  .gp-swiper-pagination {
    display: none !important;
  }
}

/* Tablet & Mobile Slider View (< 1024px) */
@media (max-width: 1023px) {
  .gp-swiper {
    overflow: hidden !important;
  }

  .gp-slider-container {
    overflow: hidden;
  }

  .gp-slide-item {
    height: auto !important;
  }

  .gp-card-title-box {
    padding: 14px 12px;
    flex: 1 1 58%;
  }

  .gp-card-title {
    font-size: 20px;
  }

  .gp-card-action-box {
    padding: 14px 10px;
    flex: 0 0 42%;
    gap: 4px;
  }

  .gp-card-action-text {
    font-size: 16px;
  }

  /* Swiper Pagination Styling */
  .gp-swiper-pagination {
    position: relative !important;
    bottom: 0 !important;
    margin-top: 18px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }

  .gp-swiper-pagination .swiper-pagination-bullet {
    width: 9px;
    height: 9px;
    background: #888;
    opacity: 0.45;
    border-radius: 50%;
    margin: 0 !important;
    transition: all 0.3s ease;
  }

  .gp-swiper-pagination .swiper-pagination-bullet-active {
    background: #222222;
    opacity: 1;
    transform: scale(1.2);
  }
}

/* ============================================================
   FIX: Tắt animation EAM cho các slide Swiper trên tablet/mobile
   Các slide nằm ngoài viewport ban đầu sẽ không bị opacity:0
   vì EAM chưa kích hoạt anim-active cho chúng
   ============================================================ */
@media (max-width: 1023px) {
  .gp-slide-item .anim-item,
  .gp-slide-item.anim-item {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }
}
