/* ==========================================================================
   WHY CHOOSE OMEGA SCIENTIFIC - STACK CARDS SCROLL EFFECT
   (assets/css/why_choose.css)
   ========================================================================== */

.why-choose-section {
  position: relative;
  width: 100%;
  padding: 85px 0 120px 0;
  background-color: #f8fafc;
  background-image: radial-gradient(#e2e8f0 1.2px, transparent 1.2px);
  background-size: 32px 32px;
  z-index: 5;
}

/* Header */
.why-choose-header {
  margin-bottom: 50px;
  text-align: left;
}

.why-choose-title {
  font-family: 'Anek Devanagari', sans-serif;
  font-size: 2.85rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0;
}

/* ==========================================================================
   Stack Cards Deck (Sticky Stacking System)
   ========================================================================== */

.stack-cards-deck {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 36px;
  width: 100%;
}

/* Individual Stack Card */
.stack-card {
  position: sticky;
  top: calc(85px + var(--card-index) * 16px);
  width: 100%;
  background: #ffffff;
  border-radius: 24px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 16px 40px -10px rgba(15, 23, 42, 0.08),
              0 2px 8px -2px rgba(15, 23, 42, 0.04);
  overflow: hidden;
  transform-origin: center top;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s ease,
              filter 0.4s ease;
  z-index: calc(10 + var(--card-index));
  margin-bottom: 10px;
}

.stack-card.is-stacked-under {
  transform: scale(0.96) translateY(-10px);
  filter: blur(1px) brightness(0.95);
  box-shadow: 0 8px 24px -6px rgba(15, 23, 42, 0.06);
}

/* Inner 2-Column Layout */
.stack-card-inner {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 44px;
  align-items: center;
  padding: 40px 48px;
}

/* Left Content Column */
.stack-card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.stack-card-num {
  font-family: 'Anek Devanagari', sans-serif;
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, #1d4ed8 0%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 6px;
  display: inline-block;
}

.stack-card-title {
  font-family: 'Anek Devanagari', sans-serif;
  font-size: 2.25rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 10px 0;
  line-height: 1.2;
}

.stack-card-desc {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.05rem;
  font-weight: 400;
  color: #475569;
  line-height: 1.6;
  margin: 0 0 24px 0;
}

/* Checklist Points */
.stack-card-points {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stack-card-points li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: #1e293b;
  line-height: 1.45;
}

.stack-check-icon {
  width: 22px;
  height: 22px;
  min-width: 22px;
  border-radius: 50%;
  background: #dbeafe;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.stack-check-icon svg {
  width: 14px;
  height: 14px;
  stroke: #2563eb;
}

/* Right Visual Column */
.stack-card-visual {
  position: relative;
  width: 100%;
}

.stack-image-wrap {
  position: relative;
  width: 100%;
  height: 330px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 28px -6px rgba(15, 23, 42, 0.12);
  background-color: #0f172a;
}

.stack-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.stack-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.05) 0%, transparent 40%, rgba(15, 23, 42, 0.4) 100%);
  pointer-events: none;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 1024px) {
  .stack-card {
    top: calc(75px + var(--card-index) * 12px);
  }

  .stack-card-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 32px 30px;
  }

  .stack-image-wrap {
    height: 280px;
  }
}

@media (max-width: 768px) {
  .why-choose-section {
    padding: 60px 0 90px 0;
  }

  .why-choose-title {
    font-size: 2.2rem;
  }

  .stack-card {
    border-radius: 18px;
    top: calc(70px + var(--card-index) * 8px);
  }

  .stack-card-inner {
    padding: 24px 20px;
    gap: 24px;
  }

  .stack-card-title {
    font-size: 1.8rem;
  }

  .stack-card-desc {
    font-size: 0.95rem;
    margin-bottom: 18px;
  }

  .stack-image-wrap {
    height: 220px;
  }
}

@media (max-width: 480px) {
  .stack-card-inner {
    padding: 20px 16px;
  }

  .stack-card-num {
    font-size: 1.8rem;
  }

  .stack-card-pill {
    font-size: 0.75rem;
    padding: 4px 10px;
  }

  .stack-card-title {
    font-size: 1.5rem;
  }

  .stack-card-points li {
    font-size: 0.85rem;
  }

  .stack-image-wrap {
    height: 180px;
  }
}
