.card-top,
.card-bottom-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.card-bottom-wrapper {
  margin-top: auto;
}

.custom-card-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.card-content {
  display: flex;
  gap: 16px;
  flex-direction: column;
  flex: 1 1 auto;
}

.card-title {
  font-size: 20px;
  font-family: "Lexend", sans-serif;
  font-weight: 400;
  line-height: 1.25;
  margin: 12px 0 0;
}

h2.card-title a {
    color: #ffffff;
}

h2.card-title a:hover {
    color: #AEB1C7;
}

.card-excerpt {
  font-size: 14px;
  color: #AEB1C7;
  line-height: 1.6;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
}

.card-meta-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.card-meta-tags .meta {
  padding: 5px 8px;
  font-size: 12px;
  line-height: 1;
  color: #AEB1C7;
  border-radius: 4px;
  border: 1px solid rgba(174, 177, 199, 0.20);
  background: #1F2028;
}

.card-meta-tags .meta.version {
  background: rgba(192, 74, 253, 0.10);
  color: rgb(192 74 253);
  border: 1px solid rgba(192, 74, 253, 0.25);
}

.card-divider {
  border: none;
  border-top: 1px solid rgba(174, 177, 199, 0.10);
}

.card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

.platforms,
.platform-icons {
  display: flex;
  gap: 6px;
}

.platform {
  background: #2d2d44;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
}

.last-update-box {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  padding: 0 8px;
  background-color: rgba(174, 177, 199, 0.1);
  color: #AEB1C7;
  border-radius: 4px;
  font-size: 12px;
  font-family: 'Inter', sans-serif;
  text-transform: capitalize;
  cursor: default;
}

.last-update-box::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #2e2f38;
  color: #AEB1C7;
  border: 1px solid rgba(174, 177, 199, 0.1);
  font-size: 12px;
  padding: 6px 8px;
  margin-bottom: 4px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 10;
  line-height: 1;
}

.last-update-box:hover::after {
  opacity: 1;
  visibility: visible;
}

.meta-wrapper {
  position: relative;
}

.meta-wrapper .tooltip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #2e2f38;
  color: #AEB1C7;
  border: 1px solid #aeb1c61a;
  font-size: 12px;
  padding: 6px 8px;
  margin-bottom: 4px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 10;
  line-height: 1;
  pointer-events: none;
}

.meta-wrapper:hover .tooltip {
  opacity: 1;
  visibility: visible;
}

.pagination {
  display: flex;
    justify-content: flex-start !important;
  flex-wrap: wrap;
  gap: 16px  !important;
  margin: 32px auto 16px  !important;
  width: 100%;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  color: #AEB1C7 !important;
  background-color: #1F2028;
  border: 1px solid rgba(174, 177, 199, 0.20);
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.25s ease;
}

.pagination a:hover {
  background-color: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.25);
  color: rgb(255, 255, 255) !important;
}

.pagination .current {
  background-color: rgba(192, 74, 253, 0.10)!important;
  border-color: rgba(192, 74, 253, 0.25)!important;
  color: rgb(192, 74, 253)!important;
}
.pagination-wrapper {
  display: flex;
  justify-content: center;
}

.carousel-title {
  color: #FFF;
  font-family: 'Lexend', sans-serif;
  font-size: 24px;
  font-style: normal;
  font-weight: 400 !important;
  line-height: normal;
}

.carousel-title:before {
    content: '';
    display: inline-block;
    background: #C04AFD;
    width: 16px;
    height: 6px;
    border-radius: 2px;
    margin-right: 6px;
}


/* ==== Carousel Header, Arrows, Button ==== */


.cards-wrapper {
  margin-bottom: 48px;
}

.cards-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  gap: 16px;
  flex-wrap: wrap;
}

.cards-header-bar .carousel-title {
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  margin: 0;
}

.carousel-header-right {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.carousel-button {
  display: inline-block;
  padding: 8px 16px;
  background: rgba(192, 74, 253, 0.12);
  color: #c04afd;
  border: 1px solid rgba(192, 74, 253, 0.5);
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.carousel-button:hover {
  background: rgba(192, 74, 253, 0.2);
  color: #fff;
}

/* Skeleton Card */

.card-skeleton {
  display: flex;
  flex-direction: column;
  background: #1e1f2a;
  border-radius: 12px;
  padding: 0;
  height: 100%;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.05);
  animation: pulse 1.4s ease-in-out infinite;
  overflow: hidden;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  min-width: 280px;
}

.card-skeleton.skeleton-style-2 {
  flex-direction: row;
  align-items: flex-start;
  padding: 16px;
  gap: 16px;
  max-width: 820px;
}

.card-skeleton .skeleton-thumb {
    background: #2c2d39;
    width: calc(100% - 32px);
    height: 180px;
    margin: 16px auto 8px;
    border-radius: 8px;
}

.card-skeleton.skeleton-style-2 .skeleton-thumb {
    width: 45%;
    height: 184px;
    border-radius: 8px;
    flex-shrink: 0;
    margin: 0;
}

.card-skeleton .skeleton-content {
  display: flex;
  flex-direction: column;
  padding: 16px;
  gap: 8px;
  flex: 1;
}

.card-skeleton.skeleton-style-2 .skeleton-content {
    padding: 0;
    margin: 16px 8px;
}

.card-skeleton .skeleton-title {
  height: 20px;
  background: #2c2d39;
  width: 80%;
  border-radius: 4px;
}

.card-skeleton .skeleton-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.card-skeleton .skeleton-tag {
  background: #2c2d39;
  height: 16px;
  width: 60px;
  border-radius: 4px;
}

.card-skeleton .skeleton-tag.short {
  width: 40px;
}

.card-skeleton .skeleton-text-line {
  height: 8px;
  background: #2c2d39;
  border-radius: 4px;
}

.card-skeleton .skeleton-text-line.short {
  width: 100%;
}

.card-skeleton .skeleton-text-line.short.last {
  width: 60%;
}

.card-skeleton .skeleton-text-line.medium {
  width: 100%;
  height: 1px;
  margin: 8px 0;
}

.card-skeleton .skeleton-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.card-skeleton .skeleton-date, .card-skeleton .skeleton-badge {
  background: #2c2d39;
  width: 80px;
  height: 20px;
  border-radius: 4px;
}

.swiper-loading-placeholder .swiper-slide {
  flex: 1 1 auto;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.swiper-loading-placeholder .swiper-wrapper {
    gap: 32px;
}


.card-skeleton {
  animation: pulse 1.5s ease-in-out infinite;
    width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.card-skeleton .skeleton-thumb,
.card-skeleton .skeleton-line {
  background: #2c2d39;
  border-radius: 8px;
}

.card-skeleton .skeleton-line {
  height: 10px;
  border-radius: 4px;
}

.card-skeleton .skeleton-line.short {
  width: 40%;
}

.card-skeleton .skeleton-line.medium {
  width: 60%;
}

.card-skeleton .skeleton-line.full {
  width: 100%;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

