/* 
 * Studies Learning - Pack Details Signature (Soft-Tech Premium)
 */

:root {
  --sd-pack-primary: #6e8efb; /* Blue Pastel */
  --sd-pack-secondary: #a8d5ba; /* Sage Green */
  --sd-pack-bg: #f8fafc;
  --sd-pack-white-glass: rgba(255, 255, 255, 0.4);
  --sd-pack-white-glass-plus: rgba(255, 255, 255, 0.8);
  --sd-pack-pill-glass: rgba(255, 255, 255, 0.7);
  --sd-pack-navy: #0f172a;
  --sd-pack-text-light: #64748b;
  --sd-pack-blur: blur(20px);
  --sd-pack-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
  --sd-pack-shadow-deep: 0 40px 80px -20px rgba(15, 23, 42, 0.1);
  --sd-pack-ease: cubic-bezier(0.2, 0.9, 0.4, 1);
  --sd-glint: linear-gradient(
    120deg,
    transparent 30%,
    rgba(255, 255, 255, 0.4) 40%,
    rgba(255, 255, 255, 0.4) 45%,
    transparent 55%
  );
}

.studies-p-pack-wrapper {
  background: var(--sd-pack-bg);
  color: var(--sd-pack-navy);
  font-family: "Plus Jakarta Sans", sans-serif;
  overflow-x: hidden;
  position: relative;
}

/* Background Shapes Embellishments */
.sd-glass-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  z-index: 0;
  opacity: 0.3;
  animation: sdDrift 20s infinite alternate ease-in-out;
}
.sd-shape-1 {
  width: 600px;
  height: 600px;
  background: var(--sd-pack-primary);
  top: 10%;
  right: -200px;
  animation-duration: 25s;
}
.sd-shape-2 {
  width: 500px;
  height: 500px;
  background: var(--sd-pack-secondary);
  bottom: 10%;
  left: -200px;
  animation-delay: -5s;
}

@keyframes sdDrift {
  0% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(50px, 30px) scale(1.1);
  }
  100% {
    transform: translate(-20px, 60px) scale(0.9);
  }
}

/* 1. Hero Banner (Coherence with other pages) */
.sd-pack-hero-premium {
  height: 350px !important;
  min-height: 400px !important;
  padding: 8rem 2rem !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  text-align: center !important;
  overflow: hidden;
}

.sd-hero-bg-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120%; /* Parallax */
  background-size: cover;
  background-position: center;
  z-index: 1;
}

.sd-hero-overlay-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.3) 0%,
    rgba(0, 0, 0, 0.7) 100%
  );
  z-index: 2;
}

.sd-hero-minimal-content {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

.sd-pack-hero-premium .sd-hero-tag {
  color: #fff;
  opacity: 0.8;
  font-weight: 700;
  letter-spacing: 0.4em;
  margin-bottom: 1.5rem;
  display: block;
  font-size: 0.9rem;
  text-transform: uppercase;
}

.sd-hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
  background: linear-gradient(to right, #ffffff, #c7d2fe);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.sd-hero-subtitle {
  font-size: 1.25rem;
  font-weight: 400;
  opacity: 0.9;
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Wavy Separator */
.sd-wavy-divider-wrap {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 120px;
  z-index: 4;
}

.sd-wave-svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* 2. Content Section */
.sd-pack-content {
  padding: 8rem 2rem;
  position: relative;
  z-index: 5;
  background: white;
}

.sd-section-header {
  margin-top: -7rem;
  text-align: center;
  margin-bottom: 5rem;
}

.sd-section-label {
  color: var(--sd-pack-primary);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.8rem;
  display: block;
  margin-bottom: 1.5rem;
}

.sd-section-title {
  font-size: 2.5rem;
  font-weight: 500;
  color: var(--sd-pack-navy);
}

/* 3. Included Grid */
.sd-included-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 8rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.sd-included-card {
  padding: 3rem 2rem;
  background: var(--sd-pack-bg);
  border-radius: 30px;
  text-align: center;
  border: 1.5px solid rgba(15, 23, 42, 0.05);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
  transition: all 0.4s var(--sd-pack-ease);
}

.sd-included-card:hover {
  transform: translateY(-10px);
  background: white;
  box-shadow: var(--sd-pack-shadow);
}

.sd-included-icon {
  width: 64px;
  height: 64px;
  background: white;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  font-size: 2rem;
  color: var(--sd-pack-primary);
}

/* 4. Custom Accordions */
.sd-curriculum-wrap {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 1000px;
  margin: 0 auto;
}

.sd-acc-card {
  background: white;
  backdrop-filter: var(--sd-pack-blur);
  border: 1.5px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.08), inset 0 0 0 1px rgba(255, 255, 255, 0.5);
  border-radius: 24px;
  overflow: hidden;
  transition: all 0.6s var(--sd-pack-ease);
}

.sd-acc-card.active {
  background: white;
  box-shadow: 0 40px 100px -20px rgba(15, 23, 42, 0.15);
  border-color: var(--sd-pack-primary);
  transform: scale(1.03) translateY(-5px);
}

.sd-acc-header {
  padding: 2.5rem 3.5rem;
  display: flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.sd-acc-index {
  font-size: 2.5rem;
  font-weight: 500;
  opacity: 0.15;
  margin-right: 2.5rem;
  font-family: inherit;
}

.sd-acc-title {
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--sd-pack-navy);
  flex-grow: 1;
}

.sd-acc-toggle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--sd-pack-primary);
  transition: transform 0.5s var(--sd-pack-ease);
}

