/* Scope border-box to prevent theme conflicts */
.vma-cards-wrapper *,
.vma-cards-wrapper *::before,
.vma-cards-wrapper *::after { 
  box-sizing: border-box; 
}

.vma-cards-wrapper .vma-cards-stage {
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  perspective: 1500px;
  font-family: 'Montserrat', sans-serif;
}

.vma-cards-wrapper .cards-container {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
}

.vma-cards-wrapper .vma-card {
  position: absolute;
  width: 612px;  
  height: 378px;  
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%); 
  background: #262626; 
  border-radius: 20px;
  opacity: 0;
  box-shadow: 
    0 35px 70px rgba(0, 0, 0, 0.4),
    0 8px 18px rgba(0, 0, 0, 0.2);
  display: flex;
  padding: 20px;
  gap: 20px;
  will-change: transform, opacity, z-index;
  text-decoration: none !important;
  color: #fff !important;
  cursor: pointer;
  transition: box-shadow 0.2s ease;
}

.vma-cards-wrapper .vma-cards-scroll-hint {
  position: absolute;
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0.7;
  font-weight: 600;
}

.vma-cards-wrapper .vma-cards-scroll-hint img {
  max-width: 28px;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border: 1px solid #ffffff;
  padding: 4px;
  border-radius: 7px;
  margin: 0 auto;
  display: block;
  opacity: 0.7;
}

.vma-slider-cards .uagb-infobox-cta-link.wp-block-button__link,
.vma-slider-cards .uagb-ifb-image-content img {
  border-radius: 10px !important;
}

.vma-slider-cards .swiper-slide {
  min-height: 460px;
}

.vma-slider-cards .swiper-slide .swiper-content {
  border-radius: 14px !important;
  min-height: 420px;
}

.vma-slider-cards .swiper-pagination {
  position: relative !important;
  bottom: 0 !important;
  margin-top: 1rem !important;
}

.vma-cards-wrapper .vma-card:hover {
  box-shadow: 
    0 45px 80px rgba(0, 0, 0, 0.5),
    0 12px 24px rgba(0, 0, 0, 0.3);
}

.vma-cards-wrapper .vma-card__left {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0; 
  height: 100%; 
}

.vma-cards-wrapper .vma-card__icon {
  color: #f7387d; 
  font-size: 52px; 
  line-height: 1;
  font-family: serif; 
  margin-left: 4px; 
}

.vma-cards-wrapper .vma-card__content {
  margin-top: auto; 
  display: flex;
  flex-direction: column;
  gap: 8px; 
}

.vma-cards-wrapper .vma-card__content h3 {
  margin-bottom: 0.5rem;
}

.vma-cards-wrapper .vma-card__title {
  font-family: 'Oswald', sans-serif; 
  font-weight: 700;
  font-size: 38px; 
  line-height: 1.1;
  letter-spacing: 0.5px;
  word-wrap: break-word;
  color: #ffffff;
  margin: 0;
}

.vma-cards-wrapper .vma-card__desc {
  font-weight: 400;
  color: #b0b0b0;
  line-height: 1.5;
  font-size: 1rem; 
  margin: 0;
  word-wrap: break-word;
}

.vma-cards-wrapper .vma-card__link {
  font-weight: 500;
  color: var(--ast-global-color-3) !important;
  background-color: var(--ast-global-color-4);
  line-height: 1.5;
  font-size: 1rem;
  margin: 0;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
  width: fit-content;
  margin: 1rem 0 0 0;
}

.vma-cards-wrapper .vma-card__right {
  flex: 0 0 50%; 
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  height: 100%;
}

.vma-cards-wrapper .vma-card__right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: absolute; 
  top: 0;
  left: 0;
}

@media (max-width: 768px) {
  .vma-cards-wrapper .vma-card { 
    width: 300px; 
    height: 480px; 
    flex-direction: column;
    padding: 16px;
  }
  .vma-cards-wrapper .vma-card__right { flex: 0 0 45%; width: 100%; }
  .vma-cards-wrapper .vma-card__icon { font-size: 36px; margin-bottom: 20px; }
  .vma-cards-wrapper .vma-card__title { font-size: 30px; }
}