/**
 * GMoney Cards Deslizable Slider Stylesheet
 */

:root {
  --gm-deck-offset: 110px;
}

.gm-deslizable-container {
  position: relative;
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
  box-sizing: border-box;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
}

.gm-deslizable-track {
  position: relative;
  width: 100%;
  min-height: 440px;
  overflow: visible;
  display: block;
}

/* Individual Card */
.gm-deslizable-card {
  position: absolute;
  top: 50%;
  left: 0;
  width: calc(100% - (var(--gm-deck-offset) * 2));
  max-width: 1200px;
  min-height: 420px;
  box-sizing: border-box;
  padding: 32px 40px 32px 32px;
  border-radius: 28px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.16);
  overflow: hidden;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.5s ease, box-shadow 0.5s ease;
  transform-origin: center right;
  cursor: default;
}

.gm-card-overlay-link {
  position: absolute;
  inset: 0;
  z-index: 5;
  text-decoration: none;
}

/* Desktop Stacking Positions */
.gm-deslizable-card.is-active,
.gm-deslizable-card.is-pos-0 {
  transform: translate3d(0, -50%, 0) scale(1);
  z-index: 10;
  opacity: 1;
  pointer-events: auto;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.22);
}

.gm-deslizable-card.is-pos-1 {
  transform: translate3d(var(--gm-deck-offset), -50%, 0) scale(0.85);
  z-index: 9;
  opacity: 0.95;
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18);
}

.gm-deslizable-card.is-pos-2 {
  transform: translate3d(calc(var(--gm-deck-offset) * 2), -50%, 0) scale(0.72);
  z-index: 8;
  opacity: 0.85;
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
}

.gm-deslizable-card.is-pos-prev {
  transform: translate3d(-115%, -50%, 0) scale(0.88);
  z-index: 5;
  opacity: 0;
  pointer-events: none;
}

.gm-deslizable-card.is-pos-hidden {
  transform: translate3d(calc(var(--gm-deck-offset) * 2.6), -50%, 0) scale(0.6);
  z-index: 4;
  opacity: 0;
  pointer-events: none;
}

/* Card Interior */
.gm-card-inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  min-height: inherit;
  box-sizing: border-box;
}

.gm-card-media {
  width: 40%;
  max-width: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 10px 20px 10px 0;
  box-sizing: border-box;
}

.gm-card-media img {
  max-width: 100%;
  max-height: 270px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.15));
}

.gm-card-content {
  width: 60%;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
}

.gm-card-title {
  font-family: inherit;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.18;
  color: #ffffff;
  margin: 0 0 8px 0;
  letter-spacing: -0.015em;
}

.gm-card-subtitle {
  font-family: inherit;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.44;
  color: rgba(255, 255, 255, 0.92);
  margin: 0 0 20px 0;
}

.gm-card-bullets {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gm-card-bullet-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  line-height: 1.35;
}

.gm-bullet-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 18px;
  height: 14px;
  margin-top: 4px;
}

.gm-bullet-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.gm-bullet-icon svg polygon {
  fill: #fdb927;
  transition: fill 0.3s ease;
}

.gm-card-bullet-text {
  font-family: inherit;
  font-size: 15.5px;
  font-weight: 500;
  color: #ffffff;
}

/* Pagination Pills */
.gm-deslizable-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 35px;
  position: relative;
  z-index: 20;
}

.gm-pagination-dot {
  border: none;
  padding: 0;
  margin: 0;
  outline: none;
  cursor: pointer;
  height: 9px;
  width: 13px;
  border-radius: 6px;
  background-color: #a7c5fb;
  opacity: 0.8;
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.gm-pagination-dot:hover {
  opacity: 1;
  transform: scale(1.15);
}

.gm-pagination-dot.is-active {
  width: 44px;
  background-color: #0c5ff5;
  opacity: 1;
  cursor: default;
}

/* Tablet (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
  :root {
    --gm-deck-offset: 80px;
  }
  .gm-deslizable-card {
    padding: 24px 30px;
    min-height: 380px;
  }
  .gm-card-title {
    font-size: 26px;
  }
  .gm-card-subtitle {
    font-size: 15px;
    margin-bottom: 16px;
  }
  .gm-card-bullet-text {
    font-size: 14.5px;
  }
}

/* Mobile Mode (<= 767px): Vertical centered stacking */
@media (max-width: 767px) {
  .gm-deslizable-container {
    padding: 0 16px;
  }

  .gm-deslizable-track {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 24px !important;
    min-height: auto !important;
    height: auto !important;
    position: static !important;
  }

  .gm-deslizable-card {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    opacity: 1 !important;
    z-index: 1 !important;
    width: 100% !important;
    max-width: 460px !important;
    min-height: auto !important;
    height: auto !important;
    margin: 0 auto !important;
    padding: 28px 24px !important;
    pointer-events: auto !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.14) !important;
    border-radius: 24px !important;
  }

  .gm-card-inner {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 18px !important;
  }

  .gm-card-media {
    width: 100% !important;
    max-width: 240px !important;
    margin: 0 auto !important;
    padding: 0 !important;
  }

  .gm-card-media img {
    max-height: 180px !important;
    margin: 0 auto !important;
  }

  .gm-card-content {
    width: 100% !important;
    padding: 0 !important;
    text-align: left !important;
  }

  .gm-card-title {
    font-size: 23px !important;
    text-align: center !important;
    margin-bottom: 6px !important;
  }

  .gm-card-subtitle {
    font-size: 14.5px !important;
    text-align: center !important;
    margin-bottom: 18px !important;
  }

  .gm-card-bullets {
    gap: 11px !important;
  }

  .gm-card-bullet-item {
    font-size: 14px !important;
    text-align: left !important;
  }

  .gm-deslizable-pagination {
    display: none !important;
  }
}
