/* Sakthi Stock Cards - scroll-driven stacked card styles */

/* root wrapper (normal flow) */
.sk-stock-cards {
  position: relative;
  width: 100%;
}

/* tall scroller to keep natural page scroll: height = N * 100vh (inline style set by PHP) */
.sk-scroller {
  position: relative;
  width: 100%;
}

/* sticky viewport: occupies the viewport while user scrolls through the scroller */
.sk-cards-wrap {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  overflow: visible;
  display: block;
}

/* stacked cards absolutely positioned within the sticky viewport */
.sk-card {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-color: #111;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: transform 300ms cubic-bezier(.2,.9,.3,1), opacity 300ms ease;
  will-change: transform, opacity;
  box-shadow: 0 12px 30px rgba(0,0,0,0.5);
  padding: 2rem;
}

/* overlay for contrast */
.sk-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom right, rgba(0, 0, 80, 0.5), rgba(0, 0, 0, 0.75));
  pointer-events: none;
}

/* inner centered content */
.sk-card-inner {
  position: relative;
  z-index: 2;
  max-width: 900px;
  text-align: center;
  padding: 2rem;
}

/* typography */
.sk-card-title {
  margin: 0 0 0.8rem;
  line-height: 1.05;
}

.sk-card-content {
  max-width: 80%;
  margin: 0 auto;
  opacity: 0.95;
  font-size: 1.5rem;
}

.sk-card-link {
  display: inline-block;
  margin-top: 1.25rem;
  padding: 0.5rem 1rem;
  background: rgba(255,255,255,0.12);
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
}

/* initial stacking (JS will override transforms per scroll) */
.sk-card[data-index="0"] { z-index: 100; }
.sk-card[data-index="1"] { z-index: 90; }
.sk-card[data-index="2"] { z-index: 80; }

/* pagination dots */
.sk-pagination {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 1rem;
  display: flex;
  gap: 0.5rem;
  z-index: 200;
}
.sk-pagination button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
}
.sk-pagination button.is-active { background: #fff; }

.ap-home #section-45 .mid-content{
    width: 100%;
    padding: 0 0;
}

/* responsive */
@media (max-width: 700px) {
  .sk-card-inner { padding: 1.25rem; }
  .sk-card-content { max-width: 92%; }
}

@media screen and (max-width: 1200px) {
    .app-home #section-45 .default_template .mid-content {
        width: 100%;
        padding: 0 0;
    }
}