.sd-acc-card.active .sd-acc-toggle {
  transform: rotate(45deg); /* + becomes x/minus */
  background: var(--sd-pack-primary);
  color: white;
}

.sd-acc-body {
  max-height: 0;
  overflow: hidden;
  padding: 0 4.5rem;
  opacity: 0;
  transition: all 0.5s var(--sd-pack-ease);
}

.sd-acc-card.active .sd-acc-body {
  max-height: 2000px; /* Allow more content */
  padding-bottom: 3.5rem;
  opacity: 1;
}

.sd-module-details {
  background: rgba(255, 255, 255, 0.4);
  padding: 2rem;
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.sd-lesson-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
  font-size: 0.95rem;
  color: var(--sd-pack-navy);
}

.sd-lesson-item i {
  font-size: 1.25rem;
  color: var(--sd-pack-secondary);
  filter: drop-shadow(0 0 5px rgba(168, 213, 186, 0.4));
}

.sd-lesson-item:last-child {
  border: none;
}

/* 5. Sticky Buy Pill */
.sd-sticky-pill {
  position: fixed;
  bottom: 40px;
  right: 40px;
  background: var(--sd-pack-pill-glass);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 1rem 2.5rem;
  border-radius: 100px;
  display: flex;
  align-items: center;
  gap: 3rem;
  z-index: 999;
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.15);
  transform: translateY(150px); /* Hidden initially */
  transition: all 0.8s var(--sd-pack-ease);
}

.sd-sticky-pill.visible {
  transform: translateY(0);
}

.sd-pill-price {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--sd-pack-navy);
  letter-spacing: -0.02em;
  opacity: 0;
  transform: translateX(-20px);
}

.sd-sticky-pill.visible .sd-pill-price {
  animation: sdPriceReveal 1s var(--sd-pack-ease) both;
  animation-delay: 0.4s;
}

@keyframes sdPriceReveal {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.sd-pill-btn {
  background: var(--sd-pack-navy);
  color: white;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: 0.4s;
  position: relative;
  overflow: hidden;
}

.sd-pill-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--sd-glint);
  animation: sdGlint 4s infinite;
}

@keyframes sdGlint {
  0% {
    left: -100%;
  }
  20% {
    left: 100%;
  }
  100% {
    left: 100%;
  }
}

.sd-pill-btn:hover {
  background: var(--sd-pack-primary);
  transform: scale(1.05);
  box-shadow: 0 10px 20px -5px rgba(110, 142, 251, 0.4);
}

/* Mobile Adjustments */
@media (max-width: 992px) {
  .sd-pack-hero-premium {
    height: 60vh !important;
  }
  .sd-hero-title {
    font-size: 2.8rem;
  }
  .sd-acc-header {
    padding: 2rem;
  }
  .sd-acc-index {
    font-size: 1.8rem;
    margin-right: 1.5rem;
  }
  .sd-sticky-pill {
    bottom: 0;
    right: 0;
    width: 100%;
    border-radius: 0;
    transform: translateY(100px);
    justify-content: space-between;
    padding: 1.5rem 2rem;
  }
}
